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

Commit ee30d5c5 authored by Palak Chaudhary's avatar Palak Chaudhary
Browse files

Use IntentFilter.toLongString() instead of IntentFilter.toString()

Bug: b/276787120
Test: BroadcastRestrictionsHostTest#testRegisterBroadcastReceiver_restrictionsApplied

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