diff options
| -rw-r--r-- | core/api/current.txt | 1 | ||||
| -rw-r--r-- | core/java/android/provider/Settings.java | 17 | ||||
| -rw-r--r-- | core/java/android/provider/flags.aconfig | 7 |
3 files changed, 25 insertions, 0 deletions
diff --git a/core/api/current.txt b/core/api/current.txt index 3fde9a69c5fb..41f96eec9b3f 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -36977,6 +36977,7 @@ package android.provider { 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 @FlaggedApi("android.provider.backup_tasks_settings_screen") public static final String ACTION_REQUEST_RUN_BACKUP_JOBS = "android.settings.REQUEST_RUN_BACKUP_JOBS"; 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 @FlaggedApi("com.android.internal.telephony.flags.carrier_enabled_satellite_flag") public static final String ACTION_SATELLITE_SETTING = "android.settings.SATELLITE_SETTING"; diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index e782703b1b10..b026ce94b3fd 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -668,6 +668,23 @@ public final class Settings { "android.settings.MANAGE_APP_LONG_RUNNING_JOBS"; /** + * Activity Action: Show settings to allow configuration of + * {@link Manifest.permission#RUN_BACKUP_JOBS} 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". + * <p> + * 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}. + */ + @FlaggedApi(Flags.FLAG_BACKUP_TASKS_SETTINGS_SCREEN) + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_REQUEST_RUN_BACKUP_JOBS = + "android.settings.REQUEST_RUN_BACKUP_JOBS"; + + /** * Activity Action: Show settings to allow configuration of cross-profile access for apps * * Input: Optionally, the Intent's data URI can specify the application package name to diff --git a/core/java/android/provider/flags.aconfig b/core/java/android/provider/flags.aconfig index 0f12b1397c5b..ea1ac2793a11 100644 --- a/core/java/android/provider/flags.aconfig +++ b/core/java/android/provider/flags.aconfig @@ -13,3 +13,10 @@ flag { description: "This flag controls new E2EE contact keys API" bug: "290696572" } + +flag { + name: "backup_tasks_settings_screen" + namespace: "backstage_power" + description: "Add a new settings page for the RUN_BACKUP_JOBS permission." + bug: "320563660" +} |