Skip to content

Running the Application on a Real Device

Install HDC

  1. Find the pipeline whose name is ohos-sdk-full or ohos-sdk-public, click Download Link, and select Full Package.
    Use conditional filtering: select project openharmony, branch OpenHarmony-4.1-Release, and a date from the previous month or a manual range.
    Then find ohos-sdk-full_4.1-Release, and download the full package (Windows/Linux).
    (If daily build SDK is not compatible with your DevEco Studio, try the rolling build SDK.) Download SDK

  2. Under the toolchain folder, locate hdc.exe and libusb_shared.ddl.
    Toolchain

  3. Create a folder called hdc_bin, and copy hdc.exe and libusb_shared.dll into it.
    hdc_bin

  4. Add Environment Variable to your system:

  5. Open Settings on Windows → search for Edit the system environment variables. Env Settings
  6. In the Advanced tab, click Environment Variables.... Env Dialog
  7. Edit Path under System variables, click New, and paste your hdc_bin path. Path Config
  8. Open Command Prompt and run hdc to verify installation. HDC Check

Use Real Machine to Run Application with USB

  1. Connect a development board (e.g., HiHope HH-SCDAYU200) running OpenHarmony standard system to your PC.
    The device will appear at the top of DevEco Studio.
    Device

  2. Generate signature:

  3. Click Project Structure... → Project > Signing Configs → check Automatically generate signature.
  4. Click Apply and wait until signature is generated. Signature Settings
  5. You will find it in the configuration folder under build-profile.json5.
    Signature File

  6. Click the Run 'entry' triangle button in the IDE.
    Run App

  7. Your application will now run on the development board.
    App Running


🎉 You’ve successfully installed HDC and deployed your first application using DevEco Studio!