IT. Expert System.

Android Reference

PermissionInfo


android.content.pm

Class PermissionInfo

  • All Implemented Interfaces:
    Parcelable


    public class PermissionInfo
    extends PackageItemInfo
    implements Parcelable
    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.
    • Field Detail

      • PROTECTION_NORMAL

        public static final int PROTECTION_NORMAL
        A normal application value for protectionLevel, corresponding to the normal value of android.R.attr#protectionLevel.
        See Also:
        Constant Field Values
      • PROTECTION_DANGEROUS

        public static final int PROTECTION_DANGEROUS
        Dangerous value for protectionLevel, corresponding to the dangerous value of android.R.attr#protectionLevel.
        See Also:
        Constant Field Values
      • PROTECTION_SIGNATURE

        public static final int PROTECTION_SIGNATURE
        System-level value for protectionLevel, corresponding to the signature value of android.R.attr#protectionLevel.
        See Also:
        Constant Field Values
      • PROTECTION_SIGNATURE_OR_SYSTEM

        public static final int PROTECTION_SIGNATURE_OR_SYSTEM
        System-level value for protectionLevel, corresponding to the signatureOrSystem value of android.R.attr#protectionLevel.
        See Also:
        Constant Field Values
      • PROTECTION_FLAG_SYSTEM

        public static final int PROTECTION_FLAG_SYSTEM
        Additional flag for protectionLevel, corresponding to the system value of android.R.attr#protectionLevel.
        See Also:
        Constant Field Values
      • PROTECTION_FLAG_DEVELOPMENT

        public static final int PROTECTION_FLAG_DEVELOPMENT
        Additional flag for protectionLevel, corresponding to the development value of android.R.attr#protectionLevel.
        See Also:
        Constant Field Values
      • group

        public String group
        The group this permission is a part of, as per android.R.attr#permissionGroup.
      • FLAG_COSTS_MONEY

        public static final int FLAG_COSTS_MONEY
        Flag for flags, corresponding to costsMoney value of android.R.attr#permissionFlags.
        See Also:
        Constant Field Values
      • flags

        public int flags
        Additional flags about this permission as given by android.R.attr#permissionFlags.
      • descriptionRes

        public int descriptionRes
        A string resource identifier (in the package's resources) of this permission's description. From the "description" attribute or, if not set, 0.
      • nonLocalizedDescription

        public CharSequence nonLocalizedDescription
        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(android.content.pm.PackageManager) instead.
    • Constructor Detail

      • PermissionInfo

        public PermissionInfo()
    • Method Detail

      • fixProtectionLevel

        public static int fixProtectionLevel(int level)
      • protectionToString

        public static String protectionToString(int level)
      • loadDescription

        public CharSequence loadDescription(PackageManager pm)
        Retrieve the textual description of this permission. This will call back on the given PackageManager to load the description from the application.
        Parameters:
        pm - A PackageManager from which the label can be loaded; usually the PackageManager from which you originally retrieved this item.
        Returns:
        Returns a CharSequence containing the permission's description. If there is no description, null is returned.
      • toString

        public String toString()
        Description copied from class: Object
        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.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.
      • describeContents

        public int describeContents()
        Description copied from interface: Parcelable
        Describe the kinds of special objects contained in this Parcelable's marshalled representation.
        Specified by:
        describeContents in interface Parcelable
        Returns:
        a bitmask indicating the set of special object types marshalled by the Parcelable.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2449 / . Delta: 0.03220 с