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

Skip to content
Commit e02042e3 authored by Angela Wang's avatar Angela Wang
Browse files

Specifies RECEIVER_NOT_EXPORTED for FlashNotificationsController broadcast receiver

After changing Flash Notifications preview broadcasts to be protected,
there is no need to specify RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED
for the receiver. These flags are only required for runtime receivers
that listen to non-system broadcast(s).

However, if a receiver is registered for only system broadcasts along with the RECEIVER_NOT_EXPORTED flag, the platform will honor this flag, and only root or system UIDs will be able to send the system broadcast(s) to this receiver. Since Flash Notifications preview can only be triggered by settings app for now, changing the receiver flag to RECEIVER_NOT_EXPORTED can best avoid this receiver from potential vulnerabilities.

See go/receiver-flag-enforcement-design.

Bug: 266775677
Test: uses go/abtd to run com.google.android.projection.gearhead.test.functional#CarAppTest-searchTemplate
Change-Id: I3f819d8c5bee9d96c97799e80548cccbcca32fe8
parent 96d94102
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment