public static enum ApkVerifier.Issue extends Enum<ApkVerifier.Issue>
Enum Constant and Description |
---|
APK_SIG_BLOCK_UNKNOWN_ENTRY_ID
APK Signing Block contains an unknown entry.
|
JAR_SIG_DID_NOT_VERIFY
JAR signature contained in a signature block file did not verify against the signature
file.
|
JAR_SIG_DUPLICATE_MANIFEST_SECTION
JAR manifest contains a section with a duplicate name.
|
JAR_SIG_DUPLICATE_SIG_FILE_SECTION
JAR signature file contains a section with a duplicate name.
|
JAR_SIG_DUPLICATE_ZIP_ENTRY
APK contains multiple entries with the same name.
|
JAR_SIG_MALFORMED_CERTIFICATE
An exception was encountered while parsing a certificate contained in the JAR signature
block.
|
JAR_SIG_MANIFEST_MAIN_SECTION_DIGEST_DID_NOT_VERIFY
Digest of the JAR manifest main section did not verify.
|
JAR_SIG_MANIFEST_SECTION_DIGEST_DID_NOT_VERIFY
Digest of the specified JAR manifest section does not match the digest expected by the
JAR signature.
|
JAR_SIG_MISSING
APK which is both JAR-signed and signed using APK Signature Scheme v2 contains an APK
Signature Scheme v2 signature from this signer, but does not contain a JAR signature
from this signer.
|
JAR_SIG_MISSING_APK_SIG_REFERENCED
JAR signature file indicates that the APK is supposed to be signed with a supported APK
signature scheme (in addition to the JAR signature) but no such signature was found in
the APK.
|
JAR_SIG_MISSING_FILE
JAR signature of the signer is missing a file/entry.
|
JAR_SIG_MISSING_VERSION_ATTR_IN_SIG_FILE
JAR signature file's main section doesn't contain the mandatory Signature-Version
attribute.
|
JAR_SIG_MISSING_ZIP_ENTRY_REFERENCED_IN_MANIFEST
JAR manifest references an entry which is not there in the APK.
|
JAR_SIG_NO_APK_SIG_STRIP_PROTECTION
APK is signed using APK Signature Scheme v2 or newer, but JAR signature file does not
contain protections against stripping of these newer scheme signatures.
|
JAR_SIG_NO_MANIFEST
APK is missing the JAR manifest entry (META-INF/MANIFEST.MF).
|
JAR_SIG_NO_MANIFEST_DIGEST_IN_SIG_FILE
JAR signature file does not contain the whole-file digest of the JAR manifest file.
|
JAR_SIG_NO_SIGNATURES
APK is not JAR-signed.
|
JAR_SIG_NO_SIGNED_ZIP_ENTRIES
APK does not contain any entries covered by JAR signatures.
|
JAR_SIG_NO_SIGNERS
JAR signature contains no verified signers.
|
JAR_SIG_NO_ZIP_ENTRY_DIGEST_IN_MANIFEST
JAR manifest does not list a digest for the specified entry.
|
JAR_SIG_NO_ZIP_ENTRY_DIGEST_IN_SIG_FILE
JAR signature does not list a digest for the specified entry.
|
JAR_SIG_PARSE_EXCEPTION
An exception was encountered while parsing JAR signature contained in a signature block.
|
JAR_SIG_UNKNOWN_APK_SIG_SCHEME_ID
JAR signature file references an unknown APK signature scheme ID.
|
JAR_SIG_UNNNAMED_MANIFEST_SECTION
JAR manifest contains a section without a name.
|
JAR_SIG_UNNNAMED_SIG_FILE_SECTION
JAR signature file contains a section without a name.
|
JAR_SIG_UNPROTECTED_ZIP_ENTRY
JAR entry is not covered by signature and thus unauthorized modifications to its contents
will not be detected.
|
JAR_SIG_UNSUPPORTED_SIG_ALG
JAR signature contains unsupported digest algorithm.
|
JAR_SIG_VERIFY_EXCEPTION
An exception was encountered while verifying JAR signature contained in a signature block
against the signature file.
|
JAR_SIG_ZIP_ENTRY_DIGEST_DID_NOT_VERIFY
Digest of the specified ZIP entry's data does not match the digest expected by the JAR
signature.
|
JAR_SIG_ZIP_ENTRY_NOT_SIGNED
The specified JAR entry is not covered by JAR signature.
|
JAR_SIG_ZIP_ENTRY_SIGNERS_MISMATCH
JAR signature uses different set of signers to protect the two specified ZIP entries.
|
V2_SIG_APK_DIGEST_DID_NOT_VERIFY
The APK's digest does not match the digest contained in the APK Signature Scheme v2
signature.
|
V2_SIG_DID_NOT_VERIFY
APK Signature Scheme v2 signature over this signer's signed-data block did not verify.
|
V2_SIG_MALFORMED_ADDITIONAL_ATTRIBUTE
This APK Signature Scheme v2 signer contains a malformed additional attribute.
|
V2_SIG_MALFORMED_CERTIFICATE
This APK Signature Scheme v2 signer's certificate could not be parsed.
|
V2_SIG_MALFORMED_DIGEST
Failed to parse this signer's digest record contained in the APK Signature Scheme v2
signature.
|
V2_SIG_MALFORMED_PUBLIC_KEY
Public key embedded in the APK Signature Scheme v2 signature of this signer could not be
parsed.
|
V2_SIG_MALFORMED_SIGNATURE
Failed to parse this signer's signature record contained in the APK Signature Scheme v2
signature.
|
V2_SIG_MALFORMED_SIGNER
Failed to parse this signer's signer block contained in the APK Signature Scheme v2
signature.
|
V2_SIG_MALFORMED_SIGNERS
Failed to parse the list of signers contained in the APK Signature Scheme v2 signature.
|
V2_SIG_MISSING
APK which is both JAR-signed and signed using APK Signature Scheme v2 contains a JAR
signature from this signer, but does not contain an APK Signature Scheme v2 signature
from this signer.
|
V2_SIG_NO_CERTIFICATES
This APK Signature Scheme v2 signer offers no certificates.
|
V2_SIG_NO_SIGNATURES
This APK Signature Scheme v2 signer offers no signatures.
|
V2_SIG_NO_SIGNERS
APK Signature Scheme v2 signature contains no signers.
|
V2_SIG_NO_SUPPORTED_SIGNATURES
This APK Signature Scheme v2 signer offers signatures but none of them are supported.
|
V2_SIG_PUBLIC_KEY_MISMATCH_BETWEEN_CERTIFICATE_AND_SIGNATURES_RECORD
This APK Signature Scheme v2 signer's public key listed in the signer's certificate does
not match the public key listed in the signatures record.
|
V2_SIG_SIG_ALG_MISMATCH_BETWEEN_SIGNATURES_AND_DIGESTS_RECORDS
This APK Signature Scheme v2 signer's signature algorithms listed in the signatures
record do not match the signature algorithms listed in the signatures record.
|
V2_SIG_UNKNOWN_ADDITIONAL_ATTRIBUTE
This APK Signature Scheme v2 signer contains an unknown additional attribute.
|
V2_SIG_UNKNOWN_SIG_ALGORITHM
This APK Signature Scheme v2 signer contains a signature produced using an unknown
algorithm.
|
V2_SIG_VERIFY_EXCEPTION
An exception was encountered while verifying APK Signature Scheme v2 signature of this
signer.
|
Modifier and Type | Method and Description |
---|---|
static ApkVerifier.Issue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApkVerifier.Issue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApkVerifier.Issue JAR_SIG_NO_SIGNATURES
public static final ApkVerifier.Issue JAR_SIG_NO_SIGNED_ZIP_ENTRIES
public static final ApkVerifier.Issue JAR_SIG_DUPLICATE_ZIP_ENTRY
String
)public static final ApkVerifier.Issue JAR_SIG_DUPLICATE_MANIFEST_SECTION
String
)public static final ApkVerifier.Issue JAR_SIG_UNNNAMED_MANIFEST_SECTION
Integer
)public static final ApkVerifier.Issue JAR_SIG_UNNNAMED_SIG_FILE_SECTION
String
)Integer
)public static final ApkVerifier.Issue JAR_SIG_NO_MANIFEST
public static final ApkVerifier.Issue JAR_SIG_MISSING_ZIP_ENTRY_REFERENCED_IN_MANIFEST
String
)public static final ApkVerifier.Issue JAR_SIG_NO_ZIP_ENTRY_DIGEST_IN_MANIFEST
String
)public static final ApkVerifier.Issue JAR_SIG_NO_ZIP_ENTRY_DIGEST_IN_SIG_FILE
String
)String
)public static final ApkVerifier.Issue JAR_SIG_ZIP_ENTRY_NOT_SIGNED
String
)public static final ApkVerifier.Issue JAR_SIG_ZIP_ENTRY_SIGNERS_MISMATCH
String
)List<String>
)String
)List<String>
)public static final ApkVerifier.Issue JAR_SIG_ZIP_ENTRY_DIGEST_DID_NOT_VERIFY
String
)String
)String
)String
)String
)public static final ApkVerifier.Issue JAR_SIG_MANIFEST_MAIN_SECTION_DIGEST_DID_NOT_VERIFY
String
)String
)String
)String
)public static final ApkVerifier.Issue JAR_SIG_MANIFEST_SECTION_DIGEST_DID_NOT_VERIFY
String
)String
)String
)String
)String
)public static final ApkVerifier.Issue JAR_SIG_NO_MANIFEST_DIGEST_IN_SIG_FILE
String
)public static final ApkVerifier.Issue JAR_SIG_NO_APK_SIG_STRIP_PROTECTION
String
)public static final ApkVerifier.Issue JAR_SIG_MISSING_FILE
String
)String
)public static final ApkVerifier.Issue JAR_SIG_VERIFY_EXCEPTION
String
)String
)Throwable
)public static final ApkVerifier.Issue JAR_SIG_UNSUPPORTED_SIG_ALG
String
)String
)String
)String
)public static final ApkVerifier.Issue JAR_SIG_PARSE_EXCEPTION
String
)Throwable
)public static final ApkVerifier.Issue JAR_SIG_MALFORMED_CERTIFICATE
String
)Throwable
)public static final ApkVerifier.Issue JAR_SIG_DID_NOT_VERIFY
String
)String
)public static final ApkVerifier.Issue JAR_SIG_NO_SIGNERS
String
)public static final ApkVerifier.Issue JAR_SIG_DUPLICATE_SIG_FILE_SECTION
String
)String
)public static final ApkVerifier.Issue JAR_SIG_MISSING_VERSION_ATTR_IN_SIG_FILE
String
)public static final ApkVerifier.Issue JAR_SIG_UNKNOWN_APK_SIG_SCHEME_ID
String
)public static final ApkVerifier.Issue JAR_SIG_MISSING_APK_SIG_REFERENCED
String
)public static final ApkVerifier.Issue JAR_SIG_UNPROTECTED_ZIP_ENTRY
String
)public static final ApkVerifier.Issue JAR_SIG_MISSING
public static final ApkVerifier.Issue V2_SIG_MISSING
public static final ApkVerifier.Issue V2_SIG_MALFORMED_SIGNERS
public static final ApkVerifier.Issue V2_SIG_MALFORMED_SIGNER
public static final ApkVerifier.Issue V2_SIG_MALFORMED_PUBLIC_KEY
Throwable
)public static final ApkVerifier.Issue V2_SIG_MALFORMED_CERTIFICATE
0
-based) of the certificate in the signer's list of
certificates (Integer
)1
-based) of the certificate in the signer's
list of certificates (Integer
)Throwable
)public static final ApkVerifier.Issue V2_SIG_MALFORMED_SIGNATURE
1
) (Integer
)public static final ApkVerifier.Issue V2_SIG_MALFORMED_DIGEST
1
) (Integer
)public static final ApkVerifier.Issue V2_SIG_MALFORMED_ADDITIONAL_ATTRIBUTE
1
) Integer
)public static final ApkVerifier.Issue V2_SIG_NO_SIGNERS
public static final ApkVerifier.Issue V2_SIG_UNKNOWN_SIG_ALGORITHM
Integer
)public static final ApkVerifier.Issue V2_SIG_UNKNOWN_ADDITIONAL_ATTRIBUTE
Integer
)public static final ApkVerifier.Issue V2_SIG_VERIFY_EXCEPTION
SignatureAlgorithm
)Throwable
)public static final ApkVerifier.Issue V2_SIG_DID_NOT_VERIFY
SignatureAlgorithm
)public static final ApkVerifier.Issue V2_SIG_NO_SIGNATURES
public static final ApkVerifier.Issue V2_SIG_NO_SUPPORTED_SIGNATURES
public static final ApkVerifier.Issue V2_SIG_NO_CERTIFICATES
public static final ApkVerifier.Issue V2_SIG_PUBLIC_KEY_MISMATCH_BETWEEN_CERTIFICATE_AND_SIGNATURES_RECORD
String
)String
)public static final ApkVerifier.Issue V2_SIG_SIG_ALG_MISMATCH_BETWEEN_SIGNATURES_AND_DIGESTS_RECORDS
List<Integer>
)List<Integer>
)public static final ApkVerifier.Issue V2_SIG_APK_DIGEST_DID_NOT_VERIFY
ContentDigestAlgorithm
)String
)String
)public static final ApkVerifier.Issue APK_SIG_BLOCK_UNKNOWN_ENTRY_ID
Integer
)public static ApkVerifier.Issue[] values()
for (ApkVerifier.Issue c : ApkVerifier.Issue.values()) System.out.println(c);
public static ApkVerifier.Issue valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016. All rights reserved.