Class APKSigSchemeV3Block

java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.APKSigSchemeV2Block
com.pnfsoftware.jeb.core.units.code.android.APKSigSchemeV3Block

@Ser public class APKSigSchemeV3Block extends APKSigSchemeV2Block
The APK signature scheme version 3 is an extension of version 2. Note that this parser should also be able to parse versions 3.1 and version 4 of the signature scheme.

Reference: https://source.android.com/docs/security/features/apksigning/v3

  • Field Details

    • PROOF_OF_ROTATION_ATTR_ID

      public static final int PROOF_OF_ROTATION_ATTR_ID
      Proof-of-rotation additional attribute identifier.
      See Also:
    • ROTATION_MIN_SDK_VERSION_ATTR_ID

      public static final int ROTATION_MIN_SDK_VERSION_ATTR_ID
      Rotation minimum SDK version additional attribute identifier.
      See Also:
    • ROTATION_ON_DEV_RELEASE_ATTR_ID

      public static final int ROTATION_ON_DEV_RELEASE_ATTR_ID
      Rotation-on-development-release additional attribute identifier.
      See Also:
  • Constructor Details

    • APKSigSchemeV3Block

      public APKSigSchemeV3Block(ByteBuffer b)
      Create and parse an APK Signature Scheme v3 block.
      Parameters:
      b - raw v3 signature block data
    • APKSigSchemeV3Block

      public APKSigSchemeV3Block(ByteBuffer b, int minorVersion)
      Create and parse an APK Signature Scheme v3 block.
      Parameters:
      b - raw v3 signature block data
      minorVersion - minor signature scheme version
  • Method Details

    • getMinorVersion

      public int getMinorVersion()
      Get the minor signature scheme version.
      Returns:
      the minor version: 0 for a 3.0 signing block, 1 for a 3.1 signing block
    • parse

      protected void parse(int available)
      Description copied from class: APKSigSchemeV2Block
      Parse signer records from the current buffer.
      Overrides:
      parse in class APKSigSchemeV2Block
      Parameters:
      available - number of bytes available in the block