Class ProtectionLevel


  • public class ProtectionLevel
    extends java.lang.Object
    An convenience object that encodes Android Protection Level property values
    Author:
    Ben Holland, Vani Bojja
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the protection level name
        Returns:
      • getLevel

        public int getLevel()
        Returns the protection level integer as defined in the Android source
        Returns:
      • getDescription

        public java.lang.String getDescription()
        Returns a description of the protection level
        Returns:
      • getPermissions

        public java.util.HashSet<Permission> getPermissions()
        Returns a list of permissions associated with the protection level
        Returns:
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getAllProtectionLevels

        public static java.util.Collection<ProtectionLevel> getAllProtectionLevels()
        Returns a collection of all known protection levels