Home
last modified time | relevance | path

Searched refs:ApkUtils (Results 1 – 13 of 13) 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/
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;
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 …]
DApkSigner.java19 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()
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;
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()
DSigningCertificateLineage.java22 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/
DV4SchemeSigner.java23 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/
DV3SchemeVerifier.java25 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/
DApkUtils.java39 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/
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;
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/
DV1SourceStampVerifier.java23 import com.android.apksig.apk.ApkUtils;
66 ApkUtils.ZipSections zipSections, in verify()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java23 import com.android.apksig.apk.ApkUtils;
92 ApkUtils.ZipSections zipSections, in verify()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java29 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/
DApkSigningBlockUtils.java27 import com.android.apksig.apk.ApkUtils;
792 DataSource apk, ApkUtils.ZipSections zipSections, int blockId, Result result) in findSignature()