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

Commit 875f818e authored by Shiwangi Shah's avatar Shiwangi Shah Committed by Automerger Merge Worker
Browse files

Merge "Allow unexported receiver registration for sandbox" into tm-dev am: b24001b1

parents 39a81d28 b24001b1
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -12945,7 +12945,12 @@ public class ActivityManagerService extends IActivityManager.Stub
    public Intent registerReceiverWithFeature(IApplicationThread caller, String callerPackage,
            String callerFeatureId, String receiverId, IIntentReceiver receiver,
            IntentFilter filter, String permission, int userId, int flags) {
        // Allow Sandbox process to register only unexported receivers.
        if ((flags & Context.RECEIVER_NOT_EXPORTED) != 0) {
            enforceNotIsolatedCaller("registerReceiver");
        } else {
            enforceNotIsolatedOrSdkSandboxCaller("registerReceiver");
        }
        ArrayList<Intent> stickyIntents = null;
        ProcessRecord callerApp = null;
        final boolean visibleToInstantApps