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

Commit f2af1b70 authored by Bartosz Chominski's avatar Bartosz Chominski
Browse files

Add permission for self window management

This permission will be granted only by the default browser role for
security reasons as we didn't want to expose such extensive window
management capabilities to all apps and it's the browser team who asked
for this feature as there is a Web API for moving windows.

go/android-public-window-repositioning-api

Bug: 407607317
Bug: 400407139
Flag: com.android.window.flags.enable_window_repositioning_api
Test: N/A
Change-Id: I6b41512f2a15c3af44a9d546437e23d8ad62e660
parent 191c65bb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -284,6 +284,7 @@ package android {
    field public static final String RECEIVE_WAP_PUSH = "android.permission.RECEIVE_WAP_PUSH";
    field public static final String RECORD_AUDIO = "android.permission.RECORD_AUDIO";
    field public static final String REORDER_TASKS = "android.permission.REORDER_TASKS";
    field @FlaggedApi("com.android.window.flags.enable_window_repositioning_api") public static final String REPOSITION_SELF_WINDOWS = "android.permission.REPOSITION_SELF_WINDOWS";
    field public static final String REQUEST_COMPANION_PROFILE_APP_STREAMING = "android.permission.REQUEST_COMPANION_PROFILE_APP_STREAMING";
    field public static final String REQUEST_COMPANION_PROFILE_AUTOMOTIVE_PROJECTION = "android.permission.REQUEST_COMPANION_PROFILE_AUTOMOTIVE_PROJECTION";
    field public static final String REQUEST_COMPANION_PROFILE_COMPUTER = "android.permission.REQUEST_COMPANION_PROFILE_COMPUTER";
+9 −0
Original line number Diff line number Diff line
@@ -9102,6 +9102,15 @@
        android:protectionLevel="signature"
        android:featureFlag="android.permission.flags.supervision_role_enabled" />

    <!-- 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
        @FlaggedApi(com.android.window.flags.Flags.FLAG_ENABLE_WINDOW_REPOSITIONING_API) -->
    <permission android:name="android.permission.REPOSITION_SELF_WINDOWS"
        android:protectionLevel="internal|role"
        android:featureFlag="com.android.window.flags.enable_window_repositioning_api" />

    <!-- Attribution for Geofencing service. -->
    <attribution android:tag="GeofencingService" android:label="@string/geofencing_service"/>
    <!-- Attribution for Country Detector. -->