Warning from play console about requestLegacyExternalStorage flag

Please provide the following:

  1. SDK Version: 40.0.0
  2. Platforms: Android

I’ve got a warning inside Google Play Console recently:

We’ve detected that your app contains the requestLegacyExternalStorage flag in the manifest file of 1 or more of your app bundles or APKs.

Developers with apps on devices running Android 11+ must use Scoped Storage to give users better access control over their device storage. To release your app on Android 11 or newer after May 5th, you must either:

  • Update your app to use more privacy friendly best practices, such as the Storage Access Framework or Media Store API
  • Update your app to declare the All files access ( MANAGE_EXTERNAL_STORAGE ) permission in the manifest file, and complete the All files access permission declaration in Play Console from May 5th
  • Remove the All files access permission from your app entirely

For apps targeting Android 11, the requestLegacyExternalStorage flag will be ignored. You must use the All files access permission to retain broad access.

Apps requesting access to the All files access permission without a permitted use will be removed from Google Play, and you won’t be able to publish updates.


I have these permissions in the app.json file:
"android": { "permissions": [ "CAMERA", "ACCESS_FINE_LOCATION", "READ_CONTACTS" ] }

Also I’m using expo-barcode-scanner library. Only this library is using camera.
I’m also using expo-file-system to download images locally.

I don’t need to access external storage.
Is there any way to avoid this warning?

Thank you

Hey @ucha4964, we’ve got a thread going about this warning so I’m going to close this one. We’ll continue the discussion and focus there (for now). Warning from play console about requestLegacyExternalStorage flag



FYI this is the link to the discussion- Google Warning regarding `MANAGE_EXTERNAL_STORAGE` and `requestLegacyExternalStorageflag` for Android apps · Issue #12603 · expo/expo · GitHub