/base/update/updateservice/services/engine/etc/ |
D | updater_sa.cfg | 5 "mkdir /data/service/el1/public/update 0751 update update", 6 "mkdir /data/service/el1/public/update/dupdate_engine 0700 update update", 7 "mkdir /data/service/el1/public/update/dupdate_engine/databases 0700 update update", 8 … "mkdir /data/service/el1/public/update/dupdate_engine/preferences 0700 update update", 9 "mkdir /data/service/el1/public/update/dupdate_engine/files 0700 update update", 10 … "mkdir /data/service/el1/public/update/dupdate_engine/files/firmware 0700 update update", 11 …"mkdir /data/service/el1/public/update/dupdate_engine/files/firmware/changelogs 0700 update update… 12 "mkdir /data/update 0770 update update", 13 "mkdir /data/update/ota_package 0770 update update", 14 "mkdir /data/update/ota_package/firmware 0770 update update", [all …]
|
/base/update/sys_installer/frameworks/ipc_server/etc/ |
D | sys_installer_sa.cfg | 5 "mkdir /data/service/el1/public/update 0751 update update", 6 "mkdir /data/service/el1/public/update/param_service 0751 update update", 7 "mkdir /data/service/el1/public/update/param_service/install 0751 update update", 8 … "mkdir /data/service/el1/public/update/param_service/install/system 0751 update update", 9 … "mkdir /data/service/el1/public/update/param_service/install/vendor 0751 update update", 10 "mkdir /data/updater 0775 update update", 11 "chown update update /data/updater", 13 "mkdir /data/updater/log 0775 update update", 14 "mkdir /mnt/sys_installer 0700 update update", 15 "chown update update /data/updater/log", [all …]
|
D | module_update_service.cfg | 6 "mkdir /data/module_update_package 0751 update update", 7 "mkdir /data/module_update 0755 update update", 8 "mkdir /data/module_update/active 0755 update update", 9 "mkdir /data/module_update/backup 0700 update update", 17 "uid" : "update", 18 "gid" : ["update", "system", "root"],
|
/base/update/updater/utils/ |
D | write_updater.cpp | 48 … if (snprintf_s(boot.update, sizeof(boot.update), sizeof(boot.update) - 1, "--update_package=%s", in main() 55 …if (strncpy_s(boot.update, sizeof(boot.update), "--user_wipe_data", sizeof(boot.update) - 1) != 0)… in main() 60 … if (strncpy_s(boot.update, sizeof(boot.update), "boot_flash", sizeof(boot.update) - 1) != 0) { in main() 67 …if (strncpy_s(boot.update, sizeof(boot.update), "--sdcard_update", sizeof(boot.update) - 1) != 0) { in main()
|
/base/update/update_app/common/src/main/ets/manager/ |
D | UpdateManager.ts | 17 import update from '@ohos.update'; 73 getNewVersion(): Promise<UpgradeData<update.NewVersionInfo>>; 74 getNewVersionDescription(descVersionDigest: string, descFormat: update.DescriptionFormat, 75 descLanguage: string): Promise<UpgradeData<Array<update.ComponentDescription>>>; 76 getCurrentVersionDescription(descFormat: update.DescriptionFormat, 77 descLanguage: string): Promise<UpgradeData<Array<update.ComponentDescription>>>; 78 checkNewVersion(): Promise<UpgradeData<update.CheckResult>>; 82 getCurrentVersionInfo(): Promise<UpgradeData<update.CurrentVersionInfo>>; 91 private otaUpdater: update.Updater; 102 bind(subType: number, callback: update.UpgradeTaskCallback): void { [all …]
|
D | UpgradeInterface.ets | 17 import update from '@ohos.update'; 115 effectiveMode?: update.EffectiveMode; 141 getNewVersionPageInfo(versionComponents: Array<update.VersionComponent>, 142 componentDescriptions?: Array<update.ComponentDescription>): Promise<VersionPageInfo>; 151 getCurrentVersionPageInfo(versionComponents: Array<update.VersionComponent>, 152 componentDescriptions: Array<update.ComponentDescription>): VersionPageInfo;
|
/base/update/sys_installer_lite/ |
D | README.md | 11 …update capability. Your devices will be able to support OTA update after secondary development bas… 16 /base/update/sys_installer_lite 18 ├── frameworks # OTA update implementation, including update package parsing, verification,… 26 └── kits # OTA update APIs 31 …update subsystem is compiled using the C language. Currently, only the Hi3518EV300, Hi3516DV300, a… 35 Add the dependency on the update subsystem. The following uses the Hi3516D V300 development board a… 37 - Add **update** to the **subsystem\_list field in the vendor\\hisilicon\\ipcamera\_hi3516dv30… 41 "subsystem": "update", 49 - Add the **update.json** file to the **build\\lite\\components** directory. 58 "base/update/sys_installer_lite/frameworks", [all …]
|
D | README_zh.md | 24 /base/update/sys_installer_lite 47 - vendor\\hisilicon\\ipcamera\_hi3516dv300\_liteos\\config.json中添加update,在subsystem\_list字段下面添加: 51 "subsystem": "update", 59 - 在build\\lite\\components下,添加update.json文件: 68 "base/update/sys_installer_lite/frameworks", 69 "base/update/sys_installer_lite/interfaces/kits" 72 "//base/update/sys_installer_lite/frameworks:sys_installer_lite" 78 - 添加测试代码,这里以test为例,将subsystem\_test加入到base\\update\\ota\_lite\\frameworks\\BUILD.gn中。 92 [**update\_sys\_installer\_lite**](https://gitee.com/openharmony/update_sys_installer_lite)
|
/base/update/sys_installer_lite/frameworks/source/ |
D | BUILD.gn | 17 "//base/update/sys_installer_lite/frameworks/source/updater/hota_updater.c", 18 "//base/update/sys_installer_lite/frameworks/source/verify/app_rsa.c", 19 "//base/update/sys_installer_lite/frameworks/source/verify/app_sha256.c", 20 "//base/update/sys_installer_lite/frameworks/source/verify/hota_verify.c", 23 "//base/update/sys_installer_lite/interfaces/kits", 24 "//base/update/sys_installer_lite/hals", 25 "//base/update/sys_installer_lite/frameworks/test/dload", 26 "//base/update/sys_installer_lite/frameworks/source/verify", 36 deps += [ "$ohos_board_adapter_dir/hals/update:hal_update_static" ] 41 "//base/update/sys_installer_lite/frameworks/source/updater/hota_updater.c", [all …]
|
/base/update/updater/interfaces/kits/updaterkits/ |
D | updaterkits.cpp | 51 if (updateOffset > sizeof(msg.update)) { in AddPkgPath() 57 ret = snprintf_s(msg.update + updateOffset, sizeof(msg.update) - updateOffset, in AddPkgPath() 58 sizeof(msg.update) - 1 - updateOffset, "%s\n", path.c_str()); in AddPkgPath() 60 ret = snprintf_s(msg.update + updateOffset, sizeof(msg.update) - updateOffset, in AddPkgPath() 61 sizeof(msg.update) - 1 - updateOffset, "--update_package=%s\n", path.c_str()); in AddPkgPath() 75 … int ret = snprintf_s(msg.update, sizeof(msg.update), sizeof(msg.update) - 1, "--sdcard_update\n"); in RebootAndInstallSdcardPackage() 127 if (strncpy_s(updateMsg.update, sizeof(updateMsg.update), cmd.c_str(), cmd.size()) != EOK) { in RebootAndCleanUserData()
|
/base/update/update_app/ |
D | README.md | 10 The update app runs on the OHOS and provides an interactive GUI for users to perform version update… 14 1. Check for available update packages and display the check result. 16 2. Download the update package and display the download progress. 18 3. Trigger an update. 20 4. Obtain the version information after a version update. 25 base/update/app # Update app code repository 26 ├── entry # Access to the update app code 34 The update app is implemented by using JavaScript, and the service logic is implemented by using C+… 38 base/update/updateservice/client 44 **update\_app** [all …]
|
D | README_zh.md | 25 base/update/app # 升级客户端应用代码仓目录 38 base/update/updateservice/client 44 **update\_app** 46 [update\_updateservice](https://gitee.com/openharmony/update_updateservice)
|
/base/update/updater/test/unittest/updater_main_test/ |
D | updater_main_unittest.cpp | 82 EXPECT_EQ(strncpy_s(boot.update, sizeof(boot.update), "", sizeof(boot.update)), 0); 103 … EXPECT_EQ(strncpy_s(boot.update, sizeof(boot.update) - 1, command2.c_str(), command2.size()), 0); 131 … EXPECT_EQ(strncpy_s(boot.update, sizeof(boot.update) - 1, command2.c_str(), command2.size()), 0); 142 EXPECT_EQ(memset_s(boot.update, sizeof(boot.update), 0, sizeof(boot.update)), 0); 144 … EXPECT_EQ(strncpy_s(boot.update, sizeof(boot.update) - 1, command3.c_str(), command3.size()), 0); 150 EXPECT_EQ(memset_s(boot.update, sizeof(boot.update), 0, sizeof(boot.update)), 0); 152 … EXPECT_EQ(strncpy_s(boot.update, sizeof(boot.update) - 1, command4.c_str(), command4.size()), 0); 160 EXPECT_STREQ(boot.update, "");
|
/base/update/updater/ |
D | README.md | 12 …update package status and verifies the update package to ensure that the update package is valid. … 17 base/update/updater/ 18 ├── resources # UI image resources of the update subsystem 20 │ ├── applypatch # Update package data update code 22 │ ├── include # Header files for the update subsystem 23 │ ├── log # Log module of the update subsystem 32 └── utils # Common utilities of the update subsystem 33 └── include # Header files for general functions of the update subsystem 48 …update subsystem during the update process. Such data includes update commands and records of resu… 52 During the update process, the updater needs to operate the partitions through the partition config… [all …]
|
D | updater.md | 19 "path": "base/update", 58 char update[768]; 64 command为当前的命令,update存放升级包路径,reserved存放保留信息。 105 执行write_updater命令向misc分区的update字段写入指令,指令格式参考参考write_updater源码base/update/updater/utils/write_update… 107 updater进程启动后读取update字段的命令,获取升级包的路径,单板进入升级流程,直至升级成功重启。 115 flashd模式和updater模式共用一个进程,入口函数在base/update/updater/services/main.cpp的main()函数,读取misc信息判断当前是否进入flashd…
|
/base/update/update_app/feature/ota/src/main/ets/util/ |
D | VersionUtils.ets | 16 import update from '@ohos.update'; 39 export function calculatePackageSize(newVersion: update.NewVersionInfo): number { 54 …export async function obtainNewVersionName(info: update.NewVersionInfo | update.TaskBody): Promise… 55 let component: update.VersionComponent = sortComponents(info?.versionComponents)?.[0]; 83 …export function sortComponents(components: Array<update.VersionComponent>): Array<update.VersionCo… 85 …return components.sort((component: update.VersionComponent, nextComponent: update.VersionComponent… 93 let newVersionInfo: update.NewVersionInfo = globalThis.cachedNewVersionInfo || 94 …await OtaUpdateManager.getInstance().getNewVersion().then((upgradeData: UpgradeData<update.NewVers… 126 …let components: Array<update.VersionComponent> = VersionUtils.sortComponents(newVersionInfo?.versi… 127 …let component: update.VersionComponent = components?.filter((component: update.VersionComponent) =… [all …]
|
/base/update/packaging_tools/ |
D | README.md | 10 The packaging tool is used to prepare an update package. It provides the following functions: 12 - Creating a full update package: The update package contains only the data necessary for full imag… 14 - Creating a differential update package: The update package contains only the data necessary for d… 16 - Creating an update package with changeable partitions: The update package contains the partition … 21 /base/update/packaging_tools 24 ├── build_update.py # Access to the packaging tool for differential update packages 31 ├── update_package.py # Update package format management and update package writing 33 └── vendor_script.py # Extended update scripts 61 -nz, --no_zip No zip mode, which means to output update… 68 Example code for creating a full update package: [all …]
|
/base/update/updateservice/ |
D | README.md | 13 The update service is a system ability \(SA\) started by the init process of OHOS to implement an u… 15 The update service provides the following functions: 17 1. Searching for available update packages 19 2. Downloading update packages 21 3. Setting and obtaining the update policy 23 4. Triggering an update 28 base/update/updateservice # Update service code 31 │ │ └── js # JS APIs for the update app 36 │ └── client # NAPI-based update client 40 │ ├── etc # rc configuration files for the update client engine [all …]
|
/base/update/update_app/feature/ota/src/main/ets/ |
D | OtaPage.ets | 16 import update from '@ohos.update'; 36 public async getNewVersionPageInfo(versionComponents: Array<update.VersionComponent>, 37 componentDescriptions?: Array<update.ComponentDescription>): Promise<VersionPageInfo> { 38 …let component: update.VersionComponent = versionComponents.filter((component: update.VersionCompon… 39 return component.componentType == update.ComponentType.OTA; 75 public getCurrentVersionPageInfo(versionComponents: Array<update.VersionComponent>, 76 componentDescriptions: Array<update.ComponentDescription>): VersionPageInfo { 77 …let component: update.VersionComponent = versionComponents.filter((component: update.VersionCompon… 78 return component.componentType == update.ComponentType.OTA;
|
/base/update/update_app/feature/ota/src/main/ets/dialog/ |
D | DialogUtils.ts | 17 import type update from '@ohos.update'; alias 35 eventId?: update.EventId, ...args): void { 111 eventId?: update.EventId): void { 123 eventId?: update.EventId): void { 134 …static showVerifyFailDialog(context: common.Context, otaStatus: OtaStatus, eventId?: update.EventI… 145 …static showDownloadFailDialog(context: common.Context, otaStatus: OtaStatus, eventId?: update.Even… 157 eventId?: update.EventId): void { 169 eventId?: update.EventId): void { 180 …static showUpgradeFailDialog(context: common.Context, otaStatus: OtaStatus, eventId?: update.Event…
|
/base/update/update_app/feature/ota/src/main/ets/manager/ |
D | OtaUpdateManager.ets | 17 import update from '@ohos.update'; 67 …this.updateManager.bind(update.BusinessSubType.FIRMWARE, this.notifyUpdateStatusRemote.bind(this)); 91 async getNewVersion(): Promise<UpgradeData<update.NewVersionInfo>> { 93 this.updateManager.getNewVersion().then((result: UpgradeData<update.NewVersionInfo>) => { 109 async getNewVersionDescription(): Promise<UpgradeData<Array<update.ComponentDescription>>> { 111 …return this.updateManager.getNewVersionDescription(versionDigest, update.DescriptionFormat.STANDAR… 120 async getCurrentVersionDescription(): Promise<UpgradeData<Array<update.ComponentDescription>>> { 121 return this.updateManager.getCurrentVersionDescription(update.DescriptionFormat.STANDARD, 130 async checkNewVersion(): Promise<UpgradeData<update.CheckResult>> { 132 this.updateManager.checkNewVersion().then((result: UpgradeData<update.CheckResult>) => { [all …]
|
/base/update/sys_installer_lite/frameworks/test/unittest/common/ |
D | BUILD.gn | 20 "//base/update/sys_installer_lite/frameworks/source/verify", 21 "//base/update/sys_installer_lite/interfaces/kits", 22 "//base/update/sys_installer_lite/frameworks/include", 23 "//base/update/sys_installer_lite/hals", 31 "//base/update/sys_installer_lite/frameworks/source:hota", 36 deps += [ "$ohos_board_adapter_dir/hals/update:hal_update_static" ] 39 deps += [ "$ohos_board_adapter_dir/update:hal_update" ]
|
/base/security/selinux_adapter/sepolicy/ohos_policy/update/updater_sa/public/ |
D | file_contexts | 13 /data/service/el1/public/update/dupdate_engine u:object_r:update_dupdate_engine_file:s0 14 /data/service/el1/public/update/dupdate_engine(/.*)? u:object_r:update_dupdate_engine_file:s0 15 /data/update/ota_package u:object_r:update_firmware_file:s0 16 /data/update/ota_package/(.*)? u:object_r:update_firmware_file:s0
|
/base/startup/init/services/modules/seccomp/scripts/tools/ |
D | merge_policy.py | 63 func_name_to_nr.update({item: name_nr_table.get(arch).get(func_name)}) 66 syscall_name_dict.update({arch: func_name_to_nr_list}) 117 self.seccomp_policy_param.update(\ 131 dict_priority.update({arch: self.seccomp_policy_param.get(arch).priority}) 132 dict_allow_list.update({arch: self.seccomp_policy_param.get(arch).allow_list}) 133 … dict_priority_with_args.update({arch: self.seccomp_policy_param.get(arch).priority_with_args}) 134 … dict_allow_list_with_args.update({arch: self.seccomp_policy_param.get(arch).allow_list_with_args}) 135 dict_blocklist.update({arch: self.seccomp_policy_param.get(arch).blocklist})
|
/base/update/update_app/common/src/main/ets/util/ |
D | UpdateUtils.ets | 16 import update from '@ohos.update'; 37 …export function obtainDescription(componentDescriptions: Array<update.ComponentDescription>, compo… 41 …let descArray: Array<update.ComponentDescription> = <Array<update.ComponentDescription>>componentD… 46 if (descriptionType != update.DescriptionType.CONTENT || description == null) {
|