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
Loading
Please register or sign in to comment