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

[Feature][Android] Support for MANAGE_MEDIA permission #891

Open
ua741 opened this issue Jan 10, 2023 · 1 comment
Open

[Feature][Android] Support for MANAGE_MEDIA permission #891

ua741 opened this issue Jan 10, 2023 · 1 comment

Comments

@ua741
Copy link
Contributor

ua741 commented Jan 10, 2023

Is your feature request related to a problem? Please describe.

For media management / gallery apps, the user should not see system pop up to confirm deletion of the media.

Describe the solution you'd like

Ability fetch the status and open Media management app settings so that user can toggle the permission for managing media.

Additional context

This permission is only available on Android 12 and above

Application will need to declare this permission in the Manifest.

<uses-permission android:name="android.permission.MANAGE_MEDIA">

To request the permission we need to invoke this intent with current package's name

https://developer.android.com/reference/android/provider/Settings#ACTION_REQUEST_MANAGE_MEDIA

We can fetch the permission status using this API

MediaStore.canManageMedia(ctx)

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

No branches or pull requests

3 participants