Skip to content

Quickstart & Repository Map ​

This page gives you a practical map of the UniOHOS dual-organization layout, local workstation prerequisites, and a 5-minute offline verification run you can execute without touching any device.

1. What UniOHOS Provides ​

UniOHOS builds open-source adaptation layers, kernel ABI verification tools, graphical recovery software, and declarative build manifests for running OpenHarmony across ARM64 and x86_64 hardware (phones, tablets, laptops/PCs, and SBCs).

To stay strictly open-source while supporting real consumer devices, the project separates two build directions:

  • Approach A (Pure Open-Source OpenHarmony Base): Builds directly on upstream open-source OpenHarmony (Apache-2.0) with zero proprietary blobs. Suitable for early bring-up, kernel validation, DRM/KMS bring-up, open-source Mesa graphics, and open driver development.
  • Approach B (Local BYOF Synthesis): Enables OpenHarmony / HarmonyOS ports on your own unlocked device by combining your device's local read-only partitions (BYOF, Bring Your Own Firmware) with UniOHOS open-source adaptation layers on your own computer. UniOHOS never hosts or redistributes commercial images or firmware blobs.

See Approach A vs Approach B (BYOF) for the detailed comparison.

2. Dual-Organization Repository Map ​

UniOHOS splits repositories across two GitHub organizations so cross-silicon platform code never gets duplicated inside board ports and Apache-2.0 userland stays physically separated from GPL-2.0-only kernel trees.

One SoC, One Pair of Repositories

Devices sharing the same silicon family do not fork separate Git branches. They share UniOHOS-Devices/<vendor>-<soc>-bsp/common/ and isolate board deltas under profiles/<vendor>/<codename>/, while each device registers its manifest under UniOHOS/devices/devices/<vendor>/<codename>/.

3. Workstation Prerequisites ​

Install the baseline host tools on a 64-bit Linux workstation (Ubuntu 24.04, Debian 12+, Arch Linux, or Fedora):

Tooling GroupPackages / ToolsUsed For
Core Runtime & Scriptingpython3 >= 3.9, git, makeuniohos-builder, gki-sdk, hygiene gates, and test suites
C/C++ Toolchainclang, lld, llvm (-D_FORTIFY_SOURCE=3 ready)Compiling core, recovery, plugin, and host ASan/UBSan/TSan tests
DeviceTree & Kerneldevice-tree-compiler (dtc), bc, flex, bisonCompiling .dts/.dtbo overlays and Linux 6.x kernel trees
Partition & Image Toolserofs-utils (mkfs.erofs, fsck.erofs), AOSP lpdump/lpunpack/lpmakeInspecting and repacking super dynamic partitions and read-only EROFS images
Device Communicationfastboot, OpenHarmony hdc, adb (optional)Flashing target slots, reading early logs, and running hotbind tests

Configure your Git identity once so every commit carries a valid DCO 1.1 Signed-off-by: trailer:

bash
git config --global user.name "YourGitHubHandle"
git config --global user.email "<ID>+YourGitHubHandle@users.noreply.github.com"

4. Five-Minute Offline Verification ​

Run the declarative device validator, BYOF planner, and pure-Python GKI SDK test suites locally with zero device risk:

bash
git clone https://github.com/UniOHOS/builder.git
cd builder
pip install -e .

# Validate the Xiaomi 15S Pro (dijun) reference manifest
uniohos-builder validate-device examples/dijun-reference.yaml

# Inspect Approach A pure open-source rootfs specification
uniohos-builder open-base-info --arch arm64

# Generate the 5-step offline dry-run BYOF plan
uniohos-builder byof-plan --device examples/dijun-reference.yaml --dry-run

# Run unit tests and repository hygiene checks
python3 -m unittest discover -s tests -v
python3 scripts/check_hygiene.py
bash
git clone https://github.com/UniOHOS/gki-sdk.git
cd gki-sdk
pip install -e .

# Run pure-Python unit tests (zero third-party dependencies)
python3 -m unittest discover -s tests -v
python3 scripts/check_hygiene.py
bash
git clone https://github.com/UniOHOS/core.git
cd core

# Run repository hygiene gate and native bootanimation CPU self-test
python3 scripts/check_hygiene.py
make -C device-parts/bootanimation/native-player test-cpu
bash
git clone https://github.com/UniOHOS/recovery.git
cd recovery

# Run hygiene check plus 3-mode host verification (Normal, ASan+UBSan, TSan)
make CC=clang verify
bash
git clone https://github.com/UniOHOS/plugin.git
cd plugin

# Run hygiene check, build generic + xring-o1 sinks, and run host tests
make hygiene && make all && make test

5. Where to Go Next ​

Independent Open-Source Community (CC-BY-4.0). Not affiliated with Huawei, HiSilicon, OpenAtom Foundation, Xiaomi, Qualcomm, MediaTek, or Arm.