Can I connect the Huawei HarmonyOS emulator in VS.Code?

Viewed 394

I am developing a mobile application with VS Code, and my phone launches on a Huawei operating system (Harmony OS). Can I connect them and launch the app on my phone?

2 Answers

Use an IDE, alike Android Studio or DevEco Studio, depending if this is an Android or HarmonyOS SDK app; there's also these "Lite" apps, which you may be referring to (currently only these can be emulated locally).

It's possible to configure external tools in VS.Code, but it's kind of "the wrong tool", because it lacks the HarmonyOS SDK, ADB/HDB (USB debugging) and most importantly, the emulator (Lite) - and logcat output also would need to be piped into the output window. OHOS only runs Android packages in compatibility mode, if I understood this correctly (but it runs both).

For Android Studio there's also a HMS Toolkit plugin for connecting remote emulators (not Lite). In short: you'd have to install DevEco Studio anyway; only then you'd have a chance of building and running such "hybrid" Lite app from VS.Code, via CLI scripting / or some plugin.

Related