Home
last modified time | relevance | path

Searched refs:SignatureSchemeVersion (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/core/java/android/util/apk/
DApkSignatureVerifier.java30 import android.content.pm.SigningDetails.SignatureSchemeVersion;
82 @SignatureSchemeVersion int minSignatureSchemeVersion) { in verify()
102 @SignatureSchemeVersion int minSignatureSchemeVersion, boolean verifyFull) { in verifySignatures()
165 String apkPath, @SignatureSchemeVersion int minSignatureSchemeVersion, in verifySignaturesInternal()
168 if (minSignatureSchemeVersion > SignatureSchemeVersion.SIGNING_BLOCK_V4) { in verifySignaturesInternal()
180 if (minSignatureSchemeVersion >= SignatureSchemeVersion.SIGNING_BLOCK_V4) { in verifySignaturesInternal()
186 if (minSignatureSchemeVersion > SignatureSchemeVersion.SIGNING_BLOCK_V3) { in verifySignaturesInternal()
197 ParseInput input, String apkPath, @SignatureSchemeVersion int minSignatureSchemeVersion, in verifyV3AndBelowSignatures()
204 if (minSignatureSchemeVersion >= SignatureSchemeVersion.SIGNING_BLOCK_V3) { in verifyV3AndBelowSignatures()
211 if (minSignatureSchemeVersion > SignatureSchemeVersion.SIGNING_BLOCK_V2) { in verifyV3AndBelowSignatures()
[all …]
/frameworks/base/core/java/android/content/pm/
DSigningDetails.java55 @IntDef({SignatureSchemeVersion.UNKNOWN,
56 SignatureSchemeVersion.JAR,
57 SignatureSchemeVersion.SIGNING_BLOCK_V2,
58 SignatureSchemeVersion.SIGNING_BLOCK_V3,
59 SignatureSchemeVersion.SIGNING_BLOCK_V4})
60 public @interface SignatureSchemeVersion { annotation in SigningDetails
72 private final @SignatureSchemeVersion int mSignatureSchemeVersion;
143 SignatureSchemeVersion.UNKNOWN, /* keys */ null, /* pastSigningCertificates */ null);
147 @SignatureSchemeVersion int signatureSchemeVersion, in SigningDetails()
156 @SignatureSchemeVersion int signatureSchemeVersion, in SigningDetails()
[all …]
DSigningInfo.java22 import android.content.pm.SigningDetails.SignatureSchemeVersion;
56 public SigningInfo(@SignatureSchemeVersion int schemeVersion, in SigningInfo()
171 public @SignatureSchemeVersion int getSchemeVersion() { in getSchemeVersion()
DPackageParser.java1422 minSignatureScheme = SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V2; in collectCertificates()
5955 @IntDef({SigningDetails.SignatureSchemeVersion.UNKNOWN,
5956 SigningDetails.SignatureSchemeVersion.JAR,
5957 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V2,
5958 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3,
5959 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V4})
5960 public @interface SignatureSchemeVersion { annotation in PackageParser.SigningDetails
5971 @SignatureSchemeVersion
6021 new SigningDetails(null, SignatureSchemeVersion.UNKNOWN, null, null);
6025 @SignatureSchemeVersion int signatureSchemeVersion, in SigningDetails()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DSignatureTest.java38 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3); in areExactMatch()
40 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3); in areExactMatch()
57 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3); in areEffectiveMatch()
59 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3); in areEffectiveMatch()
DSigningDetailsTest.java26 import static android.content.pm.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3;
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/
DBackupUtilsTest.java100 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse()
119 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse()
202 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_equalSignatures_returnsTrue()
224 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_extraSignatureInTarget_returnsTrue()
245 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_extraSignatureInStored_returnsFalse()
267 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_oneNonMatchingSignature_returnsFalse()
290 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_singleStoredSignatureNoRotation_returnsTrue()
314 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_singleStoredSignatureWithRotationAssumeDataCapability_returnsTrue()
341 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_singleStoredSignatureWithRotationAssumeNoDataCapability_returnsFalse()
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/utils/
DPackageUtilsTest.java72 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in isAllowlisted_true()
96 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in isAllowlisted_package_disallowed()
120 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in isAllowlisted_signature_mismatch()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
DBackupEligibilityRulesTest.java617 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse()
635 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse()
712 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_equalSignatures_returnsTrue()
733 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_extraSignatureInTarget_returnsTrue()
754 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_extraSignatureInStored_returnsFalse()
775 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_oneNonMatchingSignature_returnsFalse()
796 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_singleStoredSignatureNoRotation_returnsTrue()
820 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_singleStoredSignatureWithRotationAssumeDataCapability_returnsTrue()
847 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_singleStoredSignatureWithRotationAssumeNoDataCapability_returnsFalse()
DTarBackupReaderTest.java391 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore()
428 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in chooseRestorePolicy_systemAppWithBackupAgentAndRestoreAnyVersion_returnsAccept()
466 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in chooseRestorePolicy_restoreAnyVersion_returnsAccept()
507 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in chooseRestorePolicy_notRestoreAnyVersionButVersionMatch_returnsAccept()
656 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in chooseRestorePolicy_notRestoreAnyVersionAndVersionMismatchButAllowApksAndHasApk_returnsAcceptIfApk()
700 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in chooseRestorePolicy_notRestoreAnyVersionAndVersionMismatchAndDoesNotAllowApks_returnsIgnore()
740 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in createNonRestoreAnyVersionUPackage()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageSignaturesTest.java183 SigningDetails.SignatureSchemeVersion.UNKNOWN); in testReadXmlWithMissingSigsCount()
190 SigningDetails.SignatureSchemeVersion.UNKNOWN, in testReadXmlWithMissingSchemeVersion()
200 SigningDetails.SignatureSchemeVersion.UNKNOWN, in testReadXmlWithSigningLineageWithMissingSchemeVersion()
DAppsFilterImplTest.java522 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V2); in testNoUsesLibrary_Filters()
548 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V2); in testUsesLibrary_DoesntFilter()
575 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V2); in testUsesOptionalLibrary_DoesntFilter()
602 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V2); in testUsesLibrary_ShareUid_DoesntFilter()
DPackageParserTest.java1232 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V2, in setKnownFields()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSignatures.java22 import android.content.pm.SigningDetails.SignatureSchemeVersion;
122 SignatureSchemeVersion.UNKNOWN); in readXml()
123 if (signatureSchemeVersion == SignatureSchemeVersion.UNKNOWN) { in readXml()
DApkChecksums.java39 import android.content.pm.SigningDetails.SignatureSchemeVersion;
717 SignatureSchemeVersion.SIGNING_BLOCK_V2, false /*verifyFull*/); in extractHashFromV2V3Signature()
DInstallRequest.java414 return mInstallArgs == null ? SigningDetails.SignatureSchemeVersion.UNKNOWN in getSignatureSchemeVersion()
DVerifyingSession.java26 import static android.content.pm.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V4;
DScanPackageUtils.java1009 != SigningDetails.SignatureSchemeVersion.UNKNOWN) { in collectCertificatesLI()
DInstallPackageHelper.java42 import static android.content.pm.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V4;
1344 < SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V2) { in preparePackageLI()
/frameworks/base/core/java/android/content/pm/parsing/
DFrameworkParsingPackageUtils.java233 minSignatureScheme = SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V2; in getSigningDetails()
241 SigningDetails.SignatureSchemeVersion.JAR); in getSigningDetails()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/fullbackup/
DAppMetadataBackupWriterTest.java184 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in testBackupManifest_withSignatures_writesCorrectSignatures()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/
DAndroidPackageTest.kt390 SigningDetails.SignatureSchemeVersion.UNKNOWN, in <lambda>()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DMockSystem.kt465 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3)) in createRandomSigningDetails()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationPackageTest.kt1165 }), SigningDetails.SignatureSchemeVersion.UNKNOWN) in <lambda>()
/frameworks/base/services/core/java/com/android/server/
DBinaryTransparencyService.java497 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V2, false); in computeApkContentDigest()

12