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

Commit 96d5abed authored by Robin Lee's avatar Robin Lee
Browse files

Allow setup app to have SAW permission

Why not SYSTEM_APPLICATION_OVERLAY: The setup app shouldn't be able to
show an overlay on top of apps that don't consent to it.

Change-Id: I8a9d6d409ab1082bc36e4ffd220632a501dc2dca
Test: adb shell dumpsys permission | grep -C10 SYSTEM_ALERT_WINDOW
Test: atest CtsPermission2TestCases
Bug: 182471350
parent df3a54e1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2775,11 +2775,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|appPredictor|pre23|development -->
         <p>Protection level: signature|setup|appop|installer|appPredictor|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|appPredictor|pre23|development" />
        android:protectionLevel="signature|setup|appop|installer|appPredictor|pre23|development" />

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