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

[BUG] asset picker does not work without rights explicitely removed by Google (Android 15) #684

Open
pognibene opened this issue Mar 8, 2025 · 2 comments
Labels
await investigate The issue is waiting for further investigation.

Comments

@pognibene
Copy link

Describe the bug
Google has sent me a message asking explicitly to remove the permissions:

<uses-permission android:name="android.permission.READ_MEDIA_IMAGE"/> 
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/>

I had to comply as they just removed my app from the store without any further comment.
Now I'm trying to develop and run the app against Android 15 (emulator) and the picker just fails with this error:

Bad state: Permission state error with PermissionState.denied.

It works though if I add back the permissions - which is not allowed by Google.
In other words : it looks like the package just can't be used at least on Android 15.

How to reproduce
Remove or comment the permissions :

<uses-permission android:name="android.permission.READ_MEDIA_IMAGE"/> 
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/>

and launching the picker will fail with the error "Bad state: Permission state error with PermissionState.denied."

Steps to reproduce the behavior:

Expected behavior
The picker should be able to work without these permissions, and/or ask them dynamically only when required.

Screenshots (If contains)

Version information

  • Device: Emulator Android 15 Pixel 6 with 16kb pages
  • OS: Android 15
  • Package Version: 9.5.0
  • Flutter Version: 3.29.0

Additional context
Output of Flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.29.0, on TUXEDO OS 6.11.0-109018-tuxedo, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
[✓] Chrome - develop for the web
[✗] Linux toolchain - develop for Linux desktop
✗ ninja is required for Linux development.
It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases
✗ GTK 3.0 development libraries are required for Linux development.
They are likely available from your distribution (e.g.: apt install libgtk-3-dev)
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.98.0)
[✓] Connected device (3 available)
[✓] Network resources

@pognibene pognibene added the await investigate The issue is waiting for further investigation. label Mar 8, 2025
@lfclfc
Copy link

lfclfc commented Mar 11, 2025

yes ,google play 's new policy

@lfclfc
Copy link

lfclfc commented Mar 11, 2025

remove please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
await investigate The issue is waiting for further investigation.
Projects
None yet
Development

No branches or pull requests

2 participants