Allow protected broadcasts in tests
SysUI must send protected broadcasts to avoid system impersonation. Our tests should also allow these types of broadcasts, otherwise they will be dropped/skipped on -user builds and functionality will be broken. This CL also protects the flashlight broadcast. Fixes: 110825884 Test: atest com.android.systemui.qs.external.TileServicesTest Change-Id: I5a3dfc569c1695366e5f0e48cda8a7a32e287e7d
This commit is contained in:
@@ -216,6 +216,7 @@
|
||||
|
||||
<protected-broadcast android:name="com.android.settingslib.action.REGISTER_SLICE_RECEIVER" />
|
||||
<protected-broadcast android:name="com.android.settingslib.action.UNREGISTER_SLICE_RECEIVER" />
|
||||
<protected-broadcast android:name="com.android.settings.flashlight.action.FLASHLIGHT_CHANGED" />
|
||||
|
||||
<application
|
||||
android:name=".SystemUIApplication"
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:sharedUserId="android.uid.system"
|
||||
package="com.android.systemui.tests">
|
||||
|
||||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
|
||||
|
||||
Reference in New Issue
Block a user