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

Commit 7f9463f4 authored by Essence Cain's avatar Essence Cain
Browse files

Add new system level permission EMERGENCY_INSTALL_PACAKGES

The new permission will allow each app store in the system image to designate another app in the system image which has permission from the framework to update the app store.

For more info: go/android-firebrick-1pager

Test: m
Bug: 321080601
Change-Id: Ib3f28acde506fe87ff9c7a1567d125f1e10793d8
parent 73b965e4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -129,6 +129,7 @@ package android {
    field public static final String DISABLE_SYSTEM_SOUND_EFFECTS = "android.permission.DISABLE_SYSTEM_SOUND_EFFECTS";
    field public static final String DISPATCH_PROVISIONING_MESSAGE = "android.permission.DISPATCH_PROVISIONING_MESSAGE";
    field public static final String DOMAIN_VERIFICATION_AGENT = "android.permission.DOMAIN_VERIFICATION_AGENT";
    field @FlaggedApi("android.content.pm.emergency_install_permission") public static final String EMERGENCY_INSTALL_PACKAGES = "android.permission.EMERGENCY_INSTALL_PACKAGES";
    field public static final String ENTER_CAR_MODE_PRIORITIZED = "android.permission.ENTER_CAR_MODE_PRIORITIZED";
    field public static final String EXEMPT_FROM_AUDIO_RECORD_RESTRICTIONS = "android.permission.EXEMPT_FROM_AUDIO_RECORD_RESTRICTIONS";
    field public static final String FORCE_BACK = "android.permission.FORCE_BACK";
+7 −0
Original line number Diff line number Diff line
@@ -168,3 +168,10 @@ flag {
    description: "Feature flag to allow the sandbox SDK to query intent activities of the client app."
    bug: "295842134"
}

flag {
    name: "emergency_install_permission"
    namespace: "permissions"
    description: "Feature flag to enable permission EMERGENCY_INSTALL_PACKAGES"
    bug: "321080601"
}
+10 −0
Original line number Diff line number Diff line
@@ -7985,6 +7985,16 @@
    <permission android:name="android.permission.READ_SYSTEM_GRAMMATICAL_GENDER"
                android:protectionLevel="signature|privileged"/>

    <!-- @SystemApi
        @FlaggedApi("android.content.pm.emergency_install_permission")
        Allows each app store in the system image to designate another app in the system image to
        update the app store
        <p>Protection level: signature|privileged
        @hide
    -->
    <permission android:name="android.permission.EMERGENCY_INSTALL_PACKAGES"
                android:protectionLevel="signature|privileged"/>

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