summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorPinyao Ting <pinyaoting@google.com>2021-07-16 23:28:40 +0000
committerPinyao Ting <pinyaoting@google.com>2021-07-16 23:33:32 +0000
commitf89e70d29088305aa6ad43f7958be3c6e120b14c (patch)
tree04b6bcfb34cc5e79e4a7e8e9a1d880796dbc38bb /tools/aapt2/java/JavaClassGenerator_test.cpp
parentc2a76f90a8caf6319e4105bc648f1d7896bff9a7 (diff)
Refrain from returning mutable pending intent in getShortcutIntent
Mutable PendingIntent leads to potential security vulnerabilities, this CL makes the returning PendingIntent immutable | update current. The recipeint cannot change the content of the PendingIntent directly, but the owner can still update the extras of the PendingIntent. Note: PendingIntent is internally cached in PendingIntentController, so the owner process do have access to the PendingIntent since LauncherAppServices called ActivityManagerService#getPendingIntentActivityAsApp to retrieve the PendingIntent. Bug: 190732424 Test: atest ShortcutManagerClientApiTest Change-Id: Ife8ad7824f061e9e20d31c96f76ceed4edb547cd
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions