/frameworks/base/core/java/android/content/pm/parsing/ |
D | ApkLiteParseUtils.java | 25 import android.content.pm.PackageParser; 76 public static ParseResult<PackageParser.PackageLite> parsePackageLite(ParseInput input, in parsePackageLite() 85 public static ParseResult<PackageParser.PackageLite> parseMonolithicPackageLite( in parseMonolithicPackageLite() 89 ParseResult<PackageParser.ApkLite> result = parseApkLite(input, packageFile, flags); in parseMonolithicPackageLite() 94 final PackageParser.ApkLite baseApk = result.getResult(); in parseMonolithicPackageLite() 97 new PackageParser.PackageLite(packagePath, baseApk, null, null, null, null, in parseMonolithicPackageLite() 104 public static ParseResult<PackageParser.PackageLite> parseClusterPackageLite(ParseInput input, in parseClusterPackageLite() 119 final ArrayMap<String, PackageParser.ApkLite> apks = new ArrayMap<>(); in parseClusterPackageLite() 123 if (PackageParser.isApkFile(file)) { in parseClusterPackageLite() 124 ParseResult<PackageParser.ApkLite> result = parseApkLite(input, file, flags); in parseClusterPackageLite() [all …]
|
D | ParsingPackageUtils.java | 46 import android.content.pm.PackageParser; 47 import android.content.pm.PackageParser.PackageParserException; 48 import android.content.pm.PackageParser.SigningDetails; 138 @PackageParser.ParseFlags int parseFlags, boolean collectCertificates) { in parseDefaultOneTime() 150 @PackageParser.ParseFlags int parseFlags, boolean collectCertificates) { in parseDefault() 177 } catch (PackageParser.PackageParserException e) { in parseDefault() 190 } catch (PackageParser.PackageParserException e) { in parseDefault() 249 ParseResult<PackageParser.PackageLite> liteResult = in parseClusterPackage() 255 final PackageParser.PackageLite lite = liteResult.getResult(); in parseClusterPackage() 318 ParseResult<PackageParser.PackageLite> liteResult = in parseMonolithicPackage() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | SigningInfo.java | 30 private final PackageParser.SigningDetails mSigningDetails; 33 mSigningDetails = PackageParser.SigningDetails.UNKNOWN; in SigningInfo() 39 public SigningInfo(PackageParser.SigningDetails signingDetails) { in SigningInfo() 40 mSigningDetails = new PackageParser.SigningDetails(signingDetails); in SigningInfo() 44 mSigningDetails = new PackageParser.SigningDetails(orig.mSigningDetails); in SigningInfo() 48 mSigningDetails = PackageParser.SigningDetails.CREATOR.createFromParcel(source); in SigningInfo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/ |
D | BackupUtilsTest.java | 28 import android.content.pm.PackageParser; 98 new PackageParser.SigningDetails( in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse() 100 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse() 117 new PackageParser.SigningDetails( in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse() 119 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse() 200 new PackageParser.SigningDetails( in signaturesMatch_equalSignatures_returnsTrue() 202 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_equalSignatures_returnsTrue() 222 new PackageParser.SigningDetails( in signaturesMatch_extraSignatureInTarget_returnsTrue() 224 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_extraSignatureInTarget_returnsTrue() 243 new PackageParser.SigningDetails( in signaturesMatch_extraSignatureInStored_returnsFalse() [all …]
|
/frameworks/base/core/java/android/util/apk/ |
D | ApkSignatureVerifier.java | 26 import android.content.pm.PackageParser; 27 import android.content.pm.PackageParser.PackageParserException; 28 import android.content.pm.PackageParser.SigningDetails.SignatureSchemeVersion; 66 public static PackageParser.SigningDetails verify(String apkPath, in verify() 79 public static PackageParser.SigningDetails unsafeGetCertsWithoutVerification( in unsafeGetCertsWithoutVerification() 91 private static PackageParser.SigningDetails verifySignatures(String apkPath, in verifySignatures() 123 private static PackageParser.SigningDetails verifyV3AndBelowSignatures(String apkPath, in verifyV3AndBelowSignatures() 176 private static PackageParser.SigningDetails verifyV4Signature(String apkPath, in verifyV4Signature() 229 return new PackageParser.SigningDetails(signerSigs, in verifyV4Signature() 251 private static PackageParser.SigningDetails verifyV3Signature(String apkPath, in verifyV3Signature() [all …]
|
/frameworks/base/core/java/android/content/pm/split/ |
D | DefaultSplitAssetLoader.java | 21 import android.content.pm.PackageParser; 22 import android.content.pm.PackageParser.PackageParserException; 23 import android.content.pm.PackageParser.ParseFlags; 44 public DefaultSplitAssetLoader(PackageParser.PackageLite pkg, @ParseFlags int flags) { in DefaultSplitAssetLoader() 52 if ((flags & PackageParser.PARSE_MUST_BE_APK) != 0 && !PackageParser.isApkPath(path)) { in loadApkAssets()
|
D | SplitAssetDependencyLoader.java | 22 import android.content.pm.PackageParser; 23 import android.content.pm.PackageParser.PackageParserException; 24 import android.content.pm.PackageParser.ParseFlags; 48 public SplitAssetDependencyLoader(PackageParser.PackageLite pkg, in SplitAssetDependencyLoader() 69 if ((flags & PackageParser.PARSE_MUST_BE_APK) != 0 && !PackageParser.isApkPath(path)) { in loadApkAssets()
|
D | SplitAssetLoader.java | 18 import android.content.pm.PackageParser; 28 AssetManager getBaseAssetManager() throws PackageParser.PackageParserException; in getBaseAssetManager() 29 AssetManager getSplitAssetManager(int splitIdx) throws PackageParser.PackageParserException; in getSplitAssetManager()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/ |
D | AndroidPackageParsingTestBase.kt | 27 import android.content.pm.PackageParser in <lambda>() 61 protected val packageParser = PackageParser().apply { in <lambda>() 99 lateinit var oldPackages: List<PackageParser.Package> in <lambda>() 109 packageParser.parsePackage(it, PackageParser.PARSE_IS_SYSTEM_DIR, false) in <lambda>() 118 packageParser2.parsePackage(it, PackageParser.PARSE_IS_SYSTEM_DIR, false) in <lambda>() 135 fun oldAppInfo(pkg: PackageParser.Package, flags: Int = 0): ApplicationInfo? { in <lambda>() 136 return PackageParser.generateApplicationInfo(pkg, flags, dummyUserState, 0) in <lambda>() 144 fun oldPackageInfo(pkg: PackageParser.Package, flags: Int = 0): PackageInfo? { in <lambda>() 145 return PackageParser.generatePackageInfo(pkg, intArrayOf(), flags, 5, 6, emptySet(), in <lambda>()
|
D | SystemPartitionParseTest.kt | 20 import android.content.pm.PackageParser 53 parser.parsePackage(it, PackageParser.PARSE_IS_SYSTEM_DIR, false) in verify() 57 .filterNot { (it as? PackageParser.PackageParserException)?.error == in verify()
|
D | PackageParserLegacyCoreTest.java | 30 import android.content.pm.PackageParser; 94 final int result = PackageParser.computeMinSdkVersion( in verifyComputeMinSdkVersion() 190 final int result = PackageParser.computeTargetSdkVersion( in verifyComputeTargetSdkVersion() 295 PackageParser.getActivityConfigChanges(configChanges, recreateOnConfigChanges); in testGetActivityConfigChanges() 302 PackageParser.getActivityConfigChanges(configChanges, recreateOnConfigChanges); in testGetActivityConfigChanges() 309 PackageParser.getActivityConfigChanges(configChanges, recreateOnConfigChanges); in testGetActivityConfigChanges() 314 PackageParser.getActivityConfigChanges(configChanges, recreateOnConfigChanges); in testGetActivityConfigChanges() 321 PackageParser.getActivityConfigChanges(configChanges, recreateOnConfigChanges); in testGetActivityConfigChanges() 564 } catch (PackageParser.PackageParserException expected) { in testUsesSdk() 570 } catch (PackageParser.PackageParserException expected) { in testUsesSdk() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | KeySetManagerServiceTest.java | 20 import android.content.pm.PackageParser; 64 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in testPublicKeyCertReprEquiv() 65 PublicKey keyB = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyB); in testPublicKeyCertReprEquiv() 66 PublicKey keyC = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyC); in testPublicKeyCertReprEquiv() 100 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in testEncodePublicKey() 101 PublicKey keyB = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyB); in testEncodePublicKey() 102 PublicKey keyC = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyC); in testEncodePublicKey() 120 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in testAddSigningKSToPackageEmpty() 147 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in testAddSigningKSToPackageUpgradeSame() 177 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in testAddSigningKSToPackageUpgradeDiff() [all …]
|
D | PackageSignaturesTest.java | 25 import android.content.pm.PackageParser; 108 {PackageParser.SigningDetails.CertCapabilities.INSTALLED_DATA, 109 PackageParser.SigningDetails.CertCapabilities.SHARED_USER_ID, 110 PackageParser.SigningDetails.CertCapabilities.PERMISSION, 111 PackageParser.SigningDetails.CertCapabilities.ROLLBACK}; 174 PackageParser.SigningDetails.UNKNOWN, mPackageSetting.signatures.mSigningDetails); in testReadXmlWithInvalidPublicKeyInCertKey() 182 PackageParser.SigningDetails.SignatureSchemeVersion.UNKNOWN); in testReadXmlWithMissingSigsCount() 189 PackageParser.SigningDetails.SignatureSchemeVersion.UNKNOWN, in testReadXmlWithMissingSchemeVersion() 199 PackageParser.SigningDetails.SignatureSchemeVersion.UNKNOWN, in testReadXmlWithSigningLineageWithMissingSchemeVersion()
|
/frameworks/base/core/java/android/content/pm/dex/ |
D | DexMetadataHelper.java | 20 import static android.content.pm.PackageParser.APK_FILE_EXTENSION; 22 import android.content.pm.PackageParser; 23 import android.content.pm.PackageParser.PackageLite; 24 import android.content.pm.PackageParser.PackageParserException; 128 if (!PackageParser.isApkPath(codePath)) { in buildDexMetadataPathForApk() 143 return PackageParser.isApkFile(targetFile) in buildDexMetadataPathForFile() 182 if (PackageParser.isApkPath(paths[i])) { in validateDexPaths()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageSignatures.java | 20 import android.content.pm.PackageParser; 21 import android.content.pm.PackageParser.SigningDetails.SignatureSchemeVersion; 37 @NonNull PackageParser.SigningDetails mSigningDetails; 40 if (orig != null && orig.mSigningDetails != PackageParser.SigningDetails.UNKNOWN) { in PackageSignatures() 41 mSigningDetails = new PackageParser.SigningDetails(orig.mSigningDetails); in PackageSignatures() 43 mSigningDetails = PackageParser.SigningDetails.UNKNOWN; in PackageSignatures() 47 PackageSignatures(PackageParser.SigningDetails signingDetails) { in PackageSignatures() 52 mSigningDetails = PackageParser.SigningDetails.UNKNOWN; in PackageSignatures() 109 PackageParser.SigningDetails.Builder builder = in readXml() 110 new PackageParser.SigningDetails.Builder(); in readXml() [all …]
|
D | PackageManagerServiceUtils.java | 38 import android.content.pm.PackageParser; 39 import android.content.pm.PackageParser.PackageParserException; 497 PackageSignatures packageSignatures, PackageParser.SigningDetails parsedSignatures) { 532 PackageParser.SigningDetails existingSignatures, 533 PackageParser.SigningDetails parsedSignatures, 534 @PackageParser.SigningDetails.CertCapabilities int flags) { 561 PackageParser.SigningDetails.CertCapabilities.INSTALLED_DATA) 564 PackageParser.SigningDetails.CertCapabilities.ROLLBACK)) { 608 PackageSetting disabledPkgSetting, PackageParser.SigningDetails parsedSignatures, in verifySignatures() 617 PackageParser.SigningDetails.CertCapabilities.INSTALLED_DATA) in verifySignatures() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | AppBackupUtilsTest.java | 29 import android.content.pm.PackageParser; 435 new PackageParser.SigningDetails( in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse() 437 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse() 454 new PackageParser.SigningDetails( in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse() 456 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse() 534 new PackageParser.SigningDetails( in signaturesMatch_equalSignatures_returnsTrue() 536 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_equalSignatures_returnsTrue() 556 new PackageParser.SigningDetails( in signaturesMatch_extraSignatureInTarget_returnsTrue() 558 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_extraSignatureInTarget_returnsTrue() 578 new PackageParser.SigningDetails( in signaturesMatch_extraSignatureInStored_returnsFalse() [all …]
|
D | TarBackupReaderTest.java | 42 import android.content.pm.PackageParser; 379 new PackageParser.SigningDetails( in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore() 381 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in chooseRestorePolicy_nonSystemAppSignaturesDoNotMatch_returnsIgnore() 416 new PackageParser.SigningDetails( in chooseRestorePolicy_systemAppWithBackupAgentAndRestoreAnyVersion_returnsAccept() 418 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in chooseRestorePolicy_systemAppWithBackupAgentAndRestoreAnyVersion_returnsAccept() 454 new PackageParser.SigningDetails( in chooseRestorePolicy_restoreAnyVersion_returnsAccept() 456 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in chooseRestorePolicy_restoreAnyVersion_returnsAccept() 495 new PackageParser.SigningDetails( in chooseRestorePolicy_notRestoreAnyVersionButVersionMatch_returnsAccept() 497 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in chooseRestorePolicy_notRestoreAnyVersionButVersionMatch_returnsAccept() 539 new PackageParser.SigningDetails( in chooseRestorePolicy_notRestoreAnyVersionAndVersionMismatchButAllowApksAndHasApk_returnsAcceptIfApk() [all …]
|
/frameworks/base/core/java/com/android/internal/content/om/ |
D | OverlayScanner.java | 23 import android.content.pm.PackageParser; 128 final PackageParser.ApkLite apkLite = PackageParser.parseApkLite(overlayApk, 0); in parseOverlayManifest() 133 } catch (PackageParser.PackageParserException e) { in parseOverlayManifest()
|
/frameworks/base/config/ |
D | boot-profile.txt | 245 Landroid/content/pm/PackageParser;->toSigningKeys([Landroid/content/pm/Signature;)Landroid/util/Arr… 262 Landroid/content/pm/PackageParser$SigningDetails;->hasCertificateInternal(Landroid/content/pm/Signa… 263 Landroid/content/pm/PackageParser$SigningDetails;->hasPastSigningCertificates()Z 265 Landroid/content/pm/PackageParser$Package;->fixupOwner(Ljava/util/List;)V 272 Landroid/content/pm/PackageParser$SigningDetails;->hasCertificate(Landroid/content/pm/Signature;)Z 275 Landroid/content/pm/PackageParser$Package;->internStringArrayList(Ljava/util/List;)V 279 Landroid/content/pm/PackageParser;->isApkFile(Ljava/io/File;)Z 280 Landroid/content/pm/PackageParser;->isApkPath(Ljava/lang/String;)Z 288 Landroid/content/pm/PackageParser$Component;->createIntentsList(Landroid/os/Parcel;)Ljava/util/Arra… 289 Landroid/content/pm/PackageParser$Component;-><init>(Landroid/os/Parcel;)V [all …]
|
/frameworks/base/services/ |
D | art-profile-boot | 41 …arser;Ljava/util/ArrayList;Ljava/util/ArrayList;IZLandroid/content/pm/PackageParser$SigningDetails… 62 Lcom/android/server/pm/AppsFilter;->addPackage(Landroid/content/pm/PackageParser$Package;Ljava/util… 63 …ver/pm/AppsFilter;->canQuery(Landroid/content/pm/PackageParser$Package;Landroid/content/pm/Package… 64 Lcom/android/server/pm/SELinuxMMAC;->getSeInfo(Landroid/content/pm/PackageParser$Package;ZI)Ljava/l… 65 Lcom/android/server/pm/Policy;->getMatchedSeInfo(Landroid/content/pm/PackageParser$Package;)Ljava/l… 71 …rmission/PermissionManagerService;->addAllPermissions(Landroid/content/pm/PackageParser$Package;Z)V 74 …/permission/BasePermission;Landroid/content/pm/PackageParser$Permission;Landroid/content/pm/Packag… 75 …vice;->commitPackageSettings(Landroid/content/pm/PackageParser$Package;Landroid/content/pm/Package… 78 Lcom/android/server/pm/PackageManagerService;->isPackageRenamed(Landroid/content/pm/PackageParser$P… 83 …nentResolver$ActivityIntentResolver;->addActivity(Landroid/content/pm/PackageParser$Activity;Ljava… [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | DexMetadataHelperTest.java | 26 import android.content.pm.PackageParser; 27 import android.content.pm.PackageParser.ApkLite; 28 import android.content.pm.PackageParser.PackageLite; 29 import android.content.pm.PackageParser.PackageParserException; 221 PackageParser.PackageLite pkg = result.getResult(); in testPackageSizeWithDmFile() 231 ApkLite baseApk = PackageParser.parseApkLite(is.getFD(), base.getAbsolutePath(), 0); in testPackageSizeWithPartialPackageLite()
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | PackageParsingPerfTest.kt | 19 import android.content.pm.PackageParser in <lambda>() 167 : ParallelParser<PackageParser.Package>(cacher) { in <lambda>() 168 val parser = PackageParser().apply { in <lambda>() 244 class PackageCacher1(cacheDir: File) : PackageCacher<PackageParser.Package>(cacheDir) { in <lambda>() 245 override fun fromParcel(parcel: Parcel) = PackageParser.Package(parcel) in <lambda>()
|
/frameworks/base/core/java/android/content/pm/parsing/component/ |
D | ParsedIntentInfoUtils.java | 22 import android.content.pm.PackageParser; 67 if (PackageParser.sUseRoundIcon) { in parseIntentInfo() 97 String value = parser.getAttributeValue(PackageParser.ANDROID_RESOURCES, in parseIntentInfo() 113 String value = parser.getAttributeValue(PackageParser.ANDROID_RESOURCES, in parseIntentInfo() 143 if (PackageParser.DEBUG_PARSER) { in parseIntentInfo()
|
D | ComponentParseUtils.java | 23 import android.content.pm.PackageParser; 82 if ((flags & PackageParser.PARSE_IGNORE_PROCESSES) != 0 && !"system".contentEquals( in buildProcessName() 125 String nameError = PackageParser.validateName(subName, false, false); in buildCompoundName() 132 String nameError = PackageParser.validateName(proc, true, false); in buildCompoundName()
|