Merge "Revert "Revert "Only allow root/system UIDs to send broadcast to unexported receiver""" into tm-dev am: 49aa5e4a1f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17647158 Change-Id: Ief08786c83accecb677f26bf75a1669dde09354d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -879,9 +879,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 && !Process.isCoreUid(r.callingUid)
|
if (!skip && !filter.exported && mService.checkComponentPermission(null, r.callingPid,
|
||||||
&& filter.receiverList.uid != r.callingUid) {
|
r.callingUid, filter.receiverList.uid, filter.exported)
|
||||||
|
!= 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()
|
||||||
|
|||||||
Reference in New Issue
Block a user