/base/update/sys_installer/services/module_update/src/ |
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() [all...] |
H A D | module_file_repository.cpp | 39 void ModuleFileRepository::InitRepository(const string &hmpName, const Timer &timer) in InitRepository() argument 42 auto& fileMap = moduleFileMap_[hmpName]; in InitRepository() 45 const string checkDir = path + "/" + hmpName; in InitRepository() 48 ProcessFile(hmpName, path, file, fileMap, timer); in InitRepository() 53 void ModuleFileRepository::SaveInstallerResult(const std::string &path, const std::string &hmpName, in SaveInstallerResult() argument 66 LOG(INFO) << "path:" << path << "hmp:" << hmpName << "result:" << result << "Info:" << resultInfo << "\n"; in SaveInstallerResult() 74 std::string writeInfo = hmpName + ";" + std::to_string(result) + ";" + in SaveInstallerResult() 76 if (CheckAndUpdateRevertResult(hmpName, writeInfo, "mount fail")) { in SaveInstallerResult() 85 void ModuleFileRepository::ProcessFile(const string &hmpName, const string &path, const string &file, in ProcessFile() argument 92 if (moduleFile == nullptr || moduleFile->GetVersionInfo().hmpName ! in ProcessFile() [all...] |
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() 134 std::string imagePath = prefix + "/" + hmpName + "/" + IMG_FILE_NAME; in RemoveMountPoint() 151 LOG(INFO) << "Successful remove mountPoint, hmpName: " << hmpName; in RemoveMountPoint() 155 std::unique_ptr<ModuleFile> ModuleUpdate::GetLatestUpdateModulePackage(const string &hmpName) in GetLatestUpdateModulePackage() argument 157 std::unique_ptr<ModuleFile> activeModuleFile = repository_.GetModuleFile(UPDATE_ACTIVE_DIR, hmpName); in GetLatestUpdateModulePackage() 158 std::unique_ptr<ModuleFile> updateModuleFile = repository_.GetModuleFile(UPDATE_INSTALL_DIR, hmpName); in GetLatestUpdateModulePackage() 180 bool ModuleUpdate::CheckMountComplete(const string &hmpName) const in CheckMountComplete() 182 string path = std::string(MODULE_ROOT_DIR) + "/" + hmpName; in CheckMountComplete() 264 std::string hmpName = GetHmpName(file); CheckModuleUpdate() local [all...] |
/base/update/sys_installer/services/module_update/service/src/ |
H A D | module_update_main.cpp | 58 int32_t CreateModuleDirs(const std::string &hmpName) in CreateModuleDirs() argument 69 std::string hmpInstallDir = std::string(UPDATE_INSTALL_DIR) + "/" + hmpName; in CreateModuleDirs() 92 std::string hmpName = GetHmpName(file); in BackupFile() local 93 if (fileName.empty() || hmpName.empty()) { in BackupFile() 96 std::string destPath = std::string(UPDATE_BACKUP_DIR) + "/" + hmpName; in BackupFile() 125 LOG(INFO) << "DoHotInstall, hmpName=" << status.hmpName << " ;type=" << status.type; in DoHotInstall() 137 LOG(ERROR) << "HotSaInstall fail, hmpName=" << status.hmpName; in HotSaInstall() 140 RemoveSpecifiedDir(std::string(UPDATE_INSTALL_DIR) + "/" + status.hmpName); in HotSaInstall() 213 CheckHmpName(const std::string &hmpName) CheckHmpName() argument 234 std::string hmpName = GetFileName(pkgPath); ReallyInstallModulePackage() local 319 InstallModuleFile(const std::string &hmpName, const std::string &file, ModuleUpdateStatus &status) const InstallModuleFile() argument 337 LOG(ERROR) << "Wrong module file " << file << " in hmp package " << hmpName; InstallModuleFile() local 356 UninstallModulePackage(const std::string &hmpName) UninstallModulePackage() argument 383 GetModulePackageInfo(const std::string &hmpName, std::list<ModulePackageInfo> &modulePackageInfos) GetModulePackageInfo() argument 399 CollectModulePackageInfo(const std::string &hmpName, std::list<ModulePackageInfo> &modulePackageInfos) const CollectModulePackageInfo() argument 605 std::string hmpName = GetHmpName(file); ScanPreInstalledHmp() local [all...] |
H A D | module_update_consumer.cpp | 41 RemoveSpecifiedDir(std::string(UPDATE_INSTALL_DIR) + "/" + status.hmpName); in DoInstall() 44 LOG(INFO) << "hmp package successful install, hmp name=" << status.hmpName; in DoInstall() 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_ argument 102 std::string hmpName = it->second; Run() local [all...] |
H A D | module_update_producer.cpp | 84 for (const auto &hmpName : hmpNameSet_) { in AddAbnormalApp() 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()
|
/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 &status) const; 42 void CollectModulePackageInfo(const std::string &hmpName, std::list<ModulePackageInfo> &modulePackageInfos) const; 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);
|
/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 std::unique_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_task.h | 29 ModuleUpdateTask(const std::string &hmpName); 30 void SetHmpName(const std::string &hmpName); 42 bool AddTask(const std::string &hmpName);
|
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);
|
/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,
|
/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,
|
/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()
|
/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()
|
/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 | 104 // Get hmpName from path such as "/data/module_update_package/hmpName/sa1.zip" 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_NAME; in IsHotHmpPackage()
|
/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,
|
/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
|