summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2021-04-09 10:25:37 -0700
committerChris Tate <ctate@android.com>2021-04-20 18:34:56 +0000
commite9030d39ad88588c487d6f62eaf89063d901b4b8 (patch)
tree0c9e24fe730a238841b863e2032b30f08f92a381 /tools/aapt2/java/JavaClassGenerator.cpp
parent01991ab3f919d924746bbd3a367f47d617f07b75 (diff)
Synthesize app PendingIntents rather than wrap them
Sometimes it's important that the system create PendingIntents that are owned by their target app, rather than by the system itself. Make that possible, and use them in the Notification auto-grouping mechanism. This makes the auto group Notification's undering PendingIntent how has the same capabilities as the app whose notifications it elides, rather than having the system's own capabilities. Along the way, build the PendingIntent mutability-check exception string only when it's going to be used, not every time any PendingIntent is created. Bug: 174243774 Test: atest CtsAppTestCases:PendingIntentTest Test: atest CtsAppTestCases:NotificationManagerTest Test: atest NotificationManagerServiceTest Change-Id: I5ec03706bc439d305b0093a1ee9c5d381024029c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions