Searched defs:apk (Results 1 - 6 of 6) sorted by relevance

/frameworks/multidex/library/src/android/support/multidex/
H A DZipUtil.java49 * Compute crc32 of the central directory of an apk. The central directory contains
54 static long getZipCrc(File apk) throws IOException { argument
55 RandomAccessFile raf = new RandomAccessFile(apk, "r");
H A DMultiDexExtractor.java167 // contains a secondary dex file in there is not consistent with the latest apk. Otherwise,
174 final ZipFile apk = new ZipFile(sourceApk);
179 ZipEntry dexFile = apk.getEntry(DEX_PREFIX + secondaryNumber + DEX_SUFFIX);
192 // (dexFile) from the apk.
193 extract(apk, dexFile, extractedFile, extractedFilePrefix);
217 dexFile = apk.getEntry(DEX_PREFIX + secondaryNumber + DEX_SUFFIX);
221 apk.close();
279 private static void extract(ZipFile apk, ZipEntry dexFile, File extractTo, argument
282 InputStream in = apk.getInputStream(dexFile);
/frameworks/base/core/java/android/util/apk/
H A DZipUtils.java17 package android.util.apk;
H A DApkSignatureSchemeV2Verifier.java17 package android.util.apk;
88 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) {
89 findSignature(apk);
106 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) {
107 return verify(apk);
120 private static X509Certificate[][] verify(RandomAccessFile apk) argument
122 SignatureInfo signatureInfo = findSignature(apk);
123 return verify(apk.getFD(), signatureInfo);
167 private static SignatureInfo findSignature(RandomAccessFile apk) argument
170 Pair<ByteBuffer, Long> eocdAndOffsetInFile = getEocd(apk);
567 getEocd(RandomAccessFile apk) argument
858 findApkSigningBlock( RandomAccessFile apk, long centralDirOffset) argument
[all...]
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageInstallerSession.java680 final ApkLite apk;
682 apk = PackageParser.parseApkLite(
688 if (!stagedSplits.add(apk.splitName)) {
690 "Split " + apk.splitName + " was defined multiple times");
695 mPackageName = apk.packageName;
696 mVersionCode = apk.versionCode;
699 mSignatures = apk.signatures;
700 mCertificates = apk.certificates;
703 assertApkConsistent(String.valueOf(addedFile), apk);
707 if (apk
825 assertApkConsistent(String tag, ApkLite apk) argument
[all...]
H A DPackageManagerService.java641 public final String apk; field in class:PackageManagerService.SharedLibraryEntry
645 apk = _apk;
2337 // Set flag to monitor and not change apk file paths when
2889 return libraryEntry.apk;
2896 intent.setDataAndType(Uri.fromFile(new File("foo.apk")), PACKAGE_MIME_TYPE);
2995 intent.setDataAndType(Uri.fromFile(new File("foo.apk")), PACKAGE_MIME_TYPE);
6907 // or may need to not add child packages if the parent apk is updated
7083 // The apk is forward locked (not public) if its code and resources
7505 if (lib != null && lib.apk != null) {
7506 return mPackages.get(lib.apk);
[all...]

Completed in 1442 milliseconds