public final class PermissionFlags extends Object
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
PERMISSION_APPLY_RESTRICTION_FLAG |
Permission status: Permissions are disabled, but may be granted.
|
static int |
PERMISSION_FLAGS_ALL_MASK |
Indicates the mask of all authority status.
|
static int |
PERMISSION_GRANTED_BY_DEFAULT_FLAG |
Permission status: This permission is granted by default because it enables out-of-the-box
application functionality and provides a smooth user experience.
|
static int |
PERMISSION_GRANTED_BY_ROLE_FLAG |
Permission status: The application has a role and is granted with permissions.
|
static int |
PERMISSION_POLICY_FIXED_FLAG |
Permission status: The permission status is set by the device policy and
cannot be modified by the application or user.
|
static int |
PERMISSION_RESTRICTION_ANY_EXEMPT_FLAGS |
Status of a permission that allows exemption from restricted permissions.
|
static int |
PERMISSION_RESTRICTION_INSTALLER_EXEMPT_FLAG |
Permission status: This permission is restricted, but the application is unrestricted and allows
the full form of the permission to be held, with exemptions documented by the installer.
|
static int |
PERMISSION_RESTRICTION_SYSTEM_EXEMPT_FLAG |
Permission status: Permissions are restricted but not limited.
|
static int |
PERMISSION_RESTRICTION_UPGRADE_EXEMPT_FLAG |
Permission status: The permission is restricted, but the application is not restricted.
|
static int |
PERMISSION_REVIEW_REQUIRED_FLAG |
Permission status: Permissions must be audited before any application component runs.
|
static int |
PERMISSION_REVOKE_ON_UPGRADE_FLAG |
Permission status: Permissions are set to be granted,but access to the resources it protects
is otherwise restricted to revoke permissions on legacy applications that do
not support runtime permissions.
|
static int |
PERMISSION_REVOKE_WHEN_REQUESTED_FLAG |
Permission status: The permission is not explicitly applied for by the app,
but is automatically added by the system.
|
static int |
PERMISSION_SYSTEM_FIXED_FLAG |
Permission status: The permission is set to the current status because the application is a
part of the system.
|
static int |
PERMISSION_USER_FIXED_FLAG |
Permission status: The permission is set by the user to the current status and it is fixed.
|
static int |
PERMISSION_USER_SENSITIVE_WHEN_DENIED_FLAG |
Permission status: Permission usage should be highly visible to users when denied.
|
static int |
PERMISSION_USER_SENSITIVE_WHEN_GRANTED_FLAG |
Permission status: When granting permissions, you should make the user's use highly visible.
|
static int |
PERMISSION_USER_SET_FLAG |
Permission status: This permission is set by the user and
can still be requested by the application at runtime.
|
public static final int PERMISSION_APPLY_RESTRICTION_FLAG
public static final int PERMISSION_FLAGS_ALL_MASK
public static final int PERMISSION_GRANTED_BY_DEFAULT_FLAG
public static final int PERMISSION_GRANTED_BY_ROLE_FLAG
public static final int PERMISSION_POLICY_FIXED_FLAG
public static final int PERMISSION_RESTRICTION_ANY_EXEMPT_FLAGS
public static final int PERMISSION_RESTRICTION_INSTALLER_EXEMPT_FLAG
public static final int PERMISSION_RESTRICTION_SYSTEM_EXEMPT_FLAG
public static final int PERMISSION_RESTRICTION_UPGRADE_EXEMPT_FLAG
public static final int PERMISSION_REVIEW_REQUIRED_FLAG
public static final int PERMISSION_REVOKE_ON_UPGRADE_FLAG
public static final int PERMISSION_REVOKE_WHEN_REQUESTED_FLAG
public static final int PERMISSION_SYSTEM_FIXED_FLAG
public static final int PERMISSION_USER_FIXED_FLAG
public static final int PERMISSION_USER_SENSITIVE_WHEN_DENIED_FLAG
public static final int PERMISSION_USER_SENSITIVE_WHEN_GRANTED_FLAG
public static final int PERMISSION_USER_SET_FLAG