diff options
| author | 2024-12-11 19:18:55 -0800 | |
|---|---|---|
| committer | 2024-12-11 19:18:55 -0800 | |
| commit | 1c4ccb8e1da0aee399a5e9a95f03a4ed3f0f53af (patch) | |
| tree | a6e2a2b40f09b7f35fc927b51c0633098b949e87 | |
| parent | 98ecee975bd70bef541677b45ecb2a9fc3af2e56 (diff) | |
| parent | 7654ac7216bd58c91aa6fc9f675009cf6f9df118 (diff) | |
Merge changes from topic "SUBSCRIBE_TO_KEYGUARD_LOCKED_STATE-privileged-flag" into main
* changes:
Update privapp-permissions for shell and systemui
Add privileged flag to SUBSCRIBE_TO_KEYGUARD_LOCKED_STATE
| -rw-r--r-- | core/java/android/security/flags.aconfig | 8 | ||||
| -rw-r--r-- | core/res/AndroidManifest.xml | 16 | ||||
| -rw-r--r-- | data/etc/com.android.systemui.xml | 1 | ||||
| -rw-r--r-- | data/etc/privapp-permissions-platform.xml | 2 |
4 files changed, 24 insertions, 3 deletions
diff --git a/core/java/android/security/flags.aconfig b/core/java/android/security/flags.aconfig index 34bae46b484c..ebb6fb451699 100644 --- a/core/java/android/security/flags.aconfig +++ b/core/java/android/security/flags.aconfig @@ -137,4 +137,12 @@ flag { description: "Feature flag for Secure Lockdown feature" bug: "373422357" is_exported: true +} + +flag { + name: "subscribe_to_keyguard_locked_state_perm_priv_flag" + namespace: "psap_ai" + description: "Feature flag to add the privileged flag to the SUBSCRIBE_TO_KEYGUARD_LOCKED_STATE permission" + bug: "380120712" + is_fixed_read_only: true }
\ No newline at end of file diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index b0cc9959a3fa..82cad8b3a477 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -5648,11 +5648,21 @@ <!-- Allows an application to subscribe to device locked and keyguard locked (i.e., showing) state. - <p>Protection level: signature|role - <p>Intended for use by ROLE_ASSISTANT and signature apps only. + <p>Protection level: signature|module|role + <p>Intended for use by ROLE_ASSISTANT, VDM, and signature apps only. + --> + <permission android:name="android.permission.SUBSCRIBE_TO_KEYGUARD_LOCKED_STATE" + android:protectionLevel="signature|module|role" + android:featureFlag="!android.security.subscribe_to_keyguard_locked_state_perm_priv_flag"/> + + <!-- Allows an application to subscribe to device locked and keyguard locked (i.e., showing) + state. + <p>Protection level: signature|privileged|module|role + <p>Intended for use by ROLE_ASSISTANT, VDM, and signature / privileged apps only. --> <permission android:name="android.permission.SUBSCRIBE_TO_KEYGUARD_LOCKED_STATE" - android:protectionLevel="signature|module|role"/> + android:protectionLevel="signature|privileged|module|role" + android:featureFlag="android.security.subscribe_to_keyguard_locked_state_perm_priv_flag"/> <!-- Must be required by a {@link android.service.autofill.AutofillService}, to ensure that only the system can bind to it. diff --git a/data/etc/com.android.systemui.xml b/data/etc/com.android.systemui.xml index 38ea4ac8d109..45952ea75b6f 100644 --- a/data/etc/com.android.systemui.xml +++ b/data/etc/com.android.systemui.xml @@ -94,5 +94,6 @@ <permission name="android.permission.CONTROL_UI_TRACING" /> <permission name="android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND" /> <permission name="android.permission.OVERRIDE_SYSTEM_KEY_BEHAVIOR_IN_FOCUSED_WINDOW"/> + <permission name="android.permission.SUBSCRIBE_TO_KEYGUARD_LOCKED_STATE" /> </privapp-permissions> </permissions> diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml index 5c706b27de8b..2c542ec31a20 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -607,6 +607,8 @@ applications that come with the platform <!-- Permission required for CTS test - IntrusionDetectionManagerTest --> <permission name="android.permission.READ_INTRUSION_DETECTION_STATE" /> <permission name="android.permission.MANAGE_INTRUSION_DETECTION_STATE" /> + <!-- Permission required for CTS test - KeyguardLockedStateApiTest --> + <permission name="android.permission.SUBSCRIBE_TO_KEYGUARD_LOCKED_STATE" /> </privapp-permissions> <privapp-permissions package="com.android.statementservice"> |