Core Runtime Framework (UniOHOS/core)
UniOHOS/core (Apache-2.0) hosts the five cross-silicon OpenHarmony runtime subsystems shared across device ports so IPC headers, trampoline pools, and early-bringup primitives stay synchronized in one place.
1. Core Subsystems
| Directory | Role |
|---|---|
early-bringup/ | Modular Stage-0 / Stage-1 PID1 router (stage1-init), misc+0x1000 persistent early log, and ConfigFS USB ACM / hdc controller guard (usb-udc-guard). |
sidecar-runtime/ | Isolated Android Bionic mount/linker namespace launcher, critical partition ro,norecovery mount guard, shared property arena, and typed IPC protocol headers (SoC-specific audio/DSP bridges live in UniOHOS-Devices/*-bsp). |
hybris-bridge/ | ARM64 static bti c TPIDR_EL0 dual-TLS zero-copy GPU trampoline pools (.data.rel.ro, zero TEXTREL), Musl<->Bionic ABI shim, WSI bridge, and automatic Mesa PanVK/Turnip fallback router. |
anco-engine/ | AnCo container runtime (anco-runtime): XComponent viewport composition, FUSE_PASSTHROUGH storage, cgroup.freeze standby suspension, and audio/camera/IME/APK bridge daemons. |
device-parts/ | Settings hardware control extension (control-center driven by per-device capabilities.json + standalone hap-signer) and native 120Hz GLES3 real-time SDF shader bootanimation/. |
2. Host Verification
bash
git clone https://github.com/UniOHOS/core.git
cd core
# Run repository hygiene & DCO gate
python3 scripts/check_hygiene.py
# Build and run the native 120Hz SDF bootanimation CPU self-test
make -C device-parts/bootanimation/native-player test-cpu3. Portability Status & Reference Defaults
Current full-stack hardware validation of UniOHOS/core has been performed on Xiaomi 15S Pro (dijun / Xiaomi XRING O1):
- Cross-device modules (ready for new SoC testing):
device-parts/bootanimation/,hap-signer/, the ARM64TPIDR_EL0trampoline and Bionic loader core inhybris-bridge/, the mount/IPC skeleton insidecar-runtime/, and theAnCohost viewport framework. - Remaining
XRING O1/dijunreference defaults: A subset of files still retainsdijun_*symbol prefixes or reference sysfs/UDC defaults (for example default UDC names inusb-udc-guard, Arm Mali/G925 paths inhybris-bridge, andsmart_chgsysfs paths incontrol-center). Board-specificAnCo.propfiles and OEM TEE DRM backends are already isolated inUniOHOS-Devices/xiaomi-xring-o1-bsp; remaining defaults are being parameterized iteratively via PRs as additional SoCs come online.