Jump to content

Ohos-qemu - an OpenHarmony Emulator project

From Qt Wiki
Revision as of 16:48, 22 November 2026 by Liang Qi (talk | contribs) (Create Ohos-qemu - a OpenHarmony Emulator project)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

https://github.com/harmony-contrib/ohos-qemu/

I use v20261114 as an example, which I have tested on macOS 26.6(MacBook Pro, M3 Max).

Install

$ cd ~/dev/git
$ git clone https://github.com/harmony-contrib/ohos-qemu.git
$ cd ohos-qemu
$ bash scripts/install.sh --release v20261114 --device-type 2in1

Setup

$ cd ~/.ohos-qemu/openharmony-qemu-arm64-arm64_virt-2in1/launch
$ cp macos.command liang.command
$ vi liang.command

I modified following part:

DEFAULT_SMP="8"
DEFAULT_MEMORY="8192"
DEFAULT_XRES=1600
DEFAULT_YRES=1000

Launch

$ ~/.ohos-qemu/openharmony-qemu-arm64-arm64_virt-2in1/launch/liang.command

Tools for signing

We install hap-sign tool with cargo from rustup.

$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ cargo binstall hapsigner