Makes Flash Notifications preview broadcasts be protected

Flash Notifications preview broadcasts should not be sent by non-system apps for now. Makes them be protected to ensure no malicious apps can impersonate the OS to perform the unexpectly flashing. Also, broadcasts sent from system internals should be protected to avoid security holes.

Bug: 266775677
Test: ensures non-protected broadcast from system error logs are gone manually
Change-Id: Ibd8b76d505e65f8150619607545e87d550e6affb
This commit is contained in:
Angela Wang
2023-03-01 12:23:52 +00:00
parent 96d9410262
commit 486bdfd92b

View File

@@ -822,6 +822,8 @@
<protected-broadcast android:name="com.android.internal.telephony.cat.SMS_SENT_ACTION" />
<protected-broadcast android:name="com.android.internal.telephony.cat.SMS_DELIVERY_ACTION" />
<protected-broadcast android:name="android.companion.virtual.action.VIRTUAL_DEVICE_REMOVED" />
<protected-broadcast android:name="com.android.internal.intent.action.FLASH_NOTIFICATION_START_PREVIEW" />
<protected-broadcast android:name="com.android.internal.intent.action.FLASH_NOTIFICATION_STOP_PREVIEW" />
<!-- ====================================================================== -->
<!-- RUNTIME PERMISSIONS -->