Privacy Policy About Us Android 11 Flutter


Auto Reset permission

The following behavior changes apply exclusively to apps that are targeting Android 11 or higher.

If your app isn't used for a few months then the android system will revoke sensitive runtime permission that the user has granted.  

Disable auto-reset

If needed, You can ask the user to disable the reset permission feature, from the application setting screen. You can use  Settings.ACTION_APPLICATION_DETAILS_SETTINGS  intent to navigate the user to application setting where the user can see below switch to disable auto reset permission.

                                                          

Determine whether auto-reset is disabled: 

Android 11 gives you an API to check whether auto-reset functionality is disabled for your app.

PackageManager

 public boolean isAutoRevokeWhitelisted ()

If this method returns true, then the system doesn't auto-reset your app's permissions.