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.WRITE_EXTERNAL_STORAGE is not always required #320

Open
krzysztof-swi opened this issue Apr 19, 2023 · 1 comment
Open
Labels
android Android related issue

Comments

@krzysztof-swi
Copy link

Hi,
This task concerns only Android version:
My app has defined write_external_storage permission in AndroidManifest.xml, as I need it in other place:

I use camereawesome for taking pictures, I save them inside application directories, using path_provider.getTemporaryDirectory.
This permission is not required for saving files in this directory.
However when I open the camera, the permission popup appears asking for external storage.
I think the culprit is in CameraPermissions.kt - allPermissions list contains write_external_storage permission and it is never removed.
Maybe asking for this permission could be made optional?

@krzysztof-swi krzysztof-swi changed the title android.permission.WRITE_EXTERNAL_STORAGE android.permission.WRITE_EXTERNAL_STORAGE is not always required Apr 19, 2023
@apalala-dev apalala-dev added the android Android related issue label Apr 19, 2023
@MorningGu
Copy link

You are right. I tried to delete the part of the code that contains the write_external_storage permission, so it will no longer request this permission. The reason why the demo does not request permission is because this permission is not registered in the AndroidManifest. After registration, it will still request this permission.

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

No branches or pull requests

3 participants