/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 111 int minSdkVersion, in verify() argument 113 if (minSdkVersion > maxSdkVersion) { in verify() 115 "minSdkVersion (" + minSdkVersion + ") > maxSdkVersion (" + maxSdkVersion in verify() 136 minSdkVersion, in verify() 221 int minSdkVersion, in verify() argument 312 apk, cdStartOffset, minSdkVersion, maxSdkVersion); in verify() 333 minSdkVersion, in verify() 371 minSdkVersion, in verify() 464 DataSource apk, long cdStartOffset, int minSdkVersion, int maxSdkVersion) in verifySigBlockAgainstSigFile() argument 517 if (minSdkVersion < AndroidSdkVersion.N) { in verifySigBlockAgainstSigFile() [all …]
|
D | V1SchemeSigner.java | 115 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/ |
D | SigningCertificateLineage.java | 109 private SigningCertificateLineage(int minSdkVersion, List<SigningCertificateNode> list) { in SigningCertificateLineage() argument 110 mMinSdkVersion = minSdkVersion; in SigningCertificateLineage() 115 int minSdkVersion, SignerConfig parent, SignerCapabilities parentCapabilities, in createSigningLineage() argument 120 new SigningCertificateLineage(minSdkVersion, new ArrayList<>()); in createSigningLineage() 160 int minSdkVersion = calculateMinSdkVersion(parsedLineage); in readFromV3AttributeValue() local 161 return new SigningCertificateLineage(minSdkVersion, parsedLineage); in readFromV3AttributeValue() 451 int minSdkVersion = calculateMinSdkVersion(nodes); in read() local 452 return new SigningCertificateLineage(minSdkVersion, nodes); in read() 468 int minSdkVersion = AndroidSdkVersion.P; // lineage introduced in P in calculateMinSdkVersion() local 472 if (nodeMinSdkVersion > minSdkVersion) { in calculateMinSdkVersion() [all …]
|
D | ApkVerifier.java | 85 Integer minSdkVersion, in ApkVerifier() argument 89 mMinSdkVersion = minSdkVersion; in ApkVerifier() 170 int minSdkVersion; in verify() local 173 minSdkVersion = mMinSdkVersion; in verify() 179 minSdkVersion = in verify() 181 if (minSdkVersion > mMaxSdkVersion) { in verify() 183 "minSdkVersion from APK (" + minSdkVersion + ") > maxSdkVersion (" in verify() 224 Math.max(minSdkVersion, AndroidSdkVersion.P), in verify() 240 if (minSdkVersion < AndroidSdkVersion.P || foundApkSigSchemeIds.isEmpty()) { in verify() 249 Math.max(minSdkVersion, AndroidSdkVersion.N), in verify() [all …]
|
D | DefaultApkSignerEngine.java | 150 int minSdkVersion, in DefaultApkSignerEngine() argument 176 mMinSdkVersion = minSdkVersion; in DefaultApkSignerEngine() 200 Collections.singletonList(oldestConfig), minSdkVersion); in DefaultApkSignerEngine() local 202 createV1SignerConfigs(signerConfigs, minSdkVersion); in DefaultApkSignerEngine() 207 private void createV1SignerConfigs(List<SignerConfig> signerConfigs, int minSdkVersion) in createV1SignerConfigs() argument 231 publicKey, minSdkVersion); in createV1SignerConfigs() 320 config.minSdkVersion = getMinSdkFromV3SignatureAlgorithms(config.signatureAlgorithms); in createV3SignerConfigs() 328 currentMinSdk = config.minSdkVersion; in createV3SignerConfigs() 1355 int minSdkVersion) { in Builder() argument 1366 mMinSdkVersion = minSdkVersion; in Builder()
|
D | ApkSigner.java | 111 Integer minSdkVersion, in ApkSigner() argument 127 mMinSdkVersion = minSdkVersion; in ApkSigner() 254 int minSdkVersion; in sign() local 257 minSdkVersion = mMinSdkVersion; in sign() 260 minSdkVersion = getMinSdkVersionFromApk(inputCdRecords, inputApkLfhSection); in sign() 273 new DefaultApkSignerEngine.Builder(engineSignerConfigs, minSdkVersion) in sign() 1125 public Builder setMinSdkVersion(int minSdkVersion) { in setMinSdkVersion() argument 1127 mMinSdkVersion = minSdkVersion; in setMinSdkVersion()
|
/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/apksigner/java/com/android/apksigner/ |
D | ApkSignerTool.java | 124 int minSdkVersion = 1; in sign() local 145 minSdkVersion = optionsParser.getRequiredIntValue("Mininimum API Level"); in sign() 259 if ((minSdkVersionSpecified) && (minSdkVersion > maxSdkVersion)) { in sign() 261 "Min API Level (" + minSdkVersion + ") > max API Level (" + maxSdkVersion in sign() 336 apkSignerBuilder.setMinSdkVersion(minSdkVersion); in sign() 368 int minSdkVersion = 1; in verify() local 381 minSdkVersion = optionsParser.getRequiredIntValue("Mininimum API Level"); in verify() 425 && (minSdkVersion > maxSdkVersion)) { in verify() 427 "Min API Level (" + minSdkVersion + ") > max API Level (" + maxSdkVersion in verify() 433 apkVerifierBuilder.setMinCheckedPlatformVersion(minSdkVersion); in verify() [all …]
|
D | help_verify.txt | 5 by the APK (as declared using minSdkVersion in AndroidManifest.xml). Use
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 100 int minSdkVersion, in verify() argument 118 if (minSdkVersion < AndroidSdkVersion.P) { in verify() 119 minSdkVersion = AndroidSdkVersion.P; in verify() 127 minSdkVersion, in verify() 148 int minSdkVersion, in verify() argument 166 sortedSigners.put(signer.minSdkVersion, signer); in verify() 178 int currentMin = signer.minSdkVersion; in verify() 204 if (firstMin > minSdkVersion || lastMax < maxSdkVersion) { in verify() 297 result.minSdkVersion = parsedMinSdkVersion; in parseSigner() 342 supportedSignatures, result.minSdkVersion, result.maxSdkVersion); in parseSigner()
|
D | V3SchemeSigner.java | 78 PublicKey signingKey, int minSdkVersion, boolean apkSigningBlockPaddingSupported) in getSuggestedSignatureAlgorithms() argument 205 signedData.minSdkVersion = signerConfig.minSdkVersion; in generateSignerBlock() 213 signer.minSdkVersion = signerConfig.minSdkVersion; in generateSignerBlock() 249 result.putInt(signer.minSdkVersion); in encodeSigner() 291 result.putInt(signedData.minSdkVersion); in encodeSignedData() 310 public int minSdkVersion; field in V3SchemeSigner.V3SignatureSchemeBlock.Signer 319 public int minSdkVersion; field in V3SchemeSigner.V3SignatureSchemeBlock.SignedData
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 96 int minSdkVersion, in verify() argument 120 minSdkVersion, in verify() 143 int minSdkVersion, in verify() argument 153 minSdkVersion, in verify() 183 int minSdkVersion, in parseSigners() argument 221 minSdkVersion, in parseSigners() 249 int minSdkVersion, in parseSigner() argument 295 supportedSignatures, minSdkVersion, maxSdkVersion); in parseSigner()
|
D | V2SchemeSigner.java | 89 PublicKey signingKey, int minSdkVersion, boolean apkSigningBlockPaddingSupported) in getSuggestedSignatureAlgorithms() argument
|
/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/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/main/java/com/android/apksig/apk/ |
D | ApkUtils.java | 353 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/metalava/src/test/java/com/android/tools/metalava/ |
D | ApiLintTest.kt | 2286 fun `Check closeable for minSdkVersion 19`() { in Check closeable for minSdkVersion 19() 2324 fun `Do not check closeable for minSdkVersion less than 19`() { in Do not check closeable for minSdkVersion less than 19() 2359 fun `Check ICU types for minSdkVersion 24`() { in Check ICU types for minSdkVersion 24() 2393 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/ |
D | ApkSigningBlockUtils.java | 1114 List<SupportedSignature> signatures, int minSdkVersion, int maxSdkVersion) in getSignaturesToVerify() argument 1145 if (minSdkVersion < minProvidedSignaturesVersion) { in getSignaturesToVerify() 1148 " < minSdkVersion " + minSdkVersion); in getSignaturesToVerify() 1255 public int minSdkVersion; field in ApkSigningBlockUtils.SignerConfig 1314 public int minSdkVersion; field in ApkSigningBlockUtils.Result.SignerInfo
|
D | SignatureAlgorithm.java | 143 int minSdkVersion) { in SignatureAlgorithm() argument 148 mMinSdkVersion = minSdkVersion; in SignatureAlgorithm()
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkVerifierTest.java | 1029 String apkFilenameInResources, int minSdkVersion) in verifyForMinSdkVersion() argument 1031 return verify(apkFilenameInResources, minSdkVersion, null); in verifyForMinSdkVersion() 1192 String apkFilenameInResources, String[] args, int minSdkVersion) in assertVerifiedForEachForMinSdkVersion() argument 1194 assertVerifiedForEach(apkFilenameInResources, args, minSdkVersion, null); in assertVerifiedForEachForMinSdkVersion()
|
D | ApkSignerTest.java | 967 private static ApkVerifier.Result verifyForMinSdkVersion(DataSource apk, int minSdkVersion) in verifyForMinSdkVersion() argument 969 return verify(apk, minSdkVersion); in verifyForMinSdkVersion()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | ApiLint.kt | 2917 val minSdkVersion = codebase.getMinSdkVersion() in <lambda>() constant 2918 if (minSdkVersion is SetMinSdkVersion && minSdkVersion.value < 19) { in <lambda>() 3356 val minSdkVersion = codebase.getMinSdkVersion() in <lambda>() constant 3357 if (minSdkVersion is SetMinSdkVersion && minSdkVersion.value < 24) { in <lambda>()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/module/ |
D | MinSdkModuleController.java | 36 protected MinSdkModuleController(int minSdkVersion) { in MinSdkModuleController() argument 37 mMinSdkVersion = minSdkVersion; in MinSdkModuleController()
|