Add PlatformCompat feature for DocumentUI

- Whitelist PlatformCompat permissions for DocumentsUI
- Add documents-ui-compat-config into Android.bp

Bug: 141600225
Test: build and boot to home
Test: tools/tradefederation/core/tests/run_tradefed_tests.sh \
      --class com.google.android.asit.DeviceBootTestTest
Change-Id: Iedf73faf497a4ea055b33f68dc0b7097f306791d
This commit is contained in:
Ivan Chiang
2020-02-18 10:50:10 +08:00
parent 7843e91e80
commit 3cb1cbdcfd
2 changed files with 4 additions and 1 deletions

View File

@@ -481,6 +481,7 @@ java_library {
"framework-platform-compat-config",
"libcore-platform-compat-config",
"services-platform-compat-config",
"documents-ui-compat-config",
],
static_libs: [
// If MimeMap ever becomes its own APEX, then this dependency would need to be removed

View File

@@ -18,6 +18,8 @@
<privapp-permissions package="com.android.documentsui">
<permission name="android.permission.CHANGE_OVERLAY_PACKAGES"/>
<permission name="android.permission.INTERACT_ACROSS_USERS"/>
<permission name="android.permission.MODIFY_QUIET_MODE"/>
<!-- Permissions required for reading and logging compat changes -->
<permission name="android.permission.LOG_COMPAT_CHANGE"/>
<permission name="android.permission.READ_COMPAT_CHANGE_CONFIG"/>
</privapp-permissions>
</permissions>