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

Commit 46a20e88 authored by Palak Chaudhary's avatar Palak Chaudhary
Browse files

Log IntentFilter details for broadcast receiver

The log will contain information about the IntentFilter.

Eg: SDK sandbox not allowed to register receiver with the given IntentFilter: IntentFilter { pri=0 act={android.intent.action.SEND, android.intent.action.VIEW} }

Bug: b/273484425
Test: atest BroadcastRestrictionsHostTest#testRegisterBroadcastReceiver_restrictionsApplied_preU
atest BroadcastRestrictionsHostTest#testRegisterBroadcastReceiver_restrictionsApplied

Change-Id: I72ce947c800cf0614b4845b3973d157b98b13b07
parent 1be7278e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13864,7 +13864,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                if (!sdkSandboxManagerLocal.canRegisterBroadcastReceiver(
                        /*IntentFilter=*/ filter, flags, onlyProtectedBroadcasts)) {
                    throw new SecurityException("SDK sandbox not allowed to register receiver"
                            + " with the given IntentFilter");
                            + " with the given IntentFilter: " + filter.toString());
                }
            }