From 865507a2d31960f8e6c28cfc0ec59a6ca6a1929f Mon Sep 17 00:00:00 2001 From: Nate Myren Date: Tue, 18 Feb 2020 14:51:23 -0800 Subject: [PATCH] Add Auto Revoke Enabled settings constant Add "AUTO_REVOKE_DISABLED" systemApi constant to Settings, which will be used to read the global state of the auto revoke system. Test: None Bug: 146513245 Change-Id: I8072d124adf2808493f2eb4de5e52d87bef57508 --- api/system-current.txt | 1 + core/java/android/provider/Settings.java | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/api/system-current.txt b/api/system-current.txt index 8725538f1fd8e..f2d4c5fc2aaf5 100755 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -9727,6 +9727,7 @@ package android.provider { field public static final String AUTOFILL_USER_DATA_MAX_USER_DATA_SIZE = "autofill_user_data_max_user_data_size"; field public static final String AUTOFILL_USER_DATA_MAX_VALUE_LENGTH = "autofill_user_data_max_value_length"; field public static final String AUTOFILL_USER_DATA_MIN_VALUE_LENGTH = "autofill_user_data_min_value_length"; + field public static final String AUTO_REVOKE_DISABLED = "auto_revoke_disabled"; field public static final String CARRIER_APPS_HANDLED = "carrier_apps_handled"; field public static final String COMPLETED_CATEGORY_PREFIX = "suggested.completed_category."; field public static final String DOZE_ALWAYS_ON = "doze_always_on"; diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 37efec34b3307..3fab9ca62eb97 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -8734,6 +8734,13 @@ public final class Settings { public static final String LOCATION_PERMISSIONS_UPGRADE_TO_Q_MODE = "location_permissions_upgrade_to_q_mode"; + /** + * Whether or not the system Auto Revoke feature is disabled. + * @hide + */ + @SystemApi + public static final String AUTO_REVOKE_DISABLED = "auto_revoke_disabled"; + /** * Map of android.theme.customization.* categories to the enabled overlay package for that * category, formatted as a serialized {@link org.json.JSONObject}. If there is no