/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/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/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 | Abi.kt | 32 fun adjustMinSdkVersion(minSdkVersion: Int) = in adjustMinSdkVersion() 33 max(listOf(minSdkVersion, minSupportedVersion)) in adjustMinSdkVersion()
|
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 | PortTask.kt | 32 abstract val minSdkVersion: Property<Int> constant in com.android.ndkports.PortTask 78 val api = abi.adjustMinSdkVersion(minSdkVersion.get()) in buildDirectoryFor()
|
/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() 410 public int minSdkVersion; field in V3SchemeSigner.V3SignatureSchemeBlock.Signer 419 public int minSdkVersion; field in V3SchemeSigner.V3SignatureSchemeBlock.SignedData 488 public Builder setMinSdkVersionForV31(int minSdkVersion) { in setMinSdkVersionForV31() argument 489 if (minSdkVersion == V3SchemeConstants.DEV_RELEASE) { in setMinSdkVersionForV31() 490 minSdkVersion = V3SchemeConstants.PROD_RELEASE; in setMinSdkVersionForV31() [all …]
|
D | V3SchemeVerifier.java | 92 int minSdkVersion, in V3SchemeVerifier() argument 102 mMinSdkVersion = minSdkVersion; in V3SchemeVerifier() 136 int minSdkVersion, in verify() argument 139 return new V3SchemeVerifier.Builder(apk, zipSections, minSdkVersion, maxSdkVersion) in verify() 198 int currentMin = signer.minSdkVersion; in verify() 355 result.minSdkVersion = parsedMinSdkVersion; in parseSigner() 400 supportedSignatures, result.minSdkVersion, result.maxSdkVersion); in parseSigner() 644 public Builder(DataSource apk, ApkUtils.ZipSections zipSections, int minSdkVersion, in Builder() argument 648 mMinSdkVersion = minSdkVersion; in Builder()
|
/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 …]
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | DefaultApkSignerEngine.java | 194 int minSdkVersion, in DefaultApkSignerEngine() argument 223 mMinSdkVersion = minSdkVersion; in DefaultApkSignerEngine() 247 createV1SignerConfigs(Collections.singletonList(oldestConfig), minSdkVersion); in DefaultApkSignerEngine() local 249 createV1SignerConfigs(signerConfigs, minSdkVersion); in DefaultApkSignerEngine() 254 private void createV1SignerConfigs(List<SignerConfig> signerConfigs, int minSdkVersion) in createV1SignerConfigs() argument 279 V1SchemeSigner.getSuggestedSignatureDigestAlgorithm(publicKey, minSdkVersion); in createV1SignerConfigs() 385 config.maxSdkVersion = prevSigner.minSdkVersion; in processV3Configs() 390 if (config.minSdkVersion == V3SchemeConstants.DEV_RELEASE) { in processV3Configs() 394 config.minSdkVersion = V3SchemeConstants.PROD_RELEASE; in processV3Configs() 396 } else if (config.minSdkVersion == 0) { in processV3Configs() [all …]
|
D | SigningCertificateLineage.java | 110 private SigningCertificateLineage(int minSdkVersion, List<SigningCertificateNode> list) { in SigningCertificateLineage() argument 111 mMinSdkVersion = minSdkVersion; in SigningCertificateLineage() 118 private static SigningCertificateLineage createSigningLineage(int minSdkVersion, in createSigningLineage() argument 121 minSdkVersion, new ArrayList<>()); in createSigningLineage() 126 int minSdkVersion, SignerConfig parent, SignerCapabilities parentCapabilities, in createSigningLineage() argument 131 new SigningCertificateLineage(minSdkVersion, new ArrayList<>()); in createSigningLineage() 176 int minSdkVersion = calculateMinSdkVersion(parsedLineage); in readFromV3AttributeValue() local 177 return new SigningCertificateLineage(minSdkVersion, parsedLineage); in readFromV3AttributeValue() 528 int minSdkVersion = calculateMinSdkVersion(nodes); in read() local 529 return new SigningCertificateLineage(minSdkVersion, nodes); in read() [all …]
|
D | ApkSigner.java | 132 Integer minSdkVersion, in ApkSigner() argument 161 mMinSdkVersion = minSdkVersion; in ApkSigner() 295 int minSdkVersion; in sign() local 298 minSdkVersion = mMinSdkVersion; in sign() 301 minSdkVersion = getMinSdkVersionFromApk(inputCdRecords, inputApkLfhSection); in sign() 322 new DefaultApkSignerEngine.Builder(engineSignerConfigs, minSdkVersion) in sign() 1184 public Builder setMinSdkVersion(int minSdkVersion) { in setMinSdkVersion() argument 1185 return setLineageForMinSdkVersion(null, minSdkVersion); in setMinSdkVersion() 1218 int minSdkVersion) { in setLineageForMinSdkVersion() argument 1219 if (minSdkVersion < AndroidSdkVersion.P) { in setLineageForMinSdkVersion() [all …]
|
D | ApkVerifier.java | 122 Integer minSdkVersion, in ApkVerifier() argument 127 mMinSdkVersion = minSdkVersion; in ApkVerifier() 196 int minSdkVersion = verifyAndGetMinSdkVersion(apk, zipSections); in verify() local 226 zipSections, Math.max(minSdkVersion, MIN_SDK_WITH_V31_SUPPORT), in verify() 234 signer -> signer.minSdkVersion).min().orElse(0); in verify() 252 zipSections, Math.max(minSdkVersion, AndroidSdkVersion.P), in verify() 283 if (minSdkVersion < AndroidSdkVersion.P || foundApkSigSchemeIds.isEmpty()) { in verify() 292 Math.max(minSdkVersion, AndroidSdkVersion.N), in verify() 344 if ((minSdkVersion < AndroidSdkVersion.N) || (foundApkSigSchemeIds.isEmpty())) { in verify() 351 minSdkVersion, in verify() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
D | V1SourceStampVerifier.java | 69 int minSdkVersion, in verify() argument 83 minSdkVersion, in verify() 99 int minSdkVersion, in verify() argument 119 minSdkVersion, in verify()
|
D | SourceStampVerifier.java | 84 int minSdkVersion, in verifyV1SourceStamp() argument 97 minSdkVersion, in verifyV1SourceStamp() 119 int minSdkVersion, in verifyV2SourceStamp() argument 155 minSdkVersion, in verifyV2SourceStamp() local 174 verifySourceStampSignature(stampAttributeBytes, minSdkVersion, maxSdkVersion, in verifyV2SourceStamp() 225 int minSdkVersion, in verifySourceStampSignature() argument 263 supportedSignatures, minSdkVersion, maxSdkVersion, true); in verifySourceStampSignature()
|
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/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/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/tradefederation/core/src/com/android/tradefed/testtype/suite/module/ |
D | MinSdkModuleController.java | 37 protected MinSdkModuleController(int minSdkVersion) { in MinSdkModuleController() argument 38 mMinSdkVersion = minSdkVersion; in MinSdkModuleController()
|
/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()
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | ApkSignerTool.java | 157 int minSdkVersion = 1; in sign() local 186 minSdkVersion = optionsParser.getRequiredIntValue("Mininimum API Level"); in sign() 350 if ((minSdkVersionSpecified) && (minSdkVersion > maxSdkVersion)) { in sign() 352 "Min API Level (" + minSdkVersion + ") > max API Level (" + maxSdkVersion in sign() 417 apkSignerBuilder.setMinSdkVersion(minSdkVersion); in sign() 492 int minSdkVersion = signer.getMinSdkVersion(); in getSignerConfig() local 493 if (minSdkVersion > 0) { in getSignerConfig() 494 signerConfigBuilder.setLineageForMinSdkVersion(lineage, minSdkVersion); in getSignerConfig() 508 int minSdkVersion = 1; in verify() local 525 minSdkVersion = optionsParser.getRequiredIntValue("Mininimum API Level"); in verify() [all …]
|