From 8066d1ef7b724c1e01a853ed301360e84e9aafd3 Mon Sep 17 00:00:00 2001 From: Jan Tomljanovic Date: Wed, 1 Dec 2021 17:46:10 +0000 Subject: [PATCH] Add config value and a new permission for SafetyCenter. Also giving it to the Shell for Cts purposes. Test: atest CtsSafetyCenterTestCases Bug: 208421513 Ignore-AOSP-First: Not announced yet, and need to use a permission that hasn't been merged in AOSP Change-Id: I2c63c54efac0add7c412fa43b77fa18ba2e486c3 --- core/api/system-current.txt | 1 + core/res/AndroidManifest.xml | 7 +++++++ core/res/res/values/config.xml | 3 +++ core/res/res/values/symbols.xml | 2 ++ data/etc/privapp-permissions-platform.xml | 2 ++ packages/Shell/AndroidManifest.xml | 3 +++ 6 files changed, 18 insertions(+) diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 99e47b1c6b90c..6492610c63875 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -240,6 +240,7 @@ package android { field public static final String READ_PRIVILEGED_PHONE_STATE = "android.permission.READ_PRIVILEGED_PHONE_STATE"; field public static final String READ_PROJECTION_STATE = "android.permission.READ_PROJECTION_STATE"; field public static final String READ_RUNTIME_PROFILES = "android.permission.READ_RUNTIME_PROFILES"; + field public static final String READ_SAFETY_CENTER_STATUS = "android.permission.READ_SAFETY_CENTER_STATUS"; field public static final String READ_SEARCH_INDEXABLES = "android.permission.READ_SEARCH_INDEXABLES"; field public static final String READ_SYSTEM_UPDATE_INFO = "android.permission.READ_SYSTEM_UPDATE_INFO"; field public static final String READ_WALLPAPER_INTERNAL = "android.permission.READ_WALLPAPER_INTERNAL"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index e2a2ac64e780e..420c7c8a8a341 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -6071,6 +6071,13 @@ + + + diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index be32c42eb30d9..bd0604e03fee5 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -5550,4 +5550,7 @@ That button will fire an intent targeted for this package with the mentioned action. When this resource is empty, that button will not be shown. --> + + + true diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 527865f77257d..7687b93cf760d 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -4634,4 +4634,6 @@ + + diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml index e61a665307f8c..f17fa3b17fe53 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -520,6 +520,8 @@ applications that come with the platform + + diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index a3f07d8fd1b47..10252ee3bc602 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -610,6 +610,9 @@ + + +