Home
last modified time | relevance | path

Searched refs:ApkUtils (Results 1 – 14 of 14) sorted by relevance

/tools/apksig/src/test/java/com/android/apksig/apk/
DApkUtilsTest.java42 assertEquals(1, ApkUtils.getMinSdkVersionForCodename("AAAA")); in testGetMinSdkVersionForValidCodename()
43 assertEquals(2, ApkUtils.getMinSdkVersionForCodename("CUPCAKE")); in testGetMinSdkVersionForValidCodename()
44 assertEquals(7, ApkUtils.getMinSdkVersionForCodename("FROYO")); in testGetMinSdkVersionForValidCodename()
45 assertEquals(23, ApkUtils.getMinSdkVersionForCodename("N")); in testGetMinSdkVersionForValidCodename()
46 assertEquals(23, ApkUtils.getMinSdkVersionForCodename("NMR1")); in testGetMinSdkVersionForValidCodename()
47 assertEquals(25, ApkUtils.getMinSdkVersionForCodename("OMG")); in testGetMinSdkVersionForValidCodename()
49 assertEquals(27, ApkUtils.getMinSdkVersionForCodename("QQQ")); in testGetMinSdkVersionForValidCodename()
54 ApkUtils.getMinSdkVersionForCodename(""); in testGetMinSdkVersionForEmptyCodename()
59 ApkUtils.getMinSdkVersionForCodename("1ABC"); in testGetMinSdkVersionForUnexpectedCodename()
65 assertEquals(23, ApkUtils.getMinSdkVersionFromBinaryAndroidManifest(manifest)); in testGetMinSdkVersionFromBinaryAndroidManifest()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4SchemeSigner.java24 import com.android.apksig.apk.ApkUtils;
197 ApkUtils.ZipSections zipSections; in getApkDigest()
199 zipSections = ApkUtils.findZipSections(apk); in getApkDigest()
223 private static byte[] getBestV3Digest(DataSource apk, ApkUtils.ZipSections zipSections) in getBestV3Digest()
253 private static byte[] getBestV2Digest(DataSource apk, ApkUtils.ZipSections zipSections) in getBestV2Digest()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DV1SourceStampVerifier.java23 import com.android.apksig.apk.ApkUtils;
66 ApkUtils.ZipSections zipSections, in verify()
DV2SourceStampVerifier.java24 import com.android.apksig.apk.ApkUtils;
68 ApkUtils.ZipSections zipSections, in verify()
/tools/apksig/src/main/java/com/android/apksig/
DApkSigner.java19 import static com.android.apksig.apk.ApkUtils.SOURCE_STAMP_CERTIFICATE_HASH_ZIP_ENTRY_NAME;
23 import com.android.apksig.apk.ApkUtils;
228 ApkUtils.ZipSections inputZipSections; in sign()
230 inputZipSections = ApkUtils.findZipSections(inputApk); in sign()
237 ApkUtils.ApkSigningBlock apkSigningBlockInfo = in sign()
238 ApkUtils.findApkSigningBlock(inputApk, inputZipSections); in sign()
822 DataSource apk, ApkUtils.ZipSections apkSections) in getZipCentralDirectory()
835 ByteBuffer cd, ApkUtils.ZipSections apkSections) throws ApkFormatException { in parseZipCentralDirectory()
938 return ApkUtils.getMinSdkVersionFromBinaryAndroidManifest(androidManifest); in getMinSdkVersionFromApk()
DApkVerifier.java19 import static com.android.apksig.apk.ApkUtils.SOURCE_STAMP_CERTIFICATE_HASH_ZIP_ENTRY_NAME;
20 import static com.android.apksig.apk.ApkUtils.computeSha256DigestBytes;
27 import com.android.apksig.apk.ApkUtils;
175 ApkUtils.ZipSections zipSections; in verify()
177 zipSections = ApkUtils.findZipSections(apk); in verify()
194 ApkUtils.getMinSdkVersionFromBinaryAndroidManifest(androidManifest.slice()); in verify()
614 ApkUtils.ZipSections zipSections) in getApkContentDigestFromV1SigningScheme()
657 DataSource apk, ApkUtils.ZipSections zipSections) in getAndroidManifestFromApk()
DDefaultApkSignerEngine.java19 import static com.android.apksig.apk.ApkUtils.SOURCE_STAMP_CERTIFICATE_HASH_ZIP_ENTRY_NAME;
20 import static com.android.apksig.apk.ApkUtils.computeSha256DigestBytes;
26 import com.android.apksig.apk.ApkUtils;
472 || !ApkUtils.ANDROID_MANIFEST_ZIP_ENTRY_NAME.equals(entryName); in isDebuggable()
604 && (ApkUtils.ANDROID_MANIFEST_ZIP_ENTRY_NAME.equals(entryName))) { in outputJarEntry()
1126 + ApkUtils.ANDROID_MANIFEST_ZIP_ENTRY_NAME in isOutputApkDebuggable()
1136 ApkUtils.getDebuggableFromBinaryAndroidManifest( in isOutputApkDebuggable()
DSigningCertificateLineage.java22 import com.android.apksig.apk.ApkUtils;
190 ApkUtils.ZipSections zipSections = ApkUtils.findZipSections(apk); in readFromApkDataSource()
/tools/apksig/src/test/java/com/android/apksig/
DApkSignerTest.java19 import static com.android.apksig.apk.ApkUtils.SOURCE_STAMP_CERTIFICATE_HASH_ZIP_ENTRY_NAME;
20 import static com.android.apksig.apk.ApkUtils.findZipSections;
31 import com.android.apksig.apk.ApkUtils;
1019 ApkUtils.ZipSections zipSections = findZipSections(signedApk); in testSignApk_stampFile()
1124 ApkUtils.ZipSections zipSections = ApkUtils.findZipSections(signedApk); in testSignApk_stampBlock_noStampGenerated()
1253 ApkUtils.ZipSections zipSections = ApkUtils.findZipSections(apk); in getSignatureInfoFromApk()
/tools/apksig/src/main/java/com/android/apksig/apk/
DApkUtils.java39 public abstract class ApkUtils { class
49 private ApkUtils() {} in ApkUtils() method in ApkUtils
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java21 import com.android.apksig.apk.ApkUtils;
93 ApkUtils.ZipSections zipSections, in verify()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeVerifier.java25 import com.android.apksig.apk.ApkUtils;
100 ApkUtils.ZipSections zipSections, in verify()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java27 import com.android.apksig.apk.ApkUtils;
977 DataSource apk, ApkUtils.ZipSections zipSections, int blockId, Result result) in findSignature()
983 ApkUtils.ApkSigningBlock apkSigningBlockInfo = in findSignature()
984 ApkUtils.findApkSigningBlock(apk, zipSections); in findSignature()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java28 import com.android.apksig.apk.ApkUtils;
108 ApkUtils.ZipSections apkSections, in verify()
1240 ApkUtils.ZipSections apkSections) in parseZipCentralDirectory()