/frameworks/base/core/java/android/util/apk/ |
D | ApkSignatureVerifier.java | 65 public static PackageParser.SigningDetails verify(String apkPath, in verify() argument 73 + " or newer for package " + apkPath); in verify() 80 ApkSignatureSchemeV3Verifier.verify(apkPath); in verify() 99 "No APK Signature Scheme v3 signature in package " + apkPath, e); in verify() 104 "Failed to collect certificates from " + apkPath in verify() 115 + " or newer for package " + apkPath); in verify() 121 Certificate[][] signerCerts = ApkSignatureSchemeV2Verifier.verify(apkPath); in verify() 130 "No APK Signature Scheme v2 signature in package " + apkPath, e); in verify() 135 "Failed to collect certificates from " + apkPath in verify() 146 + " or newer for package " + apkPath); in verify() [all …]
|
D | ApkSignatureSchemeV2Verifier.java | 399 static byte[] getVerityRootHash(String apkPath) in getVerityRootHash() argument 401 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in getVerityRootHash() 408 static byte[] generateApkVerity(String apkPath, ByteBufferFactory bufferFactory) in generateApkVerity() argument 411 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateApkVerity() 413 return VerityBuilder.generateApkVerity(apkPath, bufferFactory, signatureInfo); in generateApkVerity() 417 static byte[] generateApkVerityRootHash(String apkPath) in generateApkVerityRootHash() argument 420 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateApkVerityRootHash()
|
D | ApkSignatureSchemeV3Verifier.java | 523 static byte[] getVerityRootHash(String apkPath) in getVerityRootHash() argument 525 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in getVerityRootHash() 532 static byte[] generateApkVerity(String apkPath, ByteBufferFactory bufferFactory) in generateApkVerity() argument 535 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateApkVerity() 537 return VerityBuilder.generateApkVerity(apkPath, bufferFactory, signatureInfo); in generateApkVerity() 541 static byte[] generateApkVerityRootHash(String apkPath) in generateApkVerityRootHash() argument 544 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateApkVerityRootHash()
|
D | VerityBuilder.java | 171 static byte[] generateApkVerity(@NonNull String apkPath, in generateApkVerity() argument 175 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateApkVerity()
|
/frameworks/base/services/core/java/com/android/server/security/ |
D | VerityUtils.java | 140 public static SetupResult generateApkVeritySetupData(@NonNull String apkPath) { in generateApkVeritySetupData() argument 142 Slog.d(TAG, "Trying to install legacy apk verity to " + apkPath); in generateApkVeritySetupData() 146 final byte[] signedVerityHash = ApkSignatureVerifier.getVerityRootHash(apkPath); in generateApkVeritySetupData() 155 generateFsVerityIntoSharedMemory(apkPath, signedVerityHash); in generateApkVeritySetupData() 177 public static byte[] generateApkVerityRootHash(@NonNull String apkPath) in generateApkVerityRootHash() argument 179 return ApkSignatureVerifier.generateApkVerityRootHash(apkPath); in generateApkVerityRootHash() 185 public static byte[] getVerityRootHash(@NonNull String apkPath) in getVerityRootHash() argument 187 return ApkSignatureVerifier.getVerityRootHash(apkPath); in getVerityRootHash() 287 private static Pair<SharedMemory, Integer> generateFsVerityIntoSharedMemory(String apkPath, in generateFsVerityIntoSharedMemory() argument 293 ApkSignatureVerifier.generateApkVerity(apkPath, shmBufferFactory); in generateFsVerityIntoSharedMemory()
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | ViewCompiler.java | 39 final String apkPath = pkg.baseCodePath; in compileLayouts() local 42 Log.i("PackageManager", "Compiling layouts in " + packageName + " (" + apkPath + in compileLayouts() 47 return mInstaller.compileLayouts(apkPath, packageName, outDexFile, in compileLayouts()
|
D | ArtManagerService.java | 480 final String apkPath = pkg.baseCodePath; in compileLayouts() local 492 Log.i("PackageManager", "Compiling layouts in " + packageName + " (" + apkPath + in compileLayouts() 497 return mInstaller.compileLayouts(apkPath, packageName, outDexFile, in compileLayouts()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | Installer.java | 303 public void dexopt(String apkPath, int uid, @Nullable String pkgName, String instructionSet, in dexopt() argument 310 BlockGuard.getVmPolicy().onPathAccess(apkPath); in dexopt() 315 mInstalld.dexopt(apkPath, uid, pkgName, instructionSet, dexoptNeeded, outputPath, in dexopt() 492 public void moveAb(String apkPath, String instructionSet, String outputPath) in moveAb() argument 495 BlockGuard.getVmPolicy().onPathAccess(apkPath); in moveAb() 498 mInstalld.moveAb(apkPath, instructionSet, outputPath); in moveAb() 504 public void deleteOdex(String apkPath, String instructionSet, String outputPath) in deleteOdex() argument 507 BlockGuard.getVmPolicy().onPathAccess(apkPath); in deleteOdex() 510 mInstalld.deleteOdex(apkPath, instructionSet, outputPath); in deleteOdex() 538 public boolean reconcileSecondaryDexFile(String apkPath, String packageName, int uid, in reconcileSecondaryDexFile() argument [all …]
|
D | ProcessLoggingHandler.java | 71 void invalidateProcessLoggingBaseApkHash(String apkPath) { in invalidateProcessLoggingBaseApkHash() argument 73 data.putString("apkFile", apkPath); in invalidateProcessLoggingBaseApkHash()
|
D | OtaDexoptService.java | 278 public void dexopt(String apkPath, int uid, @Nullable String pkgName, in generatePackageDexopts() 292 encodeParameter(builder, apkPath); in generatePackageDexopts()
|
D | PackageManagerService.java | 9266 private boolean canSkipForcedApkVerification(String apkPath) { 9268 return VerityUtils.hasFsverity(apkPath); 9272 final byte[] rootHashObserved = VerityUtils.generateApkVerityRootHash(apkPath); 9278 mInstaller.assertFsverityRootHashMatches(apkPath, rootHashObserved);
|
/frameworks/base/test-runner/src/android/test/ |
D | ClassPathPackageInfoSource.java | 125 for (String apkPath : apkPaths) { in findClasses() 126 File file = new File(apkPath); in findClasses() 156 private void findClassesInApk(String apkPath, String packageName, in findClassesInApk() argument 162 dexFile = new DexFile(apkPath); in findClassesInApk() 183 "Error finding classes at apk path: " + apkPath, e); in findClassesInApk()
|
/frameworks/native/cmds/installd/binder/android/os/ |
D | IInstalld.aidl | 49 void dexopt(@utf8InCpp String apkPath, int uid, @nullable @utf8InCpp String packageName, in dexopt() argument 58 boolean compileLayouts(@utf8InCpp String apkPath, @utf8InCpp String packageName, in compileLayouts() argument 86 void moveAb(@utf8InCpp String apkPath, @utf8InCpp String instructionSet, in moveAb() argument 88 void deleteOdex(@utf8InCpp String apkPath, @utf8InCpp String instructionSet, in deleteOdex() argument
|
/frameworks/base/core/java/android/content/pm/split/ |
D | DefaultSplitAssetLoader.java | 80 for (String apkPath : mSplitCodePaths) { in getBaseAssetManager() 81 apkAssets[splitIdx++] = loadApkAssets(apkPath, mFlags); in getBaseAssetManager()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/dex/ |
D | DexMetadataHelperTest.java | 234 private static boolean isDexMetadataForApk(String dmaPath, String apkPath) { in isDexMetadataForApk() argument 235 return apkPath.substring(0, apkPath.length() - APK_FILE_EXTENSION.length()).equals( in isDexMetadataForApk()
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.h | 92 binder::Status dexopt(const std::string& apkPath, int32_t uid, 102 binder::Status compileLayouts(const std::string& apkPath, const std::string& packageName, 134 binder::Status moveAb(const std::string& apkPath, const std::string& instructionSet, 136 binder::Status deleteOdex(const std::string& apkPath, const std::string& instructionSet,
|
D | InstalldNativeService.cpp | 2091 binder::Status InstalldNativeService::dexopt(const std::string& apkPath, int32_t uid, in dexopt() argument 2102 CHECK_ARGUMENT_PATH(apkPath); in dexopt() 2110 const char* apk_path = apkPath.c_str(); in dexopt() 2128 binder::Status InstalldNativeService::compileLayouts(const std::string& apkPath, in compileLayouts() argument 2132 const char* apk_path = apkPath.c_str(); in compileLayouts() 2553 binder::Status InstalldNativeService::moveAb(const std::string& apkPath, in moveAb() argument 2556 CHECK_ARGUMENT_PATH(apkPath); in moveAb() 2560 const char* apk_path = apkPath.c_str(); in moveAb() 2568 binder::Status InstalldNativeService::deleteOdex(const std::string& apkPath, in deleteOdex() argument 2571 CHECK_ARGUMENT_PATH(apkPath); in deleteOdex() [all …]
|
/frameworks/base/services/core/java/com/android/server/net/watchlist/ |
D | WatchlistLoggingHandler.java | 336 final String apkPath = mPm.getPackageInfoAsUser(packageName, in getDigestFromUid() local 340 if (TextUtils.isEmpty(apkPath)) { in getDigestFromUid() 344 return DigestUtils.getSha256Hash(new File(apkPath)); in getDigestFromUid()
|
/frameworks/base/core/jni/ |
D | com_android_internal_content_NativeLibraryHelper.cpp | 548 com_android_internal_content_NativeLibraryHelper_openApk(JNIEnv *env, jclass, jstring apkPath) in com_android_internal_content_NativeLibraryHelper_openApk() argument 550 ScopedUtfChars filePath(env, apkPath); in com_android_internal_content_NativeLibraryHelper_openApk()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageParser.java | 1316 final String apkPath = apkFile.getAbsolutePath(); in parseBaseApk() local 1319 if (apkPath.startsWith(MNT_EXPAND)) { in parseBaseApk() 1320 final int end = apkPath.indexOf('/', MNT_EXPAND.length()); in parseBaseApk() 1321 volumeUuid = apkPath.substring(MNT_EXPAND.length(), end); in parseBaseApk() 1327 if (DEBUG_JAR) Slog.d(TAG, "Scanning base APK: " + apkPath); in parseBaseApk() 1331 final int cookie = assets.findCookieForPath(apkPath); in parseBaseApk() 1334 "Failed adding asset path: " + apkPath); in parseBaseApk() 1340 final Package pkg = parseBaseApk(apkPath, res, parser, flags, outError); in parseBaseApk() 1343 apkPath + " (at " + parser.getPositionDescription() + "): " + outError[0]); in parseBaseApk() 1348 pkg.setBaseCodePath(apkPath); in parseBaseApk() [all …]
|