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

Commit 7d5099d5 authored by Michael Groover's avatar Michael Groover Committed by Automerger Merge Worker
Browse files

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

Merge "Revert "Only allow root/system UIDs to send broadcast to unexported receiver"" into tm-dev am: aea49e77

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17573848



Change-Id: I7bc4825b2bd46d4971f0a5da21f6614d63924a2f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 3a35baaa aea49e77
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -880,9 +880,9 @@ public final class BroadcastQueue {


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

            Slog.w(TAG, "Exported Denial: sending "
            Slog.w(TAG, "Exported Denial: sending "
                    + r.intent.toString()
                    + r.intent.toString()
                    + ", action: " + r.intent.getAction()
                    + ", action: " + r.intent.getAction()