Use IntentFilter.toLongString() instead of IntentFilter.toString()
Bug: b/276787120 Test: BroadcastRestrictionsHostTest#testRegisterBroadcastReceiver_restrictionsApplied Change-Id: Ic7e59f97ac59ac498d589e1e7d5ad432aa77d652
This commit is contained in:
@@ -13713,7 +13713,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: " + filter.toString());
|
||||
+ " with the given IntentFilter: " + filter.toLongString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user