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

Commit fc5d5c6e authored by Jing Ji's avatar Jing Ji Committed by Android (Google) Code Review
Browse files

Merge "Update the permission RUN_LONG_JOBS"

parents 735f72eb b50556f0
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -36410,7 +36410,6 @@ package android.provider {
    field public static final String ACTION_MANAGE_ALL_SIM_PROFILES_SETTINGS = "android.settings.MANAGE_ALL_SIM_PROFILES_SETTINGS";
    field public static final String ACTION_MANAGE_APPLICATIONS_SETTINGS = "android.settings.MANAGE_APPLICATIONS_SETTINGS";
    field public static final String ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION = "android.settings.MANAGE_APP_ALL_FILES_ACCESS_PERMISSION";
    field public static final String ACTION_MANAGE_APP_LONG_RUNNING_JOBS = "android.settings.MANAGE_APP_LONG_RUNNING_JOBS";
    field public static final String ACTION_MANAGE_DEFAULT_APPS_SETTINGS = "android.settings.MANAGE_DEFAULT_APPS_SETTINGS";
    field public static final String ACTION_MANAGE_OVERLAY_PERMISSION = "android.settings.action.MANAGE_OVERLAY_PERMISSION";
    field public static final String ACTION_MANAGE_SUPERVISOR_RESTRICTED_SETTING = "android.settings.MANAGE_SUPERVISOR_RESTRICTED_SETTING";
+1 −1
Original line number Diff line number Diff line
@@ -2489,7 +2489,7 @@ public class AppOpsManager {
                "RECEIVE_EXPLICIT_USER_INTERACTION_AUDIO").setDefaultMode(
                AppOpsManager.MODE_ALLOWED).build(),
        new AppOpInfo.Builder(OP_RUN_LONG_JOBS, OPSTR_RUN_LONG_JOBS, "RUN_LONG_JOBS")
                .setPermission(Manifest.permission.RUN_LONG_JOBS).build(),
                .setDefaultMode(AppOpsManager.MODE_ALLOWED).build(),
            new AppOpInfo.Builder(OP_READ_MEDIA_VISUAL_USER_SELECTED,
                    OPSTR_READ_MEDIA_VISUAL_USER_SELECTED, "READ_MEDIA_VISUAL_USER_SELECTED")
                    .setPermission(Manifest.permission.READ_MEDIA_VISUAL_USER_SELECTED)
+2 −0
Original line number Diff line number Diff line
@@ -603,6 +603,8 @@ public final class Settings {
     * Output: When a package data uri is passed as input, the activity result is set to
     * {@link android.app.Activity#RESULT_OK} if the permission was granted to the app. Otherwise,
     * the result is set to {@link android.app.Activity#RESULT_CANCELED}.
     *
     * @hide
     */
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_MANAGE_APP_LONG_RUNNING_JOBS =
+4 −6
Original line number Diff line number Diff line
@@ -6994,14 +6994,12 @@
    <permission android:name="android.permission.MANAGE_WEARABLE_SENSING_SERVICE"
                android:protectionLevel="signature|privileged" />

    <!-- Allows applications to use the long running jobs APIs.
         <p>This is a special access permission that can be revoked by the system or the user.
         <p>Apps need to target API {@link android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE} or above
         to be able to request this permission.
         <p>Protection level: appop
    <!-- Allows applications to use the long running jobs APIs. For more details
         see {@link android.app.job.JobInfo.Builder#setUserInitiated}.
         <p>Protection level: normal
     -->
    <permission android:name="android.permission.RUN_LONG_JOBS"
                android:protectionLevel="normal|appop"/>
                android:protectionLevel="normal"/>

    <!-- Allows an app access to the installer provided app metadata.
        @SystemApi