Galaxy S21 Ultra 5G
Unknownios-sweetiOS 16.7.16
p3s · Exynos 2100
Native XNU boot of iOS 16.7.16 to the home screen on 8 CPUs with 4 GB of RAM: touch, buttons, battery, storage writes and Wi-Fi (WPA2, Safari) work, and the UI is drawn by the Mali-G78 through Mesa
- Model
- p3s
- SoC
- Exynos 2100
- GPU
- Mali-G78 MP14 · Mali Valhall (JM)
- Maintainer
- @rguisantos
- Updated
- Views
- 23 this week
- 25 iOS areas
Added with the claim of rguisantos/S21-baremetal.
Repos 2
2 families- jimmycarles9991-glitch/s21xnuupstream
XNU patches for the S21 Ultra (p3s): panel, touch, buttons, battery, UFS writes, BCM4389 Wi-Fi (WPA2), 8 CPUs, 4 GB of RAM, and SweetMali, the Mali-G78 driver that Mesa Panfrost draws the iOS UI through
iOS 16.7.16 boots natively to the home screen on 8 CPUs with 4 GB of RAM; the UI is drawn by the Mali-G78 through Mesa; touch, battery, storage writes and Wi-Fi (WPA2, Safari) work
Areas
Boot and system
Boot to Home Screen
WorksGalaxy S21 Ultra SM-G998B (p3s), iOS 16.7.16 (20H392), native XNU boot (s21xnu fork): boots from BOOT to the lock screen and home screen (Photos, Settings), observed on the phone 2026-11-30; Android kept.
SpringBoard stability
UnknownNo detail
Display and GPU
GPU compositing
Worksbackboardd draws the iOS UI with the Mali-G78 through Mesa/EAGL (SM-G998B, s21xnu fork, kits 37-44, 2026-12-02): 9.1-10.0 ms GL time per frame unplugged (kit 44, log 28). The horizontal stripes in animations are fixed (fork 0184: the panel copy waits for the panel's TE transfer; log 28, user). Open: black band over the status-bar clock after quick app opens and closes, one freeze opening Safari.
Metal acceleration
UnknownNo detailOpenGL ES acceleration
WorksMesa 26.2.4 Panfrost on the Mali-G78 (SM-G998B, s21xnu fork 0175/0176, kit 36, 2026-12-02; log: backboardd's EAGL bridge 'ES3 context created via Mesa Panfrost', 'OpenGL ES 3.1 Mesa 26.2.4; Mali-G78 MC14', GPU jobs ret 0).
Auto-brightness
UnknownNo detail
Input
Touch + buttons
WorksGalaxy S21 Ultra SM-G998B (p3s), iOS 16.7.16 (20H392), native XNU boot (s21xnu fork): sec_ts touch (touch_ts=1) unlocks and navigates; Vol+ and Vol- held 3 s reboot to recovery; observed 2026-11-30.
Keyboard input
WorksOn-screen iOS keyboard (touchscreen) enters text (SM-G998B, s21xnu kits, 2026-12-02/03). The Wi-Fi password is typed in Settings > Wi-Fi on each boot (not kept) and the WPA2-PSK join succeeds (kit 32 log: W6 PASS joined); URLs typed in Safari load; date and time set by hand in Settings (user's report). Not tested: USB/Bluetooth keyboards, S Pen handwriting, dictation.
Haptics
UnknownNo detailSensors (general)
UnknownNo detail
Audio and media
Audio output
UnknownNo detailCamera capture
UnknownNo detailVideo encode (HEVC)
UnknownNo detail
Connectivity
Wi-Fi
WorksBCM4389 joins WPA2-PSK and browses (SM-G998B, s21xnu fork 0168, 2026-12-02). Settings > Wi-Fi lists networks about 23 s after boot (fork 0177/0174, kit 36; was ~5 min); the clock is read from the PMIC RTC at boot (fork 0169). Gap: the network password is not kept across boots.
Bluetooth
UnknownNo detailCellular modem
UnknownNo detailMobile data
UnknownNo detailPersonal Hotspot
UnknownNo detailPhone calls
UnknownNo detailSMS
UnknownNo detail
Power and thermal
Battery reporting
WorksGalaxy S21 Ultra SM-G998B (p3s), iOS 16.7.16 (20H392), native XNU boot (s21xnu fork): iOS shows the battery percentage and charging state (MAX77705, read-only service), observed 2026-11-30.
Thermals under load
In progressSoC sensors cap the clocks and the charge current (SM-G998B, 2026-12-02, log 25: 'dvfs tmu: HOT: clocks held low at big 85', released at 78 C; 'SoC 70 C: charge cap 500 mA'). The battery temperature register is not updated under iOS, so it no longer caps the clocks (fork 0182, log 24). Charging under load reached 92-93 C on the big cores before the cap.
Security and apps
Passcode
UnknownNo detailFace ID
UnknownNo detailWallet
UnknownNo detail
GPU acceleration
- CoreAnimation (backboardd)
- libs21eagl (EAGL)
- Mesa 26.2.4 Panfrost
- libs21drm
- SweetMali (XNU)
- Mali-G78
Measured on: hakios-gl average GL time per frame 9.8-13.1 ms (logs 25-26, kits 41-42, 8 CPUs, SM-G998B, 2026-12-02); render time per frame, not a measured display rate; the panel refreshes at 60 Hz
- Openfreeze when opening Safari (seen once)Slow rendering
Cause: Unknown. Not SweetMali's lock: its longest wait was 16.8 ms in log 26 and 24 ms over all of log 27 (one panel copy). This issue first said 16.8 s: a nanosecond counter misread (corrected 2026-12-02).
- Fixedbackboardd crashes in the Lock Screen editor (Mesa upload buffer NULL)Renderer crash
Cause: backboardd sig 11 in the Lock Screen editor (adding a widget, clock styles): a memcpy to NULL in Mesa's st_update_array_templ (kernel 0198 backtrace, log 49); u_upload_alloc got no buffer because the DRM shim refused a buffer object silently (512 slots while the kernel allows 1024).
Fix: Shim V48 (s21xnu commit 452e386, mesa-ios CI run 47345678229, libs21drm 1bba1af4) with kernel 0196: 1024 slots and every refusal logged. Log 50 (kit 52, 2026-12-04): about 6 minutes of trying to make the editor crash, none; gpucomp ok=10500 fail=0, no refusals.
- FixedSpringBoard crashes at every start with Bold Text on (CoreImage OpenGL ES fallback)Renderer crash
Cause: With no Metal device, iOS 16's CoreImage falls back to OpenGL ES and CI::GLContext::init() calls glDisable through a zeroed table (SM-G998B, kits 49/50, logs 45 and 47: SpringBoard pc 0x0 lr CoreImage+0x19c58c, twice at 55-56 s; the Home Screen never came with Bold Text on).
Fix: Kernel 0197 + libs21ci (s21xnu commits 4357d85/6f2e4c8, mesa-ios CI run 47252956449, libs21ci 77a27c55): apps get a CIContext whose OpenGL ES fallback answers nil. Log 48 (kit 51, 2026-12-04): 'S21CI: SpringBoard: CoreImage's OpenGL ES fallback answers nil', Home Screen with Bold Text, no SpringBoard crash.
- Fixedblack band over the status-bar clock / clock vanishing after quick app opens and closesBlack widgets, blurs or UI
Cause: Likely Mesa texture-name reuse: CoreAnimation deletes a screen-size, IOSurface-backed snapshot texture, Mesa hands the name out again at once, and CoreAnimation's next draw still uses that name (SM-G998B, kit 49, EAGL V41, log 39: caught twice). Not proven: the exact case did not come up again in logs 40-44.
Fix: EAGL V42 (s21xnu commit ad0c5c2, libs21eagl b8afff2a; kept in V46) keeps the names of deleted IOSurface-backed textures for 120 frames, so they are not handed out again while CoreAnimation may still draw with them. Not seen since: in logs 40 (V42) and 44 (V46), 2026-12-03, the user tried to make the clock vanish and the black band come back, and neither happened. Reopen if it comes back.
- Fixedwhite Control Center toggles (vibrancy drawn as a plain white mask)White widgets or snapshots
Cause: CoreAnimation draws the toggle's disc with no program, as its function 45 (vcm, vibrant colour matrix), and passes the function's numbers to CA::OGL::GLESContext::function_uniform(). The EAGL bridge was never told which function a draw was (the Galaxy S7 port's ca_hooks.c, which watches that call, had not been brought over), so it drew the mask as a plain texture: white (SM-G998B, kit 49, EAGL V45, log 43: function 90 'not known', the toggle's pixel went from 23,77,105 to 255,255,255).
Fix: EAGL V46 (s21xnu commit cffc01d, CI run 47185453033, libs21eagl 06157cb1) imports ca_hooks.c (MIT). Log 44 (2026-12-03): both CoreAnimation hooks watched; the toggle draw is function 45 with its 20-number colour matrix and leaves 31,112,154 (a tinted disc) instead of white; group vibrancy runs too. The user reports the Control Center looks right.
- Fixedfast horizontal stripes during animationsTearing or corruption
Cause: The panel runs in command mode and is sent on every TE while the Mali copy wrote the same buffer at other times; a transfer that overlapped a copy sent rows of two frames (the stripes stayed with a 4 ms copy, log 24).
Fix: fork 0184 (boot-arg sweette=1): the panel copy masks the display controller's TE trigger and waits for the transfer in progress, so the panel only gets whole frames. Kit 44 (SM-G998B, 2026-12-02): the user reports the stripes gone; log 28: 2700 copies, no timeout.
- Fixedshort stalls when opening appsSlow rendering
Cause: SweetMali's lock held ~200 ms each time a full-screen buffer was freed (empty page-table scan; log 23: 'destroy held sm_lock 197-226 ms'); buffer allocation and IOSurface wiring were also moved out of the lock (fork 0181). An earlier text cited 7.1 s and 16.8 s lock waits: those were 7.1 ms and 16.8 ms (nanosecond counter misread).
Fix: fork 0181 (buffer allocation and IOSurface wiring outside the GPU lock) and 0183 (fast empty-table check on unmap): no long lock holds in logs 24-26 (kits 40-42, 2026-12-02); apps open fast
OpenGL ES through Mesa Panfrost; the panel is refreshed at 60 Hz by a Mali copy job.
What changed
Photos and clips
Port iOS to the Galaxy S21 Ultra 5G
Paste this into your coding agent. It looks up your phone's specs, uses the tracker to pick the project to start from and the ports on the closest chip, finds GPU acceleration and driver code that fits its specs, shows you a plan before touching anything, then puts your repo and phone on the tracker as soon as the repo exists, so its page fills in as the port makes progress. New code is Rust first.
I want to port Apple's iOS to my device: Galaxy S21 Ultra 5G. Help me research, plan and start it with the iOSOnAnd tracker at https://<this site>. It lists every known iOS-on-Android port, its repos and branches, and what works or is broken on which phone, each with a source.
Tools
1. Read the tracker skill (https://<this site>/SKILL.md) and get the tracker CLI outside the repo (Node 18+, no install; reading needs no login; read cli.mjs and note its sha256 before running):
mkdir -p ~/.local/share/iosonand && curl -fsSLo ~/.local/share/iosonand/cli.mjs https://<this site>/cli.mjs && sha256sum ~/.local/share/iosonand/cli.mjs && export TRACKER_URL=https://<this site>
node ~/.local/share/iosonand/cli.mjs --help lists every command. The HTTP API is described at https://<this site>/api/openapi.json (OpenAPI 3.1) and https://<this site>/api/docs; every GET is public JSON, so use curl when the CLI has no command for something.
Research
2. Learn the device's hardware. Search the web and the tracker for: exact model number and codename, chip (SoC part number, CPU cores and ARM version), GPU (model and generation), RAM, storage (UFS or eMMC), display panel and touch controller, Wi-Fi/Bluetooth chip, audio codec, modem, whether the bootloader unlocks and supports "fastboot boot" (Samsung uses Odin instead), and whether a Mu-Silicium (Windows on ARM) UEFI port exists.
Good sources: the phone's Linux device tree (mainline arch/arm64/boot/dts, postmarketOS wiki, LineageOS device and kernel trees), Mu-Silicium's device list, GSMArena for the basics.
node ~/.local/share/iosonand/cli.mjs catalog "<name>" codenames and model numbers from Google Play's device list
node ~/.local/share/iosonand/cli.mjs references --device s21-ultra-5g this device on the tracker, and the other phones on its chip
3. Find the existing ports and what works on them, mainly with the CLI, starting from my device:
node ~/.local/share/iosonand/cli.mjs references --device <slug> and node ~/.local/share/iosonand/cli.mjs status-get --device <slug>: my phone's own repos, branches and per-area states, when the tracker lists it.
Nothing for my device: take its specs from step 2, find phones with similar specs (same chip first, then the same chip family, then the same GPU), and search those phones' repos, status, metal acceleration and other drivers:
node ~/.local/share/iosonand/cli.mjs references --chip "<SoC part number, e.g. SM7325>" and again with the marketing name: the ports on the same or a close chip, their repos and branches, and what works on each. Same chip is best, then the same chip family, then the same GPU.
node ~/.local/share/iosonand/cli.mjs references --gpu "<my GPU, e.g. Adreno 619>" and again with the family (e.g. "Adreno 6xx", "Mali Valhall"): the phones on the same GPU, GPU work first, each with its GPU areas (metal, gles, gpu), the open driver to read, its repos and sources. Same GPU beats same chip for graphics.
node ~/.local/share/iosonand/cli.mjs porting --codename <codename> (or porting <slug>, porting --component Adreno740): UniXNU's porting records, as on unixnu.com/devices. Per port repo and area (display, input, gpu, network, audio ...): verified on the device, host-tested, implemented or planned, with the components used. node ~/.local/share/iosonand/cli.mjs porting-get <record> gives the limits, next step and the exact build and boot commands; node ~/.local/share/iosonand/cli.mjs components wifi (or adreno, ufs ...) lists the drivers with the boards that run them.
node ~/.local/share/iosonand/cli.mjs status-get --device <slug> every area of a close port (works, in-progress, broken, unknown) with its detail and source; node ~/.local/share/iosonand/cli.mjs history <slug> shows what changed and when.
4. Find GPU acceleration and other parts to reuse, matched to my specs:
node ~/.local/share/iosonand/cli.mjs references --area metal and --area gles, --area gpu: the phones where Metal or OpenGL ES acceleration works, with the repo, branch and source to read. The same for wifi, audio, touch, battery, modem, camera (node ~/.local/share/iosonand/cli.mjs areas lists the names).
Outside the tracker, search GitHub and the web for my exact GPU and chips with "XNU", "IOKit", "kext", "iOS port": other ports' drivers first, then the open Linux driver as the hardware reference (registers, firmware loading, power sequencing). For the GPU that is Mesa and the kernel DRM driver: Adreno (freedreno, Turnip, msm), Mali (Panfrost, PanVK, Panthor), PowerVR (Mesa's powervr driver), Xclipse (RADV/amdgpu).
Prefer the same GPU, Wi-Fi or audio chip as mine. Read their commits for that driver and reuse what fits. Check each license before copying: GPL code (most Linux drivers) is a reference unless the port's license allows it. Credit what you reuse.
Known graphics failures, so they are not debugged from scratch (compare with node ~/.local/share/iosonand/cli.mjs references --area metal, --area video-encode):
- White widgets or white snapshot placeholders: iOS writes widget and app snapshots as HEIC through CMPhoto, which asks VideoToolbox for a hardware HEVC encoder. With none, CMPhotoCompressionSessionAddImage fails (codec 'hvc1', error -12900) and the widget stays white. The fix that works: publish Apple's own AppleVideoToolboxParavirtualizationDriver service and back it with the phone's hardware encoder (Android MediaCodec), as OneiOS does; iOS 27 also needs VideoToolbox's tile session (ests, epti, etil, ecti). Read akshaynexus/OneiOS kernel/patches/oneios-hosted/codec/README.md and runtime/bridges/encoder (Rust). Record it as the video-encode area.
- Black widgets, black blurs and materials, a black lock screen or Notification Center, Earth or dynamic wallpapers missing: a Metal path that fails (a refused heap or function, an unsupported feature or format) draws black. Check the Metal plug-in's log for what it refused, compare with phones where metal works, and keep widgets on the CPU path until Metal covers them (the Pixel 4 port does).
- GPU faults, hangs and out-of-memory: recover and log the fault instead of hanging (the Tab S7+ port recovers after GPU faults); heavy wallpapers can run out of GPU memory on 4 GB phones.
Check who already hit it: node ~/.local/share/iosonand/cli.mjs gpu-issues --kind white-widgets (or black-ui, gpu-fault, out-of-memory ...), with their cause and fix.
Log each symptom where others can find it: node ~/.local/share/iosonand/cli.mjs gpu-issue-add s21-ultra-5g "<symptom>" --kind white-widgets|black-ui|gpu-fault|out-of-memory|artifacts|slow|crash|other --cause "<what causes it>" [--fix "<what fixed it>" --state fixed] --source "<log or commit>"; when it is fixed: node ~/.local/share/iosonand/cli.mjs gpu-issue-set s21-ultra-5g <id> --state fixed --fix "...". Also set the area (metal, gles, gpu, video-encode) with status-set.
5. Pick the base project. Each one's page (how it boots, what works, its phones and repos) is https://<this site>/?tab=repos&family=<name>, e.g. family=HackiOS:
- HackiOS (oosexgang/hakios-xnu-kernel): native XNU; fastboot boot of a Mu-Silicium UEFI and their EFI loader, iOS runs from RAM and nothing is flashed. Best for the Snapdragon 778G (SM7325) family or a phone that has a Mu-Silicium port.
- ios-sweet (dipa-studio/ios-sweet): native XNU with a small fastboot-boot shim; the iOS root goes into userdata (erases Android's data). Best for the Snapdragon 730/732G (SM7150) family; most community ports start here.
- UniXNU (UniXNU/UniXNU): native XNU through UEFI (UniXNU boot manager, DarwinBoot); iPadOS; tablets and recent high-end Snapdragon.
- Open Mapple (open-mapple/manifest): native XNU on MediaTek phones, mtkloader chained into boot; Metal on Mali through Panfrost.
- Scion (Scion-Project/scion-kernel): native XNU on Exynos phones from TWRP; iOS 16 and iOS 27 from one kernel tree.
- OneiOS (akshaynexus/OneiOS): iOS next to One UI on a rooted Galaxy, not a native boot: a source-built XNU runs as a process on One UI's kernel, and the OneOS app (akshaynexus/OneOS) switches between them. Nothing is flashed.
Plan
6. Write the plan and show it to me before changing anything: what the research found (closest ports, what works on them, the GPU and driver code that fits), the repo and branch to fork as the base, then the order (memory map and board details, screen, storage, touch and buttons, then GPU acceleration, Wi-Fi, audio from the repos found), each step with the repos, files or commits to follow and the risks (unlocking, wiping data). Gather the port, repos and references the research found in this directory first (clone the base and the reference repos side by side, or list them in one REFS file with branch and commit), and start the project from that combined set: reuse their code through the crate-import rules below instead of rewriting it per repo, so the same logic is written once.
Boot debugging from the start, before the first boot: find the kernel debug patch and USB-based logging the reference projects already have, and wire them into the port's first image, so a boot that hangs or panics is readable instead of guessed at. Read them from the raw GitHub links (curl -fsSLo, no clone needed):
- akshaynexus/iOSPlus10 (native boot, NEGRONI/ios-sweet style; repo https://github.com/akshaynexus/iOSPlus10): patches/xnu/README-bootlog.md (https://raw.githubusercontent.com/akshaynexus/iOSPlus10/main/patches/xnu/README-bootlog.md) and 0367-negroni-bootlog.patch (https://raw.githubusercontent.com/akshaynexus/iOSPlus10/main/patches/xnu/0367-negroni-bootlog.patch) keep the console of the last boots on the phone's own userdata (survives a boot that loses USB); README-panic.md (https://raw.githubusercontent.com/akshaynexus/iOSPlus10/main/patches/xnu/README-panic.md) and 0360-negroni-panic-usb.patch (https://raw.githubusercontent.com/akshaynexus/iOSPlus10/main/patches/xnu/0360-negroni-panic-usb.patch) keep the USB link alive after a panic (panic log to the live log, ctl still answers). USB-based logging: the negroni USB Ethernet gadget streams the kernel console to UDP 5140 (scripts/debug/usblog.sh, https://raw.githubusercontent.com/akshaynexus/iOSPlus10/main/scripts/debug/usblog.sh; host side docs/usb-network.md, https://raw.githubusercontent.com/akshaynexus/iOSPlus10/main/docs/usb-network.md; op10tool ctl on UDP 5141 for commands and settime, op10tool bootlog to capture/decode). Read patches/xnu/README-usb.md (https://raw.githubusercontent.com/akshaynexus/iOSPlus10/main/patches/xnu/README-usb.md) and port the pieces the new boot path can carry.
- akshaynexus/OneiOS (hosted boot, OneOS on One UI; repo https://github.com/akshaynexus/OneiOS): the same idea over adb instead of USB — for Samsung phones past One UI 8 with no OEM unlocking (bootloader locked, nothing flashed, XNU runs as a process under Android) the debug channel is oneios-tool phone log --follow / log / ioslog over adb (xnuhost.log, dmesg, session logs in /data/local/tmp/oneios/logs; tool README https://raw.githubusercontent.com/akshaynexus/OneiOS/main/tools/oneios-tool/README.md) plus the kernel patches' own lines (kernel/patches/oneios-hosted/: first-start diagnosis, blocked-thread debug, log persist; README https://raw.githubusercontent.com/akshaynexus/OneiOS/main/kernel/patches/oneios-hosted/README.md), with the boot flow and the guest console in docs/booter.md (https://raw.githubusercontent.com/akshaynexus/OneiOS/main/docs/booter.md), and OneiOS Studio's log workbench (tools/oneios-gui) streaming them. Use that path for any port that boots under Android rather than from a locked native bootloader.
- One central debug CLI for the port: create a single tool in this port's repo that wraps both existing CLIs (op10tool from iOSPlus10 and oneios-tool from OneiOS, installed with cargo install --git as in step 7) behind one command, so development and debugging go through one entry point instead of two — e.g. <tool> boot-log (capture and decode the boot log, USB or adb depending on how the port boots), <tool> panic (fetch and symbolize the last panic), <tool> log --follow (the live console: UDP 5140 over USB on a native boot, adb xnuhost.log/dmesg on a hosted boot), <tool> ctl (USB command server), <tool> phone (stage and check images over adb). Call the wrapped CLIs or their crates; do not reimplement what they already do. Name it in the plan and put it in the first commit.
7. Languages and crates: do not rewrite logic that already exists in popular Rust libraries or in crates from reference repos (like akshaynexus/OneiOS or akshaynexus/iOSPlus10). Import existing crates via Cargo first, and only write new Rust tools or code when what you need cannot be imported from either popular crates.io libraries or akshaynexus's existing crates and reference repos:
- Popular crates.io libraries first for standard formats and protocols (uefi, android-sparse, lzfse_rust, lzma-rs, flate2, zip, plist, simple_asn1, object, goblin, gimli, addr2line, macos-unifiedlogs, ureq, clap, etc.).
- Import akshaynexus/OneiOS library crates directly in Cargo.toml as Cargo git dependencies (MIT; e.g. oneios-image = { git = "https://github.com/akshaynexus/OneiOS", rev = "<commit>" }; Cargo discovers both workspaces automatically):
* Host/phone tooling (tools/oneios-tool/crates/*, Rust 1.95+): oneios-image (remotezip IPSW range fetch, im4p/LZFSE, AEA decrypt, mountless APFS reader/copy/info, hashes, seed-pack, rangeserve), oneios-imagebuild (full image set build), oneios-tweaks (root tweaks, plist/launchd/Mach-O hooks), oneios-ios (ad-hoc Mach-O codesign, macho-check, TBD generation from DSC), oneios-sym and oneios-ksym (indexed dyld shared cache and DWARF kernel panic symbolizers), oneios-log and oneios-ioslog (session log analyzer and mountless iOS unified log decoder), oneios-a64 (arm64e PAC/LSE/FP16 -> ARMv8.0 lowering/census/verify for non-PAC SoCs), oneios-prelink and oneios-kernel (kernel collection prelink and build helpers), oneios-phone (adb staging, sparse-write), oneios-package, oneios-serve, oneios-conf, oneios-json, oneios-common.
* On-device runtime (runtime/*, Rust 1.85+): xh-core (MMIO bus, virtio-mmio, AArch64 trap decoding, evdev, logging/fd/sysfs), xnuhost-abi (no_std hostcall ABI), xnuloader (Mach-O/ADT/boot-args loader), onebridges (AIDL/HIDL Treble binder HAL, Wi-Fi, BT HCI, AAudio, haptics, brightness, battery, thermal, QRTR sensors, virtio-net/snd), onecamera (Camera2 NDK/HAL), oneencoder (virtio-media MediaCodec HEVC encoder/decoder), oneios-display (SurfaceControl), oneios-switches, xnuhost, oneios-gunyah, drm2kgsl-sys.
- Install and call existing Rust CLIs via Cargo instead of reimplementing them (both MIT; read their READMEs):
* UEFI/fastboot ports (ios-sweet, HackiOS, Mu-Silicium): cargo install --git https://github.com/akshaynexus/iOSPlus10 op10tool (binary-only crate, no lib.rs: img2simg/simg2img sparse images, hfs-size --trim, ipsw-get parallel range download, uefi-unpack for Qualcomm uefi.img, uefi-portpatch masked aarch64 UEFI driver patch porting, im4p, ctl over USB UDP 5141, bootlog capture/decode). Its scripts/ and docs/ also show the build-and-boot flow on a Snapdragon phone.
* General iOS/XNU tooling: cargo install --git https://github.com/akshaynexus/OneiOS oneios-tool (one binary exposing all crates above: sym, sym kernel, log, ioslog, image, remotezip, rangeserve, prelink, kernel, ios, a64, phone, app, cycle, package, serve, switches, conf, json).
- Only when nothing above covers it: write new code in Rust (boot tools and loaders, UEFI apps with the uefi crate, host and flashing tools, daemons and services, driver logic behind a thin C/C++ shim), adding new tools as subcommands in the same style. Keep licenses and credit every imported or reused crate. Use C or C++ only where Rust can't go: XNU itself, IOKit's C++ interfaces, patches to existing C/C++ code, and vendor ABIs. No Python in anything that ships or runs on the device; Python is fine for small dev scripts.
Tracker
8. As soon as the port's repo exists on GitHub (my fork of the base, under my account), put it on the tracker. Don't wait for it to boot: the device gets a page that fills in as the port makes progress.
- sign in with my GitHub account (gh logged in): node ~/.local/share/iosonand/cli.mjs login
- add the repo and the device: node ~/.local/share/iosonand/cli.mjs repo-add OWNER/REPO --device s21-ultra-5g. My GitHub login owns the repo, so the claim is approved at once and I maintain the device.
- record the base: node ~/.local/share/iosonand/cli.mjs repo-lineage OWNER/REPO --base <base OWNER/REPO> --relation fork-of (ported-from when it brings code from another port), and each repo it borrows parts from with --relation uses
- mark the areas the plan starts on as in-progress: node ~/.local/share/iosonand/cli.mjs status-set s21-ultra-5g <area> in-progress --detail "<the plan step>" --source "<repo link>"
9. In the same first commit, install the tracker skill and set up tracker support in the repo so every later session keeps the page current:
- skill: mkdir -p .claude/skills/iosonand-tracker && curl -fsSLo .claude/skills/iosonand-tracker/SKILL.md https://<this site>/SKILL.md
- .gitignore: .env, .env.*, cli.mjs, TRACKER_QUEUE.md (the key stays in TRACKER_TOKEN or the CLI's saved login, never in a tracked file)
- an "## iOSOnAnd tracker" section in AGENTS.md (and CLAUDE.md / .cursorrules if I use those): this port is at https://<this site>/device/s21-ultra-5g; follow the iosonand-tracker skill (.claude/skills/iosonand-tracker/SKILL.md; latest at https://<this site>/SKILL.md) — ask once how tracker updates and release posts should go (auto, ask, off in ~/.config/iosonand/agent-prefs.json), update after a phone boot or release as chosen, always ask and show the file and caption before uploading any image or video, and only claim what a log, capture or pushed doc shows. Also write the language and crate-import rule from step 7 there.
The full version is "Keep the tracker updated from your repo" on https://<this site>/docs/maintain-a-repo.
10. As the port progresses: follow the iosonand-tracker skill and my preferences in ~/.config/iosonand/agent-prefs.json. After each boot that proves or breaks something, record it with a public --source (commit or pushed boot log); always ask me before uploading any screenshot or clip (--photo, media-upload, or update with files). Uncommon hardware that works: node ~/.local/share/iosonand/cli.mjs feature-add s21-ultra-5g "<name>" works --detail "..." --source "<link>". Once the GPU draws: node ~/.local/share/iosonand/cli.mjs gpu-set s21-ultra-5g --method native-metal|metal-vulkan|metal-gl|gles|virtio-gpu|cpu|other --stack "<chain, e.g. AdrenoMetal -> metal2vulkan -> Turnip>" --fps 40-58 --fps-note "<what was measured>" --repos OWNER/REPO --source "<link>", and update the frame rate as it improves.
Rules: follow https://<this site>/SKILL.md — only claim what a build, log, photo or video shows; anything unproven stays unknown; no personal data or vendor files; never commit API keys; always ask before uploading any image or video, and before anything that wipes or flashes the device.Claims
- Approved@rguisantosmaintainer of rguisantos/S21-baremetal (repo claim #36)