Skip to content

[Bug report] Android rejected apps that use READ_MEDIA_IMAGES permission in manifest #1297

@luqmanhakkim

Description

@luqmanhakkim

Version

3.6.2

Platforms

Android

Device Model

Pixel 3A

flutter info

[!] Flutter (Channel stable, 3.19.2, on macOS 15.3.2 24D81 darwin-arm64, locale en-MY)
    • Flutter version 3.19.2 on channel stable at /Users/luqmanhakkimnorazahan/fvm/versions/3.19.2
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart-sdk/3.7.2/libexec/bin/dart, which is not inside your current Flutter SDK checkout at
      /Users/luqmanhakkimnorazahan/fvm/versions/3.19.2. Consider adding /Users/luqmanhakkimnorazahan/fvm/versions/3.19.2/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7482962148 (1 year, 4 months ago), 2024-02-27 16:51:22 -0500
    • Engine revision 04817c99c9
    • Dart version 3.3.0
    • DevTools version 2.31.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/luqmanhakkimnorazahan/Library/Android/sdk
    • Platform android-35, build-tools 33.0.2
    • ANDROID_HOME = /Users/luqmanhakkimnorazahan/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.101.2)
    • VS Code at /Users/luqmanhakkimnorazahan/Downloads/Visual Studio Code.app/Contents
    • Flutter extension version 3.114.0

[✓] Connected device (3 available)
    • luqman hakkim’s iPhone (mobile) • 00008130-00140D063ED0001C • ios            • iOS 18.5 22F76
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 15.3.2 24D81 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 138.0.7204.93

[✓] Network resources
    • All expected network resources are available.

How to reproduce?

I’m facing an issue where the photo_manager plugin always returns a denied or limited permission status when I remove the READ_MEDIA_IMAGES permission from the Android manifest.

I had to remove this permission because Google is rejecting my app due to the use of restricted permissions like READ_MEDIA_IMAGES.

However, this plugin still requires the permission on Android 13 and below. I cannot drop this plugin, as it is used extensively throughout my app.

How can I resolve this issue while remaining compliant with Google Play policies?

Logs

Example code (optional)

Contact

[email protected] [email protected]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions