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

Commit 01067569 authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Add ROTATE_SURFACE_FLINGER permission

This permission is added for arbitrary rotation (other than 90
degreee) on a Surface. Which is useful for Launcher to rotate the app
leash when animating from fullscreen landscape to PiP window onto home
in portrait mode.

This is a sub-feature of ACCESS_SURFACE_FLINGER and can be granted in a
more concrete way with its limited scope.

Bug: 171802909
Test: m -j
Change-Id: Iefcbe6e3514a502612905babb902423c44aaf4f4
parent cb3b982b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -210,6 +210,7 @@ package android {
    field public static final String RETRIEVE_WINDOW_CONTENT = "android.permission.RETRIEVE_WINDOW_CONTENT";
    field public static final String REVIEW_ACCESSIBILITY_SERVICES = "android.permission.REVIEW_ACCESSIBILITY_SERVICES";
    field public static final String REVOKE_RUNTIME_PERMISSIONS = "android.permission.REVOKE_RUNTIME_PERMISSIONS";
    field public static final String ROTATE_SURFACE_FLINGER = "android.permission.ROTATE_SURFACE_FLINGER";
    field public static final String SCORE_NETWORKS = "android.permission.SCORE_NETWORKS";
    field public static final String SECURE_ELEMENT_PRIVILEGED_OPERATION = "android.permission.SECURE_ELEMENT_PRIVILEGED_OPERATION";
    field public static final String SEND_CATEGORY_CAR_NOTIFICATIONS = "android.permission.SEND_CATEGORY_CAR_NOTIFICATIONS";
+8 −0
Original line number Diff line number Diff line
@@ -3953,6 +3953,14 @@
    <permission android:name="android.permission.ACCESS_SURFACE_FLINGER"
        android:protectionLevel="signature" />

    <!-- @SystemApi Allows an application to rotate a surface by arbitrary degree.
         This is a sub-feature of ACCESS_SURFACE_FLINGER and can be granted in a more concrete way.
         <p>Not for use by third-party applications.
         @hide
    -->
    <permission android:name="android.permission.ROTATE_SURFACE_FLINGER"
        android:protectionLevel="signature|recents" />

    <!-- Allows an application to take screen shots and more generally
         get access to the frame buffer data.
         <p>Not for use by third-party applications.