/frameworks/base/packages/CtsShim/build/ |
D | README | 9 For local testing, build the apk and put them in the following folders. 13 $ cp $OUT/system/priv-app/CtsShimPrivUpgrade/CtsShimPrivUpgrade.apk \ 14 cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/apk/arm 15 $ cp $OUT/system/priv-app/CtsShimPrivUpgrade/CtsShimPrivUpgrade.apk \ 16 vendor/xts/gts-tests/hostsidetests/packagemanager/app/apk/arm/GtsShimPrivUpgrade.apk 17 $ cp $OUT/system/priv-app/CtsShimPrivUpgradeWrongSHA/CtsShimPrivUpgradeWrongSHA.apk \ 18 cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/apk/arm 19 $ cp $OUT/system/priv-app/CtsShimPriv/CtsShimPriv.apk \ 20 frameworks/base/packages/CtsShim/apk/arm 21 $ cp $OUT/system/app/CtsShim/CtsShim.apk \ [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | AssetManager2_bench.cpp | 42 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path); in BM_AssetManagerLoadAssets() local 44 assets.SetApkAssets({apk.get()}); in BM_AssetManagerLoadAssets() 65 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path); in BM_AssetManagerLoadFrameworkAssets() local 67 assets.SetApkAssets({apk.get()}); in BM_AssetManagerLoadFrameworkAssets() 91 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path); in GetResourceBenchmark() local 92 if (apk == nullptr) { in GetResourceBenchmark() 96 apk_assets_ptrs.push_back(apk.get()); in GetResourceBenchmark() 97 apk_assets.push_back(std::move(apk)); in GetResourceBenchmark() 163 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in BM_AssetManagerGetBag() local 164 if (apk == nullptr) { in BM_AssetManagerGetBag() [all …]
|
D | Theme_bench.cpp | 31 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(kFrameworkPath); in BM_ThemeApplyStyleFramework() local 32 if (apk == nullptr) { in BM_ThemeApplyStyleFramework() 38 assets.SetApkAssets({apk.get()}); in BM_ThemeApplyStyleFramework() 65 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(kFrameworkPath); in BM_ThemeGetAttribute() local 68 assets.SetApkAssets({apk.get()}); in BM_ThemeGetAttribute()
|
/frameworks/base/packages/CtsShim/ |
D | Android.mk | 29 LOCAL_BUILT_MODULE_STEM := package.apk 37 LOCAL_SRC_FILES := apk/$(my_src_arch)/CtsShimPriv.apk 50 LOCAL_BUILT_MODULE_STEM := package.apk 58 LOCAL_SRC_FILES := apk/$(my_src_arch)/CtsShim.apk
|
/frameworks/base/tools/aapt2/cmd/ |
D | Optimize.cpp | 135 int Run(std::unique_ptr<LoadedApk> apk) { in Run() argument 141 if (!collapser.Consume(context_, apk->GetResourceTable())) { in Run() 146 if (!deduper.Consume(context_, apk->GetResourceTable())) { in Run() 162 splitter.SplitTable(apk->GetResourceTable()); in Run() 208 const std::string& path = apk->GetSource().path; in Run() 222 if (!apk->WriteToArchive(context_, options_.table_flattener_options, &filters, in Run() 233 if (!apk->WriteToArchive(context_, options_.table_flattener_options, writer.get())) { in Run() 311 bool ExtractAppDataFromManifest(OptimizeContext* context, LoadedApk* apk, in ExtractAppDataFromManifest() argument 313 io::IFile* manifest_file = apk->GetFileCollection()->FindFile("AndroidManifest.xml"); in ExtractAppDataFromManifest() 315 context->GetDiagnostics()->Error(DiagMessage(apk->GetSource()) in ExtractAppDataFromManifest() [all …]
|
/frameworks/base/tools/bit/ |
D | main.cpp | 766 InstallApk& apk = installApks[i]; in run_phases() local 767 if (!apk.file.fileInfo.exists || apk.file.HasChanged()) { in run_phases() 769 err = run_adb("install", "-r", "-g", apk.file.filename.c_str(), NULL); in run_phases() 771 apk.installed = true; in run_phases() 773 printf("APK didn't change. Skipping install of %s\n", apk.file.filename.c_str()); in run_phases() 801 Apk apk; in run_phases() local 802 err = inspect_apk(&apk, filename); in run_phases() 808 if (apk.runner.length() == 0) { in run_phases() 815 action.packageName = apk.package; in run_phases() 816 action.runner = apk.runner; in run_phases() [all …]
|
D | aapt.cpp | 159 inspect_apk(Apk* apk, const string& filename) in inspect_apk() argument 239 apk->package = root->GetAttr("", "package"); in inspect_apk() 240 if (apk->package.size() == 0) { in inspect_apk() 253 apk->runner = instrumentation[0]->GetAttr(ANDROID_NS, "name"); in inspect_apk() 264 apk->activities.push_back(full_class_name(apk->package, name)); in inspect_apk()
|
/frameworks/base/libs/androidfw/tests/data/libclient/ |
D | build | 21 PATH_TO_LIB_ONE=../lib_one/lib_one.apk 22 PATH_TO_LIB_TWO=../lib_two/lib_two.apk 30 -F libclient.apk -f
|
/frameworks/base/tools/aapt2/ |
D | LoadedApk.cpp | 32 std::unique_ptr<io::ZipFileCollection> apk = io::ZipFileCollection::Create(path, &error); in LoadApkFromPath() local 33 if (!apk) { in LoadApkFromPath() 38 io::IFile* file = apk->FindFile("resources.arsc"); in LoadApkFromPath() 51 BinaryResourceParser parser(context, table.get(), source, data->data(), data->size(), apk.get()); in LoadApkFromPath() 55 return util::make_unique<LoadedApk>(source, std::move(apk), std::move(table)); in LoadApkFromPath()
|
D | LoadedApk.h | 36 std::unique_ptr<io::IFileCollection> apk, in LoadedApk() argument 38 : source_(source), apk_(std::move(apk)), table_(std::move(table)) {} in LoadedApk()
|
/frameworks/base/core/java/android/util/apk/ |
D | ApkSignatureSchemeV2Verifier.java | 17 package android.util.apk; 88 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in hasSignature() argument 89 findSignature(apk); in hasSignature() 106 try (RandomAccessFile apk = new RandomAccessFile(apkFile, "r")) { in verify() argument 107 return verify(apk); in verify() 120 private static X509Certificate[][] verify(RandomAccessFile apk) in verify() argument 122 SignatureInfo signatureInfo = findSignature(apk); in verify() 123 return verify(apk.getFD(), signatureInfo); in verify() 167 private static SignatureInfo findSignature(RandomAccessFile apk) in findSignature() argument 170 Pair<ByteBuffer, Long> eocdAndOffsetInFile = getEocd(apk); in findSignature() [all …]
|
/frameworks/base/libs/androidfw/tests/data/app/ |
D | build | 20 aapt package -I ../system/system.apk -M AndroidManifest.xml -S res -F app.apk -f
|
/frameworks/base/libs/androidfw/tests/data/appaslib/ |
D | build | 22 aapt package -M AndroidManifest.xml -S res -I $PATH_TO_FRAMEWORK_RES -F appaslib.apk -f 23 aapt package -M AndroidManifest.xml -S res -I $PATH_TO_FRAMEWORK_RES -F appaslib_lib.apk -f --share…
|
/frameworks/base/libs/androidfw/tests/data/feature/ |
D | build | 23 aapt2 link -o feature.apk \ 26 -I ../basic/basic.apk \
|
/frameworks/opt/setupwizard/library/ |
D | self.gradle | 69 // setup-wizard-libTest.apk 72 from "${project.ext.distDir}/setup-wizard-lib-gingerbreadCompat-debug-androidTest.apk" 74 rename ('setup-wizard-lib-gingerbreadCompat-debug-androidTest.apk', 'setup-wizard-libTest.apk')
|
/frameworks/base/libs/androidfw/tests/data/sparse/ |
D | build | 23 aapt2 link --manifest AndroidManifest.xml -I $PATH_TO_FRAMEWORK_RES -o sparse.apk --enable-sparse-e… 24 aapt2 link --manifest AndroidManifest.xml -I $PATH_TO_FRAMEWORK_RES -o not_sparse.apk compiled.flata
|
/frameworks/multidex/library/src/android/support/multidex/ |
D | MultiDexExtractor.java | 244 final ZipFile apk = new ZipFile(sourceApk); in performExtractions() local 249 ZipEntry dexFile = apk.getEntry(DEX_PREFIX + secondaryNumber + DEX_SUFFIX); in performExtractions() 263 extract(apk, dexFile, extractedFile, extractedFilePrefix); in performExtractions() 293 dexFile = apk.getEntry(DEX_PREFIX + secondaryNumber + DEX_SUFFIX); in performExtractions() 297 apk.close(); in performExtractions() 370 private static void extract(ZipFile apk, ZipEntry dexFile, File extractTo, in extract() argument 373 InputStream in = apk.getInputStream(dexFile); in extract()
|
D | ZipUtil.java | 54 static long getZipCrc(File apk) throws IOException { in getZipCrc() argument 55 RandomAccessFile raf = new RandomAccessFile(apk, "r"); in getZipCrc()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/ |
D | README.txt | 21 From root: make SmartCamera will build the apk for generic 24 Then take the given Install path (out/target/.../SmartCamera.apk) 25 and run adb install out/target/.../SmartCamera.apk. The application should 33 adb install -r $ANDROID_PRODUCT_OUT/data/app/SmartCamera.apk
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageInstallerSession.java | 1029 final ApkLite apk; in validateInstallLocked() local 1035 apk = PackageParser.parseApkLite(addedFile, flags); in validateInstallLocked() 1040 if (!stagedSplits.add(apk.splitName)) { in validateInstallLocked() 1042 "Split " + apk.splitName + " was defined multiple times"); in validateInstallLocked() 1047 mPackageName = apk.packageName; in validateInstallLocked() 1048 mVersionCode = apk.versionCode; in validateInstallLocked() 1051 mSignatures = apk.signatures; in validateInstallLocked() 1052 mCertificates = apk.certificates; in validateInstallLocked() 1055 assertApkConsistentLocked(String.valueOf(addedFile), apk); in validateInstallLocked() local 1059 if (apk.splitName == null) { in validateInstallLocked() [all …]
|
/frameworks/base/core/tests/BTtraffic/ |
D | README | 19 On both the server and client device, install the 2 apk: 20 $ adb install $OUT/system/app/bttraffic/bttraffic.apk 21 $ adb install $OUT/system/app/svcmonitor/svcmonitor.apk
|
/frameworks/opt/setupwizard/tools/gradle/ |
D | dist-library-instrumentation-tests.gradle | 8 * "${project.archivesBaseName}Tests.apk". This allows multiple flavors of test APKs to be built 23 // the output file will be named "setup-wizard-lib-platform-debug-androidTest.apk"
|
/frameworks/base/libs/androidfw/tests/data/system/ |
D | build | 20 aapt package -x -M AndroidManifest.xml -S res -F system.apk -f
|
/frameworks/base/libs/androidfw/tests/data/overlay/ |
D | build | 20 aapt package -M AndroidManifest.xml -S res -F overlay.apk -f
|
/frameworks/base/libs/androidfw/tests/data/lib_one/ |
D | build | 20 aapt package -M AndroidManifest.xml -S res -F lib_one.apk -f --shared-lib
|