Home
last modified time | relevance | path

Searched refs:apkPath (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/core/java/android/util/apk/
DApkSignatureVerifier.java81 public static ParseResult<SigningDetails> verify(ParseInput input, String apkPath, in verify() argument
83 return verifySignatures(input, apkPath, minSignatureSchemeVersion, true /* verifyFull */); in verify()
92 ParseInput input, String apkPath, int minSignatureSchemeVersion) { in unsafeGetCertsWithoutVerification() argument
93 return verifySignatures(input, apkPath, minSignatureSchemeVersion, false /* verifyFull */); in unsafeGetCertsWithoutVerification()
101 private static ParseResult<SigningDetails> verifySignatures(ParseInput input, String apkPath, in verifySignatures() argument
104 verifySignaturesInternal(input, apkPath, minSignatureSchemeVersion, verifyFull); in verifySignatures()
115 Slog.i(LOG_TAG, "Applying override signing details for APK " + apkPath); in verifySignatures()
165 String apkPath, @SignatureSchemeVersion int minSignatureSchemeVersion, in verifySignaturesInternal() argument
172 + " or newer for package " + apkPath); in verifySignaturesInternal()
177 return verifyV4Signature(input, apkPath, minSignatureSchemeVersion, verifyFull); in verifySignaturesInternal()
[all …]
DApkSignatureSchemeV2Verifier.java402 static byte[] getVerityRootHash(String apkPath) in getVerityRootHash() argument
404 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in getVerityRootHash()
411 static byte[] generateApkVerity(String apkPath, ByteBufferFactory bufferFactory) in generateApkVerity() argument
414 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateApkVerity()
416 return VerityBuilder.generateApkVerity(apkPath, bufferFactory, signatureInfo); in generateApkVerity()
DApkSignatureSchemeV3Verifier.java530 static byte[] getVerityRootHash(String apkPath) in getVerityRootHash() argument
532 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in getVerityRootHash()
539 static byte[] generateApkVerity(String apkPath, ByteBufferFactory bufferFactory) in generateApkVerity() argument
542 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateApkVerity()
544 return VerityBuilder.generateApkVerity(apkPath, bufferFactory, signatureInfo); in generateApkVerity()
DVerityBuilder.java131 public static byte[] generateFsVerityRootHash(@NonNull String apkPath, byte[] salt, in generateFsVerityRootHash() argument
134 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateFsVerityRootHash()
157 static byte[] generateApkVerity(@NonNull String apkPath, in generateApkVerity() argument
161 try (RandomAccessFile apk = new RandomAccessFile(apkPath, "r")) { in generateApkVerity()
/frameworks/base/test-runner/src/android/test/
DClassPathPackageInfoSource.java125 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/base/services/tests/mockingservicestests/src/com/android/server/pm/
DSharedLibrariesImplTest.kt260 assertThat(testPackageSetting.usesLibraryFiles).contains(apkPath(DYNAMIC_LIB_PACKAGE_NAME)) in <lambda>()
274 assertThat(testPackageSetting.usesLibraryFiles).contains(apkPath(DYNAMIC_LIB_PACKAGE_NAME)) in <lambda>()
276 .contains(apkPath(STATIC_LIB_DECLARING_PACKAGE_NAME)) in <lambda>()
297 assertThat(testPackageSetting.usesLibraryFiles).contains(apkPath(DYNAMIC_LIB_PACKAGE_NAME)) in <lambda>()
302 assertThat(testPackageSetting.usesLibraryFiles).contains(apkPath(DYNAMIC_LIB_PACKAGE_NAME)) in <lambda>()
304 .contains(apkPath(STATIC_LIB_DECLARING_PACKAGE_NAME)) in <lambda>()
474 listOf(apkPath(declaringPackageName)), in <lambda>()
486 listOf(apkPath(packageName)), in <lambda>()
498 private fun apkPath(packageName: String) = in <lambda>() method in com.android.server.pm.SharedLibrariesImplTest
DMockSystem.kt426 val apkPath = pair.first constant
428 stageParse(apkPath, pkg)
429 val parentFile = apkPath.parentFile
446 val apkPath = File(File(parent, packageName), "base.apk") in createBasicAndroidPackage() constant
447 val pkg = PackageImpl.forTesting(packageName, apkPath.parentFile.path) as PackageImpl in createBasicAndroidPackage()
456 return Pair(apkPath, pkg) in createBasicAndroidPackage()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DArtStatsLogUtils.java150 String apkPath) { in writeStatsLog() argument
168 getDexBytes(apkPath), in writeStatsLog()
194 private static long getDexBytes(String apkPath) { in getDexBytes() argument
198 jarFile = new StrictJarFile(apkPath, in getDexBytes()
213 Slog.e(TAG, "Error when parsing APK " + apkPath); in getDexBytes()
/frameworks/base/apct-tests/perftests/permission/src/android/perftests/permission/
DPermissionManagerPerfTest.kt53 val apkPath = "$APK_DIR${APK_NAME}.apk" in setup() constant
54 runShellCommand("pm install -tg $apkPath") in setup()
DPermissionServicePerfTest.kt81 val apkPath = "$APK_DIR$APK_NAME$appId.apk" in <lambda>() constant
82 runShellCommand("pm install -t $apkPath") in <lambda>()
/frameworks/base/core/java/com/android/internal/pm/split/
DDefaultSplitAssetLoader.java79 for (String apkPath : mSplitApkPaths) { in getBaseAssetManager()
80 apkAssets[splitIdx++] = loadApkAssets(apkPath, mFlags); in getBaseAssetManager()
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplTestsBase.java284 .filter(p -> p.apkPath.equals(path)).findFirst().orElse(null); in selectFromPath()
332 final String apkPath = String.format("%s/%s/base.apk", path, packageName); in build() local
334 targetOverlayableName, version, apkPath, certificate); in build()
345 final String apkPath; field in OverlayManagerServiceImplTestsBase.FakeDeviceState.Package
351 String targetOverlayableName, int versionCode, String apkPath, in Package() argument
357 this.apkPath = apkPath; in Package()
373 when(baseSplit.getPath()).thenReturn(apkPath); in getPackageForUser()
DOverlayManagerServiceImplTests.java247 final String overlayPath = state.select(OVERLAY, USER).apkPath; in testConfigSignaturePolicyOk()
267 final String overlayPath = state.select(OVERLAY, USER).apkPath; in testConfigSignaturePolicyCertNok()
284 final String overlayPath = state.select(OVERLAY, USER).apkPath; in testConfigSignaturePolicyNoConfig()
300 final String overlayPath = state.select(OVERLAY, USER).apkPath; in testConfigSignaturePolicyNoRefPkg()
320 String overlayPath = state.select(OVERLAY, USER).apkPath; in testConfigSignaturePolicyRefPkgNotSystem()
/frameworks/native/cmds/installd/binder/android/os/
DIInstalld.aidl61 boolean dexopt(@utf8InCpp String apkPath, int uid, @utf8InCpp String packageName, in dexopt() argument
97 void moveAb(@utf8InCpp String packageName, @utf8InCpp String apkPath, in moveAb() argument
99 long deleteOdex(@utf8InCpp String packageName, @utf8InCpp String apkPath, in deleteOdex() argument
132 int getOdexVisibility(@utf8InCpp String packageName, @utf8InCpp String apkPath, in getOdexVisibility() argument
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistLoggingHandler.java343 final String apkPath = mPm.getPackageInfoAsUser(packageName, in getDigestFromUid() local
347 if (TextUtils.isEmpty(apkPath)) { in getDigestFromUid()
351 if (isIncrementalPath(apkPath)) { in getDigestFromUid()
358 ? mApkHashCache.getSha256Hash(new File(apkPath)) in getDigestFromUid()
359 : DigestUtils.getSha256Hash(new File(apkPath)); in getDigestFromUid()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DServiceRestarterTest.java382 final String apkPath = LOCAL_APK_BASE_PATH + TEST_PACKAGE3_APK; in testServiceWithDepPkgStopped() local
410 assertTrue("Unable to install package " + apkPath, installPackage(apkPath)); in testServiceWithDepPkgStopped()
435 private boolean installPackage(String apkPath) throws Exception { in installPackage() argument
436 return executeShellCmd("pm install -t " + apkPath).equals("Success\n"); in installPackage()
/frameworks/base/services/tests/PackageManagerServiceTests/appenumeration/src/com/android/server/pm/test/appenumeration/
DAppEnumerationInternalTests.java193 private static void installPackage(String apkPath, boolean forceQueryable) { in installPackage() argument
198 cmd.append(apkPath); in installPackage()
/frameworks/base/core/java/android/content/pm/parsing/
DApkLiteParseUtils.java352 final String apkPath = fd != null ? debugPathName : apkFile.getAbsolutePath(); in parseApkLiteInner() local
360 : ApkAssets.loadFromPath(apkPath); in parseApkLiteInner()
363 "Failed to parse " + apkPath, e); in parseApkLiteInner()
389 return parseApkLite(input, apkPath, parser, signingDetails, flags); in parseApkLiteInner()
391 Slog.w(TAG, "Failed to parse " + apkPath, e); in parseApkLiteInner()
393 "Failed to parse " + apkPath, e); in parseApkLiteInner()
/frameworks/native/cmds/installd/
DInstalldNativeService.h136 binder::Status dexopt(const std::string& apkPath, int32_t uid, const std::string& packageName,
177 binder::Status moveAb(const std::string& packageName, const std::string& apkPath,
179 binder::Status deleteOdex(const std::string& packageName, const std::string& apkPath,
206 binder::Status getOdexVisibility(const std::string& packageName, const std::string& apkPath,
/frameworks/base/core/tests/coretests/src/android/util/apk/
DSourceStampVerifierTest.java246 private File getApk(String apkPath) throws IOException { in getApk() argument
248 try (InputStream inputStream = mContext.getAssets().open(apkPath)) { in getApk()
/frameworks/base/services/tests/BackgroundInstallControlServiceTests/host/test-app/BackgroundInstallControlServiceTestApp/src/com/android/server/pm/test/app/
DBackgroundInstallControlServiceTest.java177 private static boolean installPackage(String apkPath, String packageName) { in installPackage() argument
204 FileInputStream fis = new FileInputStream(apkPath); in installPackage()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexMetadataHelperTest.java433 private static boolean isDexMetadataForApk(String dmaPath, String apkPath) { in isDexMetadataForApk() argument
434 return apkPath.substring(0, apkPath.length() - APK_FILE_EXTENSION.length()).equals( in isDexMetadataForApk()
/frameworks/base/core/java/com/android/internal/pm/pkg/parsing/
DParsingPackageUtils.java556 private static String getVolumeUuid(final String apkPath) {
558 if (apkPath.startsWith(MNT_EXPAND)) {
559 final int end = apkPath.indexOf('/', MNT_EXPAND.length());
560 volumeUuid = apkPath.substring(MNT_EXPAND.length(), end);
568 final String apkPath = apkFile.getAbsolutePath();
570 final String volumeUuid = getVolumeUuid(apkPath);
572 if (DEBUG_JAR) Slog.d(TAG, "Scanning base APK: " + apkPath);
581 final int cookie = assets.findCookieForPath(apkPath);
584 "Failed adding asset path: " + apkPath);
591 ParseResult<ParsingPackage> result = parseBaseApk(input, apkPath, codePath, res,
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DInstaller.java595 public boolean dexopt(String apkPath, int uid, String pkgName, String instructionSet, in dexopt() argument
701 public void moveAb(String packageName, String apkPath, String instructionSet, String outputPath) in moveAb() argument
704 BlockGuard.getVmPolicy().onPathAccess(apkPath); in moveAb()
707 mInstalld.moveAb(packageName, apkPath, instructionSet, outputPath); in moveAb()
DOtaDexoptService.java298 public boolean dexopt(String apkPath, int uid, @Nullable String pkgName, in generatePackageDexopts()
318 encodeParameter(builder, apkPath); in generatePackageDexopts()

12