Skip to content
Commit 7b40358f authored by Svet Ganov's avatar Svet Ganov
Browse files

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
parent d982210d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment