/frameworks/base/services/core/java/com/android/server/pm/ |
D | ProcessLoggingHandler.java | 55 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()
|
D | StagingManager.java | 456 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()
|
D | PackageManagerService.java | 24766 String apkFile, int pid) { 24778 data.putString("apkFile", apkFile);
|
/frameworks/base/core/java/android/util/apk/ |
D | ApkSignatureSchemeV2Verifier.java | 91 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()
|
D | ApkSignatureSchemeV3Verifier.java | 88 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/ |
D | DigestUtils.java | 36 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/ |
D | AppMetadataBackupWriterTest.java | 339 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/ |
D | ApplicationsState.java | 1517 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/ |
D | PackageParser.java | 1335 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 …]
|
D | IPackageManager.aidl | 384 void logAppProcessStartIfNeeded(String processName, int uid, String seinfo, String apkFile, in logAppProcessStartIfNeeded() argument
|
D | PackageManager.java | 5636 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/ |
D | WearPackageInstallerService.java | 387 File apkFile) { in checkPermissions() argument
|