/tools/apksig/src/main/java/com/android/apksig/apk/ |
D | ApkUtils.java | 60 com.android.apksig.zip.ZipSections zipSections = ApkUtilsLite.findZipSections(apk); in findZipSections() local 62 zipSections.getZipCentralDirectoryOffset(), in findZipSections() 63 zipSections.getZipCentralDirectorySizeBytes(), in findZipSections() 64 zipSections.getZipCentralDirectoryRecordCount(), in findZipSections() 65 zipSections.getZipEndOfCentralDirectoryOffset(), in findZipSections() 66 zipSections.getZipEndOfCentralDirectory()); in findZipSections() 140 public static ApkSigningBlock findApkSigningBlock(DataSource apk, ZipSections zipSections) in findApkSigningBlock() argument 143 zipSections); in findApkSigningBlock() 171 ZipSections zipSections; in getAndroidManifest() local 173 zipSections = findZipSections(apk); in getAndroidManifest() [all …]
|
D | ApkUtilsLite.java | 95 public static ApkSigningBlock findApkSigningBlock(DataSource apk, ZipSections zipSections) in findApkSigningBlock() argument 104 long centralDirStartOffset = zipSections.getZipCentralDirectoryOffset(); in findApkSigningBlock() 106 centralDirStartOffset + zipSections.getZipCentralDirectorySizeBytes(); in findApkSigningBlock() 107 long eocdStartOffset = zipSections.getZipEndOfCentralDirectoryOffset(); in findApkSigningBlock()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 173 ApkUtils.ZipSections zipSections; in verify() local 175 zipSections = ApkUtils.findZipSections(apk); in verify() 182 int minSdkVersion = verifyAndGetMinSdkVersion(apk, zipSections); in verify() 212 zipSections, Math.max(minSdkVersion, MIN_SDK_WITH_V31_SUPPORT), in verify() 236 zipSections, Math.max(minSdkVersion, AndroidSdkVersion.P), in verify() 273 zipSections, in verify() 308 androidManifest = getAndroidManifestFromApk(apk, zipSections); in verify() 322 V1SchemeVerifier.parseZipCentralDirectory(apk, zipSections); in verify() 332 zipSections, in verify() 340 getApkContentDigestFromV1SigningScheme(cdRecords, apk, zipSections)); in verify() [all …]
|
D | SourceStampVerifier.java | 165 ZipSections zipSections = ApkUtilsLite.findZipSections(apk); in verifySourceStamp() local 168 ZipUtils.parseZipCentralDirectory(apk, zipSections); in verifySourceStamp() 183 ApkSigningBlockUtilsLite.findSignature(apk, zipSections, in verifySourceStamp() 201 zipSections.getZipCentralDirectoryOffset()); in verifySourceStamp() 218 signatureInfo = ApkSigningBlockUtilsLite.findSignature(apk, zipSections, in verifySourceStamp() 237 signatureInfo = ApkSigningBlockUtilsLite.findSignature(apk, zipSections, in verifySourceStamp() 255 getApkContentDigestFromV1SigningScheme(cdRecords, apk, zipSections, result); in verifySourceStamp() 263 zipSections, in verifySourceStamp() 430 ZipSections zipSections, in getApkContentDigestFromV1SigningScheme() argument 466 signatureBlockRecord, zipSections.getZipCentralDirectoryOffset()); in getApkContentDigestFromV1SigningScheme() [all …]
|
D | SigningCertificateLineage.java | 194 ApkUtils.ZipSections zipSections; in readFromApkDataSource() local 196 zipSections = ApkUtils.findZipSections(apk); in readFromApkDataSource() 206 ApkSigningBlockUtils.findSignature(apk, zipSections, in readFromApkDataSource() 216 ApkSigningBlockUtils.findSignature(apk, zipSections, in readFromApkDataSource()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4SchemeSigner.java | 235 ApkUtils.ZipSections zipSections; in getApkDigest() local 237 zipSections = ApkUtils.findZipSections(apk); in getApkDigest() 244 return getBestV3Digest(apk, zipSections); in getApkDigest() 251 return getBestV2Digest(apk, zipSections); in getApkDigest() 261 private static byte[] getBestV3Digest(DataSource apk, ApkUtils.ZipSections zipSections) in getBestV3Digest() argument 268 ApkSigningBlockUtils.findSignature(apk, zipSections, in getBestV3Digest() 291 private static byte[] getBestV2Digest(DataSource apk, ApkUtils.ZipSections zipSections) in getBestV2Digest() argument 299 ApkSigningBlockUtils.findSignature(apk, zipSections, in getBestV2Digest()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtilsLite.java | 56 DataSource apk, ZipSections zipSections, int blockId) in findSignature() argument 63 ApkUtilsLite.findApkSigningBlock(apk, zipSections); in findSignature() 79 zipSections.getZipCentralDirectoryOffset(), in findSignature() 80 zipSections.getZipEndOfCentralDirectoryOffset(), in findSignature() 81 zipSections.getZipEndOfCentralDirectory()); in findSignature()
|
D | ApkSigningBlockUtils.java | 792 DataSource apk, ApkUtils.ZipSections zipSections, int blockId, Result result) in findSignature() argument 795 return ApkSigningBlockUtilsLite.findSignature(apk, zipSections, blockId); in findSignature()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 88 ApkUtils.ZipSections zipSections, in V3SchemeVerifier() argument 98 mZipSections = zipSections; in V3SchemeVerifier() 134 ApkUtils.ZipSections zipSections, in verify() argument 138 return new V3SchemeVerifier.Builder(apk, zipSections, minSdkVersion, maxSdkVersion) in verify() 628 public Builder(DataSource apk, ApkUtils.ZipSections zipSections, int minSdkVersion, in Builder() argument 631 mZipSections = zipSections; in Builder()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
D | V1SourceStampVerifier.java | 66 ApkUtils.ZipSections zipSections, in verify() argument 77 apk, zipSections, V1_SOURCE_STAMP_BLOCK_ID, result); in verify()
|
D | V2SourceStampVerifier.java | 72 ZipSections zipSections, in verify() argument 82 apk, zipSections, V2_SOURCE_STAMP_BLOCK_ID); in verify()
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkSignerTest.java | 1226 ApkUtils.ZipSections zipSections = findZipSections(signedApk); in testSignApk_stampFile() local 1228 V1SchemeVerifier.parseZipCentralDirectory(signedApk, zipSections); in testSignApk_stampFile() 1239 signedApk, stampCdRecord, zipSections.getZipCentralDirectoryOffset()); in testSignApk_stampFile() 1335 ApkUtils.ZipSections zipSections = ApkUtils.findZipSections(signedApk); in testSignApk_stampBlock_noStampGenerated() local 1343 zipSections, in testSignApk_stampBlock_noStampGenerated() 2323 ApkUtils.ZipSections zipSections = ApkUtils.findZipSections(apk); in getSignatureInfoFromApk() local 2326 return ApkSigningBlockUtils.findSignature(apk, zipSections, signatureVersionBlockId, in getSignatureInfoFromApk()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 92 ApkUtils.ZipSections zipSections, in verify() argument 102 ApkSigningBlockUtils.findSignature(apk, zipSections, in verify()
|