/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/ |
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; 21 import static com.android.apksig.apk.ApkUtils.getTargetSandboxVersionFromBinaryAndroidManifest; 22 import static com.android.apksig.apk.ApkUtils.getTargetSdkVersionFromBinaryAndroidManifest; 30 import com.android.apksig.apk.ApkUtils; 173 ApkUtils.ZipSections zipSections; in verify() 175 zipSections = ApkUtils.findZipSections(apk); in verify() 606 private int verifyAndGetMinSdkVersion(DataSource apk, ApkUtils.ZipSections zipSections) in verifyAndGetMinSdkVersion() 627 ApkUtils.getMinSdkVersionFromBinaryAndroidManifest(androidManifest.slice()); in verifyAndGetMinSdkVersion() 718 ApkUtils.ZipSections zipSections = ApkUtils.findZipSections(apk); in verifySourceStamp() [all …]
|
D | ApkSigner.java | 19 import static com.android.apksig.apk.ApkUtils.SOURCE_STAMP_CERTIFICATE_HASH_ZIP_ENTRY_NAME; 25 import com.android.apksig.apk.ApkUtils; 240 ApkUtils.ZipSections inputZipSections; in sign() 242 inputZipSections = ApkUtils.findZipSections(inputApk); in sign() 249 ApkUtils.ApkSigningBlock apkSigningBlockInfo = in sign() 250 ApkUtils.findApkSigningBlock(inputApk, inputZipSections); in sign() 855 DataSource apk, ApkUtils.ZipSections apkSections) in getZipCentralDirectory() 868 ByteBuffer cd, ApkUtils.ZipSections apkSections) throws ApkFormatException { in parseZipCentralDirectory() 971 return ApkUtils.getMinSdkVersionFromBinaryAndroidManifest(androidManifest); in getMinSdkVersionFromApk()
|
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; 29 import com.android.apksig.apk.ApkUtils; 584 || !ApkUtils.ANDROID_MANIFEST_ZIP_ENTRY_NAME.equals(entryName); in isDebuggable() 797 && (ApkUtils.ANDROID_MANIFEST_ZIP_ENTRY_NAME.equals(entryName))) { in outputJarEntry() 1343 + ApkUtils.ANDROID_MANIFEST_ZIP_ENTRY_NAME in isOutputApkDebuggable() 1353 ApkUtils.getDebuggableFromBinaryAndroidManifest( in isOutputApkDebuggable()
|
D | SigningCertificateLineage.java | 22 import com.android.apksig.apk.ApkUtils; 194 ApkUtils.ZipSections zipSections; in readFromApkDataSource() 196 zipSections = ApkUtils.findZipSections(apk); in readFromApkDataSource()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4SchemeSigner.java | 23 import com.android.apksig.apk.ApkUtils; 235 ApkUtils.ZipSections zipSections; in getApkDigest() 237 zipSections = ApkUtils.findZipSections(apk); in getApkDigest() 261 private static byte[] getBestV3Digest(DataSource apk, ApkUtils.ZipSections zipSections) in getBestV3Digest() 291 private static byte[] getBestV2Digest(DataSource apk, ApkUtils.ZipSections zipSections) in getBestV2Digest()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 25 import com.android.apksig.apk.ApkUtils; 74 private final ApkUtils.ZipSections mZipSections; 88 ApkUtils.ZipSections zipSections, in V3SchemeVerifier() 134 ApkUtils.ZipSections zipSections, in verify() 613 private ApkUtils.ZipSections mZipSections; 628 public Builder(DataSource apk, ApkUtils.ZipSections zipSections, int minSdkVersion, in Builder()
|
/tools/apksig/src/main/java/com/android/apksig/apk/ |
D | ApkUtils.java | 39 public abstract class ApkUtils { class 50 private ApkUtils() {} in ApkUtils() method in ApkUtils 122 ApkUtils.ZipSections inputZipSections; in findApkSigningBlock() 124 inputZipSections = ApkUtils.findZipSections(apk); in findApkSigningBlock()
|
/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; 32 import com.android.apksig.apk.ApkUtils; 1226 ApkUtils.ZipSections zipSections = findZipSections(signedApk); in testSignApk_stampFile() 1335 ApkUtils.ZipSections zipSections = ApkUtils.findZipSections(signedApk); in testSignApk_stampBlock_noStampGenerated() 2093 ApkUtils.ApkSigningBlock apkSigningBlock = ApkUtils.findApkSigningBlock( in assertSigningBlockContains() 2323 ApkUtils.ZipSections zipSections = ApkUtils.findZipSections(apk); in getSignatureInfoFromApk()
|
/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()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 23 import com.android.apksig.apk.ApkUtils; 92 ApkUtils.ZipSections zipSections, in verify()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 29 import com.android.apksig.apk.ApkUtils; 111 ApkUtils.ZipSections apkSections, in verify() 1269 ApkUtils.ZipSections apkSections) in parseZipCentralDirectory()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 27 import com.android.apksig.apk.ApkUtils; 792 DataSource apk, ApkUtils.ZipSections zipSections, int blockId, Result result) in findSignature()
|