summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorBryce Lee <brycelee@google.com>2018-01-25 14:08:13 -0800
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-01-27 00:04:32 +0000
commite12bcc32e6a86e7b897ed1ccc786e93ba2c6ff15 (patch)
tree10668955d93c0b0f943bb60458c5e00028024d53 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent425b2d200dd1e4c4efa76c443a5cda7434ecdfff (diff)
Clear calling identity when get package uid.
Previously, the identity was cleared in LaunchingAppsService before calling into ActivityManagerService. This would allow ActivityManagerService to call PackageManager#getPackageUid. Since the calling identity is now associated with the SafeActivityOptions, this was removed from LaunchingAppsService. As a result, a SecurityException is encountered, and app shortcuts from managed profiles no longer work. This changelist addresses the issue by clearing the calling identity in ActivityManagerService. This reduced scope still allows the SafeActivityOptions to be created with the proper uid associated. Change-Id: Ic32eae5d7b9e4053e4177938a8c2859385d9eeae Fixes: 72498756 Test: atest CtsShortcutHostTestCases Test: atest CtsShortcutManagerTestCases (cherry picked from commit 38585a2c9ea05f5af4b8d153151f3fdf54cb0bde)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions