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

Commit 01cee8e6 authored by Ben Lin's avatar Ben Lin Committed by Android (Google) Code Review
Browse files

Merge "Add new Intent start a package's Open By Default page directly." into pi-dev

parents 8512630f 296f80a5
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -782,6 +782,21 @@ public final class Settings {
    public static final String ACTION_APPLICATION_DETAILS_SETTINGS =
            "android.settings.APPLICATION_DETAILS_SETTINGS";

    /**
     * Activity Action: Show the "Open by Default" page in a particular application's details page.
     * <p>
     * In some cases, a matching Activity may not exist, so ensure you safeguard against this.
     * <p>
     * Input: The Intent's data URI specifies the application package name
     * to be shown, with the "package" scheme. That is "package:com.my.app".
     * <p>
     * Output: Nothing.
     * @hide
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_APPLICATION_DETAILS_SETTINGS_OPEN_BY_DEFAULT_PAGE =
            "android.settings.APPLICATION_DETAILS_SETTINGS_OPEN_BY_DEFAULT_PAGE";

    /**
     * Activity Action: Show list of applications that have been running
     * foreground services (to the user "running in the background").
+6 −0
Original line number Diff line number Diff line
@@ -3886,6 +3886,12 @@
    <permission android:name="android.permission.WATCH_APPOPS"
        android:protectionLevel="signature" />

    <!-- Allows an application to directly open the "Open by default" page inside a package's
         Details screen.
         @hide <p>Not for use by third-party applications. -->
    <permission android:name="android.permission.OPEN_APPLICATION_DETAILS_OPEN_BY_DEFAULT_PAGE"
                android:protectionLevel="signature" />

    <application android:process="system"
                 android:persistent="true"
                 android:hasCode="false"