Skip to content

Commit

Permalink
Demo: Add legacy external storage permission for intents.
Browse files Browse the repository at this point in the history
Without this permission, files in `/sdcard` or other directories cannot be read by the demo, as they're not in the transformer demo's scoped storage container.

For more information, see https://developer.android.com/training/data-storage/use-cases

Tested by uninstalling and re-installing the demo app, granting permission by
starting a transformation, and launching an intent using a local file in `/sdcard`
to start another transformation. Without this CL, this threw an error, and with
this CL it succeeded.

PiperOrigin-RevId: 466399023
  • Loading branch information
dway123 authored and marcbaechinger committed Oct 19, 2022
1 parent 96a2b14 commit 051dee6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions demos/transformer/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat"
android:taskAffinity=""
android:requestLegacyExternalStorage="true"
tools:targetApi="29">
<activity android:name=".ConfigurationActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize|uiMode"
Expand Down

0 comments on commit 051dee6

Please sign in to comment.