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

Commit 3d704429 authored by Garfield Tan's avatar Garfield Tan
Browse files

Allow signature apps to obtain REPOSITION_SELF_WINDOWS

OEMs may be interested in using this API to provide better user
experiences for their first party apps.

Bug: 407607317
Test: Builds
Flag: com.android.window.flags.enable_window_repositioning_api
Change-Id: I0d66cef9408309b14812d55c3924de322c43dfaa
parent 9c99fa35
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -9278,11 +9278,12 @@
    <!-- Allows an application to programmatically move and resize its tasks when the system is in
        a state that allows such operations, e.g. in a desktop-like environment. It is only
        extended to the {@link android.app.role.RoleManager#ROLE_BROWSER default browser}.
        <p>Protection level: internal|role
        extended to the {@link android.app.role.RoleManager#ROLE_BROWSER default browser} and OEM
        specific signature apps.
        <p>Protection level: signature|role
        @FlaggedApi(com.android.window.flags.Flags.FLAG_ENABLE_WINDOW_REPOSITIONING_API) -->
    <permission android:name="android.permission.REPOSITION_SELF_WINDOWS"
        android:protectionLevel="internal|role"
        android:protectionLevel="signature|role"
        android:featureFlag="com.android.window.flags.enable_window_repositioning_api" />
    <!-- @SystemApi