Home
last modified time | relevance | path

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

12

/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/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java114 int minSdkVersion, in verify() argument
116 if (minSdkVersion > maxSdkVersion) { in verify()
118 "minSdkVersion (" + minSdkVersion + ") > maxSdkVersion (" + maxSdkVersion in verify()
139 minSdkVersion, in verify()
224 int minSdkVersion, in verify() argument
321 apk, cdStartOffset, minSdkVersion, maxSdkVersion); in verify()
342 minSdkVersion, in verify()
380 minSdkVersion, in verify()
473 DataSource apk, long cdStartOffset, int minSdkVersion, int maxSdkVersion) in verifySigBlockAgainstSigFile() argument
526 if (minSdkVersion < AndroidSdkVersion.N) { in verifySigBlockAgainstSigFile()
[all …]
DV1SchemeSigner.java114 PublicKey signingKey, int minSdkVersion) throws InvalidKeyException { in getSuggestedSignatureDigestAlgorithm() argument
118 if (minSdkVersion < 18) { in getSuggestedSignatureDigestAlgorithm()
124 if (minSdkVersion < 21) { in getSuggestedSignatureDigestAlgorithm()
130 if (minSdkVersion < 18) { in getSuggestedSignatureDigestAlgorithm()
/tools/ndkports/buildSrc/src/main/kotlin/com/android/ndkports/
DNdkPortsPlugin.kt23 abstract val minSdkVersion: Property<Int> in <lambda>() constant in com.android.ndkports.NdkPortsExtension
84 minSdkVersion.set(extension.minSdkVersion) in createTasks()
112 minSdkVersion.set(extension.minSdkVersion) in createTasks()
138 minSdkVersion.set(extension.minSdkVersion) in createTasks()
148 minSdkVersion.set(extension.minSdkVersion) in createTasks()
DDevices.kt48 fun compatibleWith(abi: Abi, minSdkVersion: Int) = in compatibleWith()
49 abi in abis && minSdkVersion <= version in compatibleWith()
87 fun findDeviceFor(abi: Abi, minSdkVersion: Int): Device? = in compatibleWith()
88 devices.find { it.compatibleWith(abi, minSdkVersion) } in compatibleWith()
DPrefabPackageBuilder.kt32 val minSdkVersion: Int, constant in com.android.ndkports.PackageData
119 api = abi.adjustMinSdkVersion(packageData.minSdkVersion), in installLibForAbi()
146 "android:minSdkVersion" to packageData.minSdkVersion, in createAndroidManifest()
DTesting.kt56 abstract val minSdkVersion: Property<Int> constant in AndroidExecutableTestTask
80 PushBuilder(abi, Toolchain(ndk, abi, minSdkVersion.get())) in push()
118 abi, abi.adjustMinSdkVersion(minSdkVersion.get()) in <lambda>()
DAbi.kt32 fun adjustMinSdkVersion(minSdkVersion: Int) = in adjustMinSdkVersion()
33 max(listOf(minSdkVersion, minSupportedVersion)) in adjustMinSdkVersion()
/tools/apksig/src/main/java/com/android/apksig/
DApkVerifier.java108 Integer minSdkVersion, in ApkVerifier() argument
113 mMinSdkVersion = minSdkVersion; in ApkVerifier()
182 int minSdkVersion = verifyAndGetMinSdkVersion(apk, zipSections); in verify() local
212 zipSections, Math.max(minSdkVersion, MIN_SDK_WITH_V31_SUPPORT), in verify()
220 signer -> signer.minSdkVersion).min().orElse(0); in verify()
233 if (minSdkVersion < MIN_SDK_WITH_V31_SUPPORT || foundApkSigSchemeIds.isEmpty()) { in verify()
236 zipSections, Math.max(minSdkVersion, AndroidSdkVersion.P), in verify()
267 if (minSdkVersion < AndroidSdkVersion.P || foundApkSigSchemeIds.isEmpty()) { in verify()
276 Math.max(minSdkVersion, AndroidSdkVersion.N), in verify()
328 if ((minSdkVersion < AndroidSdkVersion.N) || (foundApkSigSchemeIds.isEmpty())) { in verify()
[all …]
DSigningCertificateLineage.java110 private SigningCertificateLineage(int minSdkVersion, List<SigningCertificateNode> list) { in SigningCertificateLineage() argument
111 mMinSdkVersion = minSdkVersion; in SigningCertificateLineage()
116 int minSdkVersion, SignerConfig parent, SignerCapabilities parentCapabilities, in createSigningLineage() argument
121 new SigningCertificateLineage(minSdkVersion, new ArrayList<>()); in createSigningLineage()
166 int minSdkVersion = calculateMinSdkVersion(parsedLineage); in readFromV3AttributeValue() local
167 return new SigningCertificateLineage(minSdkVersion, parsedLineage); in readFromV3AttributeValue()
483 int minSdkVersion = calculateMinSdkVersion(nodes); in read() local
484 return new SigningCertificateLineage(minSdkVersion, nodes); in read()
500 int minSdkVersion = AndroidSdkVersion.P; // lineage introduced in P in calculateMinSdkVersion() local
504 if (nodeMinSdkVersion > minSdkVersion) { in calculateMinSdkVersion()
[all …]
DDefaultApkSignerEngine.java192 int minSdkVersion, in DefaultApkSignerEngine() argument
221 mMinSdkVersion = minSdkVersion; in DefaultApkSignerEngine()
246 createV1SignerConfigs(Collections.singletonList(oldestConfig), minSdkVersion); in DefaultApkSignerEngine() local
248 createV1SignerConfigs(signerConfigs, minSdkVersion); in DefaultApkSignerEngine()
253 private void createV1SignerConfigs(List<SignerConfig> signerConfigs, int minSdkVersion) in createV1SignerConfigs() argument
278 V1SchemeSigner.getSuggestedSignatureDigestAlgorithm(publicKey, minSdkVersion); in createV1SignerConfigs()
399 config.minSdkVersion = getMinSdkFromV3SignatureAlgorithms(config.signatureAlgorithms); in processV3Configs()
408 if (config.minSdkVersion < mRotationMinSdkVersion) { in processV3Configs()
409 config.minSdkVersion = mRotationMinSdkVersion; in processV3Configs()
415 currentMinSdk = config.minSdkVersion; in processV3Configs()
[all …]
DApkSigner.java125 Integer minSdkVersion, in ApkSigner() argument
150 mMinSdkVersion = minSdkVersion; in ApkSigner()
281 int minSdkVersion; in sign() local
284 minSdkVersion = mMinSdkVersion; in sign()
287 minSdkVersion = getMinSdkVersionFromApk(inputCdRecords, inputApkLfhSection); in sign()
301 new DefaultApkSignerEngine.Builder(engineSignerConfigs, minSdkVersion) in sign()
1310 public Builder setMinSdkVersion(int minSdkVersion) { in setMinSdkVersion() argument
1312 mMinSdkVersion = minSdkVersion; in setMinSdkVersion()
1332 public Builder setMinSdkVersionForRotation(int minSdkVersion) { in setMinSdkVersionForRotation() argument
1336 if (minSdkVersion < MIN_SDK_WITH_V31_SUPPORT) { in setMinSdkVersionForRotation()
[all …]
/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.java104 int minSdkVersion, boolean verityEnabled, boolean deterministicDsaSigning) in getSuggestedSignatureAlgorithms() argument
298 signedData.minSdkVersion = signerConfig.minSdkVersion; in generateSignerBlock()
306 signer.minSdkVersion = signerConfig.minSdkVersion; in generateSignerBlock()
336 result.putInt(signer.minSdkVersion); in encodeSigner()
373 result.putInt(signedData.minSdkVersion); in encodeSignedData()
405 public int minSdkVersion; field in V3SchemeSigner.V3SignatureSchemeBlock.Signer
414 public int minSdkVersion; field in V3SchemeSigner.V3SignatureSchemeBlock.SignedData
DV3SchemeVerifier.java91 int minSdkVersion, in V3SchemeVerifier() argument
101 mMinSdkVersion = minSdkVersion; in V3SchemeVerifier()
135 int minSdkVersion, in verify() argument
138 return new V3SchemeVerifier.Builder(apk, zipSections, minSdkVersion, maxSdkVersion) in verify()
185 sortedSigners.put(signer.minSdkVersion, signer); in verify()
197 int currentMin = signer.minSdkVersion; in verify()
351 result.minSdkVersion = parsedMinSdkVersion; in parseSigner()
396 supportedSignatures, result.minSdkVersion, result.maxSdkVersion); in parseSigner()
628 public Builder(DataSource apk, ApkUtils.ZipSections zipSections, int minSdkVersion, in Builder() argument
632 mMinSdkVersion = minSdkVersion; in Builder()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DSourceStampVerifier.java84 int minSdkVersion, in verifyV1SourceStamp() argument
97 minSdkVersion, in verifyV1SourceStamp()
119 int minSdkVersion, in verifyV2SourceStamp() argument
154 minSdkVersion, in verifyV2SourceStamp() local
173 verifySourceStampSignature(stampAttributeBytes, minSdkVersion, maxSdkVersion, in verifyV2SourceStamp()
224 int minSdkVersion, in verifySourceStampSignature() argument
262 supportedSignatures, minSdkVersion, maxSdkVersion, true); in verifySourceStampSignature()
DV1SourceStampVerifier.java69 int minSdkVersion, in verify() argument
83 minSdkVersion, in verify()
99 int minSdkVersion, in verify() argument
119 minSdkVersion, in verify()
DV2SourceStampVerifier.java75 int minSdkVersion, in verify() argument
88 minSdkVersion, in verify()
104 int minSdkVersion, in verify() argument
120 minSdkVersion, in verify()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java95 int minSdkVersion, in verify() argument
119 minSdkVersion, in verify()
142 int minSdkVersion, in verify() argument
152 minSdkVersion, in verify()
182 int minSdkVersion, in parseSigners() argument
220 minSdkVersion, in parseSigners()
251 int minSdkVersion, in parseSigner() argument
296 supportedSignatures, minSdkVersion, maxSdkVersion); in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/apk/
DApkUtils.java266 int minSdkVersion = 1; in getMinSdkVersionFromBinaryAndroidManifest() local
272 minSdkVersion = parser.getAttributeIntValue(i); in getMinSdkVersionFromBinaryAndroidManifest()
275 minSdkVersion = in getMinSdkVersionFromBinaryAndroidManifest()
290 result = Math.max(result, minSdkVersion); in getMinSdkVersionFromBinaryAndroidManifest()
553 int minSdkVersion = 1; in getTargetSdkVersionFromBinaryAndroidManifest() local
563 minSdkVersion = getMinSdkVersionFromBinaryAndroidManifest(androidManifestContents); in getTargetSdkVersionFromBinaryAndroidManifest()
568 return minSdkVersion; in getTargetSdkVersionFromBinaryAndroidManifest()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DCodebase.kt269 private var minSdkVersion: MinSdkVersion? = null variable in com.android.tools.metalava.model.DefaultCodebase
304 if (minSdkVersion == null) { in getMinSdkVersion()
306 minSdkVersion = UnsetMinSdkVersion in getMinSdkVersion()
307 return minSdkVersion!! in getMinSdkVersion()
309 minSdkVersion = try { in getMinSdkVersion()
323 return minSdkVersion!! in getMinSdkVersion()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DApkSignerTool.java151 int minSdkVersion = 1; in sign() local
180 minSdkVersion = optionsParser.getRequiredIntValue("Mininimum API Level"); in sign()
318 if ((minSdkVersionSpecified) && (minSdkVersion > maxSdkVersion)) { in sign()
320 "Min API Level (" + minSdkVersion + ") > max API Level (" + maxSdkVersion in sign()
381 apkSignerBuilder.setMinSdkVersion(minSdkVersion); in sign()
462 int minSdkVersion = 1; in verify() local
479 minSdkVersion = optionsParser.getRequiredIntValue("Mininimum API Level"); in verify()
538 && (minSdkVersion > maxSdkVersion)) { in verify()
540 "Min API Level (" + minSdkVersion + ") > max API Level (" + maxSdkVersion in verify()
546 apkVerifierBuilder.setMinCheckedPlatformVersion(minSdkVersion); in verify()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtilsLite.java146 List<T> signatures, int minSdkVersion, int maxSdkVersion) in getSignaturesToVerify() argument
148 return getSignaturesToVerify(signatures, minSdkVersion, maxSdkVersion, false); in getSignaturesToVerify()
167 List<T> signatures, int minSdkVersion, int maxSdkVersion, in getSignaturesToVerify() argument
201 if (minSdkVersion < minProvidedSignaturesVersion) { in getSignaturesToVerify()
204 " > minSdkVersion " + minSdkVersion); in getSignaturesToVerify()

12