/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() 101 "No APK Signature Scheme v3 signature in package " + apkPath, e); in verify() 106 "Failed to collect certificates from " + apkPath in verify() 117 + " or newer for package " + apkPath); in verify() 123 Certificate[][] signerCerts = ApkSignatureSchemeV2Verifier.verify(apkPath); in verify() 132 "No APK Signature Scheme v2 signature in package " + apkPath, e); in verify() 137 "Failed to collect certificates from " + apkPath in verify() 148 + " 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 ApkSigningBlockUtils.generateApkVerity(apkPath, bufferFactory, signatureInfo); in generateApkVerity() 417 static byte[] generateFsverityRootHash(String apkPath) in generateFsverityRootHash() argument 420 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateFsverityRootHash()
|
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 ApkSigningBlockUtils.generateApkVerity(apkPath, bufferFactory, signatureInfo); in generateApkVerity() 541 static byte[] generateFsverityRootHash(String apkPath) in generateFsverityRootHash() argument 544 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateFsverityRootHash()
|
D | ApkSigningBlockUtils.java | 359 public static byte[] generateApkVerity(String apkPath, ByteBufferFactory bufferFactory, in generateApkVerity() argument 363 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateApkVerity()
|
/frameworks/base/services/core/java/com/android/server/security/ |
D | VerityUtils.java | 51 public static SetupResult generateApkVeritySetupData(@NonNull String apkPath) { in generateApkVeritySetupData() argument 52 if (DEBUG) Slog.d(TAG, "Trying to install apk verity to " + apkPath); in generateApkVeritySetupData() 55 byte[] signedRootHash = ApkSignatureVerifier.getVerityRootHash(apkPath); in generateApkVeritySetupData() 63 Pair<SharedMemory, Integer> result = generateApkVerityIntoSharedMemory(apkPath, in generateApkVeritySetupData() 86 public static byte[] generateFsverityRootHash(@NonNull String apkPath) in generateFsverityRootHash() argument 88 return ApkSignatureVerifier.generateFsverityRootHash(apkPath); in generateFsverityRootHash() 94 public static byte[] getVerityRootHash(@NonNull String apkPath) in getVerityRootHash() argument 96 return ApkSignatureVerifier.getVerityRootHash(apkPath); in getVerityRootHash() 106 String apkPath, byte[] expectedRootHash) in generateApkVerityIntoSharedMemory() argument 110 byte[] generatedRootHash = ApkSignatureVerifier.generateApkVerity(apkPath, in generateApkVerityIntoSharedMemory()
|
/frameworks/av/services/mediaextractor/ |
D | MediaExtractorUpdateService.cpp | 28 binder::Status MediaExtractorUpdateService::loadPlugins(const ::std::string& apkPath) { in loadPlugins() argument 29 ALOGV("loadPlugins %s", apkPath.c_str()); in loadPlugins() 30 MediaExtractorFactory::LoadPlugins(apkPath); in loadPlugins()
|
D | MediaExtractorUpdateService.h | 34 binder::Status loadPlugins(const ::std::string& apkPath);
|
/frameworks/av/media/libstagefright/ |
D | MediaExtractorFactory.cpp | 99 void MediaExtractorFactory::LoadPlugins(const ::std::string& apkPath) { in LoadPlugins() argument 101 ALOGV("Load plugins from: %s", apkPath.c_str()); in LoadPlugins() 102 UpdateExtractors(apkPath.empty() ? nullptr : apkPath.c_str()); in LoadPlugins() 216 const char *apkPath, List<sp<ExtractorPlugin>> &pluginList) { in RegisterExtractorsInApk() argument 217 ALOGV("search for plugins at %s", apkPath); in RegisterExtractorsInApk() 219 int32_t ret = OpenArchive(apkPath, &zipHandle); in RegisterExtractorsInApk() 232 String8 libPath = String8(apkPath) + "!/" + in RegisterExtractorsInApk() 254 ALOGW("couldn't find plugins from %s, %d", apkPath, ret); in RegisterExtractorsInApk() 258 ALOGW("couldn't open(%s) %d", apkPath, ret); in RegisterExtractorsInApk()
|
/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/av/media/libstagefright/include/media/stagefright/ |
D | MediaExtractorFactory.h | 38 static void LoadPlugins(const ::std::string& apkPath); 47 const char *apkPath, List<sp<ExtractorPlugin>> &pluginList);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | Installer.java | 292 public void dexopt(String apkPath, int uid, @Nullable String pkgName, String instructionSet, in dexopt() argument 301 mInstalld.dexopt(apkPath, uid, pkgName, instructionSet, dexoptNeeded, outputPath, in dexopt() 469 public void moveAb(String apkPath, String instructionSet, String outputPath) in moveAb() argument 473 mInstalld.moveAb(apkPath, instructionSet, outputPath); in moveAb() 479 public void deleteOdex(String apkPath, String instructionSet, String outputPath) in deleteOdex() argument 483 mInstalld.deleteOdex(apkPath, instructionSet, outputPath); in deleteOdex() 509 public boolean reconcileSecondaryDexFile(String apkPath, String packageName, int uid, in reconcileSecondaryDexFile() argument 516 return mInstalld.reconcileSecondaryDexFile(apkPath, packageName, uid, isas, in reconcileSecondaryDexFile()
|
D | ProcessLoggingHandler.java | 71 void invalidateProcessLoggingBaseApkHash(String apkPath) { in invalidateProcessLoggingBaseApkHash() argument 73 data.putString("apkFile", apkPath); in invalidateProcessLoggingBaseApkHash()
|
D | OtaDexoptService.java | 260 public void dexopt(String apkPath, int uid, @Nullable String pkgName, in generatePackageDexopts() 274 encodeParameter(builder, apkPath); in generatePackageDexopts()
|
D | PackageManagerService.java | 8654 private boolean canSkipFullApkVerification(String apkPath) { 8657 rootHashObserved = VerityUtils.generateFsverityRootHash(apkPath); 8663 mInstaller.assertFsverityRootHashMatches(apkPath, rootHashObserved); 17458 String apkPath = null; 17465 apkPath = pkg.baseCodePath; 17469 if (apkPath != null) { 17471 VerityUtils.generateApkVeritySetupData(apkPath); 17473 if (Build.IS_DEBUGGABLE) Slog.i(TAG, "Enabling apk verity to " + apkPath); 17476 final byte[] signedRootHash = VerityUtils.generateFsverityRootHash(apkPath); 17477 mInstaller.installApkVerity(apkPath, fd, result.getContentSize()); [all …]
|
/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/av/media/libmedia/aidl/android/media/ |
D | IMediaExtractorUpdateService.aidl | 24 void loadPlugins(@utf8InCpp String apkPath); in loadPlugins() argument
|
/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 84 void moveAb(@utf8InCpp String apkPath, @utf8InCpp String instructionSet, in moveAb() argument 86 void deleteOdex(@utf8InCpp String apkPath, @utf8InCpp String instructionSet, in deleteOdex() argument
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaUpdateService.java | 151 private void loadExtractorPlugins(String apkPath) { in loadExtractorPlugins() argument 154 mMediaExtractorUpdateService.loadPlugins(apkPath); in loadExtractorPlugins()
|
/frameworks/base/core/java/android/webkit/ |
D | WebViewLibraryLoader.java | 327 private static WebViewNativeLibrary getLoadFromApkPath(String apkPath, in getLoadFromApkPath() argument 332 try (ZipFile z = new ZipFile(apkPath)) { in getLoadFromApkPath() 338 return new WebViewNativeLibrary(apkPath + "!/" + entry, e.getSize()); in getLoadFromApkPath()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/dex/ |
D | DexMetadataHelperTest.java | 233 private static boolean isDexMetadataForApk(String dmaPath, String apkPath) { in isDexMetadataForApk() argument 234 return apkPath.substring(0, apkPath.length() - APK_FILE_EXTENSION.length()).equals( in isDexMetadataForApk()
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.h | 82 binder::Status dexopt(const std::string& apkPath, int32_t uid, 121 binder::Status moveAb(const std::string& apkPath, const std::string& instructionSet, 123 binder::Status deleteOdex(const std::string& apkPath, const std::string& instructionSet,
|
D | InstalldNativeService.cpp | 1945 binder::Status InstalldNativeService::dexopt(const std::string& apkPath, int32_t uid, in dexopt() argument 1956 CHECK_ARGUMENT_PATH(apkPath); in dexopt() 1964 const char* apk_path = apkPath.c_str(); in dexopt() 2384 binder::Status InstalldNativeService::moveAb(const std::string& apkPath, in moveAb() argument 2387 CHECK_ARGUMENT_PATH(apkPath); in moveAb() 2391 const char* apk_path = apkPath.c_str(); in moveAb() 2399 binder::Status InstalldNativeService::deleteOdex(const std::string& apkPath, in deleteOdex() argument 2402 CHECK_ARGUMENT_PATH(apkPath); in deleteOdex() 2406 const char* apk_path = apkPath.c_str(); in deleteOdex()
|
/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 | 550 com_android_internal_content_NativeLibraryHelper_openApk(JNIEnv *env, jclass, jstring apkPath) in com_android_internal_content_NativeLibraryHelper_openApk() argument 552 ScopedUtfChars filePath(env, apkPath); in com_android_internal_content_NativeLibraryHelper_openApk()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageParser.java | 1305 final String apkPath = apkFile.getAbsolutePath(); in parseBaseApk() local 1308 if (apkPath.startsWith(MNT_EXPAND)) { in parseBaseApk() 1309 final int end = apkPath.indexOf('/', MNT_EXPAND.length()); in parseBaseApk() 1310 volumeUuid = apkPath.substring(MNT_EXPAND.length(), end); in parseBaseApk() 1316 if (DEBUG_JAR) Slog.d(TAG, "Scanning base APK: " + apkPath); in parseBaseApk() 1320 final int cookie = assets.findCookieForPath(apkPath); in parseBaseApk() 1323 "Failed adding asset path: " + apkPath); in parseBaseApk() 1329 final Package pkg = parseBaseApk(apkPath, res, parser, flags, outError); in parseBaseApk() 1332 apkPath + " (at " + parser.getPositionDescription() + "): " + outError[0]); in parseBaseApk() 1337 pkg.setBaseCodePath(apkPath); in parseBaseApk() [all …]
|