summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Winson Chung <winsonc@google.com> 2023-10-04 20:45:29 +0000
committer Winson Chung <winsonc@google.com> 2023-10-04 22:25:26 +0000
commit5e770ac4e1443eca9878ba4d4b0fb4ccbf532501 (patch)
tree1613ba29bbd12296f55cd887406035bc1b6fc6a1 /libs/androidfw/ObbFile.cpp
parentc8b8fcef930b80a48d1462c44c142f8ece8014f8 (diff)
Ignore exception when checking isRotationLocked()
- RotationPolicy (a fw helper class) uses the current user to resolve the system setting for whether rotation is currently locked. However, Launcher uses this class and does not hold the INTERACT_ACROSS_USERS permission, which means that immediately following a user switch, there is a brief window between ActivityManager setting the current user and Launcher being notified that the user is changing (so it can unregister the rotation watcher). In this brief window, the Launcher for the outgoing user receiving a rotation signal will try to call this check and fail with a SecurityException. Longer term, we should refactor this to support a non-current user path for Launcher. Bug: 279561841 Test: Manual Change-Id: I7ce869d8388081af53751226b22f018d45ec2de8
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions