So on Android R , user can now choose to allow the OSs to revoke given permission if the app isn't using them. This new settings will be available in the permission section of the app setting(check screenshot for reference), by default its turned off as per current beta behaviour
https://developer.android.com/preview/privacy/permissions#auto-reset
There is an api added to track if currently your app is in the given whitelist or not
https://developer.android.com/reference/android/content/pm/PackageManager#isAutoRevokeWhitelisted(). I tried testing this but even when i turn the on or off the settings the api always returns false. Wondering if anyone else has faced this issue yet.
I checked the logs and i can see a few logs which makes me feels that even after turning the option on its doesnt actually get added to the whitelist
2020-08-14 03:04:26.002 7005-7047/? I/AppPermissionGroupsViewModel: sessionId 5928824040472035289 setting auto revoke enabled to true forcom.abc.xyz UserHandle{0}
2020-08-14 03:04:26.007 864-3020/? D/audio_hw_primary: enable_snd_device: snd_device(2: speaker)
2020-08-14 03:04:26.007 7005-7283/? W/AutoRevokePermissions: Error carrier privileged status for com.abc.xyz: -1
2020-08-14 03:04:26.007 864-3020/? D/audio_route: Apply path: speaker
2020-08-14 03:04:26.007 7005-7283/? I/AutoRevokePermissions: Parsed teamfood setting value: null
2020-08-14 03:04:26.007 7005-7283/? I/chatty: uid=10187(com.google.android.permissioncontroller) pool-2-thread-7 identical 1 line
2020-08-14 03:04:26.007 7005-7283/? I/AutoRevokePermissions: Parsed teamfood setting value: null