From ec6ed0d55f59c9387aa09b1514bea9951a6206f8 Mon Sep 17 00:00:00 2001 From: huangdarwin Date: Tue, 9 Aug 2022 17:28:31 +0000 Subject: [PATCH] Demo: Add legacy external storage permission for intents. 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 --- demos/transformer/src/main/AndroidManifest.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/demos/transformer/src/main/AndroidManifest.xml b/demos/transformer/src/main/AndroidManifest.xml index ff7e08db74..d12622c1a8 100644 --- a/demos/transformer/src/main/AndroidManifest.xml +++ b/demos/transformer/src/main/AndroidManifest.xml @@ -29,6 +29,7 @@ android:label="@string/app_name" android:theme="@style/Theme.AppCompat" android:taskAffinity="" + android:requestLegacyExternalStorage="true" tools:targetApi="29">