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

Commit affe24d2 authored by Sorin Dinu's avatar Sorin Dinu Committed by Sanjana Sunil
Browse files

Create new role for dependency installer.

Bug: 372862084
Test: local testing
FLAG: android.content.pm.sdk_dependency_installer
Change-Id: Ibf06a39bbbe2af096ffc9c45c3414b818c78c4ea
parent f2572f14
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ package android {
    field @Deprecated public static final String BIND_CONNECTION_SERVICE = "android.permission.BIND_CONNECTION_SERVICE";
    field public static final String BIND_CONTENT_CAPTURE_SERVICE = "android.permission.BIND_CONTENT_CAPTURE_SERVICE";
    field public static final String BIND_CONTENT_SUGGESTIONS_SERVICE = "android.permission.BIND_CONTENT_SUGGESTIONS_SERVICE";
    field @FlaggedApi("android.content.pm.sdk_dependency_installer") public static final String BIND_DEPENDENCY_INSTALLER = "android.permission.BIND_DEPENDENCY_INSTALLER";
    field public static final String BIND_DIRECTORY_SEARCH = "android.permission.BIND_DIRECTORY_SEARCH";
    field public static final String BIND_DISPLAY_HASHING_SERVICE = "android.permission.BIND_DISPLAY_HASHING_SERVICE";
    field @FlaggedApi("com.android.internal.telephony.flags.use_oem_domain_selection_service") public static final String BIND_DOMAIN_SELECTION_SERVICE = "android.permission.BIND_DOMAIN_SELECTION_SERVICE";
@@ -165,6 +166,7 @@ package android {
    field public static final String HDMI_CEC = "android.permission.HDMI_CEC";
    field @Deprecated public static final String HIDE_NON_SYSTEM_OVERLAY_WINDOWS = "android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS";
    field public static final String INJECT_EVENTS = "android.permission.INJECT_EVENTS";
    field @FlaggedApi("android.content.pm.sdk_dependency_installer") public static final String INSTALL_DEPENDENCY_SHARED_LIBRARIES = "android.permission.INSTALL_DEPENDENCY_SHARED_LIBRARIES";
    field public static final String INSTALL_DPC_PACKAGES = "android.permission.INSTALL_DPC_PACKAGES";
    field public static final String INSTALL_DYNAMIC_SYSTEM = "android.permission.INSTALL_DYNAMIC_SYSTEM";
    field public static final String INSTALL_EXISTING_PACKAGES = "com.android.permission.INSTALL_EXISTING_PACKAGES";
@@ -531,6 +533,7 @@ package android {
    field public static final int config_systemCallStreaming = 17039431; // 0x1040047
    field public static final int config_systemCompanionDeviceProvider = 17039417; // 0x1040039
    field public static final int config_systemContacts = 17039403; // 0x104002b
    field @FlaggedApi("android.content.pm.sdk_dependency_installer") public static final int config_systemDependencyInstaller;
    field public static final int config_systemFinancedDeviceController = 17039430; // 0x1040046
    field public static final int config_systemGallery = 17039399; // 0x1040027
    field public static final int config_systemNotificationIntelligence = 17039413; // 0x1040035
+25 −1
Original line number Diff line number Diff line
@@ -7921,7 +7921,31 @@
    <!-- @SystemApi Allows an application to access shared libraries.
         @hide -->
    <permission android:name="android.permission.ACCESS_SHARED_LIBRARIES"
                android:protectionLevel="signature|installer" />
        android:protectionLevel="signature|installer"
        android:featureFlag="!android.content.pm.sdk_dependency_installer" />

    <!-- @SystemApi Allows an application to access shared libraries.
         @hide -->
    <permission android:name="android.permission.ACCESS_SHARED_LIBRARIES"
                android:protectionLevel="signature|installer|role"
        android:featureFlag="android.content.pm.sdk_dependency_installer" />

    <!-- @SystemApi Permission held by the system to allow binding to the dependency installer role
         holder.
         @FlaggedApi(android.content.pm.Flags.FLAG_SDK_DEPENDENCY_INSTALLER)
         @hide -->
    <permission android:name="android.permission.BIND_DEPENDENCY_INSTALLER"
        android:protectionLevel="signature"
        android:featureFlag="android.content.pm.sdk_dependency_installer" />

    <!-- @SystemApi Allows an application to install shared libraries of types
         {@link android.content.pm.SharedLibraryInfo#TYPE_STATIC} or
         {@link android.content.pm.SharedLibraryInfo#TYPE_SDK_PACKAGE}.
         @FlaggedApi(android.content.pm.Flags.FLAG_SDK_DEPENDENCY_INSTALLER)
         @hide -->
    <permission android:name="android.permission.INSTALL_DEPENDENCY_SHARED_LIBRARIES"
        android:protectionLevel="signature|role"
        android:featureFlag="android.content.pm.sdk_dependency_installer" />

    <!-- Allows an app to log compat change usage.
         @hide  <p>Not for use by third-party applications.</p> -->
+3 −0
Original line number Diff line number Diff line
@@ -7217,4 +7217,7 @@

    <!-- Whether to enable fp unlock when screen turns off on udfps devices -->
    <bool name="config_screen_off_udfps_enabled">false</bool>

    <!-- The name of the system package that will hold the dependency installer role. -->
    <string name="config_systemDependencyInstaller" translatable="false" />
</resources>
+3 −0
Original line number Diff line number Diff line
@@ -142,6 +142,9 @@
  </staging-public-group>

  <staging-public-group type="string" first-id="0x01b40000">
    <!-- @FlaggedApi(android.content.pm.Flags.FLAG_SDK_DEPENDENCY_INSTALLER)
         @hide @SystemApi -->
    <public name="config_systemDependencyInstaller" />
  </staging-public-group>

  <staging-public-group type="dimen" first-id="0x01b30000">