Compare commits

...

2 Commits

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

Change-Id: I73349b168543072be009b41bc2f3711876a10df2
2023-09-26 23:59:25 +08:00
iovxw 6cbcb9b2f4
overlay: Add SystemUI overlay 2023-09-26 23:55:14 +08:00
3 changed files with 20 additions and 0 deletions

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>