harmony 鸿蒙Running on the Device

  • 2022-08-09
  • 浏览 (747)

Running on the Device

Before you install the application and run it on the development board, install the DevEco Device Tool by following operations provided in HUAWEI DevEco Device Tool User Guide. Burn OpenHarmony into the development board, and run it on the board. For details about how to compile, burn, and run an image, see the Quick Start Overview. After the image is running normally and the system is started properly, perform the following steps to install or uninstall the application:

  1. Store the compiled unsigned application installation package and installation tool in an SD card and insert the SD card into the development board slot. The installation tool is in dev_tools of the directory where the image file is generated.

  2. Run the following command to disable signature verification, which is enabled by default for application installation:

    ./sdcard/dev_tools/bin/bm set -s disable
    
  3. Run the following command to install the application:

    ./sdcard/dev_tools/bin/bm install -p /sdcard/airquality.hap 
    

    The dev_tools directory stores the installation tool, and airquality.hap is the application installation package. Replace it with actual the package name.

  4. After the application is installed, touch the application icon on the home screen to enter the application.

    Figure 1 Home screen

  5. (Optional) Uninstall the application.

    Touch and hold the application icon on the home screen, and touch the uninstall button in the displayed menu.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Development Examples

harmony 鸿蒙Photographing

harmony 鸿蒙Previewing

harmony 鸿蒙Video Recording

harmony 鸿蒙Use Case

harmony 鸿蒙Screen and Camera Control Overview

harmony 鸿蒙Adding Pages

harmony 鸿蒙Debugging and Packaging

harmony 鸿蒙Building the Details Page

harmony 鸿蒙FAQs

0  赞