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

Commit 6b06740d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Final changes for dynamic receivers."

parents 1a2a5739 7f24579b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -12798,7 +12798,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                noAction.add(null);
                actions = noAction.iterator();
            }
            boolean onlyProtectedBroadcasts = actions.hasNext();
            boolean onlyProtectedBroadcasts = true;
            // Collect stickies of users and check if broadcast is only registered for protected
            // broadcasts
@@ -12872,6 +12872,8 @@ public class ActivityManagerService extends IActivityManager.Stub
                    // Change is not enabled, thus not targeting T+. Assume exported.
                    flags |= Context.RECEIVER_EXPORTED;
                }
            } else if ((flags & Context.RECEIVER_NOT_EXPORTED) == 0) {
                flags |= Context.RECEIVER_EXPORTED;
            }
        }
+1 −1
Original line number Diff line number Diff line
@@ -870,7 +870,7 @@ public final class BroadcastQueue {
                    + " due to receiver " + filter.receiverList.app
                    + " (uid " + filter.receiverList.uid + ")"
                    + " not specifying RECEIVER_EXPORTED");
            // skip = true;
            skip = true;
        }

        if (skip) {