Home
last modified time | relevance | path

Searched refs:ApkVerificationIssue (Results 1 – 9 of 9) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/
DSourceStampVerifier.java142 result.addVerificationError(ApkVerificationIssue.UNEXPECTED_EXCEPTION, e); in verifySourceStamp()
190 ? ApkVerificationIssue.SOURCE_STAMP_SIGNATURE_BLOCK_WITHOUT_CERT_DIGEST in verifySourceStamp()
191 : ApkVerificationIssue.SOURCE_STAMP_CERT_DIGEST_AND_SIG_BLOCK_MISSING); in verifySourceStamp()
207 ApkVerificationIssue.SOURCE_STAMP_EXPECTED_DIGEST_MISMATCH, in verifySourceStamp()
271 result.addVerificationError(ApkVerificationIssue.MALFORMED_APK, e); in verifySourceStamp()
273 result.addVerificationError(ApkVerificationIssue.UNEXPECTED_EXCEPTION, e); in verifySourceStamp()
275 result.addVerificationError(ApkVerificationIssue.SOURCE_STAMP_SIG_MISSING); in verifySourceStamp()
300 result.addVerificationWarning(isV2Block ? ApkVerificationIssue.V2_SIG_MALFORMED_SIGNERS in parseSigners()
301 : ApkVerificationIssue.V3_SIG_MALFORMED_SIGNERS); in parseSigners()
305 result.addVerificationWarning(isV2Block ? ApkVerificationIssue.V2_SIG_NO_SIGNERS in parseSigners()
[all …]
DApkVerifier.java3083 public static class IssueWithParams extends ApkVerificationIssue {
3260 sVerificationIssueIdToIssue.put(ApkVerificationIssue.V2_SIG_MALFORMED_SIGNERS, in sVerificationIssueIdToIssue.put()
3262 sVerificationIssueIdToIssue.put(ApkVerificationIssue.V2_SIG_NO_SIGNERS, in sVerificationIssueIdToIssue.put()
3264 sVerificationIssueIdToIssue.put(ApkVerificationIssue.V2_SIG_MALFORMED_SIGNER, in sVerificationIssueIdToIssue.put()
3266 sVerificationIssueIdToIssue.put(ApkVerificationIssue.V2_SIG_MALFORMED_SIGNATURE, in sVerificationIssueIdToIssue.put()
3268 sVerificationIssueIdToIssue.put(ApkVerificationIssue.V2_SIG_NO_SIGNATURES, in sVerificationIssueIdToIssue.put()
3270 sVerificationIssueIdToIssue.put(ApkVerificationIssue.V2_SIG_MALFORMED_CERTIFICATE, in sVerificationIssueIdToIssue.put()
3272 sVerificationIssueIdToIssue.put(ApkVerificationIssue.V2_SIG_NO_CERTIFICATES, in sVerificationIssueIdToIssue.put()
3274 sVerificationIssueIdToIssue.put(ApkVerificationIssue.V2_SIG_MALFORMED_DIGEST, in sVerificationIssueIdToIssue.put()
3276 sVerificationIssueIdToIssue.put(ApkVerificationIssue.V3_SIG_MALFORMED_SIGNERS, in sVerificationIssueIdToIssue.put()
[all …]
DApkVerificationIssue.java23 public class ApkVerificationIssue { class
130 public ApkVerificationIssue(String format, Object... params) { in ApkVerificationIssue() method in ApkVerificationIssue
140 public ApkVerificationIssue(int issueId, Object... params) { in ApkVerificationIssue() method in ApkVerificationIssue
/tools/apksig/src/test/java/com/android/apksig/
DSourceStampVerifierTest.java108 ApkVerificationIssue.SOURCE_STAMP_SIG_MISSING); in verifySourceStamp_signatureMissing()
117ApkVerificationIssue.SOURCE_STAMP_CERTIFICATE_MISMATCH_BETWEEN_SIGNATURE_BLOCK_AND_APK); in verifySourceStamp_certificateMismatch()
168 ApkVerificationIssue.SOURCE_STAMP_DID_NOT_VERIFY); in verifySourceStamp_apkHashMismatch_v1SignatureScheme()
176 ApkVerificationIssue.SOURCE_STAMP_DID_NOT_VERIFY); in verifySourceStamp_apkHashMismatch_v2SignatureScheme()
184 ApkVerificationIssue.SOURCE_STAMP_DID_NOT_VERIFY); in verifySourceStamp_apkHashMismatch_v3SignatureScheme()
192 verificationResult, ApkVerificationIssue.SOURCE_STAMP_MALFORMED_SIGNATURE); in verifySourceStamp_malformedSignature()
212 ApkVerificationIssue.SOURCE_STAMP_EXPECTED_DIGEST_MISMATCH); in verifySourceStamp_expectedDigestMismatch()
222 ApkVerificationIssue.SOURCE_STAMP_CERT_DIGEST_AND_SIG_BLOCK_MISSING); in verifySourceStamp_noStampCertDigestNorSignatureBlock()
239 ApkVerificationIssue.SOURCE_STAMP_POR_CERT_MISMATCH); in verifySourceStamp_invalidStampLineage()
271 ApkVerificationIssue.JAR_SIG_NO_SIGNATURES); in verifySourceStamp_noApkSignature_succeeds()
[all …]
DApkVerifierTest.java1465 Field[] fields = ApkVerificationIssue.class.getFields(); in apkVerificationIssueAdapter_verifyAllBaseIssuesMapped()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DSourceStampVerifier.java23 import com.android.apksig.ApkVerificationIssue;
149 result.addWarning(ApkVerificationIssue.SOURCE_STAMP_NO_SIGNATURE); in verifyV2SourceStamp()
195 result.addWarning(ApkVerificationIssue.SOURCE_STAMP_MALFORMED_CERTIFICATE, e); in verifySourceStampCertificate()
213 ApkVerificationIssue in verifySourceStampCertificate()
241 ApkVerificationIssue.SOURCE_STAMP_UNKNOWN_SIG_ALGORITHM, in verifySourceStampSignature()
249 ApkVerificationIssue.SOURCE_STAMP_MALFORMED_SIGNATURE, signatureCount); in verifySourceStampSignature()
254 result.addWarning(ApkVerificationIssue.SOURCE_STAMP_NO_SIGNATURE); in verifySourceStampSignature()
273 result.addWarning(ApkVerificationIssue.SOURCE_STAMP_NO_SUPPORTED_SIGNATURE, in verifySourceStampSignature()
294 ApkVerificationIssue.SOURCE_STAMP_DID_NOT_VERIFY, signatureAlgorithm); in verifySourceStampSignature()
302 ApkVerificationIssue.SOURCE_STAMP_VERIFY_EXCEPTION, signatureAlgorithm, e); in verifySourceStampSignature()
[all …]
DV2SourceStampVerifier.java22 import com.android.apksig.ApkVerificationIssue;
126 signerInfo.addWarning(ApkVerificationIssue.SOURCE_STAMP_MALFORMED_SIGNATURE); in verify()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSignerInfo.java19 import com.android.apksig.ApkVerificationIssue;
34 private final List<ApkVerificationIssue> mWarnings = new ArrayList<>();
35 private final List<ApkVerificationIssue> mErrors = new ArrayList<>();
42 mErrors.add(new ApkVerificationIssue(issueId, params)); in addError()
50 mWarnings.add(new ApkVerificationIssue(issueId, params)); in addWarning()
70 public List<? extends ApkVerificationIssue> getErrors() { in getErrors()
77 public List<? extends ApkVerificationIssue> getWarnings() { in getWarnings()
DApkSigResult.java19 import com.android.apksig.ApkVerificationIssue;
34 private final List<ApkVerificationIssue> mWarnings = new ArrayList<>();
35 private final List<ApkVerificationIssue> mErrors = new ArrayList<>();
80 mErrors.add(new ApkVerificationIssue(issueId, parameters)); in addError()
88 mWarnings.add(new ApkVerificationIssue(issueId, parameters)); in addWarning()
94 public List<? extends ApkVerificationIssue> getErrors() { in getErrors()
101 public List<? extends ApkVerificationIssue> getWarnings() { in getWarnings()