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

Commit d31ed40a authored by Anubhav Kakkar's avatar Anubhav Kakkar
Browse files

Add public intent action to open the app list for Manifest.permission#MEDIA_ROUTING_CONTROL

Bug: 313775893
Test: Trigger the intent with action as Settings.ACTION_REQUEST_MEDIA_ROUTING_CONTROL to check whether special app access screen for 'Change media output' displays

Change-Id: I94c818a1f86dda1c2551d72b042bc857cf304432
parent 54b89873
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -36911,6 +36911,7 @@ package android.provider {
    field public static final String ACTION_REGIONAL_PREFERENCES_SETTINGS = "android.settings.REGIONAL_PREFERENCES_SETTINGS";
    field public static final String ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS = "android.settings.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS";
    field public static final String ACTION_REQUEST_MANAGE_MEDIA = "android.settings.REQUEST_MANAGE_MEDIA";
    field @FlaggedApi("com.android.media.flags.enable_privileged_routing_for_media_routing_control") public static final String ACTION_REQUEST_MEDIA_ROUTING_CONTROL = "android.settings.REQUEST_MEDIA_ROUTING_CONTROL";
    field public static final String ACTION_REQUEST_SCHEDULE_EXACT_ALARM = "android.settings.REQUEST_SCHEDULE_EXACT_ALARM";
    field public static final String ACTION_REQUEST_SET_AUTOFILL_SERVICE = "android.settings.REQUEST_SET_AUTOFILL_SERVICE";
    field public static final String ACTION_SEARCH_SETTINGS = "android.search.action.SEARCH_SETTINGS";
+17 −0
Original line number Diff line number Diff line
@@ -606,6 +606,23 @@ public final class Settings {
    public static final String ACTION_REQUEST_MANAGE_MEDIA =
            "android.settings.REQUEST_MANAGE_MEDIA";
    /**
     * Activity Action: Show settings to allow configuration of
     * {@link Manifest.permission#MEDIA_ROUTING_CONTROL} permission.
     *
     * Input: Optionally, the Intent's data URI can specify the application package name to
     * directly invoke the management GUI specific to the package name. For example
     * "package:com.my.app". However, modifying this permission setting for any package is allowed
     * only when that package holds an appropriate companion device profile such as
     * {@link android.companion.AssociationRequest#DEVICE_PROFILE_WATCH}.
     * <p>
     * Output: Nothing.
     */
    @FlaggedApi("com.android.media.flags.enable_privileged_routing_for_media_routing_control")
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_REQUEST_MEDIA_ROUTING_CONTROL =
            "android.settings.REQUEST_MEDIA_ROUTING_CONTROL";
    /**
     * Activity Action: Show settings to allow configuration of
     * {@link Manifest.permission#RUN_USER_INITIATED_JOBS} permission