Home
last modified time | relevance | path

Searched refs:minSdkVersion (Results 1 – 20 of 20) sorted by relevance

/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DSignatureAlgorithm.java41 public final int minSdkVersion; field in SignatureAlgorithm
57 … @Nonnull String keyAlgorithm, int minSdkVersion, @Nonnull String signatureAlgorithmSuffix) { in SignatureAlgorithm() argument
59 this.minSdkVersion = minSdkVersion; in SignatureAlgorithm()
75 int minSdkVersion) throws NoSuchAlgorithmException { in fromKeyAlgorithm() argument
78 if (alg.minSdkVersion > minSdkVersion) { in fromKeyAlgorithm()
80 + " keys are not supported on minSdkVersion " + minSdkVersion in fromKeyAlgorithm()
82 + alg.minSdkVersion); in fromKeyAlgorithm()
DSigningExtension.java79 private final int minSdkVersion; field in SigningExtension
135 int minSdkVersion, in SigningExtension() argument
144 new DefaultApkSignerEngine.Builder(ImmutableList.of(signerConfig), minSdkVersion) in SigningExtension()
150 this.minSdkVersion = minSdkVersion; in SigningExtension()
200 .setMinCheckedPlatformVersion(minSdkVersion) in isCurrentSignatureAsRequested()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zfile/
DApkCreatorFactory.java92 private final int minSdkVersion; field in ApkCreatorFactory.CreationData
134 int minSdkVersion, in CreationData() argument
139 Preconditions.checkArgument(minSdkVersion >= 0, "minSdkVersion < 0"); in CreationData()
148 this.minSdkVersion = minSdkVersion; in CreationData()
227 return minSdkVersion; in getMinSdkVersion()
DZFiles.java101 int minSdkVersion) in apk() argument
120 minSdkVersion, in apk()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java78 PublicKey signingKey, int minSdkVersion, boolean apkSigningBlockPaddingSupported) in getSuggestedSignatureAlgorithms() argument
204 signedData.minSdkVersion = signerConfig.minSdkVersion; in generateSignerBlock()
212 signer.minSdkVersion = signerConfig.minSdkVersion; in generateSignerBlock()
248 result.putInt(signer.minSdkVersion); in encodeSigner()
290 result.putInt(signedData.minSdkVersion); in encodeSignedData()
309 public int minSdkVersion; field in V3SchemeSigner.V3SignatureSchemeBlock.Signer
318 public int minSdkVersion; field in V3SchemeSigner.V3SignatureSchemeBlock.SignedData
DV3SchemeVerifier.java99 int minSdkVersion, in verify() argument
117 if (minSdkVersion < AndroidSdkVersion.P) { in verify()
118 minSdkVersion = AndroidSdkVersion.P; in verify()
125 minSdkVersion, in verify()
145 int minSdkVersion, in verify() argument
163 sortedSigners.put(signer.minSdkVersion, signer); in verify()
175 int currentMin = signer.minSdkVersion; in verify()
201 if (firstMin > minSdkVersion || lastMax < maxSdkVersion) { in verify()
294 result.minSdkVersion = parsedMinSdkVersion; in parseSigner()
339 supportedSignatures, result.minSdkVersion, result.maxSdkVersion); in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java105 private SigningCertificateLineage(int minSdkVersion, List<SigningCertificateNode> list) { in SigningCertificateLineage() argument
106 mMinSdkVersion = minSdkVersion; in SigningCertificateLineage()
111 int minSdkVersion, SignerConfig parent, SignerCapabilities parentCapabilities, in createSigningLineage() argument
116 new SigningCertificateLineage(minSdkVersion, new ArrayList<>()); in createSigningLineage()
156 int minSdkVersion = calculateMinSdkVersion(parsedLineage); in readFromV3AttributeValue() local
157 return new SigningCertificateLineage(minSdkVersion, parsedLineage); in readFromV3AttributeValue()
330 int minSdkVersion = calculateMinSdkVersion(nodes); in read() local
331 return new SigningCertificateLineage(minSdkVersion, nodes); in read()
347 int minSdkVersion = AndroidSdkVersion.P; // lineage introduced in P in calculateMinSdkVersion() local
351 if (nodeMinSdkVersion > minSdkVersion) { in calculateMinSdkVersion()
[all …]
DApkVerifier.java83 Integer minSdkVersion, in ApkVerifier() argument
87 mMinSdkVersion = minSdkVersion; in ApkVerifier()
168 int minSdkVersion; in verify() local
171 minSdkVersion = mMinSdkVersion; in verify()
177 minSdkVersion = in verify()
179 if (minSdkVersion > mMaxSdkVersion) { in verify()
181 "minSdkVersion from APK (" + minSdkVersion + ") > maxSdkVersion (" in verify()
201 Math.max(minSdkVersion, AndroidSdkVersion.P), in verify()
217 if (minSdkVersion < AndroidSdkVersion.P || foundApkSigSchemeIds.isEmpty()) { in verify()
225 Math.max(minSdkVersion, AndroidSdkVersion.N), in verify()
[all …]
DApkSigner.java108 Integer minSdkVersion, in ApkSigner() argument
124 mMinSdkVersion = minSdkVersion; in ApkSigner()
247 int minSdkVersion; in sign() local
250 minSdkVersion = mMinSdkVersion; in sign()
253 minSdkVersion = getMinSdkVersionFromApk(inputCdRecords, inputApkLfhSection); in sign()
266 new DefaultApkSignerEngine.Builder(engineSignerConfigs, minSdkVersion) in sign()
1016 public Builder setMinSdkVersion(int minSdkVersion) { in setMinSdkVersion() argument
1018 mMinSdkVersion = minSdkVersion; in setMinSdkVersion()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java94 int minSdkVersion, in verify() argument
117 minSdkVersion, in verify()
139 int minSdkVersion, in verify() argument
149 minSdkVersion, in verify()
179 int minSdkVersion, in parseSigners() argument
217 minSdkVersion, in parseSigners()
245 int minSdkVersion, in parseSigner() argument
291 supportedSignatures, minSdkVersion, maxSdkVersion); in parseSigner()
DV2SchemeSigner.java89 PublicKey signingKey, int minSdkVersion, boolean apkSigningBlockPaddingSupported) in getSuggestedSignatureAlgorithms() argument
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java109 int minSdkVersion, in verify() argument
111 if (minSdkVersion > maxSdkVersion) { in verify()
113 "minSdkVersion (" + minSdkVersion + ") > maxSdkVersion (" + maxSdkVersion in verify()
134 minSdkVersion, in verify()
181 int minSdkVersion, in verify() argument
286 apk, cdStartOffset, minSdkVersion, maxSdkVersion); in verify()
307 minSdkVersion, in verify()
345 minSdkVersion, in verify()
438 DataSource apk, long cdStartOffset, int minSdkVersion, int maxSdkVersion) in verifySigBlockAgainstSigFile() argument
491 if (minSdkVersion < AndroidSdkVersion.N) { in verifySigBlockAgainstSigFile()
[all …]
DV1SchemeSigner.java115 PublicKey signingKey, int minSdkVersion) throws InvalidKeyException { in getSuggestedSignatureDigestAlgorithm() argument
119 if (minSdkVersion < 18) { in getSuggestedSignatureDigestAlgorithm()
125 if (minSdkVersion < 21) { in getSuggestedSignatureDigestAlgorithm()
131 if (minSdkVersion < 18) { in getSuggestedSignatureDigestAlgorithm()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DSignatureAlgorithm.java143 int minSdkVersion) { in SignatureAlgorithm() argument
148 mMinSdkVersion = minSdkVersion; in SignatureAlgorithm()
DApkSigningBlockUtils.java826 List<SupportedSignature> signatures, int minSdkVersion, int maxSdkVersion) in getSignaturesToVerify() argument
857 if (minSdkVersion < minProvidedSignaturesVersion) { in getSignaturesToVerify()
860 " < minSdkVersion " + minSdkVersion); in getSignaturesToVerify()
967 public int minSdkVersion; field in ApkSigningBlockUtils.SignerConfig
1026 public int minSdkVersion; field in ApkSigningBlockUtils.Result.SignerInfo
/tools/tradefederation/core/src/com/android/tradefed/util/xml/
DAndroidManifestWriter.java70 public boolean setMinSdkVersion(String minSdkVersion) { in setMinSdkVersion() argument
82 minSdkAttr.setValue(minSdkVersion); in setMinSdkVersion()
/tools/apksig/src/main/java/com/android/apksig/apk/
DApkUtils.java353 int minSdkVersion = 1; in getMinSdkVersionFromBinaryAndroidManifest() local
359 minSdkVersion = parser.getAttributeIntValue(i); in getMinSdkVersionFromBinaryAndroidManifest()
362 minSdkVersion = in getMinSdkVersionFromBinaryAndroidManifest()
377 result = Math.max(result, minSdkVersion); in getMinSdkVersionFromBinaryAndroidManifest()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DApkSignerTool.java123 int minSdkVersion = 1; in sign() local
143 minSdkVersion = optionsParser.getRequiredIntValue("Mininimum API Level"); in sign()
251 if ((minSdkVersionSpecified) && (minSdkVersion > maxSdkVersion)) { in sign()
253 "Min API Level (" + minSdkVersion + ") > max API Level (" + maxSdkVersion in sign()
326 apkSignerBuilder.setMinSdkVersion(minSdkVersion); in sign()
358 int minSdkVersion = 1; in verify() local
371 minSdkVersion = optionsParser.getRequiredIntValue("Mininimum API Level"); in verify()
415 && (minSdkVersion > maxSdkVersion)) { in verify()
417 "Min API Level (" + minSdkVersion + ") > max API Level (" + maxSdkVersion in verify()
423 apkVerifierBuilder.setMinCheckedPlatformVersion(minSdkVersion); in verify()
Dhelp_verify.txt5 by the APK (as declared using minSdkVersion in AndroidManifest.xml). Use
/tools/apksig/src/test/java/com/android/apksig/
DApkVerifierTest.java864 String apkFilenameInResources, int minSdkVersion) in verifyForMinSdkVersion() argument
866 return verify(apkFilenameInResources, minSdkVersion, null); in verifyForMinSdkVersion()
1014 String apkFilenameInResources, String[] args, int minSdkVersion) in assertVerifiedForEachForMinSdkVersion() argument
1016 assertVerifiedForEach(apkFilenameInResources, args, minSdkVersion, null); in assertVerifiedForEachForMinSdkVersion()