Home
last modified time | relevance | path

Searched refs:apkFile (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DProcessLoggingHandler.java59 void logAppProcessStart(Context context, PackageManagerInternal pmi, String apkFile, in logAppProcessStart() argument
68 if (apkFile == null) { in logAppProcessStart()
77 LoggingInfo cached = mLoggingInfo.get(apkFile); in logAppProcessStart()
82 mLoggingInfo.put(apkFile, cached); in logAppProcessStart()
166 void invalidateBaseApkHash(String apkFile) { in invalidateBaseApkHash() argument
168 mLoggingInfo.remove(apkFile); in invalidateBaseApkHash()
DPackageManagerService.java5502 String seinfo, String apkFile, int pid) {
5511 LocalServices.getService(PackageManagerInternal.class), apkFile, packageName,
/frameworks/base/tests/AppResourcesLoaders/src/com/android/example/loaders/
DLoadersApplication.java48 final File apkFile = new File(getFilesDir(), fileName); in copyResource() local
50 final FileOutputStream os = new FileOutputStream(apkFile); in copyResource()
56 return ParcelFileDescriptor.open(apkFile, ParcelFileDescriptor.MODE_READ_ONLY); in copyResource()
/frameworks/base/core/java/android/util/apk/
DApkSignatureSchemeV4Verifier.java67 public static VerifiedSigner extractCertificates(String apkFile) in extractCertificates() argument
69 Pair<V4Signature.HashingInfo, V4Signature.SigningInfos> pair = extractSignature(apkFile); in extractCertificates()
70 return verify(apkFile, pair.first, pair.second, APK_SIGNATURE_SCHEME_DEFAULT); in extractCertificates()
77 String apkFile) throws SignatureNotFoundException, SignatureException { in extractSignature() argument
79 final File apk = new File(apkFile); in extractSignature()
143 public static VerifiedSigner verify(String apkFile, final V4Signature.HashingInfo hashingInfo, in verify() argument
150 final byte[] signedData = V4Signature.getSignedData(new File(apkFile).length(), hashingInfo, in verify()
DApkSignatureSchemeV2Verifier.java87 public static boolean hasSignature(String apkFile) throws IOException { in hasSignature() argument
88 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in hasSignature()
105 public static X509Certificate[][] verify(String apkFile) in verify() argument
107 VerifiedSigner vSigner = verify(apkFile, true); in verify()
120 public static X509Certificate[][] unsafeGetCertsWithoutVerification(String apkFile) in unsafeGetCertsWithoutVerification() argument
122 VerifiedSigner vSigner = verify(apkFile, false); in unsafeGetCertsWithoutVerification()
129 public static VerifiedSigner verify(String apkFile, boolean verifyIntegrity) in verify() argument
131 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in verify()
DApkSignatureSchemeV3Verifier.java81 public static boolean hasSignature(String apkFile) throws IOException { in hasSignature() argument
82 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in hasSignature()
100 public static VerifiedSigner verify(String apkFile) in verify() argument
102 return verify(apkFile, true); in verify()
114 public static VerifiedSigner unsafeGetCertsWithoutVerification(String apkFile) in unsafeGetCertsWithoutVerification() argument
116 return verify(apkFile, false); in unsafeGetCertsWithoutVerification()
119 private static VerifiedSigner verify(String apkFile, boolean verifyIntegrity) in verify() argument
121 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in verify()
DSourceStampVerifier.java99 for (String apkFile : apkFiles) { in verify()
100 SourceStampVerificationResult sourceStampVerificationResult = verify(apkFile); in verify()
118 public static SourceStampVerificationResult verify(String apkFile) { in verify() argument
120 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in verify()
123 apkFile, in verify()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DDigestUtils.java36 public static byte[] getSha256Hash(File apkFile) throws IOException, NoSuchAlgorithmException { in getSha256Hash() argument
37 try (InputStream stream = new FileInputStream(apkFile)) { in getSha256Hash()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/fullbackup/
DAppMetadataBackupWriterTest.java340 File apkFile = createApkFileAndWrite(apkBytes); in testBackupApk_writesCorrectBytesToOutput() local
342 packageInfo.applicationInfo.sourceDir = apkFile.getPath(); in testBackupApk_writesCorrectBytesToOutput()
348 apkFile.delete(); in testBackupApk_writesCorrectBytesToOutput()
435 File apkFile = new File(mFilesDir, "apk"); in createApkFileAndWrite() local
436 apkFile.createNewFile(); in createApkFileAndWrite()
437 Files.write(apkFile.toPath(), data); in createApkFileAndWrite()
438 return apkFile; in createApkFileAndWrite()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DAppUtils.java243 if (appEntry.apkFile != null && appEntry.apkFile.exists()) { in getIcon()
251 } else if (!appEntry.mounted && appEntry.apkFile != null && appEntry.apkFile.exists()) { in getIcon()
DApplicationsState.java1638 @Nullable public final File apkFile; field in ApplicationsState.AppEntry
1697 this.apkFile = info.sourceDir != null ? new File(info.sourceDir) : null; in AppEntry()
1756 if (this.apkFile != null && this.apkFile.exists()) { in ensureLabel()
1777 if (this.apkFile != null && this.apkFile.exists()) { in ensureIconLocked()
1787 if (this.apkFile != null && this.apkFile.exists()) { in ensureIconLocked()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DAppUtilsTest.java197 final File apkFile = mock(File.class); in createAppEntry() local
198 doReturn(true).when(apkFile).exists(); in createAppEntry()
202 field.set(appEntry, apkFile); in createAppEntry()
/frameworks/base/tests/StagedInstallTest/src/com/android/tests/stagedinstallinternal/host/
DStagedInstallInternalTest.java201 final File apkFile = mHostUtils.getTestFile(APK_A); in testUpdateSystemApp() local
206 assertTrue(getDevice().pushFile(apkFile, "/system/app/TestApp/" + apkFile.getName())); in testUpdateSystemApp()
328 final File apkFile = mHostUtils.getTestFile(APK_A); in testAdbInstallMultiPackageCommandWorks() local
330 apexFile.getAbsolutePath(), apkFile.getAbsolutePath()); in testAdbInstallMultiPackageCommandWorks()
/frameworks/base/services/core/java/com/android/server/integrity/
DAppIntegrityManagerServiceImpl.java650 for (File apkFile : multiApkDirectory.listFiles()) { in getMultiApkInfo()
651 if (apkFile.isDirectory()) { in getMultiApkInfo()
661 apkFile.getAbsolutePath(), in getMultiApkInfo()
667 Slog.w(TAG, "Exception reading " + apkFile, e); in getMultiApkInfo()
670 Slog.i(TAG, "Found package info from " + apkFile); in getMultiApkInfo()
/frameworks/base/core/java/android/content/pm/parsing/
DApkLiteParseUtils.java332 public static ParseResult<ApkLite> parseApkLite(ParseInput input, File apkFile, int flags) { in parseApkLite() argument
333 return parseApkLiteInner(input, apkFile, null, null, flags); in parseApkLite()
351 File apkFile, FileDescriptor fd, String debugPathName, int flags) { in parseApkLiteInner() argument
352 final String apkPath = fd != null ? debugPathName : apkFile.getAbsolutePath(); in parseApkLiteInner()
375 apkFile.getAbsolutePath(), in parseApkLiteInner()
/frameworks/base/core/java/android/content/pm/
DPackageParser.java1188 public Package parseMonolithicPackage(File apkFile, int flags) throws PackageParserException { in parseMonolithicPackage() argument
1189 final PackageLite lite = parseMonolithicPackageLite(apkFile, flags); in parseMonolithicPackage()
1193 "Not a coreApp: " + apkFile); in parseMonolithicPackage()
1199 final Package pkg = parseBaseApk(apkFile, assetLoader.getBaseAssetManager(), flags); in parseMonolithicPackage()
1200 pkg.setCodePath(apkFile.getCanonicalPath()); in parseMonolithicPackage()
1205 "Failed to get path: " + apkFile, e); in parseMonolithicPackage()
1211 private Package parseBaseApk(File apkFile, AssetManager assets, int flags) in parseBaseApk() argument
1213 final String apkPath = apkFile.getAbsolutePath(); in parseBaseApk()
1222 mArchiveSourcePath = apkFile.getAbsolutePath(); in parseBaseApk()
1414 private static void collectCertificates(Package pkg, File apkFile, boolean skipVerify) in collectCertificates() argument
[all …]
DIPackageManager.aidl401 …tIfNeeded(String packageName, String processName, int uid, String seinfo, String apkFile, int pid); in logAppProcessStartIfNeeded() argument
DPackageManager.java8799 final File apkFile = new File(archiveFilePath); in getPackageArchiveInfo() local
8844 ParsedPackage pp = parser2.parsePackage(apkFile, parserFlags, false); in getPackageArchiveInfo()
8848 Log.w(TAG, "Failure to parse package archive apkFile= " +apkFile); in getPackageArchiveInfo()
11750 public <T> T parseAndroidManifest(@NonNull File apkFile, in parseAndroidManifest() argument
/frameworks/base/core/java/com/android/internal/pm/pkg/parsing/
DParsingPackageUtils.java414 private ParseResult<ParsingPackage> parseMonolithicPackage(ParseInput input, File apkFile, in parseMonolithicPackage() argument
419 ApkLiteParseUtils.parseMonolithicPackageLite(input, apkFile, liteParseFlags); in parseMonolithicPackage()
429 apkFile, in parseMonolithicPackage()
430 apkFile.getCanonicalPath(), in parseMonolithicPackage()
440 "Failed to get path: " + apkFile, e); in parseMonolithicPackage()
565 private ParseResult<ParsingPackage> parseBaseApk(ParseInput input, File apkFile,
568 final String apkPath = apkFile.getAbsolutePath();
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java442 File apkFile) { in checkPermissions() argument
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java4074 public <T> T parseAndroidManifest(@NonNull File apkFile, in parseAndroidManifest() argument
4076 Objects.requireNonNull(apkFile, "apkFile cannot be null"); in parseAndroidManifest()
4078 try (XmlResourceParser xmlResourceParser = getAndroidManifestParser(apkFile)) { in parseAndroidManifest()
4086 private static XmlResourceParser getAndroidManifestParser(@NonNull File apkFile) in getAndroidManifestParser() argument
4090 apkAssets = ApkAssets.loadFromPath(apkFile.getAbsolutePath()); in getAndroidManifestParser()