/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 | 108 int minSdkVersion, in verify() argument 110 if (minSdkVersion > maxSdkVersion) { in verify() 112 "minSdkVersion (" + minSdkVersion + ") > maxSdkVersion (" + maxSdkVersion in verify() 133 minSdkVersion, in verify() 218 int minSdkVersion, in verify() argument 310 apk, cdStartOffset, minSdkVersion, maxSdkVersion); in verify() 331 minSdkVersion, in verify() 369 minSdkVersion, in verify() 462 DataSource apk, long cdStartOffset, int minSdkVersion, int maxSdkVersion) in verifySigBlockAgainstSigFile() argument 515 if (minSdkVersion < AndroidSdkVersion.N) { in verifySigBlockAgainstSigFile() [all …]
|
D | V1SchemeSigner.java | 112 PublicKey signingKey, int minSdkVersion) throws InvalidKeyException { in getSuggestedSignatureDigestAlgorithm() argument 116 if (minSdkVersion < 18) { in getSuggestedSignatureDigestAlgorithm() 122 if (minSdkVersion < 21) { in getSuggestedSignatureDigestAlgorithm() 128 if (minSdkVersion < 18) { in getSuggestedSignatureDigestAlgorithm()
|
/tools/apksig/src/main/java/com/android/apksig/ |
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() 462 int minSdkVersion = calculateMinSdkVersion(nodes); in read() local 463 return new SigningCertificateLineage(minSdkVersion, nodes); in read() 479 int minSdkVersion = AndroidSdkVersion.P; // lineage introduced in P in calculateMinSdkVersion() local 483 if (nodeMinSdkVersion > minSdkVersion) { in calculateMinSdkVersion() [all …]
|
D | ApkVerifier.java | 107 Integer minSdkVersion, in ApkVerifier() argument 112 mMinSdkVersion = minSdkVersion; in ApkVerifier() 181 int minSdkVersion = verifyAndGetMinSdkVersion(apk, zipSections); in verify() local 212 Math.max(minSdkVersion, AndroidSdkVersion.P), in verify() 231 if (minSdkVersion < AndroidSdkVersion.P || foundApkSigSchemeIds.isEmpty()) { in verify() 240 Math.max(minSdkVersion, AndroidSdkVersion.N), in verify() 292 if ((minSdkVersion < AndroidSdkVersion.N) || (foundApkSigSchemeIds.isEmpty())) { in verify() 299 minSdkVersion, in verify() 334 Math.max(minSdkVersion, AndroidSdkVersion.R), in verify() 589 int minSdkVersion = in verifyAndGetMinSdkVersion() local [all …]
|
D | DefaultApkSignerEngine.java | 186 int minSdkVersion, in DefaultApkSignerEngine() argument 213 mMinSdkVersion = minSdkVersion; in DefaultApkSignerEngine() 236 createV1SignerConfigs(Collections.singletonList(oldestConfig), minSdkVersion); in DefaultApkSignerEngine() local 238 createV1SignerConfigs(signerConfigs, minSdkVersion); in DefaultApkSignerEngine() 243 private void createV1SignerConfigs(List<SignerConfig> signerConfigs, int minSdkVersion) in createV1SignerConfigs() argument 268 V1SchemeSigner.getSuggestedSignatureDigestAlgorithm(publicKey, minSdkVersion); in createV1SignerConfigs() 360 config.minSdkVersion = getMinSdkFromV3SignatureAlgorithms(config.signatureAlgorithms); in processV3Configs() 368 currentMinSdk = config.minSdkVersion; in processV3Configs() 1659 public Builder(List<SignerConfig> signerConfigs, int minSdkVersion) { in Builder() argument 1670 mMinSdkVersion = minSdkVersion; in Builder()
|
D | ApkSigner.java | 120 Integer minSdkVersion, in ApkSigner() argument 143 mMinSdkVersion = minSdkVersion; in ApkSigner() 272 int minSdkVersion; in sign() local 275 minSdkVersion = mMinSdkVersion; in sign() 278 minSdkVersion = getMinSdkVersionFromApk(inputCdRecords, inputApkLfhSection); in sign() 292 new DefaultApkSignerEngine.Builder(engineSignerConfigs, minSdkVersion) in sign() 1297 public Builder setMinSdkVersion(int minSdkVersion) { in setMinSdkVersion() argument 1299 mMinSdkVersion = minSdkVersion; in setMinSdkVersion()
|
D | SourceStampVerifier.java | 85 int minSdkVersion, in SourceStampVerifier() argument 89 mMinSdkVersion = minSdkVersion; in SourceStampVerifier() 849 public SourceStampVerifier.Builder setMinCheckedPlatformVersion(int minSdkVersion) { in setMinCheckedPlatformVersion() argument 850 mMinSdkVersion = minSdkVersion; in setMinCheckedPlatformVersion()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeSigner.java | 77 int minSdkVersion, boolean verityEnabled, boolean deterministicDsaSigning) in getSuggestedSignatureAlgorithms() argument 226 signedData.minSdkVersion = signerConfig.minSdkVersion; in generateSignerBlock() 234 signer.minSdkVersion = signerConfig.minSdkVersion; in generateSignerBlock() 264 result.putInt(signer.minSdkVersion); in encodeSigner() 301 result.putInt(signedData.minSdkVersion); in encodeSignedData() 318 public int minSdkVersion; field in V3SchemeSigner.V3SignatureSchemeBlock.Signer 327 public int minSdkVersion; field in V3SchemeSigner.V3SignatureSchemeBlock.SignedData
|
D | V3SchemeVerifier.java | 98 int minSdkVersion, in verify() argument 116 if (minSdkVersion < AndroidSdkVersion.P) { in verify() 117 minSdkVersion = AndroidSdkVersion.P; in verify() 125 minSdkVersion, in verify() 146 int minSdkVersion, in verify() argument 164 sortedSigners.put(signer.minSdkVersion, signer); in verify() 176 int currentMin = signer.minSdkVersion; in verify() 202 if (firstMin > minSdkVersion || lastMax < maxSdkVersion) { in verify() 295 result.minSdkVersion = parsedMinSdkVersion; in parseSigner() 340 supportedSignatures, result.minSdkVersion, result.maxSdkVersion); in parseSigner()
|
/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/v2/ |
D | V2SchemeVerifier.java | 93 int minSdkVersion, in verify() argument 117 minSdkVersion, in verify() 140 int minSdkVersion, in verify() argument 150 minSdkVersion, in verify() 180 int minSdkVersion, in parseSigners() argument 218 minSdkVersion, in parseSigners() 246 int minSdkVersion, in parseSigner() argument 291 supportedSignatures, minSdkVersion, maxSdkVersion); in parseSigner()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
D | SourceStampVerifier.java | 83 int minSdkVersion, in verifyV1SourceStamp() argument 96 minSdkVersion, in verifyV1SourceStamp() 118 int minSdkVersion, in verifyV2SourceStamp() argument 146 minSdkVersion, in verifyV2SourceStamp() local 165 verifySourceStampSignature(stampAttributeBytes, minSdkVersion, maxSdkVersion, in verifyV2SourceStamp() 216 int minSdkVersion, in verifySourceStampSignature() argument 254 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/apk/ |
D | ApkUtils.java | 255 int minSdkVersion = 1; in getMinSdkVersionFromBinaryAndroidManifest() local 261 minSdkVersion = parser.getAttributeIntValue(i); in getMinSdkVersionFromBinaryAndroidManifest() 264 minSdkVersion = in getMinSdkVersionFromBinaryAndroidManifest() 279 result = Math.max(result, minSdkVersion); in getMinSdkVersionFromBinaryAndroidManifest() 542 int minSdkVersion = 1; in getTargetSdkVersionFromBinaryAndroidManifest() local 552 minSdkVersion = getMinSdkVersionFromBinaryAndroidManifest(androidManifestContents); in getTargetSdkVersionFromBinaryAndroidManifest() 557 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 | 147 int minSdkVersion = 1; in sign() local 174 minSdkVersion = optionsParser.getRequiredIntValue("Mininimum API Level"); in sign() 306 if ((minSdkVersionSpecified) && (minSdkVersion > maxSdkVersion)) { in sign() 308 "Min API Level (" + minSdkVersion + ") > max API Level (" + maxSdkVersion in sign() 367 apkSignerBuilder.setMinSdkVersion(minSdkVersion); in sign() 448 int minSdkVersion = 1; in verify() local 464 minSdkVersion = optionsParser.getRequiredIntValue("Mininimum API Level"); in verify() 516 && (minSdkVersion > maxSdkVersion)) { in verify() 518 "Min API Level (" + minSdkVersion + ") > max API Level (" + maxSdkVersion in verify() 524 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()
|
D | SignatureAlgorithm.java | 166 int minSdkVersion, in SignatureAlgorithm() argument 172 mMinSdkVersion = minSdkVersion; in SignatureAlgorithm()
|
D | ApkSigningBlockUtils.java | 1079 List<T> signatures, int minSdkVersion, int maxSdkVersion) in getSignaturesToVerify() argument 1081 return getSignaturesToVerify(signatures, minSdkVersion, maxSdkVersion, false); in getSignaturesToVerify() 1100 List<T> signatures, int minSdkVersion, int maxSdkVersion, in getSignaturesToVerify() argument 1103 return ApkSigningBlockUtilsLite.getSignaturesToVerify(signatures, minSdkVersion, in getSignaturesToVerify() 1268 public int minSdkVersion; field in ApkSigningBlockUtils.SignerConfig 1336 public int minSdkVersion; field in ApkSigningBlockUtils.Result.SignerInfo
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | ApiLintTest.kt | 2414 fun `Check closeable for minSdkVersion 19`() { in Check closeable for minSdkVersion 19() 2452 fun `Do not check closeable for minSdkVersion less than 19`() { in Do not check closeable for minSdkVersion less than 19() 2487 fun `Check ICU types for minSdkVersion 24`() { in Check ICU types for minSdkVersion 24() 2521 fun `Do not check ICU types for minSdkVersion less than 24`() { in Do not check ICU types for minSdkVersion less than 24()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4SchemeSigner.java | 77 int minSdkVersion, boolean apkSigningBlockPaddingSupported, in getSuggestedSignatureAlgorithms() argument 81 signingKey, minSdkVersion, in getSuggestedSignatureAlgorithms()
|