/frameworks/base/tools/aapt2/ |
H A D | LoadedApk.cpp | 32 std::unique_ptr<io::ZipFileCollection> apk = io::ZipFileCollection::Create(path, &error); local 33 if (!apk) { 38 io::IFile* file = apk->FindFile("resources.arsc"); 51 BinaryResourceParser parser(context, table.get(), source, data->data(), data->size(), apk.get()); 55 return util::make_unique<LoadedApk>(source, std::move(apk), std::move(table));
|
H A D | LoadedApk.h | 35 std::unique_ptr<io::IFileCollection> apk, 37 : source_(source), apk_(std::move(apk)), table_(std::move(table)) {} 33 LoadedApk( const Source& source, std::unique_ptr<io::IFileCollection> apk, std::unique_ptr<ResourceTable> table) argument
|
/frameworks/multidex/library/src/android/support/multidex/ |
H A D | ZipUtil.java | 49 * 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 D | MultiDexExtractor.java | 233 // contains a secondary dex file in there is not consistent with the latest apk. Otherwise, 240 final ZipFile apk = new ZipFile(sourceApk); 245 ZipEntry dexFile = apk.getEntry(DEX_PREFIX + secondaryNumber + DEX_SUFFIX); 258 // (dexFile) from the apk. 259 extract(apk, dexFile, extractedFile, extractedFilePrefix); 289 dexFile = apk.getEntry(DEX_PREFIX + secondaryNumber + DEX_SUFFIX); 293 apk.close(); 366 private static void extract(ZipFile apk, ZipEntry dexFile, File extractTo, argument 369 InputStream in = apk.getInputStream(dexFile);
|
/frameworks/base/libs/androidfw/tests/ |
H A D | Theme_bench.cpp | 26 constexpr const static char* kFrameworkPath = "/system/framework/framework-res.apk"; 31 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(kFrameworkPath); local 32 if (apk == nullptr) { 38 assets.SetApkAssets({apk.get()}); 65 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(kFrameworkPath); local 68 assets.SetApkAssets({apk.get()});
|
H A D | AssetManager2_bench.cpp | 37 constexpr const static char* kFrameworkPath = "/system/framework/framework-res.apk"; 40 std::string path = GetTestDataPath() + "/basic/basic.apk"; 42 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path); local 44 assets.SetApkAssets({apk.get()}); 50 String8 path((GetTestDataPath() + "/basic/basic.apk").data()); 65 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path); local 67 assets.SetApkAssets({apk.get()}); 91 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path); local 92 if (apk == nullptr) { 96 apk_assets_ptrs.push_back(apk 163 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); local 211 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(kFrameworkPath); local [all...] |
/frameworks/base/core/java/android/util/apk/ |
H A D | ZipUtils.java | 17 package android.util.apk;
|
H A D | ApkSignatureSchemeV2Verifier.java | 17 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/tools/aapt2/cmd/ |
H A D | Optimize.cpp | 123 int Run(std::unique_ptr<LoadedApk> apk) { argument 129 if (!collapser.Consume(context_, apk->GetResourceTable())) { 134 if (!deduper.Consume(context_, apk->GetResourceTable())) { 150 splitter.SplitTable(apk->GetResourceTable()); 180 if (!apk->WriteToArchive(context_, options_.table_flattener_options, writer.get())) { 257 bool ExtractAppDataFromManifest(OptimizeContext* context, LoadedApk* apk, argument 259 io::IFile* manifest_file = apk->GetFileCollection()->FindFile("AndroidManifest.xml"); 261 context->GetDiagnostics()->Error(DiagMessage(apk->GetSource()) 315 "Split APK.\nSyntax: path/to/output.apk;<config>[,<config>[...]].\n" 334 std::unique_ptr<LoadedApk> apk local [all...] |
/frameworks/base/tools/bit/ |
H A D | aapt.cpp | 29 const string ANDROID_NS("http://schemas.android.com/apk/res/android"); 159 inspect_apk(Apk* apk, const string& filename) argument 239 apk->package = root->GetAttr("", "package"); 240 if (apk->package.size() == 0) { 253 apk->runner = instrumentation[0]->GetAttr(ANDROID_NS, "name"); 264 apk->activities.push_back(full_class_name(apk->package, name));
|
H A D | main.cpp | 140 // The package name from the apk 169 // The package name from the apk 311 fprintf(out, " Builds SystemUI.apk, syncs the system partition and reboots.\n"); 314 fprintf(out, " Builds this CTS apk, adb installs it, but does not run any\n"); 324 fprintf(out, " Builds this CTS apk, adb installs it, and runs all the tests\n"); 325 fprintf(out, " contained in that apk.\n"); 328 fprintf(out, " Builds the framework and the apk, syncs and reboots, then\n"); 329 fprintf(out, " adb installs CtsProtoTestCases.apk, and runs all tests \n"); 330 fprintf(out, " contained in that apk.\n"); 334 fprintf(out, " Builds and installs CtsProtoTestCases.apk, an 731 InstallApk& apk = installApks[i]; local 766 Apk apk; local 883 const InstallApk& apk = installApks[i]; local 894 const InstallApk& apk = installApks[i]; local [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageInstallerSession.java | 723 final ApkLite apk; 729 apk = PackageParser.parseApkLite(addedFile, flags); 734 if (!stagedSplits.add(apk.splitName)) { 736 "Split " + apk.splitName + " was defined multiple times"); 741 mPackageName = apk.packageName; 742 mVersionCode = apk.versionCode; 745 mSignatures = apk.signatures; 746 mCertificates = apk.certificates; 749 assertApkConsistent(String.valueOf(addedFile), apk); 753 if (apk 875 assertApkConsistent(String tag, ApkLite apk) argument [all...] |
H A D | PackageManagerService.java | 785 // Static RROs targeting to "android", ie framework-res.apk, are already applied by 874 public final @Nullable String apk; field in class:PackageManagerService.SharedLibraryEntry 880 apk = _apk; 2569 // Set flag to monitor and not change apk file paths when 3139 return libraryEntry.apk; 3146 intent.setDataAndType(Uri.fromFile(new File("foo.apk")), PACKAGE_MIME_TYPE); 3289 intent.setDataAndType(Uri.fromFile(new File("foo.apk")), PACKAGE_MIME_TYPE); 4864 PackageSetting ps = mSettings.getPackageLPr(libEntry.apk); 8913 // or may need to not add child packages if the parent apk is updated 9089 // The apk i 10927 addSharedLibraryLPw(String path, String apk, String name, int version, int type, String declaringPackageName, int declaringVersionCode) argument [all...] |