Search code examples
javaandroidandroid-permissions

how to remove the third permission option


I've already googled this question but haven't found anything yet, so I need your help. How to remove the third option of permission to the memory, because if the user accidentally clicks on it, it will be necessary to go to the settings and allow the permission to the program manually, and since in general 30-40% of users are able to do this, only one will have to reinstall the program .

enter image description here

enter image description here


Solution

  • As people in the comments have said, it is a system dialog and you cannot change it. If you want to help users find your app's settings you can try sending them there.

    Also note that according to the docs

    Starting in Android 11 (API level 30), if the user taps Deny for a specific permission more than once during your app's lifetime of installation on a device, the user doesn't see the system permissions dialog if your app requests that permission again. The user's action implies "don't ask again."

    So you have to deal with permanent denials even if there isn't a dedicated button.