Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/pm/
DProcessLoggingHandler.java55 String apkFile = bundle.getString("apkFile"); in handleMessage() local
58 String apkHash = computeStringHashOfApk(apkFile); in handleMessage()
79 private String computeStringHashOfApk(String apkFile) { in computeStringHashOfApk() argument
80 if (apkFile == null) { in computeStringHashOfApk()
83 String apkHash = mProcessLoggingBaseApkHashes.get(apkFile); in computeStringHashOfApk()
86 byte[] hash = computeHashOfApkFile(apkFile); in computeStringHashOfApk()
92 mProcessLoggingBaseApkHashes.put(apkFile, apkHash); in computeStringHashOfApk()
DStagingManager.java456 File apkFile = new File(apkFilePath); in createAndWriteApkSession() local
457 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(apkFile, in createAndWriteApkSession()
465 apkSession.write(apkFile.getName(), 0, sizeBytes, pfd); in createAndWriteApkSession()
DPackageManagerService.java24766 String apkFile, int pid) {
24778 data.putString("apkFile", apkFile);
/frameworks/base/core/java/android/util/apk/
DApkSignatureSchemeV2Verifier.java91 public static boolean hasSignature(String apkFile) throws IOException { in hasSignature() argument
92 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in hasSignature()
108 public static X509Certificate[][] verify(String apkFile) in verify() argument
110 VerifiedSigner vSigner = verify(apkFile, true); in verify()
123 public static X509Certificate[][] unsafeGetCertsWithoutVerification(String apkFile) in unsafeGetCertsWithoutVerification() argument
125 VerifiedSigner vSigner = verify(apkFile, false); in unsafeGetCertsWithoutVerification()
129 private static VerifiedSigner verify(String apkFile, boolean verifyIntegrity) in verify() argument
131 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in verify()
DApkSignatureSchemeV3Verifier.java88 public static boolean hasSignature(String apkFile) throws IOException { in hasSignature() argument
89 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in hasSignature()
106 public static VerifiedSigner verify(String apkFile) in verify() argument
108 return verify(apkFile, true); in verify()
120 public static VerifiedSigner unsafeGetCertsWithoutVerification(String apkFile) in unsafeGetCertsWithoutVerification() argument
122 return verify(apkFile, false); in unsafeGetCertsWithoutVerification()
125 private static VerifiedSigner verify(String apkFile, boolean verifyIntegrity) in verify() argument
127 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { 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.java339 File apkFile = createApkFileAndWrite(apkBytes); in testBackupApk_writesCorrectBytesToOutput() local
341 packageInfo.applicationInfo.sourceDir = apkFile.getPath(); in testBackupApk_writesCorrectBytesToOutput()
347 apkFile.delete(); in testBackupApk_writesCorrectBytesToOutput()
434 File apkFile = new File(mFilesDir, "apk"); in createApkFileAndWrite() local
435 apkFile.createNewFile(); in createApkFileAndWrite()
436 Files.write(apkFile.toPath(), data); in createApkFileAndWrite()
437 return apkFile; in createApkFileAndWrite()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java1517 public final File apkFile; field in ApplicationsState.AppEntry
1566 apkFile = new File(info.sourceDir); in AppEntry()
1576 if (!this.apkFile.exists()) { in ensureLabel()
1589 if (this.apkFile.exists()) { in ensureIconLocked()
1599 if (this.apkFile.exists()) { in ensureIconLocked()
/frameworks/base/core/java/android/content/pm/
DPackageParser.java1335 public Package parseMonolithicPackage(File apkFile, int flags) throws PackageParserException { in parseMonolithicPackage() argument
1336 final PackageLite lite = parseMonolithicPackageLite(apkFile, flags); in parseMonolithicPackage()
1340 "Not a coreApp: " + apkFile); in parseMonolithicPackage()
1346 final Package pkg = parseBaseApk(apkFile, assetLoader.getBaseAssetManager(), flags); in parseMonolithicPackage()
1347 pkg.setCodePath(apkFile.getCanonicalPath()); in parseMonolithicPackage()
1352 "Failed to get path: " + apkFile, e); in parseMonolithicPackage()
1358 private Package parseBaseApk(File apkFile, AssetManager assets, int flags) in parseBaseApk() argument
1360 final String apkPath = apkFile.getAbsolutePath(); in parseBaseApk()
1369 mArchiveSourcePath = apkFile.getAbsolutePath(); in parseBaseApk()
1561 private static void collectCertificates(Package pkg, File apkFile, boolean skipVerify) in collectCertificates() argument
[all …]
DIPackageManager.aidl384 void logAppProcessStartIfNeeded(String processName, int uid, String seinfo, String apkFile, in logAppProcessStartIfNeeded() argument
DPackageManager.java5636 final File apkFile = new File(archiveFilePath); in getPackageArchiveInfo() local
5647 PackageParser.Package pkg = parser.parseMonolithicPackage(apkFile, 0); in getPackageArchiveInfo()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java387 File apkFile) { in checkPermissions() argument