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

Commit 8cf70494 authored by Steven Ng's avatar Steven Ng
Browse files

Gate MANAGE_KEY_GESTURES protection level change with a flag

A new flag is introduced because flags used for resources gating must be read only flags.

Flag: com.android.window.flags.grant_manage_key_gestures_to_recents
Bug: 406452076
Bug: 412920984
Test: atest CtsPermissionPolicyTestCases
Change-Id: Ic7c9e4c552e40da1b7f066570733b474e82471fc
parent f04795c6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1130,6 +1130,14 @@ flag {
    }
}

flag {
    name: "grant_manage_key_gestures_to_recents"
    namespace: "lse_desktop_experience"
    description: "Grant MANAGE_KEY_GESTURES permission to the recents holder."
    bug: "406452076"
    is_fixed_read_only: true
}

flag {
    name: "enable_key_gesture_handler_for_recents"
    namespace: "lse_desktop_experience"
+9 −1
Original line number Diff line number Diff line
@@ -8652,7 +8652,15 @@
         <p>Not for use by third-party applications.
         @hide -->
    <permission android:name="android.permission.MANAGE_KEY_GESTURES"
                android:protectionLevel="signature|recents" />
                android:protectionLevel="signature"
                android:featureFlag="!com.android.window.flags.grant_manage_key_gestures_to_recents" />

    <!-- Allows low-level access to manage key gestures.
         <p>Not for use by third-party applications.
         @hide -->
    <permission android:name="android.permission.MANAGE_KEY_GESTURES"
                android:protectionLevel="signature|recents"
                android:featureFlag="com.android.window.flags.grant_manage_key_gestures_to_recents" />

    <!-- Allows applications to register listeners for key activeness through
         InputManagerService.