提交 da4120bb 编写于 作者: S s00567680

update installing-openharmony-app.md

Signed-off-by: Ns00567680 <shirui721@huawei.com>
上级 c4d30696
......@@ -2,20 +2,10 @@
To install your OpenHarmony app, use the hdc tool to manually run the corresponding commands.
You can manually obtain the hdc tool from the open-source repository. Use the tool to send the compiled HAP package to the device and run the corresponding hdc commands to install the app.
You can manually obtain the hdc tool from the open-source repository. Use the tool to send the compiled HAP package to the device and install the app.
The hdc commands are as follows:
- File sending
**file send _localpath remotepath_**
Example:
```
hdc_std file send E:\hwadmin.hap /data/local/tmp/hwadmin.hap
```
- App installation
**install \[-r/-d/-g\] _package_**
......@@ -23,7 +13,7 @@ The hdc commands are as follows:
Example:
```
hdc_std install hwadmin.hap
hdc_std install E:\hwadmin.hap
```
- Log capturing
......
......@@ -8,25 +8,17 @@
- 通过DevEco Studio安装:将设备连接上DevEco Studio后,点击![zh-cn_image_0000001239855207](figures/zh-cn_image_0000001239855207.png)按钮即可安装。
- 通过hdc工具安装:手动执行命令行完成应用的安装。
hdc工具本身需要手动从开源仓中获取。然后使用工具将编译后的hap包发送至设备侧,然后通过hdc命令完成app的安装。
hdc工具本身需要手动从开源仓中获取。然后使用工具将编译后的本地hap包发送至设备侧并完成安装。
相关命令如下:
- 文件发送命令
**file send _localpath remotepath_**
命令示例:
```
hdc_std file send E:\hwadmin.hap /data/local/tmp/hwadmin.hap
```
- 安装命令
**install [-r/-d/-g] _package_**
命令示例:
```
hdc_std install hwadmin.hap
hdc_std install E:\hwadmin.hap
```
- 日志抓取命令
**hilog**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册