/ohos5.0/base/update/sys_installer/services/module_update/service/src/ |
H A D | module_update_main.cpp | 160 Revert(status.hmpName, false); in HotAppInstall() 204 Revert(status.hmpName, false); in SecondRevertInstallHotApp() 215 if (hmpName.empty()) { in CheckHmpName() 235 int32_t ret = CheckHmpName(hmpName); in ReallyInstallModulePackage() 253 status.hmpName = hmpName; in ReallyInstallModulePackage() 357 if (hmpName.empty() || hmpSet_.find(hmpName) == hmpSet_.end()) { in UninstallModulePackage() 361 std::string hmpDir = "/" + hmpName; in UninstallModulePackage() 384 if (hmpName.empty()) { in GetModulePackageInfo() 399 if (hmpName.empty()) { in CollectModulePackageInfo() 603 if (hmpName.empty()) { in ScanPreInstalledHmp() [all …]
|
H A D | module_update_consumer.cpp | 46 LOG(ERROR) << "hmp package fail install, hmp name=" << status.hmpName; in DoInstall() 50 void ModuleUpdateConsumer::DoRevert(const std::string &hmpName, int32_t saId) in DoRevert() argument 52 LOG(INFO) << "hmp package revert,hmp name=" << hmpName << "; said=" << saId; in DoRevert() 53 bool isHotHmp = IsHotHmpPackage(hmpName); in DoRevert() 55 status.hmpName = hmpName; in DoRevert() 57 Revert(hmpName, !isHotHmp); in DoRevert() 61 void ModuleUpdateConsumer::DoUnload(const std::string &hmpName, int32_t saId) in DoUnload() argument 65 status.hmpName = hmpName; in DoUnload() 102 std::string hmpName = it->second; in Run() local 106 DoRevert(hmpName, saId); in Run() [all …]
|
H A D | module_update_producer.cpp | 84 for (const auto &hmpName : hmpNameSet_) { in AddAbnormalApp() local 85 std::string attr = std::string(BMS_RESULT_PREFIX) + "." + hmpName; in AddAbnormalApp() 94 std::pair<int32_t, std::string> appResultPair = std::make_pair(APP_SERIAL_NUMBER, hmpName); in AddAbnormalApp()
|
/ohos5.0/base/update/sys_installer/services/module_update/src/ |
H A D | module_update.cpp | 122 bool ModuleUpdate::RemoveMountPoint(const string &hmpName) in RemoveMountPoint() argument 124 string mountPoint = string(MODULE_ROOT_DIR) + "/" + hmpName; in RemoveMountPoint() 203 if (!RemoveMountPoint(status.hmpName)) { in ProcessHmpFile() 206 } else if (CheckMountComplete(status.hmpName)) { in ProcessHmpFile() 210 repository_.InitRepository(status.hmpName, timer); in ProcessHmpFile() 264 std::string hmpName = GetHmpName(file); in CheckModuleUpdate() local 265 if (hmpName.empty()) { in CheckModuleUpdate() 268 hmpNameSet.emplace(hmpName); in CheckModuleUpdate() 280 for (auto &hmpName : hmpNameSet) { in CheckModuleUpdate() local 281 instance.AddTask(hmpName); in CheckModuleUpdate() [all …]
|
H A D | module_file_repository.cpp | 42 auto& fileMap = moduleFileMap_[hmpName]; in InitRepository() 45 const string checkDir = path + "/" + hmpName; in InitRepository() 48 ProcessFile(hmpName, path, file, fileMap, timer); in InitRepository() 76 if (CheckAndUpdateRevertResult(hmpName, writeInfo, "mount fail")) { in SaveInstallerResult() 92 if (moduleFile == nullptr || moduleFile->GetVersionInfo().hmpName != hmpName) { in ProcessFile() 122 const string &hmpName) const in GetModuleFile() 124 auto mapIter = moduleFileMap_.find(hmpName); in GetModuleFile() 126 LOG(ERROR) << "Invalid path hmpName= " << hmpName; in GetModuleFile() 132 LOG(INFO) << hmpName << " not found in " << pathPrefix; in GetModuleFile() 142 moduleFile.GetVersionInfo().hmpName); in IsPreInstalledModule() [all …]
|
H A D | module_update_task.cpp | 26 std::string hmpName = task.GetHmpName(); in TaskCallback() local 27 LOG(INFO) << "module update callback, hmp name=" << hmpName; in TaskCallback() 29 status.hmpName = hmpName; in TaskCallback() 36 ModuleUpdateTask::ModuleUpdateTask(const std::string &hmpName) in ModuleUpdateTask() argument 38 SetHmpName(hmpName); in ModuleUpdateTask() 41 void ModuleUpdateTask::SetHmpName(const std::string &hmpName) in SetHmpName() argument 43 hmpName_ = hmpName; in SetHmpName() 66 bool ModuleUpdateTaskManager::AddTask(const std::string &hmpName) in AddTask() argument 68 LOG(INFO) << "add task, hmp name=" << hmpName; in AddTask() 73 pool_.AddTask([hmpName] { in AddTask() [all …]
|
/ohos5.0/base/update/sys_installer/services/module_update/service/include/ |
H A D | module_update_main.h | 34 int32_t CheckHmpName(const std::string &hmpName); 35 int32_t UninstallModulePackage(const std::string &hmpName); 36 int32_t GetModulePackageInfo(const std::string &hmpName, 41 …int32_t InstallModuleFile(const std::string &hmpName, const std::string &file, ModuleUpdateStatus … 42 …void CollectModulePackageInfo(const std::string &hmpName, std::list<ModulePackageInfo> &modulePack… 43 bool BackupActiveModules(const std::string &hmpName) const; 62 int32_t ValidateVersion(ModuleFile &installFile, const std::string &hmpName) const;
|
H A D | module_update_consumer.h | 37 void DoRevert(const std::string &hmpName, int32_t saId); 38 void DoUnload(const std::string &hmpName, int32_t saId);
|
/ohos5.0/base/update/sys_installer/services/module_update/include/ |
H A D | module_file_repository.h | 34 void InitRepository(const std::string &hmpName, const Timer &timer); 35 …que_ptr<ModuleFile> GetModuleFile(const std::string &pathPrefix, const std::string &hmpName) const; 38 void SaveInstallerResult(const std::string &path, const std::string &hmpName, 41 void ProcessFile(const std::string &hmpName, const std::string &path, const std::string &file,
|
H A D | module_update.h | 35 bool RemoveMountPoint(const std::string &hmpName); 43 bool CheckMountComplete(const std::string &hmpName) const; 45 std::unique_ptr<ModuleFile> GetLatestUpdateModulePackage(const std::string &hmpName);
|
H A D | module_update_task.h | 29 ModuleUpdateTask(const std::string &hmpName); 30 void SetHmpName(const std::string &hmpName); 42 bool AddTask(const std::string &hmpName);
|
/ohos5.0/base/update/sys_installer/frameworks/ipc_server/src/ |
H A D | module_update_service.cpp | 71 int32_t ModuleUpdateService::UninstallModulePackage(const std::string &hmpName) in UninstallModulePackage() argument 73 LOG(INFO) << "UninstallModulePackage " << hmpName; in UninstallModulePackage() 74 return ModuleUpdateMain::GetInstance().UninstallModulePackage(hmpName); in UninstallModulePackage() 77 int32_t ModuleUpdateService::GetModulePackageInfo(const std::string &hmpName, in GetModulePackageInfo() argument 80 LOG(INFO) << "GetModulePackageInfo " << hmpName; in GetModulePackageInfo() 81 return ModuleUpdateMain::GetInstance().GetModulePackageInfo(hmpName, modulePackageInfos); in GetModulePackageInfo()
|
H A D | module_update_stub.cpp | 81 string hmpName = Str16ToStr8(data.ReadString16()); in UninstallModulePackageStub() local 82 int32_t ret = service->UninstallModulePackage(hmpName); in UninstallModulePackageStub() 94 string hmpName = Str16ToStr8(data.ReadString16()); in GetModulePackageInfoStub() local 96 int32_t ret = service->GetModulePackageInfo(hmpName, infos); in GetModulePackageInfoStub()
|
/ohos5.0/base/update/sys_installer/interfaces/innerkits/ipc_client/src/ |
H A D | module_update_proxy.cpp | 55 int32_t ModuleUpdateProxy::UninstallModulePackage(const std::string &hmpName) in UninstallModulePackage() argument 57 LOG(INFO) << "UninstallModulePackage " << hmpName; in UninstallModulePackage() 69 data.WriteString16(Str8ToStr16(hmpName)); in UninstallModulePackage() 83 int32_t ModuleUpdateProxy::GetModulePackageInfo(const std::string &hmpName, in GetModulePackageInfo() argument 86 LOG(INFO) << "GetModulePackageInfo " << hmpName; in GetModulePackageInfo() 98 data.WriteString16(Str8ToStr16(hmpName)); in GetModulePackageInfo()
|
H A D | module_update_kits_impl.cpp | 111 int32_t ModuleUpdateKitsImpl::UninstallModulePackage(const std::string &hmpName) in UninstallModulePackage() argument 113 LOG(INFO) << "UninstallModulePackage " << hmpName; in UninstallModulePackage() 119 return moduleUpdate->UninstallModulePackage(hmpName); in UninstallModulePackage() 122 int32_t ModuleUpdateKitsImpl::GetModulePackageInfo(const std::string &hmpName, in GetModulePackageInfo() argument 131 return moduleUpdate->GetModulePackageInfo(hmpName, modulePackageInfos); in GetModulePackageInfo()
|
/ohos5.0/base/update/sys_installer/services/module_update/util/src/ |
H A D | module_ipc_helper.cpp | 64 info.hmpName = Str16ToStr8(reply.ReadString16()); in ReadModulePackageInfo() 77 data.WriteString16(Str8ToStr16(info.hmpName)); in WriteModulePackageInfo() 102 status.hmpName = Str16ToStr8(reply.ReadString16()); in ReadModuleUpdateStatus() 112 data.WriteString16(Str8ToStr16(status.hmpName)); in WriteModuleUpdateStatus()
|
H A D | module_utils.cpp | 209 void Revert(const std::string &hmpName, bool reboot) in Revert() argument 212 std::string installPath = std::string(UPDATE_INSTALL_DIR) + "/" + hmpName; in Revert() 220 std::string activePath = std::string(UPDATE_ACTIVE_DIR) + "/" + hmpName; in Revert() 231 std::string backupPath = std::string(UPDATE_BACKUP_DIR) + "/" + hmpName; in Revert() 299 bool IsHotHmpPackage(const std::string &hmpName) in IsHotHmpPackage() argument 301 …std::string preInstalledPath = std::string(MODULE_PREINSTALL_DIR) + "/" + hmpName + "/" + HMP_INFO… in IsHotHmpPackage()
|
/ohos5.0/base/update/sys_installer/interfaces/innerkits/ipc_client/include/ |
H A D | module_update_kits.h | 36 virtual int32_t UninstallModulePackage(const std::string &hmpName) = 0; 37 virtual int32_t GetModulePackageInfo(const std::string &hmpName,
|
H A D | module_update_proxy.h | 29 virtual int32_t UninstallModulePackage(const std::string &hmpName); 30 virtual int32_t GetModulePackageInfo(const std::string &hmpName,
|
H A D | module_update_kits_impl.h | 33 int32_t UninstallModulePackage(const std::string &hmpName) final; 34 int32_t GetModulePackageInfo(const std::string &hmpName,
|
/ohos5.0/base/update/sys_installer/frameworks/ipc_server/include/ |
H A D | module_update_service.h | 31 int32_t UninstallModulePackage(const std::string &hmpName) override; 32 int32_t GetModulePackageInfo(const std::string &hmpName,
|
/ohos5.0/base/update/sys_installer/services/module_update/util/include/ |
H A D | module_utils.h | 38 void Revert(const std::string &hmpName, bool reboot); 42 bool IsHotHmpPackage(const std::string &hmpName);
|
H A D | module_ipc_helper.h | 30 std::string hmpName; member
|
H A D | module_file.h | 77 std::string hmpName; member
|
/ohos5.0/base/update/sys_installer/interfaces/inner_api/include/ |
H A D | imodule_update.h | 113 virtual int32_t UninstallModulePackage(const std::string &hmpName) = 0; 114 virtual int32_t GetModulePackageInfo(const std::string &hmpName,
|