Home
last modified time | relevance | path

Searched refs:apex_path (Results 1 – 11 of 11) sorted by relevance

/system/apex/apexd/
Dapex_file_repository.cpp196 const ApexPath& apex_path = apex_paths[current_index]; in OpenApexFiles() local
197 Result<ApexFile> apex_file = ApexFile::Open(apex_path.path); in OpenApexFiles()
200 apex_path.partition), in OpenApexFiles()
203 return Error() << "Failed to open apex file " << apex_path.path in OpenApexFiles()
242 for (const auto& apex_path : all_apex_paths) { in AddPreInstalledApex() local
243 Result<ApexFile> apex_file = ApexFile::Open(apex_path.path); in AddPreInstalledApex()
245 return Error() << "Failed to open " << apex_path.path << " : " in AddPreInstalledApex()
249 StorePreInstalledApex(std::move(*apex_file), apex_path.partition); in AddPreInstalledApex()
331 const std::string apex_path = in AddBlockApex() local
334 auto apex_ready = WaitForFile(apex_path, kBlockApexWaitTime); in AddBlockApex()
[all …]
Dapexd_image_manager.cpp120 auto apex_path = apex_file.GetPath(); in PinApexFiles() local
121 auto file_size = OR_RETURN(GetFileSize(apex_path)); in PinApexFiles()
130 << apex_path; in PinApexFiles()
142 OR_RETURN(SendFile(device->fd(), apex_path, file_size)); in PinApexFiles()
Dapex_file.h66 ApexFile(const std::string& apex_path, in ApexFile() argument
71 : apex_path_(apex_path), in ApexFile()
Dapexd_test.cpp955 auto apex_path = vm_payload_disk_ + std::to_string(block_device_index_++); in AddBlockApex() local
959 auto block_apex = WriteBlockApex(apex_file, apex_path); in AddBlockApex()
964 return apex_path; in AddBlockApex()
2322 std::string apex_path = in TEST_F() local
2344 /* preinstalledModulePath= */ apex_path, in TEST_F()
2366 std::string apex_path = in TEST_F() local
2400 std::string apex_path = in TEST_F() local
2422 /* preinstalledModulePath= */ apex_path, in TEST_F()
2448 auto apex_path = in TEST_F() local
2450 fs::copy(GetTestFile("com.android.apex.compressed.v1.capex"), apex_path); in TEST_F()
[all …]
Dapexd_test_utils.h352 const std::string& apex_path) { in WriteBlockApex() argument
353 std::string intermediate_path = apex_path + ".intermediate"; in WriteBlockApex()
355 auto result = MountViaLoopDevice(intermediate_path, apex_path); in WriteBlockApex()
359 return BlockApex(std::move(*result), apex_path); in WriteBlockApex()
Dapex_file_test.cpp164 const std::string apex_path = kTestDataDir + "corrupted_b146895998.apex"; in TEST() local
165 Result<ApexFile> apex = ApexFile::Open(apex_path); in TEST()
Dapexd.cpp2447 const std::string& apex_path) { in OpenAndValidateDecompressedApex() argument
2448 auto apex = ApexFile::Open(apex_path); in OpenAndValidateDecompressedApex()
2456 auto ctx = GetfileconPath(apex_path); in OpenAndValidateDecompressedApex()
2461 return Error() << apex_path << " has wrong SELinux context " << *ctx; in OpenAndValidateDecompressedApex()
/system/apex/libs/libapexutil/
Dapexutil.cpp73 std::string apex_path = apex_root + "/" + entry->d_name; in GetActivePackages() local
74 auto manifest = ParseApexManifest(apex_path + "/apex_manifest.pb"); in GetActivePackages()
76 apexes.emplace(std::move(apex_path), std::move(*manifest)); in GetActivePackages()
/system/apex/tools/
Dhost_apex_verifier.cc161 const std::string& apex_path, const std::string& partition_tag) { in ScanApex() argument
162 LOG(INFO) << "Checking APEX " << apex_path; in ScanApex()
164 auto apex = OR_FATAL(ApexFile::Open(apex_path)); in ScanApex()
170 deapexer + " extract " + apex_path + " " + extracted_apex_dir; in ScanApex()
Dapexd_host.py208 ActivateApexes(partitions, args.apex_path, tools)
Ddeapexer.py372 def GetType(apex_path): argument
373 with zipfile.ZipFile(apex_path, 'r') as zip_file: