Running the Application on a Real Device
Install HDC
-
Find the pipeline whose name is ohos-sdk-full or ohos-sdk-public, click Download Link, and select Full Package.
Use conditional filtering: select projectopenharmony
, branchOpenHarmony-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.) -
Under the
toolchain
folder, locatehdc.exe
andlibusb_shared.ddl
.
-
Create a folder called
hdc_bin
, and copyhdc.exe
andlibusb_shared.dll
into it.
-
Add Environment Variable to your system:
- Open
Settings
on Windows → search forEdit the system environment variables
. - In the
Advanced
tab, clickEnvironment Variables...
. - Edit
Path
underSystem variables
, clickNew
, and paste yourhdc_bin
path. - Open Command Prompt and run
hdc
to verify installation.
Use Real Machine to Run Application with USB
-
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.
-
Generate signature:
- Click
Project Structure...
→Project > Signing Configs
→ checkAutomatically generate signature
. - Click
Apply
and wait until signature is generated. -
You will find it in the
configuration
folder underbuild-profile.json5
.
-
Click the
Run 'entry'
triangle button in the IDE.
-
Your application will now run on the development board.
🎉 You’ve successfully installed HDC and deployed your first application using DevEco Studio!