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

Commit 18511f25 authored by Himanshu Gupta's avatar Himanshu Gupta Committed by Sarup Dalwani
Browse files

Adding a new permission to interact across clone profile apps.

This permision would only be available to system and 3P apps would
be restricted from using it.
OEMs can use this permission for their properietry apps installed with the OEM image.

Test: Manual verification by triggering system sharesheet.
Change-Id: I65e57cd5b4d79d3e090817ac3040844f6aa3e600
parent b2c5e952
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -248,6 +248,7 @@ package android {
    field public static final String PROVIDE_TRUST_AGENT = "android.permission.PROVIDE_TRUST_AGENT";
    field public static final String PROVIDE_TRUST_AGENT = "android.permission.PROVIDE_TRUST_AGENT";
    field public static final String PROVISION_DEMO_DEVICE = "android.permission.PROVISION_DEMO_DEVICE";
    field public static final String PROVISION_DEMO_DEVICE = "android.permission.PROVISION_DEMO_DEVICE";
    field public static final String QUERY_ADMIN_POLICY = "android.permission.QUERY_ADMIN_POLICY";
    field public static final String QUERY_ADMIN_POLICY = "android.permission.QUERY_ADMIN_POLICY";
    field public static final String QUERY_CLONED_APPS = "android.permission.QUERY_CLONED_APPS";
    field @Deprecated public static final String QUERY_TIME_ZONE_RULES = "android.permission.QUERY_TIME_ZONE_RULES";
    field @Deprecated public static final String QUERY_TIME_ZONE_RULES = "android.permission.QUERY_TIME_ZONE_RULES";
    field public static final String QUERY_USERS = "android.permission.QUERY_USERS";
    field public static final String QUERY_USERS = "android.permission.QUERY_USERS";
    field public static final String RADIO_SCAN_WITHOUT_LOCATION = "android.permission.RADIO_SCAN_WITHOUT_LOCATION";
    field public static final String RADIO_SCAN_WITHOUT_LOCATION = "android.permission.RADIO_SCAN_WITHOUT_LOCATION";
+9 −0
Original line number Original line Diff line number Diff line
@@ -7040,6 +7040,15 @@
        android:protectionLevel="signature|knownSigner"
        android:protectionLevel="signature|knownSigner"
        android:knownCerts="@array/config_healthConnectMigrationKnownSigners" />
        android:knownCerts="@array/config_healthConnectMigrationKnownSigners" />


    <!-- @SystemApi Allows an app to query apps in clone profile. The permission is
         bidirectional in nature, i.e. cloned apps would be able to query apps in root user.
         The permission is not meant for 3P apps as of now.
         <p>Protection level: signature|privileged
         @hide
    -->
    <permission android:name="android.permission.QUERY_CLONED_APPS"
                android:protectionLevel="signature|privileged" />

    <!-- Attribution for Geofencing service. -->
    <!-- Attribution for Geofencing service. -->
    <attribution android:tag="GeofencingService" android:label="@string/geofencing_service"/>
    <attribution android:tag="GeofencingService" android:label="@string/geofencing_service"/>
    <!-- Attribution for Country Detector. -->
    <!-- Attribution for Country Detector. -->