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

Commit 83921b2e authored by Antonio Kantek's avatar Antonio Kantek
Browse files

(TouchMode Permission 1/n) Introduce permission for touch mode

Introduce the system permission to grant touch mode state change.

Bug: 198487159
Test: m (built)
Change-Id: I9577b2c9bc4716fda58995048c8de8824f8329fc
parent 7e50dd1e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -201,6 +201,7 @@ package android {
    field public static final String MODIFY_PARENTAL_CONTROLS = "android.permission.MODIFY_PARENTAL_CONTROLS";
    field public static final String MODIFY_QUIET_MODE = "android.permission.MODIFY_QUIET_MODE";
    field public static final String MODIFY_SETTINGS_OVERRIDEABLE_BY_RESTORE = "android.permission.MODIFY_SETTINGS_OVERRIDEABLE_BY_RESTORE";
    field public static final String MODIFY_TOUCH_MODE_STATE = "android.permission.MODIFY_TOUCH_MODE_STATE";
    field public static final String MOVE_PACKAGE = "android.permission.MOVE_PACKAGE";
    field public static final String NETWORK_AIRPLANE_MODE = "android.permission.NETWORK_AIRPLANE_MODE";
    field public static final String NETWORK_CARRIER_PROVISIONING = "android.permission.NETWORK_CARRIER_PROVISIONING";
+7 −0
Original line number Diff line number Diff line
@@ -4672,6 +4672,13 @@
    <permission android:name="android.permission.READ_FRAME_BUFFER"
        android:protectionLevel="signature|recents" />

      <!-- @SystemApi Allows an application to change the touch mode state.
           Without this permission, an app can only change the touch mode
           if it currently has focus.
         @hide -->
    <permission android:name="android.permission.MODIFY_TOUCH_MODE_STATE"
        android:protectionLevel="signature" />

    <!-- Allows an application to use InputFlinger's low level features.
         @hide -->
    <permission android:name="android.permission.ACCESS_INPUT_FLINGER"