/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/ |
D | SignatureAlgorithm.java | 41 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()
|
D | SigningExtension.java | 79 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/ |
D | V1SchemeVerifier.java | 114 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 …]
|
D | V1SchemeSigner.java | 114 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/ |
D | NdkPortsPlugin.kt | 23 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()
|
D | Devices.kt | 48 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()
|
D | PrefabPackageBuilder.kt | 32 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()
|
D | Testing.kt | 56 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>()
|
D | Abi.kt | 32 fun adjustMinSdkVersion(minSdkVersion: Int) = in adjustMinSdkVersion() 33 max(listOf(minSdkVersion, minSupportedVersion)) in adjustMinSdkVersion()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 108 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 …]
|
D | SigningCertificateLineage.java | 110 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 …]
|
D | DefaultApkSignerEngine.java | 192 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 …]
|
D | ApkSigner.java | 125 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/ |
D | ApkCreatorFactory.java | 92 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()
|
D | ZFiles.java | 101 int minSdkVersion) in apk() argument 120 minSdkVersion, in apk()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeSigner.java | 104 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
|
D | V3SchemeVerifier.java | 91 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/ |
D | SourceStampVerifier.java | 84 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()
|
D | V1SourceStampVerifier.java | 69 int minSdkVersion, in verify() argument 83 minSdkVersion, in verify() 99 int minSdkVersion, in verify() argument 119 minSdkVersion, in verify()
|
D | V2SourceStampVerifier.java | 75 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/ |
D | V2SchemeVerifier.java | 95 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/ |
D | ApkUtils.java | 266 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/ |
D | Codebase.kt | 269 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/ |
D | ApkSignerTool.java | 151 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/ |
D | ApkSigningBlockUtilsLite.java | 146 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()
|