Compare commits

...

2 Commits

Author SHA1 Message Date
LuK1337 f51d32b37d
overlay: Set screenshot work profile files app to DocumentsUI
Fixes NPE when taking a screenshot in work profile.

Change-Id: I73349b168543072be009b41bc2f3711876a10df2
2023-09-27 00:09:03 +08:00
iovxw ec6163d34c
overlay: Add SystemUI overlay 2023-09-27 00:08:45 +08:00
4 changed files with 22 additions and 1 deletions

View File

@ -29,7 +29,8 @@ SELINUX_IGNORE_NEVERALLOWS := true
# Overlay
PRODUCT_PACKAGES += \
GsiFrameworkResTarget \
GsiLauncher3Target
GsiLauncher3Target \
GsiSystemUITarget
# Device-specific overlays from phhusson
include vendor/hardware_overlay/overlay.mk

View File

@ -0,0 +1,5 @@
runtime_resource_overlay {
name: "GsiSystemUITarget",
sdk_version: "current",
product_specific: true,
}

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.systemui.overlay.gsi.target">
<overlay
android:isStatic="true"
android:priority="350"
android:targetPackage="com.android.systemui" />
</manifest>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- ComponentName for the file browsing app that the system would expect to be used in work
profile. The icon for this app will be shown to the user when informing them that a
screenshot has been saved to work profile. If blank, a default icon will be shown. -->
<string name="config_sceenshotWorkProfileFilesApp" translatable="false">com.android.documentsui/.files.LauncherActivity</string>
</resources>