summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2018-06-03 21:09:55 -0700
committerSvet Ganov <svetoslavganov@google.com>2018-06-04 18:01:56 -0700
commit7b40358fa316038ce6a3243b8706c6f5b7a49536 (patch)
tree2ce4eaf1a3206609cd49e6e621fe8bee9d863c29 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentd982210d8986c4387b4b8f31ed5f9950bdc5a155 (diff)
Allow instant apps to send broadcasts to themselves
When resolving the broadcast targets we did not consider instant apps even if the source is an instant app. This prevents the case of the instant app sending the broadcast to itself. The broadcast queue already enforces that if the broadcast is not from a full app that wants to advertise to instant apps or not from an instant app sending it to itself then it is not dispatched. Hence, the broadcast queue already determines the right targeting. This change makes sure that if the source is an instant app we also resolve instant apps and then the targeting logic in the boradcast queue would ensure that an instant app can only send a boradcast to its own UID. Test: cts-instant-tradefed run cts-instant-dev -m CtsBackgroundRestrictionsTestCases -t android.app.cts.backgroundrestrictions.BroadcastsTest #testNonSupportedBroadcastsNotDelivered_manifestReceiver bug:109583877 Change-Id: Ifb7230df87c4721e4c05d77b5957d825f3846ca7
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions