Loading core/res/AndroidManifest.xml +15 −2 Original line number Diff line number Diff line Loading @@ -920,7 +920,20 @@ @hide --> <permission android:name="android.permission.SET_DEFAULT_ACCOUNT_FOR_CONTACTS" android:protectionLevel="internal|role" /> android:protectionLevel="internal|role" android:featureFlag="!android.provider.new_default_account_api_enabled"/> <!-- Allows an application to set default account for new contacts. <p>This permission is only granted to system applications fulfilling the Contacts app role and the application with known signers. <p>Protection level: internal|role|knownSigner @SystemApi @hide --> <permission android:name="android.permission.SET_DEFAULT_ACCOUNT_FOR_CONTACTS" android:protectionLevel="internal|role|knownSigner" android:knownCerts="@array/config_setContactsDefaultAccountKnownSigners" android:featureFlag="android.provider.new_default_account_api_enabled"/> <!-- ====================================================================== --> <!-- Permissions for accessing user's calendar --> Loading core/res/res/values/config.xml +5 −0 Original line number Diff line number Diff line Loading @@ -5906,6 +5906,11 @@ <!-- <item>com.android.settings</item> --> </string-array> <!-- Certificate digests for trusted apps that will be allowed to obtain the knownSigner SET_DEFAULT_ACCOUNT_FOR_CONTACTS permissions. The digest should be computed over the DER encoding of the trusted certificate using the SHA-256 digest algorithm. --> <string-array name="config_setContactsDefaultAccountKnownSigners"> </string-array> <!-- Class name of the custom country detector to be used. --> <string name="config_customCountryDetector" translatable="false">com.android.server.location.ComprehensiveCountryDetector</string> Loading Loading
core/res/AndroidManifest.xml +15 −2 Original line number Diff line number Diff line Loading @@ -920,7 +920,20 @@ @hide --> <permission android:name="android.permission.SET_DEFAULT_ACCOUNT_FOR_CONTACTS" android:protectionLevel="internal|role" /> android:protectionLevel="internal|role" android:featureFlag="!android.provider.new_default_account_api_enabled"/> <!-- Allows an application to set default account for new contacts. <p>This permission is only granted to system applications fulfilling the Contacts app role and the application with known signers. <p>Protection level: internal|role|knownSigner @SystemApi @hide --> <permission android:name="android.permission.SET_DEFAULT_ACCOUNT_FOR_CONTACTS" android:protectionLevel="internal|role|knownSigner" android:knownCerts="@array/config_setContactsDefaultAccountKnownSigners" android:featureFlag="android.provider.new_default_account_api_enabled"/> <!-- ====================================================================== --> <!-- Permissions for accessing user's calendar --> Loading
core/res/res/values/config.xml +5 −0 Original line number Diff line number Diff line Loading @@ -5906,6 +5906,11 @@ <!-- <item>com.android.settings</item> --> </string-array> <!-- Certificate digests for trusted apps that will be allowed to obtain the knownSigner SET_DEFAULT_ACCOUNT_FOR_CONTACTS permissions. The digest should be computed over the DER encoding of the trusted certificate using the SHA-256 digest algorithm. --> <string-array name="config_setContactsDefaultAccountKnownSigners"> </string-array> <!-- Class name of the custom country detector to be used. --> <string name="config_customCountryDetector" translatable="false">com.android.server.location.ComprehensiveCountryDetector</string> Loading