How can I disable the Android 11's auto-reset permissions in android application?
08:52 24 Aug 2022

Since Android 11, there has been a system feature where it resets app permissions after a certain amount of time has passed and you haven't used the app.

I know you can turn it off on most apps, by the user itself like the screenshot below :

auto revoke by user

and also it seems to turn back on when there are app or system updates.

How can I disable this function in my app by code or sth else?

java android android-studio kotlin android-permissions