java.lang.Object | |
↳ | android.app.admin.DeviceAdminInfo |
This class is used to specify meta information of a device administrator component.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | USES_ENCRYPTED_STORAGE | A type of policy that this device admin can use: require encryption of stored data. | |||||||||
int | USES_POLICY_DISABLE_CAMERA | A type of policy that this device admin can use: disables use of all device cameras. | |||||||||
int | USES_POLICY_DISABLE_KEYGUARD_FEATURES | A type of policy that this device admin can use: disables use of keyguard features. | |||||||||
int | USES_POLICY_EXPIRE_PASSWORD | A type of policy that this device admin can use: force the user to change their password after an administrator-defined time limit. | |||||||||
int | USES_POLICY_FORCE_LOCK |
A type of policy that this device admin can use: able to force the device
to lock via
lockNow()
or limit the
maximum lock timeout for the device via
setMaximumTimeToLock(ComponentName, long)
.
|
|||||||||
int | USES_POLICY_LIMIT_PASSWORD |
A type of policy that this device admin can use: limit the passwords
that the user can select, via
setPasswordQuality(ComponentName, int)
and
setPasswordMinimumLength(ComponentName, int)
.
|
|||||||||
int | USES_POLICY_RESET_PASSWORD |
A type of policy that this device admin can use: able to reset the
user's password via
resetPassword(String, int)
.
|
|||||||||
int | USES_POLICY_WATCH_LOGIN |
A type of policy that this device admin can use: able to watch login
attempts from the user, via
ACTION_PASSWORD_FAILED
,
ACTION_PASSWORD_SUCCEEDED
, and
getCurrentFailedPasswordAttempts()
.
|
|||||||||
int | USES_POLICY_WIPE_DATA |
A type of policy that this device admin can use: able to factory
reset the device, erasing all of the user's data, via
wipeData(int)
.
|
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
CREATOR | Used to make this class parcelable. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
||||||||||
|
|
||||||||||
|
Return the raw information about the receiver implementing this
device admin.
|
||||||||||
|
Return the component of the receiver that implements this device admin.
|
||||||||||
|
Return the .apk package that implements this device admin.
|
||||||||||
|
Return the class name of the receiver component that implements
this device admin.
|
||||||||||
|
Return the XML tag name for the given policy identifier.
|
||||||||||
|
Returns whether this device admin would like to be visible to the
user, even when it is not enabled.
|
||||||||||
|
Load user-visible description associated with this device admin.
|
||||||||||
|
Load the user-displayed icon for this device admin.
|
||||||||||
|
Load the user-displayed label for this device admin.
|
||||||||||
|
Returns a string containing a concise, human-readable description of this
object.
|
||||||||||
|
Return true if the device admin has requested that it be able to use
the given policy control.
|
||||||||||
|
Used to package this object into a
Parcel
.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
From interface
android.os.Parcelable
|
A type of policy that this device admin can use: require encryption of stored data.
To control this policy, the device admin must have a "encrypted-storage" tag in the "uses-policies" section of its meta-data.
A type of policy that this device admin can use: disables use of all device cameras.
To control this policy, the device admin must have a "disable-camera" tag in the "uses-policies" section of its meta-data.
A type of policy that this device admin can use: disables use of keyguard features.
To control this policy, the device admin must have a "disable-keyguard-features" tag in the "uses-policies" section of its meta-data.
A type of policy that this device admin can use: force the user to change their password after an administrator-defined time limit.
To control this policy, the device admin must have an "expire-password" tag in the "uses-policies" section of its meta-data.
A type of policy that this device admin can use: able to force the device
to lock via
lockNow()
or limit the
maximum lock timeout for the device via
setMaximumTimeToLock(ComponentName, long)
.
To control this policy, the device admin must have a "force-lock" tag in the "uses-policies" section of its meta-data.
A type of policy that this device admin can use: limit the passwords
that the user can select, via
setPasswordQuality(ComponentName, int)
and
setPasswordMinimumLength(ComponentName, int)
.
To control this policy, the device admin must have a "limit-password" tag in the "uses-policies" section of its meta-data.
A type of policy that this device admin can use: able to reset the
user's password via
resetPassword(String, int)
.
To control this policy, the device admin must have a "reset-password" tag in the "uses-policies" section of its meta-data.
A type of policy that this device admin can use: able to watch login
attempts from the user, via
ACTION_PASSWORD_FAILED
,
ACTION_PASSWORD_SUCCEEDED
, and
getCurrentFailedPasswordAttempts()
.
To control this policy, the device admin must have a "watch-login" tag in the "uses-policies" section of its meta-data.
A type of policy that this device admin can use: able to factory
reset the device, erasing all of the user's data, via
wipeData(int)
.
To control this policy, the device admin must have a "wipe-data" tag in the "uses-policies" section of its meta-data.
Used to make this class parcelable.
Constructor.
context | The Context in which we are parsing the device admin. |
---|---|
receiver | The ResolveInfo returned from the package manager about this device admin's component. |
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Return the raw information about the receiver implementing this device admin. Do not modify the returned object.
Return the component of the receiver that implements this device admin.
Return the .apk package that implements this device admin.
Return the class name of the receiver component that implements this device admin.
Return the XML tag name for the given policy identifier. Valid identifiers
are as per
usesPolicy(int)
. If the given identifier is not
known, null is returned.
Returns whether this device admin would like to be visible to the user, even when it is not enabled.
Load user-visible description associated with this device admin.
pm | Supply a PackageManager used to load the device admin's resources. |
---|
Resources.NotFoundException |
---|
Load the user-displayed icon for this device admin.
pm | Supply a PackageManager used to load the device admin's resources. |
---|
Load the user-displayed label for this device admin.
pm | Supply a PackageManager used to load the device admin's resources. |
---|
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See
Writing a useful
toString
method
if you intend implementing your own
toString
method.
Return true if the device admin has requested that it be able to use
the given policy control. The possible policy identifier inputs are:
USES_POLICY_LIMIT_PASSWORD
,
USES_POLICY_WATCH_LOGIN
,
USES_POLICY_RESET_PASSWORD
,
USES_POLICY_FORCE_LOCK
,
USES_POLICY_WIPE_DATA
,
USES_POLICY_EXPIRE_PASSWORD
,
USES_ENCRYPTED_STORAGE
,
USES_POLICY_DISABLE_CAMERA
.