Added activity for the ACTION_DIRECTORY_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: adb shell am start -a android.settings.DIRECTORY_ACCESS_SETTINGS
Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest#testResetDoNotAskAgain

Bug: 63720392

Change-Id: Ib9007c2c08a75e2e54df6d6b5f465f9c3ccc82be
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index a36ec8b..6621dc1 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -3358,6 +3358,17 @@
                        android:value="true" />
         </activity>
 
+        <activity android:name="Settings$DirectoryAccessSettingsActivity"
+                android:label="@string/directory_access"
+                android:taskAffinity="">
+            <intent-filter>
+                <action android:name="android.settings.STORAGE_VOLUME_ACCESS_SETTINGS" />
+                <category android:name="android.intent.category.DEFAULT" />
+            </intent-filter>
+            <meta-data android:name="com.android.settings.FRAGMENT_CLASS"
+                android:value="com.android.settings.applications.manageapplications.ManageApplications" />
+        </activity>
+
         <provider android:name=".slices.SettingsSliceProvider"
                   android:authorities="com.android.settings.slices"
                   android:exported="true">