Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android.permission.READ_MEDIA_IMAGES requires approval #218

Open
pr-schulmanager opened this issue Oct 21, 2024 · 1 comment
Open

android.permission.READ_MEDIA_IMAGES requires approval #218

pr-schulmanager opened this issue Oct 21, 2024 · 1 comment

Comments

@pr-schulmanager
Copy link

According to https://support.google.com/googleplay/android-developer/answer/14115180 the permission android.permission.READ_MEDIA_IMAGES (added in #132) is only allowed for "apps with a need for broad access to photos" and requires declaration and approval. Apps with one-time or infrequent use of photos are requested to use Android photo picker instead and remove READ_MEDIA_IMAGES.

Since our last dependency update we are prompted to submit a declaration or remove the permission.

@chaohershi
Copy link

If your app doesn't use the permission, add the following to your android/app/src/main/AndroidManifest.xml.

  • Add xmlns:tools="http://schemas.android.com/tools" to manifest tag attribute
  • Add <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" tools:node="remove" /> element

Example:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
  <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" tools:node="remove" />
</manifest>

tools:node="remove" will remove the permissions element from the merged manifest. See https://developer.android.com/build/manage-manifests#node_markers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants