Class ParserConstants

java.lang.Object
jadx.core.xmlgen.ParserConstants
Direct Known Subclasses:
CommonBinaryParser, ValuesParser

public class ParserConstants extends Object
  • Field Details

    • ANDROID_NS_URL

      protected static final String ANDROID_NS_URL
      See Also:
    • ANDROID_NS_VALUE

      protected static final String ANDROID_NS_VALUE
      See Also:
    • RES_NULL_TYPE

      protected static final int RES_NULL_TYPE
      Chunk types as defined in frameworks/base/libs/androidfw/include/androidfw/ResourceTypes.h (AOSP)
      See Also:
    • RES_STRING_POOL_TYPE

      protected static final int RES_STRING_POOL_TYPE
      See Also:
    • RES_TABLE_TYPE

      protected static final int RES_TABLE_TYPE
      See Also:
    • RES_XML_TYPE

      protected static final int RES_XML_TYPE
      See Also:
    • RES_XML_FIRST_CHUNK_TYPE

      protected static final int RES_XML_FIRST_CHUNK_TYPE
      See Also:
    • RES_XML_START_NAMESPACE_TYPE

      protected static final int RES_XML_START_NAMESPACE_TYPE
      See Also:
    • RES_XML_END_NAMESPACE_TYPE

      protected static final int RES_XML_END_NAMESPACE_TYPE
      See Also:
    • RES_XML_START_ELEMENT_TYPE

      protected static final int RES_XML_START_ELEMENT_TYPE
      See Also:
    • RES_XML_END_ELEMENT_TYPE

      protected static final int RES_XML_END_ELEMENT_TYPE
      See Also:
    • RES_XML_CDATA_TYPE

      protected static final int RES_XML_CDATA_TYPE
      See Also:
    • RES_XML_LAST_CHUNK_TYPE

      protected static final int RES_XML_LAST_CHUNK_TYPE
      See Also:
    • RES_XML_RESOURCE_MAP_TYPE

      protected static final int RES_XML_RESOURCE_MAP_TYPE
      See Also:
    • RES_TABLE_PACKAGE_TYPE

      protected static final int RES_TABLE_PACKAGE_TYPE
      See Also:
    • RES_TABLE_TYPE_TYPE

      protected static final int RES_TABLE_TYPE_TYPE
      See Also:
    • RES_TABLE_TYPE_SPEC_TYPE

      protected static final int RES_TABLE_TYPE_SPEC_TYPE
      See Also:
    • RES_TABLE_TYPE_LIBRARY

      protected static final int RES_TABLE_TYPE_LIBRARY
      See Also:
    • RES_TABLE_TYPE_OVERLAY

      protected static final int RES_TABLE_TYPE_OVERLAY
      See Also:
    • RES_TABLE_TYPE_OVERLAY_POLICY

      protected static final int RES_TABLE_TYPE_OVERLAY_POLICY
      See Also:
    • RES_TABLE_TYPE_STAGED_ALIAS

      protected static final int RES_TABLE_TYPE_STAGED_ALIAS
      See Also:
    • TYPE_NULL

      protected static final int TYPE_NULL
      Type constants
      See Also:
    • TYPE_REFERENCE

      protected static final int TYPE_REFERENCE
      See Also:
    • TYPE_ATTRIBUTE

      protected static final int TYPE_ATTRIBUTE
      See Also:
    • TYPE_STRING

      protected static final int TYPE_STRING
      See Also:
    • TYPE_FLOAT

      protected static final int TYPE_FLOAT
      See Also:
    • TYPE_DIMENSION

      protected static final int TYPE_DIMENSION
      See Also:
    • TYPE_FRACTION

      protected static final int TYPE_FRACTION
      See Also:
    • TYPE_DYNAMIC_REFERENCE

      protected static final int TYPE_DYNAMIC_REFERENCE
      The 'data' holds a dynamic reference, a reference to another resource table entry. See https://github.com/skylot/jadx/issues/919
      See Also:
    • TYPE_DYNAMIC_ATTRIBUTE

      protected static final int TYPE_DYNAMIC_ATTRIBUTE
      According to the sources of apktool this type seem to be related to themes See https://github.com/skylot/jadx/issues/919
      See Also:
    • TYPE_FIRST_INT

      protected static final int TYPE_FIRST_INT
      See Also:
    • TYPE_INT_DEC

      protected static final int TYPE_INT_DEC
      See Also:
    • TYPE_INT_HEX

      protected static final int TYPE_INT_HEX
      See Also:
    • TYPE_INT_BOOLEAN

      protected static final int TYPE_INT_BOOLEAN
      See Also:
    • TYPE_FIRST_COLOR_INT

      protected static final int TYPE_FIRST_COLOR_INT
      See Also:
    • TYPE_INT_COLOR_ARGB8

      protected static final int TYPE_INT_COLOR_ARGB8
      See Also:
    • TYPE_INT_COLOR_RGB8

      protected static final int TYPE_INT_COLOR_RGB8
      See Also:
    • TYPE_INT_COLOR_ARGB4

      protected static final int TYPE_INT_COLOR_ARGB4
      See Also:
    • TYPE_INT_COLOR_RGB4

      protected static final int TYPE_INT_COLOR_RGB4
      See Also:
    • TYPE_LAST_COLOR_INT

      protected static final int TYPE_LAST_COLOR_INT
      See Also:
    • TYPE_LAST_INT

      protected static final int TYPE_LAST_INT
      See Also:
    • COMPLEX_UNIT_SHIFT

      protected static final int COMPLEX_UNIT_SHIFT
      See Also:
    • COMPLEX_UNIT_MASK

      protected static final int COMPLEX_UNIT_MASK
      See Also:
    • COMPLEX_UNIT_PX

      protected static final int COMPLEX_UNIT_PX
      See Also:
    • COMPLEX_UNIT_DIP

      protected static final int COMPLEX_UNIT_DIP
      See Also:
    • COMPLEX_UNIT_SP

      protected static final int COMPLEX_UNIT_SP
      See Also:
    • COMPLEX_UNIT_PT

      protected static final int COMPLEX_UNIT_PT
      See Also:
    • COMPLEX_UNIT_IN

      protected static final int COMPLEX_UNIT_IN
      See Also:
    • COMPLEX_UNIT_MM

      protected static final int COMPLEX_UNIT_MM
      See Also:
    • COMPLEX_UNIT_FRACTION

      protected static final int COMPLEX_UNIT_FRACTION
      See Also:
    • COMPLEX_UNIT_FRACTION_PARENT

      protected static final int COMPLEX_UNIT_FRACTION_PARENT
      See Also:
    • COMPLEX_RADIX_SHIFT

      protected static final int COMPLEX_RADIX_SHIFT
      See Also:
    • COMPLEX_RADIX_MASK

      protected static final int COMPLEX_RADIX_MASK
      See Also:
    • COMPLEX_RADIX_23P0

      protected static final int COMPLEX_RADIX_23P0
      See Also:
    • COMPLEX_RADIX_16P7

      protected static final int COMPLEX_RADIX_16P7
      See Also:
    • COMPLEX_RADIX_8P15

      protected static final int COMPLEX_RADIX_8P15
      See Also:
    • COMPLEX_RADIX_0P23

      protected static final int COMPLEX_RADIX_0P23
      See Also:
    • COMPLEX_MANTISSA_SHIFT

      protected static final int COMPLEX_MANTISSA_SHIFT
      See Also:
    • COMPLEX_MANTISSA_MASK

      protected static final int COMPLEX_MANTISSA_MASK
      See Also:
    • MANTISSA_MULT

      protected static final double MANTISSA_MULT
      See Also:
    • RADIX_MULTS

      protected static final double[] RADIX_MULTS
    • SORTED_FLAG

      protected static final int SORTED_FLAG
      String pool flags
      See Also:
    • UTF8_FLAG

      protected static final int UTF8_FLAG
      See Also:
    • NO_ENTRY

      protected static final int NO_ENTRY
      ResTable_type
      See Also:
    • FLAG_SPARSE

      protected static final int FLAG_SPARSE
      See Also:
    • FLAG_OFFSET16

      protected static final int FLAG_OFFSET16
      See Also:
    • FLAG_COMPLEX

      protected static final int FLAG_COMPLEX
      ResTable_entry
      See Also:
    • FLAG_PUBLIC

      protected static final int FLAG_PUBLIC
      See Also:
    • FLAG_WEAK

      protected static final int FLAG_WEAK
      See Also:
    • FLAG_COMPACT

      protected static final int FLAG_COMPACT
      See Also:
    • ATTR_TYPE

      protected static final int ATTR_TYPE
      ResTable_map
    • ATTR_MIN

      protected static final int ATTR_MIN
    • ATTR_MAX

      protected static final int ATTR_MAX
    • ATTR_L10N

      protected static final int ATTR_L10N
    • ATTR_OTHER

      protected static final int ATTR_OTHER
    • ATTR_ZERO

      protected static final int ATTR_ZERO
    • ATTR_ONE

      protected static final int ATTR_ONE
    • ATTR_TWO

      protected static final int ATTR_TWO
    • ATTR_FEW

      protected static final int ATTR_FEW
    • ATTR_MANY

      protected static final int ATTR_MANY
    • PLURALS_MAP

      protected static final Map<Integer,String> PLURALS_MAP
    • ATTR_TYPE_ANY

      protected static final int ATTR_TYPE_ANY
      See Also:
    • ATTR_TYPE_REFERENCE

      protected static final int ATTR_TYPE_REFERENCE
      See Also:
    • ATTR_TYPE_STRING

      protected static final int ATTR_TYPE_STRING
      See Also:
    • ATTR_TYPE_INTEGER

      protected static final int ATTR_TYPE_INTEGER
      See Also:
    • ATTR_TYPE_BOOLEAN

      protected static final int ATTR_TYPE_BOOLEAN
      See Also:
    • ATTR_TYPE_COLOR

      protected static final int ATTR_TYPE_COLOR
      See Also:
    • ATTR_TYPE_FLOAT

      protected static final int ATTR_TYPE_FLOAT
      See Also:
    • ATTR_TYPE_DIMENSION

      protected static final int ATTR_TYPE_DIMENSION
      See Also:
    • ATTR_TYPE_FRACTION

      protected static final int ATTR_TYPE_FRACTION
      See Also:
    • ATTR_TYPE_ENUM

      protected static final int ATTR_TYPE_ENUM
      See Also:
    • ATTR_TYPE_FLAGS

      protected static final int ATTR_TYPE_FLAGS
      See Also:
    • ATTR_L10N_NOT_REQUIRED

      protected static final int ATTR_L10N_NOT_REQUIRED
      See Also:
    • ATTR_L10N_SUGGESTED

      protected static final int ATTR_L10N_SUGGESTED
      See Also:
  • Constructor Details

    • ParserConstants

      protected ParserConstants()
  • Method Details

    • makeResInternal

      private static int makeResInternal(int entry)
    • isResInternalId

      protected static boolean isResInternalId(int resid)