/frameworks/base/core/java/android/util/apk/ |
D | ApkSignatureVerifier.java | 30 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/ |
D | SigningDetails.java | 55 @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 …]
|
D | SigningInfo.java | 22 import android.content.pm.SigningDetails.SignatureSchemeVersion; 56 public SigningInfo(@SignatureSchemeVersion int schemeVersion, in SigningInfo() 171 public @SignatureSchemeVersion int getSchemeVersion() { in getSchemeVersion()
|
D | PackageParser.java | 1422 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/ |
D | SignatureTest.java | 38 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()
|
D | SigningDetailsTest.java | 26 import static android.content.pm.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/ |
D | BackupUtilsTest.java | 100 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/ |
D | PackageUtilsTest.java | 72 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/ |
D | BackupEligibilityRulesTest.java | 617 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()
|
D | TarBackupReaderTest.java | 391 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/ |
D | PackageSignaturesTest.java | 183 SigningDetails.SignatureSchemeVersion.UNKNOWN); in testReadXmlWithMissingSigsCount() 190 SigningDetails.SignatureSchemeVersion.UNKNOWN, in testReadXmlWithMissingSchemeVersion() 200 SigningDetails.SignatureSchemeVersion.UNKNOWN, in testReadXmlWithSigningLineageWithMissingSchemeVersion()
|
D | AppsFilterImplTest.java | 522 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()
|
D | PackageParserTest.java | 1232 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V2, in setKnownFields()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageSignatures.java | 22 import android.content.pm.SigningDetails.SignatureSchemeVersion; 122 SignatureSchemeVersion.UNKNOWN); in readXml() 123 if (signatureSchemeVersion == SignatureSchemeVersion.UNKNOWN) { in readXml()
|
D | ApkChecksums.java | 39 import android.content.pm.SigningDetails.SignatureSchemeVersion; 717 SignatureSchemeVersion.SIGNING_BLOCK_V2, false /*verifyFull*/); in extractHashFromV2V3Signature()
|
D | InstallRequest.java | 414 return mInstallArgs == null ? SigningDetails.SignatureSchemeVersion.UNKNOWN in getSignatureSchemeVersion()
|
D | VerifyingSession.java | 26 import static android.content.pm.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V4;
|
D | ScanPackageUtils.java | 1009 != SigningDetails.SignatureSchemeVersion.UNKNOWN) { in collectCertificatesLI()
|
D | InstallPackageHelper.java | 42 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/ |
D | FrameworkParsingPackageUtils.java | 233 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/ |
D | AppMetadataBackupWriterTest.java | 184 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in testBackupManifest_withSignatures_writesCorrectSignatures()
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/ |
D | AndroidPackageTest.kt | 390 SigningDetails.SignatureSchemeVersion.UNKNOWN, in <lambda>()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | MockSystem.kt | 465 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3)) in createRandomSigningDetails()
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
D | DomainVerificationPackageTest.kt | 1165 }), SigningDetails.SignatureSchemeVersion.UNKNOWN) in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/ |
D | BinaryTransparencyService.java | 497 SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V2, false); in computeApkContentDigest()
|