UnusedAppRestrictionsConstants
class UnusedAppRestrictionsConstants
Shared constants related to Unused App Restrictions (e.g. Permission Revocation, App Hibernation).
Summary
Constants |
|
|---|---|
const Int |
API_30 = 4Unused App Restrictions introduced by Android API 30 are enabled for this app: permission auto-reset. |
const Int |
API_30_BACKPORT = 3Unused App Restrictions introduced by Android API 30, and since made available on earlier (API 23-29) devices are enabled for this app: permission auto-reset. |
const Int |
API_31 = 5Unused App Restrictions introduced by Android API 31 are enabled for this app: permission auto-reset and app hibernation. |
const Int |
DISABLED = 2Any available Unused App Restrictions on the device are disabled for this app. |
const Int |
ERROR = 0The status of Unused App Restrictions could not be retrieved from this app. |
const Int |
There are no available Unused App Restrictions for this app. |
Constants
API_30
const val API_30 = 4: Int
Unused App Restrictions introduced by Android API 30 are enabled for this app: permission auto-reset. Note: This value is only used on API 30 or later devices.
API_30_BACKPORT
const val API_30_BACKPORT = 3: Int
Unused App Restrictions introduced by Android API 30, and since made available on earlier (API 23-29) devices are enabled for this app: permission auto-reset. Note: This value is only used on API 29 or earlier devices.
API_31
const val API_31 = 5: Int
Unused App Restrictions introduced by Android API 31 are enabled for this app: permission auto-reset and app hibernation. Note: This value is only used on API 31 or later devices.
DISABLED
const val DISABLED = 2: Int
Any available Unused App Restrictions on the device are disabled for this app. In other words, this app is exempt from having its permissions automatically removed or being hibernated.
ERROR
const val ERROR = 0: Int
The status of Unused App Restrictions could not be retrieved from this app. Note: check the logs for the reason (e.g. if the app's target SDK version <30 or the user is in locked device boot mode).
FEATURE_NOT_AVAILABLE
const val FEATURE_NOT_AVAILABLE = 1: Int
There are no available Unused App Restrictions for this app.