/base/update/updater/services/package/pkg_verify/ |
D | hash_data_verifier.cpp | 38 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/ |
D | ab_update.h | 28 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/ |
D | pkg_verify.h | 28 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/ |
D | installer_manager_helper.cpp | 43 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
|
D | installer_manager.cpp | 51 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/ |
D | sys_installer_fuzzer.cpp | 36 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/ |
D | updaterkits_unittest.cpp | 59 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/ |
D | sdcard_update.cpp | 43 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/ |
D | installer_manager_helper.h | 28 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,
|
D | installer_manager.h | 32 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/ |
D | sys_installer_server.cpp | 53 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()
|
D | sys_installer_stub.cpp | 78 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()
|
D | module_update_service.cpp | 123 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/ |
D | ab_update.cpp | 29 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/ |
D | package_fuzzer.cpp | 256 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/ |
D | hash_data_verifier.h | 29 bool LoadHashDataAndPkcs7(const std::string &pkgPath); 31 bool LoadPkcs7FromPackage(const std::string &pkgPath);
|
/base/update/sys_installer/interfaces/inner_api/include/ |
D | isys_installer.h | 31 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/ |
D | sys_installer_kits.h | 40 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath) = 0; 43 virtual int32_t StartUpdateParaZip(const std::string &pkgPath,
|
D | sys_installer_proxy.h | 29 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath); 32 virtual int32_t StartUpdateParaZip(const std::string &pkgPath,
|
D | sys_installer_kits_impl.h | 31 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/ |
D | pkg_verify.cpp | 36 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/ |
D | sys_installer_server.h | 40 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/ |
D | sys_installer_kits_impl.cpp | 150 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()
|
D | sys_installer_proxy.cpp | 53 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()
|
D | module_update_kits_impl.cpp | 98 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()
|