Home
last modified time | relevance | path

Searched refs:pkgPath (Results 1 - 25 of 39) sorted by relevance

12

/base/update/updater/services/package/pkg_verify/
H A 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 in LoadPkcs7FromPackage()
[all...]
/base/update/sys_installer/frameworks/actions/verify_action/include/
H A Dpkg_verify.h28 const std::string &pkgPath) : statusManager_(statusManager), pkgPath_(pkgPath) {} in PkgVerify()
39 virtual int Verify(const std::string &pkgPath);
27 PkgVerify(std::shared_ptr<StatusManager> statusManager, const std::string &pkgPath) PkgVerify() argument
/base/update/sys_installer/services/ab_update/include/
H A Dab_update.h28 const std::string &pkgPath) : statusManager_(statusManager), pkgPath_(pkgPath) {} in ABUpdate()
38 Updater::UpdaterStatus StartABUpdate(const std::string &pkgPath);
27 ABUpdate(std::shared_ptr<StatusManager> statusManager, const std::string &pkgPath) ABUpdate() argument
/base/update/updater/services/sdcard_update/
H A Dsdcard_update.cpp43 for (auto pkgPath : sdcardPkgs) { in GetSdcardPkgsPath()
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()
63 for (auto pkgPath : upParams.updatePackage) { in CheckPathNeedMountSD()
64 if (pkgPath.find("/sdcard") != 0) { in CheckPathNeedMountSD()
/base/update/sys_installer/test/fuzztest/sysinstaller_fuzzer/
H A 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/sys_installer/frameworks/installer_manager/src/
H A 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()
H A 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
/base/update/sys_installer/frameworks/installer_manager/include/
H A 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,
H A 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/
H A 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()
H A 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:" << cfgDir; in StartUpdateParaZipStub()
125 int32_t ret = service->StartUpdateParaZip(pkgPath, location, cfgDir); in StartUpdateParaZipStub()
H A Dmodule_update_service.cpp60 int32_t ModuleUpdateService::InstallModulePackage(const std::string &pkgPath) in InstallModulePackage() argument
62 LOG(INFO) << "InstallModulePackage " << pkgPath; in InstallModulePackage()
64 if (!CheckFileSuffix(pkgPath, HMP_PACKAGE_SUFFIX) || !PathToRealPath(pkgPath, realPath)) { in InstallModulePackage()
65 LOG(ERROR) << "Invalid package path " << pkgPath; in InstallModulePackage()
/base/update/sys_installer/services/ab_update/src/
H A 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()
67 if (pkgPath.find(PATCH_PACKAGE_NAME) != std::string::npos) { in StartABUpdate()
/base/update/updater/test/unittest/updaterkits_test/
H A Dupdaterkits_unittest.cpp63 std::vector<std::string> pkgPath {}; in HWTEST_F()
64 ret = RebootAndInstallSdcardPackage(MISC_FILE, pkgPath); in HWTEST_F()
68 pkgPath.push_back(path); in HWTEST_F()
69 ret = RebootAndInstallSdcardPackage(MISC_FILE, pkgPath); in HWTEST_F()
/base/update/updater/interfaces/kits/updaterkits/
H A Dupdaterkits.cpp51 static void WriteUpdaterResultFile(const std::string &pkgPath, const std::string &result) in WriteUpdaterResultFile() argument
66 std::string resultInfo = pkgPath + "|fail|" + result + "||\n"; in WriteUpdaterResultFile()
83 std::string pkgPath = ""; in ParsePkgPath() local
91 pkgPath = pathInfo.substr(startPos, endPos - startPos); in ParsePkgPath()
93 LOG(ERROR) << "pkgPath invalid"; in ParsePkgPath()
96 return pkgPath; in ParsePkgPath()
108 std::string pkgPath = ParsePkgPath(updateMsg); in WriteToMiscAndResultFileRebootToUpdater() local
111 WriteUpdaterResultFile(pkgPath, writeMiscBefore); in WriteToMiscAndResultFileRebootToUpdater()
116 WriteUpdaterResultFile(pkgPath, writeMiscAfter); in WriteToMiscAndResultFileRebootToUpdater()
/base/update/updater/services/include/package/
H A Dhash_data_verifier.h29 bool LoadHashDataAndPkcs7(const std::string &pkgPath);
31 bool LoadPkcs7FromPackage(const std::string &pkgPath);
/base/update/sys_installer/frameworks/actions/verify_action/src/
H A Dpkg_verify.cpp34 int PkgVerify::Verify(const std::string &pkgPath) in Verify() argument
47 if (!Utils::PathToRealPath(pkgPath, realPath)) { in Verify()
/base/update/sys_installer/interfaces/inner_api/include/
H A 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/
H A Dsys_installer_proxy.h29 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath);
32 virtual int32_t StartUpdateParaZip(const std::string &pkgPath,
H A Dsys_installer_kits.h40 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath) = 0;
43 virtual int32_t StartUpdateParaZip(const std::string &pkgPath,
H A Dsys_installer_kits_impl.h31 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath);
34 virtual int32_t StartUpdateParaZip(const std::string &pkgPath,
/base/update/updater/test/fuzztest/package_fuzzer/
H A 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 in FuzzVerifyPackage()
[all...]
/base/update/sys_installer/frameworks/ipc_server/include/
H A 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/
H A 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()
H A 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()

Completed in 7 milliseconds

12