From da4120bb7e3799ad77bc7019af3d6e95cf27acbd Mon Sep 17 00:00:00 2001 From: s00567680 Date: Mon, 10 Jan 2022 10:30:43 +0800 Subject: [PATCH] update installing-openharmony-app.md Signed-off-by: s00567680 --- .../quick-start/installing-openharmony-app.md | 14 ++------------ .../quick-start/installing-openharmony-app.md | 12 ++---------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/en/application-dev/quick-start/installing-openharmony-app.md b/en/application-dev/quick-start/installing-openharmony-app.md index 63329422b2..878c2c7e7d 100644 --- a/en/application-dev/quick-start/installing-openharmony-app.md +++ b/en/application-dev/quick-start/installing-openharmony-app.md @@ -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 diff --git a/zh-cn/application-dev/quick-start/installing-openharmony-app.md b/zh-cn/application-dev/quick-start/installing-openharmony-app.md index a4f9215e84..7dc86e978e 100644 --- a/zh-cn/application-dev/quick-start/installing-openharmony-app.md +++ b/zh-cn/application-dev/quick-start/installing-openharmony-app.md @@ -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** -- GitLab