diff options
| author | 2024-01-30 22:15:05 +0000 | |
|---|---|---|
| committer | 2024-01-30 22:15:05 +0000 | |
| commit | 0c15e38512de033592d3bda0b0cbcbb31beefaf1 (patch) | |
| tree | 2e997aaeac2b067b02c03de20ecfdf09f858c336 | |
| parent | f46896021669aa6ce93f243aae7407c324990124 (diff) | |
| parent | e989512249df69184209d4968037a3969ae5d091 (diff) | |
Merge "Add config for OEM to define CredMan UI activity replacement" into main
| -rw-r--r-- | core/res/res/values/config.xml | 20 | ||||
| -rw-r--r-- | core/res/res/values/symbols.xml | 2 |
2 files changed, 21 insertions, 1 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index ebb0d344d7eb..20a755ffe3c9 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -3327,9 +3327,27 @@ <string name="config_carrierAppInstallDialogComponent" translatable="false" >com.android.simappdialog/com.android.simappdialog.InstallCarrierAppActivity</string> - <!-- Name of the dialog that is used to get or save an app credential --> + <!-- Name of the default framework dialog that is used to get or save an app credential. + + This UI should be always launch-able and is used as a fallback when an oem replacement activity + (defined at config_oemCredentialManagerDialogComponent) is undefined / not found. --> <string name="config_credentialManagerDialogComponent" translatable="false" >com.android.credentialmanager/com.android.credentialmanager.CredentialSelectorActivity</string> + <!-- Whether to allow the credential selector activity to be replaced by an activity at + run-time (restricted to the privileged activity specified by + config_credentialSelectorActivityName). + + When disabled, the fallback activity defined at + config_credentialManagerDialogComponent will be used instead. --> + <bool name="config_enableOemCredentialManagerDialogComponent" translatable="false">true</bool> + <!-- Fully qualified activity name providing the credential selector UI, that serves the + CredentialManager APIs. + + Used only when config_enableOemCredentialManagerDialogComponent is true. + + If the activity specified cannot be found or launched, then the fallback activity defined at + config_credentialManagerDialogComponent will be used instead. --> + <string name="config_oemCredentialManagerDialogComponent" translatable="false"></string> <!-- Name of the broadcast receiver that is used to receive provider change events --> <string name="config_credentialManagerReceiverComponent" translatable="false" diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index dc2f74bb76fe..e57efdfe0aab 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -2281,6 +2281,8 @@ <java-symbol type="string" name="config_platformVpnConfirmDialogComponent" /> <java-symbol type="string" name="config_carrierAppInstallDialogComponent" /> <java-symbol type="string" name="config_credentialManagerDialogComponent" /> + <java-symbol type="bool" name="config_enableOemCredentialManagerDialogComponent" /> + <java-symbol type="string" name="config_oemCredentialManagerDialogComponent" /> <java-symbol type="string" name="config_credentialManagerReceiverComponent" /> <java-symbol type="string" name="config_defaultNetworkScorerPackageName" /> <java-symbol type="string" name="config_persistentDataPackageName" /> |