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

Commit 8b4b8b5f authored by Linus Tufvesson's avatar Linus Tufvesson
Browse files

Grant 'recents' SYSTEM_APPLICATION_OVERLAY

.. and update the documentation to point to the correct api. It is now a
method rather than a flag.

Test: atest PermissionPolicyTest
Bug: 169054709
Change-Id: I0700f51d76abdd9f2227b043319400fbd0d44df5
parent b9c60d9a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2708,13 +2708,13 @@
         shown on top of all other apps.

         Allows an application to use
         {@link android.view.WindowManager.LayoutsParams#SYSTEM_FLAG_SYSTEM_APPLICATION_OVERLAY}
         {@link android.view.WindowManager.LayoutsParams#setSystemApplicationOverlay(boolean)}
         to create overlays that will stay visible, even if another window is requesting overlays to
         be hidden through {@link android.view.Window#setHideOverlayWindows(boolean)}.

         <p>Not for use by third-party applications. -->
    <permission android:name="android.permission.SYSTEM_APPLICATION_OVERLAY"
                android:protectionLevel="signature|wellbeing"/>
                android:protectionLevel="signature|recents|wellbeing"/>

    <!-- @deprecated Use {@link android.Manifest.permission#REQUEST_COMPANION_RUN_IN_BACKGROUND}
         @hide