/tools/apksig/src/test/java/com/android/apksig/apk/ |
D | ApkUtilsTest.java | 42 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/ |
D | V4SchemeSigner.java | 24 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/ |
D | V1SourceStampVerifier.java | 23 import com.android.apksig.apk.ApkUtils; 66 ApkUtils.ZipSections zipSections, in verify()
|
D | V2SourceStampVerifier.java | 24 import com.android.apksig.apk.ApkUtils; 68 ApkUtils.ZipSections zipSections, in verify()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkSigner.java | 19 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()
|
D | ApkVerifier.java | 19 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()
|
D | DefaultApkSignerEngine.java | 19 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()
|
D | SigningCertificateLineage.java | 22 import com.android.apksig.apk.ApkUtils; 190 ApkUtils.ZipSections zipSections = ApkUtils.findZipSections(apk); in readFromApkDataSource()
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkSignerTest.java | 19 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/ |
D | ApkUtils.java | 39 public abstract class ApkUtils { class 49 private ApkUtils() {} in ApkUtils() method in ApkUtils
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 21 import com.android.apksig.apk.ApkUtils; 93 ApkUtils.ZipSections zipSections, in verify()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 25 import com.android.apksig.apk.ApkUtils; 100 ApkUtils.ZipSections zipSections, in verify()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 27 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/ |
D | V1SchemeVerifier.java | 28 import com.android.apksig.apk.ApkUtils; 108 ApkUtils.ZipSections apkSections, in verify() 1240 ApkUtils.ZipSections apkSections) in parseZipCentralDirectory()
|