Add BROADCAST_CLOSE_SYSTEM_DIALOGS to shell for tests
Tests that interact with the UI send Intent.ACSD before execution to
prevent the test from failing in case there are unexpected dialogs on
screen.
Those tests will be able to keep that via the instrumentation bridge
with the shell, given the shell has the proper permission to close
system dialogs.
Bug: 159105552
Test: Verify that shell has permission via adb shell dumpsys package
Change-Id: I07266573ae73d086446c6107248f5e187edcd64a
diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml
index a97af4b..6a8c387 100644
--- a/packages/Shell/AndroidManifest.xml
+++ b/packages/Shell/AndroidManifest.xml
@@ -345,6 +345,9 @@
<!-- Allows overriding the system's device state from the shell -->
<uses-permission android:name="android.permission.CONTROL_DEVICE_STATE"/>
+ <!-- Permissions required for CTS tests to close system dialogs -->
+ <uses-permission android:name="android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS" />
+
<application android:label="@string/app_label"
android:theme="@android:style/Theme.DeviceDefault.DayNight"
android:defaultToDeviceProtectedStorage="true"