Skip to content

Broad Storage Access and requestLegacyExternalStorage #371

Closed
@mkjorgensen

Description

@mkjorgensen

Google has begun issuing warnings in Play Console for apps using the requestLegacyExternalStorage flag. This is a cause of great concern, as it may affect the ability to be listed on and/or updating apps in Play Store, though these types of messages are fairly cryptic as usual, unfortunately. Here's a few helpful references:
Google Support - Use of All File Access
Reddit Discussion on said message

Our app itself has no direct use of the requestLegacyExternalStorage flag, and seemingly it only emerges from the Instabug library.

From Google Play Console

Starting 5 May, you must let us know why your app requires broad storage access

We've detected that your app contains the requestLegacyExternalStorage flag in the manifest file of one 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 5 May, 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 5 May
  • 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.

Perspective on Options

  • Update your app to use more privacy-friendly best practices, such as the storage access framework or Media Store API

By far the preferred approach.

  • 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 5 May

This is a road we do not want to go down. That would greatly decrease the value of using the Instabug library.

  • Remove the All files access permission from your app entirely

I'm gonna take a wild guess and say this is probably not possible.

What can we expect from the Instabug Library going forward in terms of the above and on a related note, scoped storage in relation to the Android 11 requirements coming up in November 2021?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions