• Home
Name Date Size #Lines LOC

..--

entry/src/main/12-May-2024-717628

.gitattributesD12-May-2024631 1615

LICENSED12-May-20249.9 KiB177150

OAT.xmlD12-May-20245 KiB8017

README.mdD12-May-20241.4 KiB4828

README_zh.mdD12-May-20241.3 KiB4828

README.md

1# Update App<a name="EN-US_TOPIC_0000001148414479"></a>
2
3-   [Introduction](#section182mcpsimp)
4-   [Directory Structure](#section190mcpsimp)
5-   [Description](#section198mcpsimp)
6-   [Repositories Involved](#section206mcpsimp)
7
8## Introduction<a name="section182mcpsimp"></a>
9
10The update app runs on the OHOS and provides an interactive GUI for users to perform version updates.
11
12It provides the following functions:
13
141. Check for available update packages and display the check result.
15
162. Download the update package and display the download progress.
17
183. Trigger an update.
19
204. Obtain the version information after a version update.
21
22## Directory Structure<a name="section190mcpsimp"></a>
23
24```
25base/update/app    # Update app code repository
26├── entry          # Access to the update app code
27│ └── src          # Update app code
28└── gradle         # Configuration files
29    └── wrapper    # Gradle configuration files
30```
31
32## Description<a name="section198mcpsimp"></a>
33
34The update app is implemented by using JavaScript, and the service logic is implemented by using C++. The JavaScript app interacts with the service logic through NAPI.
35
36For details about the NAPI implementation, see the following:
37
38base/update/updateservice/client
39
40## Repositories Involved<a name="section206mcpsimp"></a>
41
42Update subsystem
43
44**update\_app**
45
46[update\_updateservice](https://gitee.com/openharmony/update_updateservice)
47
48

README_zh.md

1# 升级客户端应用<a name="ZH-CN_TOPIC_0000001148414479"></a>
2
3-   [简介](#section182mcpsimp)
4-   [目录](#section190mcpsimp)
5-   [说明](#section198mcpsimp)
6-   [相关仓](#section206mcpsimp)
7
8## 简介<a name="section182mcpsimp"></a>
9
10升级客户端应用运行于OHOS 上,提供与用户进行交互的界面,并进行升级操作。
11
12主要功能包括:
13
141、触发升级服务组件检查可用的升级包,显示升级包检查的结果
15
162、下载升级包,显示下载的进度和状态
17
183、触发升级
19
204、升级完成后,显示升级后版本信息
21
22## 目录<a name="section190mcpsimp"></a>
23
24```
25base/update/app    # 升级客户端应用代码仓目录
26├── entry          # 升级客户端应用代码目录
27│ └── src          # 升级客户端源码目录
28└── gradle         # 配置文件目录目录
29    └── wrapper    # gradle配置文件目录目录
30```
31
32## 说明<a name="section198mcpsimp"></a>
33
34升级客户端应用由JavaScript实现,业务逻辑由C++实现,JS应用与业务逻辑通过NAPI进行交互。
35
36NAPI的实现,请参考
37
38base/update/updateservice/client
39
40## 相关仓<a name="section206mcpsimp"></a>
41
42升级子系统
43
44**update\_app**
45
46[update\_updateservice](https://gitee.com/openharmony/update_updateservice)
47
48