java.lang.Object | ||
↳ | android.content.pm.PackageItemInfo | |
↳ | android.content.pm.PermissionInfo |
Information you can retrieve about a particular security permission known to the system. This corresponds to information collected from the AndroidManifest.xml's <permission> tags.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | FLAG_COSTS_MONEY | Flag for flags , corresponding to costsMoney value of permissionFlags . |
|||||||||
int | PROTECTION_DANGEROUS | Dangerous value for protectionLevel , corresponding to the dangerous value of protectionLevel . |
|||||||||
int | PROTECTION_FLAG_DEVELOPMENT | Additional flag for protectionLevel , corresponding to the development value of protectionLevel . |
|||||||||
int | PROTECTION_FLAG_SYSTEM | Additional flag for protectionLevel , corresponding to the system value of protectionLevel . |
|||||||||
int | PROTECTION_MASK_BASE | Mask for protectionLevel : the basic protection type. |
|||||||||
int | PROTECTION_MASK_FLAGS | Mask for protectionLevel : additional flag bits. |
|||||||||
int | PROTECTION_NORMAL | A normal application value for protectionLevel , corresponding to the normal value of protectionLevel . |
|||||||||
int | PROTECTION_SIGNATURE | System-level value for protectionLevel , corresponding to the signature value of protectionLevel . |
|||||||||
int | PROTECTION_SIGNATURE_OR_SYSTEM | System-level value for protectionLevel , corresponding to the signatureOrSystem value of protectionLevel . |
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
CREATOR | ||||||||||
|
descriptionRes | A string resource identifier (in the package's resources) of this permission's description. | |||||||||
|
flags | Additional flags about this permission as given by permissionFlags . |
|||||||||
|
group | The group this permission is a part of, as per permissionGroup . |
|||||||||
|
nonLocalizedDescription | The description string provided in the AndroidManifest file, if any. | |||||||||
|
protectionLevel | The level of access this permission is protecting, as per protectionLevel . |
[Expand]
Inherited Fields
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
||||||||||
|
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
|
|||||||||
|
|
Retrieve the textual description of this permission.
|
|||||||||
|
|
Returns a string containing a concise, human-readable description of this object.
|
|||||||||
|
|
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
|||||||||||
![]() |
|||||||||||
![]() |
Flag for flags
, corresponding to costsMoney
value of permissionFlags
.
Dangerous value for protectionLevel
, corresponding to the dangerous
value of protectionLevel
.
Additional flag for protectionLevel
, corresponding to the development
value of protectionLevel
.
Additional flag for protectionLevel
, corresponding to the system
value of protectionLevel
.
Mask for protectionLevel
: the basic protection type.
Mask for protectionLevel
: additional flag bits.
A normal application value for protectionLevel
, corresponding to the normal
value of protectionLevel
.
System-level value for protectionLevel
, corresponding to the signature
value of protectionLevel
.
System-level value for protectionLevel
, corresponding to the signatureOrSystem
value of protectionLevel
.
A string resource identifier (in the package's resources) of this permission's description. From the "description" attribute or, if not set, 0.
Additional flags about this permission as given by permissionFlags
.
The group this permission is a part of, as per permissionGroup
.
The description string provided in the AndroidManifest file, if any. You probably don't want to use this, since it will be null if the description is in a resource. You probably want loadDescription(PackageManager)
instead.
The level of access this permission is protecting, as per protectionLevel
. Values may be PROTECTION_NORMAL
, PROTECTION_DANGEROUS
, or PROTECTION_SIGNATURE
. May also include the additional flags PROTECTION_FLAG_SYSTEM
or PROTECTION_FLAG_DEVELOPMENT
(which only make sense in combination with the base PROTECTION_SIGNATURE
.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Retrieve the textual description of this permission. This will call back on the given PackageManager to load the description from the application.
pm | A PackageManager from which the label can be loaded; usually the PackageManager from which you originally retrieved this item. |
---|
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.