summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Michael Groover <mpgroover@google.com> 2022-03-21 17:28:33 -0700
committer Michael Groover <mpgroover@google.com> 2022-03-31 18:02:43 -0700
commit6ea76aa7e52e3fe8d7a1386c88e7df3431553077 (patch)
treef15391f100e8280edad269c4cb16d04a35c2c7e0 /libs/androidfw/StringPool.cpp
parent27e35ec6c35e87689e991f25d6f7981b94e9a24e (diff)
Only allow root/system UIDs to send broadcast to unexported receiver
Android T introduced new flags to specify whether a runtime receiver should be exported to other apps on the device. Initially, an unexported runtime receiver could receive broadcasts from any app with a UID that passed the Process#isCoreUid check, but this behavior differs from that of unexported manifest receivers which can only receive broadcasts from the system and root UIDs. This commit updates the behavior of runtime receivers registered with the RECEIVER_NOT_EXPORTED flag to only allow broadcasts to be sent from the local app, system, and root UIDs. Bug: 225999840 Test: atest ContextTest Change-Id: Idc2c42dda58d54859e9beb8bd8baf3810aeabefc
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions