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

Commit 24499e62 authored by Bill Lin's avatar Bill Lin
Browse files

Use android.permission.CHANGE_OVERLAY_PACKAGES in DocumentsUI

DocumentsUI run-time calling OverlayManager.setEnabled()
The API was restrict by enforceChangeOverlayPackagesPermission()
Ensure privapp-permissions CHANGE_OVERLAY_PACKAGES added in whitelist

Bug: 128689309
Bug: 131331107
Bug: 132671058
Bug: 132759377
Bug: 132783782

Test: make sargo-userdebug
Test: make marlin-userdebug
Test: make aosp_x86_64-eng
Test: atest DocumentsUIGoogleTests
Test: manual flash ROM and launch DocumentsUI
Change-Id: If1c97a68ea53b6eb65b7b0bee016745f5b951a58
parent 2ca680f7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -99,4 +99,6 @@ android_app {
    resource_dirs: [
        "res",
    ],

    required: ["privapp_whitelist_com.android.documentsui"],
}
+1 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.CACHE_CONTENT" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.CHANGE_OVERLAY_PACKAGES" />

    <application
        android:name=".DocumentsApplication"