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

Commit ec3937d3 authored by Bernardo Rufino's avatar Bernardo Rufino
Browse files

Create signature permission BROADCAST_CLOSE_SYSTEM_DIALOGS

And give it to the platform in preparation for locking down
Intent.ACTION_CLOSE_SYSTEM_DIALOGS that's being abused by malware.

Test: atest CtsPermission2TestCases
Bug: 159105552
Change-Id: I97d04818409750e8bb36ca2a078dc7f8e3a1475b
parent 0dec6c04
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ package android {
    field public static final String APPROVE_INCIDENT_REPORTS = "android.permission.APPROVE_INCIDENT_REPORTS";
    field public static final String BIND_CELL_BROADCAST_SERVICE = "android.permission.BIND_CELL_BROADCAST_SERVICE";
    field public static final String BRIGHTNESS_SLIDER_USAGE = "android.permission.BRIGHTNESS_SLIDER_USAGE";
    field public static final String BROADCAST_CLOSE_SYSTEM_DIALOGS = "android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS";
    field public static final String CHANGE_APP_IDLE_STATE = "android.permission.CHANGE_APP_IDLE_STATE";
    field public static final String CLEAR_APP_USER_DATA = "android.permission.CLEAR_APP_USER_DATA";
    field public static final String CONFIGURE_DISPLAY_BRIGHTNESS = "android.permission.CONFIGURE_DISPLAY_BRIGHTNESS";
+8 −0
Original line number Diff line number Diff line
@@ -4186,6 +4186,14 @@
    <permission android:name="android.permission.FACTORY_TEST"
        android:protectionLevel="signature" />

    <!-- @hide @TestApi Allows an application to broadcast the intent {@link
         android.content.Intent#ACTION_CLOSE_SYSTEM_DIALOGS}.
         <p>Not for use by third-party applications.
    -->
    <permission android:name="android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS"
        android:protectionLevel="signature|recents" />
    <uses-permission android:name="android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS" />

    <!-- Allows an application to broadcast a notification that an application
         package has been removed.
         <p>Not for use by third-party applications.