Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7f1e7fa authored by Anh Pham's avatar Anh Pham
Browse files

Add WRITE_VERIFICATION_STATE_E2EE_CONTACT_KEYS permission.

WRITE_VERIFICATION_STATE_E2EE_CONTACT_KEYS is a system|privileged permission that allows an app to update the Verification states of Contact keys owned by other apps.

Bug: 290696572
Test: atest CtsContactKeysManagerTestCases CtsContactKeysProviderPrivilegedApp
Change-Id: Ic949d826c005cc536eec368be81aadc70074b2d1
parent 4c94fd68
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -414,6 +414,7 @@ package android {
    field public static final String WRITE_OBB = "android.permission.WRITE_OBB";
    field public static final String WRITE_SECURITY_LOG = "android.permission.WRITE_SECURITY_LOG";
    field public static final String WRITE_SMS = "android.permission.WRITE_SMS";
    field @FlaggedApi("android.provider.user_keys") public static final String WRITE_VERIFICATION_STATE_E2EE_CONTACT_KEYS = "android.permission.WRITE_VERIFICATION_STATE_E2EE_CONTACT_KEYS";
  }
  public static final class Manifest.permission_group {
+13 −0
Original line number Diff line number Diff line
@@ -881,6 +881,19 @@
        android:description="@string/permdesc_writeContacts"
      android:protectionLevel="dangerous" />

    <!-- Allows an app to update the verification status of E2EE contact keys owned by other apps.
        <p>This permission is only granted to system apps.
        <p>Protection level: signature|privileged
        @SystemApi
        @hide
        @FlaggedApi("android.provider.user_keys")
    -->
    <permission android:name="android.permission.WRITE_VERIFICATION_STATE_E2EE_CONTACT_KEYS"
                android:permissionGroup="android.permission-group.UNDEFINED"
                android:label="@string/permlab_writeVerificationStateE2eeContactKeys"
                android:description="@string/permdesc_writeVerificationStateE2eeContactKeys"
                android:protectionLevel="signature|privileged" />

    <!-- Allows an application to set default account for new contacts.
        <p> This permission is only granted to system applications fulfilling the Contacts app role.
        <p>Protection level: internal|role
+5 −0
Original line number Diff line number Diff line
@@ -2222,6 +2222,11 @@
    <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this.[CHAR_LIMIT=NONE] -->
    <string name="permdesc_updatePackagesWithoutUserAction">Allows the holder to update the app it previously installed without user action</string>

    <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. [CHAR_LIMIT=NONE] -->
    <string name="permlab_writeVerificationStateE2eeContactKeys">update the verification states of E2EE contact keys owned by other apps</string>
    <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this.[CHAR_LIMIT=NONE] -->
    <string name="permdesc_writeVerificationStateE2eeContactKeys">Allows the app to update the verification states of E2EE contact keys owned by other apps</string>

    <!-- Policy administration -->

    <!-- Title of policy access to limiting the user's password choices -->