I'm trying to whitelist some of my enterprise apps to avoid the auto-reset of runtime permissions, because they are background applications and users do not interact very often with them.
But it seems (https://issuetracker.google.com/issues/170968725) that a new manifest attribute
" autoRevokePermissions "
isn't working (anymore or for now, I don't know because its new on API lvl 30 BUT its also not working AND bypassed by system...).
So I'm trying to ask user permisison for this action, like explained here : https://developer.android.com/guide/topics/permissions/overview#auto-reset-permissions-unused-apps
My problem is, on some of the apps, this section of settings is totally gone. No switch or information when I dive to permissions settings. I install them from Android Studio I've updated targetSdkVersion on all, the configurations seems similar...
Does anyone know why I encounter this issue ?
Is there a third way to put this new setting off ?
I'm trying with packageManager.setAutoRevokeWhitelisted but
java.lang.SecurityException: Caller must either hold android.permission.WHITELIST_AUTO_REVOKE_PERMISSIONS or be the installer on record
... and don't know how to do those)
Thx for the possibles answers, clues or bypasses^^
(and really sorry for bad english ;)