Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2e0b2357 authored by Palak Chaudhary's avatar Palak Chaudhary
Browse files

Use canSendBroadcast instead of enforceAllowedToSendBroadcast

Use canSendBroadcast to check if broadcast can be sent from sandbox
process which returns a boolean and lets ActivityManagerService handle
the denial of access before throwing an error

Bug: b/266069576

Test: atest SdkSandboxRestrictionsTest#testSendBroadcastsRestrictions_withAction
atest SdkSandboxRestrictionsTest#testSendBroadcastRestrictions_withoutAction

Change-Id: I846dcc733d498095460a28904e953245e65e5a68
parent 70811b33
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