提交 bbf3855e 编写于 作者: O openharmony_ci 提交者: Gitee

!890 文档步骤简化,支持通过hdc install 命令进行hap包安装。

Merge pull request !890 from Austin/master
...@@ -274,11 +274,7 @@ Before you install the app and run it on the development board, install the DevE ...@@ -274,11 +274,7 @@ Before you install the app and run it on the development board, install the DevE
2. Open the **cmd** window, and run the following commands to push the HAP file to the device directory, and install it: 2. Open the **cmd** window, and run the following commands to push the HAP file to the device directory, and install it:
``` ```
hdc smode hdc install clock.hap
hdc target mount
hdc file send clock.hap /data/clock.hap
hdc shell chmod 666 /data/clock.hap
hdc shell bm install -p /data/clock.hap
``` ```
3. Run the following command to start the app. **ohos.samples.clock** indicates the app package name, and **MainAbility** indicates the ability started by the app. 3. Run the following command to start the app. **ohos.samples.clock** indicates the app package name, and **MainAbility** indicates the ability started by the app.
......
...@@ -272,11 +272,7 @@ ...@@ -272,11 +272,7 @@
2. 启动cmd命令窗口,执行以下命令,推送hap应用包到设备目录下并安装。 2. 启动cmd命令窗口,执行以下命令,推送hap应用包到设备目录下并安装。
``` ```
hdc smode hdc install clock.hap
hdc target mount
hdc file send clock.hap /data/clock.hap
hdc shell chmod 666 /data/clock.hap
hdc shell bm install -p /data/clock.hap
``` ```
3. 启动应用。执行以下命令,其中ohos.samples.clock为应用包名,MainAbility为应用启动的Ability。 3. 启动应用。执行以下命令,其中ohos.samples.clock为应用包名,MainAbility为应用启动的Ability。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册