Home
last modified time | relevance | path

Searched refs:apk_path (Results 1 – 4 of 4) sorted by relevance

/packages/modules/adb/client/
Dfastdeploy.cpp151 static std::string get_package_name_from_apk(const char* apk_path) { in get_package_name_from_apk() argument
153 std::unique_ptr<android::ZipFileRO> zip_file((android::ZipFileRO::open)(apk_path)); in get_package_name_from_apk()
156 perror_exit("Could not open %s", apk_path); in get_package_name_from_apk()
160 error_exit("Could not find AndroidManifest.xml inside %s", apk_path); in get_package_name_from_apk()
164 error_exit("Could not read AndroidManifest.xml inside %s", apk_path); in get_package_name_from_apk()
168 error_exit("Could not uncompress AndroidManifest.xml inside %s", apk_path); in get_package_name_from_apk()
173 error_exit("Could not parse AndroidManifest.xml inside %s", apk_path); in get_package_name_from_apk()
214 error_exit("Could not find package name tag in AndroidManifest.xml inside %s", apk_path); in get_package_name_from_apk()
238 std::optional<APKMetaData> extract_metadata(const char* apk_path) { in extract_metadata() argument
244 std::string package_name = get_package_name_from_apk(apk_path); in extract_metadata()
[all …]
Dfastdeploy.h35 std::optional<com::android::fastdeploy::APKMetaData> extract_metadata(const char* apk_path);
38 int stream_patch(const char* apk_path, com::android::fastdeploy::APKMetaData metadata,
/packages/modules/Virtualization/apkdmverity/src/
Dmain.rs178 let apk_path = test_dir.join("test.apk"); in prepare_inputs() localVariable
180 create_block_aligned_file(&apk_path, apk); in prepare_inputs()
182 (apk_path, idsig_path) in prepare_inputs()
200 let (apk_path, idsig_path) = prepare_inputs(test_dir.path(), apk, idsig); in run_test_with_hash()
203 let ret = enable_verity(&apk_path, &idsig_path, name, roothash).unwrap(); in run_test_with_hash()
212 data_backing_file: &apk_path, in run_test_with_hash()
319 let (apk_path, idsig_path) = prepare_inputs(test_dir.path(), apk, idsig); in inputs_are_block_devices()
322 let apk_size = fs::metadata(&apk_path).unwrap().len(); in inputs_are_block_devices()
329 let apk_loop_device = loopdevice::attach(&apk_path, 0, apk_size, true).unwrap(); in inputs_are_block_devices()
347 let original = fs::read(&apk_path).unwrap(); in inputs_are_block_devices()
/packages/modules/Virtualization/microdroid/payload/
Dmk_payload.cc255 std::string apk_path = RelativeTo(config.apk->path, config.dirname); in MakePayload() local
256 if (auto ret = add_partition("microdroid-apk", apk_path); !ret.ok()) { in MakePayload()