Home
last modified time | relevance | path

Searched refs:pkgPath (Results 1 – 25 of 36) sorted by relevance

12

/base/update/updater/services/package/pkg_verify/
Dhash_data_verifier.cpp38 bool HashDataVerifier::LoadHashDataAndPkcs7(const std::string &pkgPath) in LoadHashDataAndPkcs7() argument
41 if (pkgPath == UPDATRE_SCRIPT_ZIP) { in LoadHashDataAndPkcs7()
56 if (!LoadPkcs7FromPackage(pkgPath)) { in LoadHashDataAndPkcs7()
57 PKG_LOGE("load pkcs7 from %s failed", pkgPath.c_str()); in LoadHashDataAndPkcs7()
58 UPDATER_LAST_WORD(PKG_INVALID_FILE, pkgPath); in LoadHashDataAndPkcs7()
62 PKG_LOGE("load pkcs7 from %s failed", pkgPath.c_str()); in LoadHashDataAndPkcs7()
63 UPDATER_LAST_WORD(PKG_INVALID_FILE, pkgPath); in LoadHashDataAndPkcs7()
114 bool HashDataVerifier::LoadPkcs7FromPackage(const std::string &pkgPath) in LoadPkcs7FromPackage() argument
117 int32_t ret = manager_->CreatePkgStream(pkgStream, pkgPath, 0, PkgStream::PkgStreamType_Read); in LoadPkcs7FromPackage()
119 PKG_LOGE("CreatePackage fail %s", pkgPath.c_str()); in LoadPkcs7FromPackage()
[all …]
/base/update/sys_installer/services/ab_update/include/
Dab_update.h28 const std::string &pkgPath) : statusManager_(statusManager), pkgPath_(pkgPath) {} in ABUpdate() argument
38 Updater::UpdaterStatus StartABUpdate(const std::string &pkgPath);
/base/update/sys_installer/frameworks/actions/verify_action/include/
Dpkg_verify.h28 const std::string &pkgPath) : statusManager_(statusManager), pkgPath_(pkgPath) {} in PkgVerify() argument
39 virtual int Verify(const std::string &pkgPath);
/base/update/sys_installer/frameworks/installer_manager/src/
Dinstaller_manager_helper.cpp43 int32_t InstallerManagerHelper::StartUpdatePackageZip(const std::string &pkgPath) in StartUpdatePackageZip() argument
54 ActionProcesser::GetInstance().AddAction(std::make_unique<PkgVerify>(statusManager_, pkgPath)); in StartUpdatePackageZip()
55 ActionProcesser::GetInstance().AddAction(std::make_unique<ABUpdate>(statusManager_, pkgPath)); in StartUpdatePackageZip()
78 int32_t InstallerManagerHelper::StartUpdateParaZip(const std::string &pkgPath, in StartUpdateParaZip() argument
Dinstaller_manager.cpp51 int32_t InstallerManager::StartUpdatePackageZip(const std::string &pkgPath) in StartUpdatePackageZip() argument
57 return helper_->StartUpdatePackageZip(pkgPath); in StartUpdatePackageZip()
78 int32_t InstallerManager::StartUpdateParaZip(const std::string &pkgPath, in StartUpdateParaZip() argument
85 return helper_->StartUpdateParaZip(pkgPath, location, cfgDir); in StartUpdateParaZip()
/base/update/sys_installer/test/fuzztest/sysinstaller_fuzzer/
Dsys_installer_fuzzer.cpp36 const std::string pkgPath = "/data/updater/fuzz/updater.zip"; in FuzzSysInstaller() local
39 SysInstallerKitsImpl::GetInstance().StartUpdateParaZip(pkgPath, in FuzzSysInstaller()
42 pkgPath, std::string(reinterpret_cast<const char*>(data), size), 1); in FuzzSysInstaller()
/base/update/updater/test/unittest/updaterkits_test/
Dupdaterkits_unittest.cpp59 std::vector<std::string> pkgPath {}; variable
60 ret = RebootAndInstallSdcardPackage(MISC_FILE, pkgPath);
64 pkgPath.push_back(path);
65 ret = RebootAndInstallSdcardPackage(MISC_FILE, pkgPath);
/base/update/updater/services/sdcard_update/
Dsdcard_update.cpp43 for (auto pkgPath : sdcardPkgs) { in GetSdcardPkgsPath() local
44 if (access(pkgPath.c_str(), 0) == 0) { in GetSdcardPkgsPath()
45 LOG(INFO) << "find sdcard package : " << pkgPath; in GetSdcardPkgsPath()
46 upParams.updatePackage.push_back(pkgPath); in GetSdcardPkgsPath()
/base/update/sys_installer/frameworks/installer_manager/include/
Dinstaller_manager_helper.h28 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath) = 0;
31 virtual int32_t StartUpdateParaZip(const std::string &pkgPath,
45 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath);
48 virtual int32_t StartUpdateParaZip(const std::string &pkgPath,
Dinstaller_manager.h32 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath);
35 virtual int32_t StartUpdateParaZip(const std::string &pkgPath,
/base/update/sys_installer/frameworks/ipc_server/src/
Dsys_installer_server.cpp53 int32_t SysInstallerServer::StartUpdatePackageZip(const std::string &pkgPath) in StartUpdatePackageZip() argument
56 return InstallerManager::GetInstance().StartUpdatePackageZip(pkgPath); in StartUpdatePackageZip()
71 int32_t SysInstallerServer::StartUpdateParaZip(const std::string &pkgPath, in StartUpdateParaZip() argument
75 return InstallerManager::GetInstance().StartUpdateParaZip(pkgPath, location, cfgDir); in StartUpdateParaZip()
Dsys_installer_stub.cpp78 string pkgPath = Str16ToStr8(data.ReadString16()); in StartUpdatePackageZipStub() local
79 int ret = service->StartUpdatePackageZip(pkgPath); in StartUpdatePackageZipStub()
120 string pkgPath = Str16ToStr8(data.ReadString16()); in StartUpdateParaZipStub() local
123 …LOG(INFO) << "StartUpdateParaZipStub path:" << pkgPath << " location:" << location << " cfgDir:" <… in StartUpdateParaZipStub()
125 int32_t ret = service->StartUpdateParaZip(pkgPath, location, cfgDir); in StartUpdateParaZipStub()
Dmodule_update_service.cpp123 int32_t ModuleUpdateService::InstallModulePackage(const std::string &pkgPath) in InstallModulePackage() argument
125 LOG(INFO) << "InstallModulePackage " << pkgPath; in InstallModulePackage()
127 if (!CheckFileSuffix(pkgPath, HMP_PACKAGE_SUFFIX) || !PathToRealPath(pkgPath, realPath)) { in InstallModulePackage()
128 LOG(ERROR) << "Invalid package path " << pkgPath; in InstallModulePackage()
134 int32_t ModuleUpdateService::ReallyInstallModulePackage(const std::string &pkgPath, in ReallyInstallModulePackage() argument
137 std::string hmpName = GetFileName(pkgPath); in ReallyInstallModulePackage()
139 LOG(ERROR) << "Failed to get hmp name " << pkgPath; in ReallyInstallModulePackage()
158 ret = ExtraPackageDir(pkgPath.c_str(), nullptr, nullptr, outPath.c_str()); in ReallyInstallModulePackage()
160 LOG(ERROR) << "Failed to unpack hmp package " << pkgPath; in ReallyInstallModulePackage()
/base/update/sys_installer/services/ab_update/src/
Dab_update.cpp29 UpdaterStatus ABUpdate::StartABUpdate(const std::string &pkgPath) in StartABUpdate() argument
44 LOG(INFO) << "ABUpdate start, pkg updaterPath : " << pkgPath.c_str(); in StartABUpdate()
47 upParams.updatePackage = {pkgPath}; in StartABUpdate()
65 if (pkgPath.find(PATCH_PACKAGE_NAME) != std::string::npos) { in StartABUpdate()
/base/update/updater/test/fuzztest/package_fuzzer/
Dpackage_fuzzer.cpp256 const std::string pkgPath = "/data/fuzz/test/updater.zip"; in FuzzVerifyPackage() local
260 VerifyPackage(pkgPath.c_str(), dataInfo.c_str(), "", digest.data(), digest.capacity()); in FuzzVerifyPackage()
261 …VerifyPackage(pkgPath.c_str(), keyPath.c_str(), dataInfo.c_str(), digest.data(), digest.capacity()… in FuzzVerifyPackage()
262 VerifyPackage(pkgPath.c_str(), keyPath.c_str(), "", data, size); in FuzzVerifyPackage()
266 VerifyPackageWithCallback(pkgPath, dataInfo.c_str(), [](int32_t result, uint32_t percent) {}); in FuzzVerifyPackage()
269 ExtraPackageDir(pkgPath.c_str(), dataInfo.c_str(), nullptr, pkgDir.c_str()); in FuzzVerifyPackage()
270 ExtraPackageDir(pkgPath.c_str(), keyPath.c_str(), dataInfo.c_str(), pkgDir.c_str()); in FuzzVerifyPackage()
271 ExtraPackageDir(pkgPath.c_str(), keyPath.c_str(), nullptr, dataInfo.c_str()); in FuzzVerifyPackage()
275 ExtraPackageFile(pkgPath.c_str(), dataInfo.c_str(), file.c_str(), pkgDir.c_str()); in FuzzVerifyPackage()
276 ExtraPackageFile(pkgPath.c_str(), keyPath.c_str(), dataInfo.c_str(), pkgDir.c_str()); in FuzzVerifyPackage()
[all …]
/base/update/updater/services/include/package/
Dhash_data_verifier.h29 bool LoadHashDataAndPkcs7(const std::string &pkgPath);
31 bool LoadPkcs7FromPackage(const std::string &pkgPath);
/base/update/sys_installer/interfaces/inner_api/include/
Disys_installer.h31 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath) = 0;
34 virtual int32_t StartUpdateParaZip(const std::string &pkgPath,
/base/update/sys_installer/interfaces/innerkits/ipc_client/include/
Dsys_installer_kits.h40 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath) = 0;
43 virtual int32_t StartUpdateParaZip(const std::string &pkgPath,
Dsys_installer_proxy.h29 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath);
32 virtual int32_t StartUpdateParaZip(const std::string &pkgPath,
Dsys_installer_kits_impl.h31 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath);
34 virtual int32_t StartUpdateParaZip(const std::string &pkgPath,
/base/update/sys_installer/frameworks/actions/verify_action/src/
Dpkg_verify.cpp36 int PkgVerify::Verify(const std::string &pkgPath) in Verify() argument
49 if (!Utils::PathToRealPath(pkgPath, realPath)) { in Verify()
/base/update/sys_installer/frameworks/ipc_server/include/
Dsys_installer_server.h40 int32_t StartUpdatePackageZip(const std::string &pkgPath) override;
43 int32_t StartUpdateParaZip(const std::string &pkgPath,
/base/update/sys_installer/interfaces/innerkits/ipc_client/src/
Dsys_installer_kits_impl.cpp150 int32_t SysInstallerKitsImpl::StartUpdatePackageZip(const std::string &pkgPath) in StartUpdatePackageZip() argument
158 int32_t ret = updateService->StartUpdatePackageZip(pkgPath); in StartUpdatePackageZip()
195 int32_t SysInstallerKitsImpl::StartUpdateParaZip(const std::string &pkgPath, in StartUpdateParaZip() argument
204 int32_t ret = updateService->StartUpdateParaZip(pkgPath, location, cfgDir); in StartUpdateParaZip()
Dsys_installer_proxy.cpp53 int32_t SysInstallerProxy::StartUpdatePackageZip(const std::string &pkgPath) in StartUpdatePackageZip() argument
67 data.WriteString16(Str8ToStr16(pkgPath)); in StartUpdatePackageZip()
142 int32_t SysInstallerProxy::StartUpdateParaZip(const std::string &pkgPath, in StartUpdateParaZip() argument
157 data.WriteString16(Str8ToStr16(pkgPath)); in StartUpdateParaZip()
Dmodule_update_kits_impl.cpp98 int32_t ModuleUpdateKitsImpl::InstallModulePackage(const std::string &pkgPath) in InstallModulePackage() argument
100 LOG(INFO) << "InstallModulePackage " << pkgPath; in InstallModulePackage()
106 return moduleUpdate->InstallModulePackage(pkgPath); in InstallModulePackage()

12