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

Commit 620373b9 authored by Linus Tufvesson's avatar Linus Tufvesson
Browse files

Re-add preinstalled for SYSTEM_ALERT_WINDOW

Dailer currently uses SAW, regrant them SAW through preinstalled until
we have another solution.

This is reverting I2451d51f4ab42a852992505c5e1919a3c01525d0 and If7f0f041f96c9702181f3133383c3b7959851cbb

Bug: 159616727
Bug: 173705498
Bug: 177399315
Test: atest PermissionPolicyTest
Test: Manually verified that Phone is granted SAW
Change-Id: Ibfde4561be64b7a4b6b578f745b785615cdefd03
parent 8e713dbd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2676,11 +2676,11 @@
         The app can check whether it has this authorization by calling
         {@link android.provider.Settings#canDrawOverlays
         Settings.canDrawOverlays()}.
         <p>Protection level: signature|appop|installer|pre23|development|recents -->
         <p>Protection level: signature|appop|preinstalled|pre23|development -->
    <permission android:name="android.permission.SYSTEM_ALERT_WINDOW"
        android:label="@string/permlab_systemAlertWindow"
        android:description="@string/permdesc_systemAlertWindow"
        android:protectionLevel="signature|appop|installer|pre23|development|recents" />
        android:protectionLevel="signature|appop|preinstalled|pre23|development" />

    <!-- @SystemApi @hide Allows an application to create windows using the type
         {@link android.view.WindowManager.LayoutParams#TYPE_APPLICATION_OVERLAY},