Home
last modified time | relevance | path

Searched refs:pkgPath (Results 1 – 25 of 33) 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
52 if (!LoadPkcs7FromPackage(pkgPath)) { in LoadHashDataAndPkcs7()
53 PKG_LOGE("load pkcs7 from %s failed", pkgPath.c_str()); in LoadHashDataAndPkcs7()
54 UPDATER_LAST_WORD(PKG_INVALID_FILE, pkgPath); in LoadHashDataAndPkcs7()
58 PKG_LOGE("load pkcs7 from %s failed", pkgPath.c_str()); in LoadHashDataAndPkcs7()
59 UPDATER_LAST_WORD(PKG_INVALID_FILE, pkgPath); in LoadHashDataAndPkcs7()
100 bool HashDataVerifier::LoadPkcs7FromPackage(const std::string &pkgPath) in LoadPkcs7FromPackage() argument
103 int32_t ret = manager_->CreatePkgStream(pkgStream, pkgPath, 0, PkgStream::PkgStreamType_Read); in LoadPkcs7FromPackage()
105 PKG_LOGE("CreatePackage fail %s", pkgPath.c_str()); in LoadPkcs7FromPackage()
106 UPDATER_LAST_WORD(PKG_INVALID_FILE, pkgPath); in LoadPkcs7FromPackage()
/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/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/include/
Dinstaller_manager_helper.h28 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath) = 0;
31 virtual int32_t StartUpdateParaZip(const std::string &pkgPath,
42 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath);
45 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.cpp52 int32_t SysInstallerServer::StartUpdatePackageZip(const std::string &pkgPath) in StartUpdatePackageZip() argument
55 return InstallerManager::GetInstance().StartUpdatePackageZip(pkgPath); in StartUpdatePackageZip()
70 int32_t SysInstallerServer::StartUpdateParaZip(const std::string &pkgPath, in StartUpdateParaZip() argument
74 return InstallerManager::GetInstance().StartUpdateParaZip(pkgPath, location, cfgDir); in StartUpdateParaZip()
Dsys_installer_stub.cpp74 string pkgPath = Str16ToStr8(data.ReadString16()); in StartUpdatePackageZipStub() local
75 int ret = service->StartUpdatePackageZip(pkgPath); in StartUpdatePackageZipStub()
116 string pkgPath = Str16ToStr8(data.ReadString16()); in StartUpdateParaZipStub() local
119 …LOG(INFO) << "StartUpdateParaZipStub path:" << pkgPath << " location:" << location << " cfgDir:" <… in StartUpdateParaZipStub()
121 int32_t ret = service->StartUpdateParaZip(pkgPath, location, cfgDir); in StartUpdateParaZipStub()
/base/update/sys_installer/frameworks/installer_manager/src/
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()
Dinstaller_manager_helper.cpp43 int32_t InstallerManagerHelper::StartUpdatePackageZip(const std::string &pkgPath) in StartUpdatePackageZip() argument
54 ActionProcesser::GetInstance().AddAction(std::make_unique<ABUpdate>(statusManager_, pkgPath)); in StartUpdatePackageZip()
77 int32_t InstallerManagerHelper::StartUpdateParaZip(const std::string &pkgPath, in StartUpdateParaZip() argument
/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/include/package/
Dhash_data_verifier.h29 bool LoadHashDataAndPkcs7(const std::string &pkgPath);
33 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,
Dimodule_update.h28 virtual int32_t InstallModulePackage(const std::string &pkgPath) = 0;
/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,
Dmodule_update_kits.h33 virtual int32_t InstallModulePackage(const std::string &pkgPath) = 0;
/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()
/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/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/interfaces/innerkits/ipc_client/src/
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()
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()
Dmodule_update_kits_impl.cpp97 int32_t ModuleUpdateKitsImpl::InstallModulePackage(const std::string &pkgPath) in InstallModulePackage() argument
99 LOG(INFO) << "InstallModulePackage " << pkgPath; in InstallModulePackage()
105 return moduleUpdate->InstallModulePackage(pkgPath); in InstallModulePackage()
Dmodule_update_proxy.cpp27 int32_t ModuleUpdateProxy::InstallModulePackage(const std::string &pkgPath) in InstallModulePackage() argument
29 LOG(INFO) << "InstallModulePackage " << pkgPath; in InstallModulePackage()
41 data.WriteString16(Str8ToStr16(pkgPath)); in InstallModulePackage()

12