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

Commit 4c9a6d5c authored by Bernardo Rufino's avatar Bernardo Rufino
Browse files

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
parent ec3937d3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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"