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

Commit 49aa5e4a authored by Michael Groover's avatar Michael Groover Committed by Android (Google) Code Review
Browse files

Merge "Revert "Revert "Only allow root/system UIDs to send broadcast to...

Merge "Revert "Revert "Only allow root/system UIDs to send broadcast to unexported receiver""" into tm-dev
parents 7d250655 4c93a269
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -879,9 +879,9 @@ public final class BroadcastQueue {

        // Ensure that broadcasts are only sent to other apps if they are explicitly marked as
        // exported, or are System level broadcasts
        if (!skip && !filter.exported && !Process.isCoreUid(r.callingUid)
                && filter.receiverList.uid != r.callingUid) {

        if (!skip && !filter.exported && mService.checkComponentPermission(null, r.callingPid,
                r.callingUid, filter.receiverList.uid, filter.exported)
                != PackageManager.PERMISSION_GRANTED) {
            Slog.w(TAG, "Exported Denial: sending "
                    + r.intent.toString()
                    + ", action: " + r.intent.getAction()