From d82096eca34cbbd9aed52542dfaeb63bedb3bf08 Mon Sep 17 00:00:00 2001 From: Felipe Leme Date: Mon, 22 Jan 2018 13:44:01 -0800 Subject: Added STORAGE_VOLUME_ACCESS_SETTINGS intent. Applications typically use this action to ask the user to revert the "Do not ask again" status of directory access requested made by StorageVolume.createAccessIntent(directory). Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest#testResetDoNotAskAgain Test: adb shell am start -a android.settings.STORAGE_VOLUME_ACCESS_SETTINGS Bug: 63720392 Change-Id: I1ed1a018a54013d88260e11ef9646aaed3a3a318 --- core/java/android/provider/Settings.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'core/java/android') diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 0e323f8570a0..7de56e196b20 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -1502,6 +1502,21 @@ public final class Settings { public static final String ACTION_REQUEST_SET_AUTOFILL_SERVICE = "android.settings.REQUEST_SET_AUTOFILL_SERVICE"; + /** + * Activity Action: Show screen for controlling which apps have access on volume directories. + *

+ * Input: Nothing. + *

+ * Output: Nothing. + *

+ * Applications typically use this action to ask the user to revert the "Do not ask again" + * status of directory access requests made by + * {@link android.os.storage.StorageVolume#createAccessIntent(String)}. + */ + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_STORAGE_VOLUME_ACCESS_SETTINGS = + "android.settings.STORAGE_VOLUME_ACCESS_SETTINGS"; + // End of Intent actions for Settings /** -- cgit v1.2.3