The Update subsystem helps you implement over the air (OTA) update of OpenHarmony devices. The update subsystem consists of the following:
Packaging tool
The packaging tool is developed using Python and deployed on the PC to prepare update packages. It packages each update image, signs the update package, generates the update package execution script, and finally creates an update package. After the execution script is run on a OpenHarmony device, the device parses and executes the script to complete the update process.
The update package contains two files: build_tools.zip and update.bin.
The packaging tool signs the update.bin file and the generated update package (.zip file) independently.
Update service
The update service is used to search, download, and trigger updates.
Updater
The updater is the core module of the update subsystem. It provides the following functions:
Update app
The upgrade app is used to trigger search and download of update packages.
Before you get started, familiarize yourself with the following concepts:
OTA
OTA is an implementation of update over a wireless connection. The update package is downloaded to the device through a wireless connection. The device then performs update through the update subsystem.
Full package
A full package is actually a complete image. The update subsystem writes the full package to a partition to update this partition.
Differential package
A differential package is created based on the difference data of two specific versions (source version and target version), which is generated by using bsdiff.
base/update # Update subsystem repository
├── app # Update app code
├── packaging_tools # Packaging tool code
├── updater # Updater code
│ ├── interfaces # External APIs
│ ├── resources # UI image resources of the update subsystem, such as animations and progress bar images
│ ├── services # Updater logic code
│ └── utils # Common code of the update subsystem, including the string processing functions and file processing functions
└── updateservice # Update service code
Update subsystem
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。