admin管理员组

文章数量:1180552

My app has been flagged by Google with the following:

Your app uses the following undeclared photo and video permissions

android.permission.READ_MEDIA_IMAGES

android.permission.READ_MEDIA_VIDEO

However, these permissions are not inside AndroidManifest.xml. Here's the relevant section in my app:

  <uses-permission android:name="android.permission.CAMERA"/>
  <uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
  <uses-permission android:name="android.permission.VIBRATE"/>
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
  <uses-permission android:name="android.permission.RECORD_AUDIO"/>
  <uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove"/>

What should I do or where should I look?

I am using the following library for image picker:

        "expo-image-picker": "~15.0.7",

My app has been flagged by Google with the following:

Your app uses the following undeclared photo and video permissions

android.permission.READ_MEDIA_IMAGES

android.permission.READ_MEDIA_VIDEO

However, these permissions are not inside AndroidManifest.xml. Here's the relevant section in my app:

  <uses-permission android:name="android.permission.CAMERA"/>
  <uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
  <uses-permission android:name="android.permission.VIBRATE"/>
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
  <uses-permission android:name="android.permission.RECORD_AUDIO"/>
  <uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove"/>

What should I do or where should I look?

I am using the following library for image picker:

        "expo-image-picker": "~15.0.7",
Share Improve this question edited 59 mins ago Joshua Augustinus asked 2 hours ago Joshua AugustinusJoshua Augustinus 1491 silver badge10 bronze badges 1
  • You already made the right mentioned "expo-image-picker": "~15.0.7" that needs the "READ_MEDIA_IMAGES, READ_MEDIA_VIDEO" Permissions to work properly. So it is better to declare them in the manifest. – Muhammad Ammar Commented 12 mins ago
Add a comment  | 

1 Answer 1

Reset to default 0

The library that you are using use the mentioned permission, You can either move to LaunhcerIntent for picking images from user gallery or declare this permission in the Manifest.xml

P.S On Android Api level 33 and above Read External Stoarge Permission can not be granted, so you may have to declare this permission of Read Media Images

本文标签: