summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorPatrick Baumann <patb@google.com>2020-02-25 17:30:36 -0800
committerPatrick Baumann <patb@google.com>2020-03-09 14:54:07 +0000
commit58bcea62b002daef6656493c99f47db03b05f57e (patch)
treee809c6e4ebb6a0d72fc1b560bd2085433ae03266 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent21e618d9ba1a930f1e63fe143b1fdca7276c839f (diff)
Only grant visibility to result reciever
This change modifies which package is made visible to the receiving end of a startForResult call. Prior to this change it was the callingUid, which, in the case of startActivityForResult was typically the same as the recipient of the result (or the return of getCallingPackage()). It didn't account for forwarded results or startIntentSenderForResult. Instead, we now look up the uid of the resultTo ActivityRecord and grant the recipient of the intent access to it. Bug: 149810887 Test: atest AppEnumerationTests Change-Id: I331db9e75ca70635da589d3620d8723668d26b60
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions