Add app compat flag to enable/disable scoped storage
Bug: 132649864
Test: * Sample app targetting R is not able to create test.pdf in
DCIM (due to scoped storage restrictions)
* `adb shell am compat disable SCOPED_STORAGE <pkg_name>` or go to
Settings-> App Compatibility->(Select app)-> toggle SCOPED_STORAGE
* Able to create test.pdf in DCIM (hence opt out of scoped storage)
Change-Id: I39026d912cf9184e227c6a649f0ce0d90c440d8a
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index ecd5943..5e611d9 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -20,6 +20,10 @@
<uses-permission android:name="android.permission.USE_RESERVED_DISK" />
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
+ <!-- Permissions required for reading and logging compat changes -->
+ <uses-permission android:name="android.permission.LOG_COMPAT_CHANGE"/>
+ <uses-permission android:name="android.permission.READ_COMPAT_CHANGE_CONFIG"/>
+
<application
android:name="com.android.providers.media.MediaApplication"
android:label="@string/app_label"