Xperia Z5 dual
UnknownBase unknowniOS version not stated
sumire · Snapdragon 810 (MSM8994)
- Model
- sumire
- SoC
- Snapdragon 810 (MSM8994)
- GPU
- Adreno 430 · Adreno 4xx
- Maintainer
- @MatveyGatiki
- Updated
- Views
- 6 this week
- 25 iOS areas
Added with the claim of MatveyGatiki/ios-sumire.
Repos 1
one family- Veerhooda/iOSupstream
source layout, hardware map and SUMIRE build skeleton in the repo; nothing booted
UsesVeerhooda/xnu
Areas
Boot and system
Boot to Home Screen
In progressBootloader unlocked (Sony code for IMEI 2), TWRP 3.2.3 installed, stock boot dumped and restored. The Z5 boot partition holds a 64-bit ELF (kernel 0x80000, ramdisk 0x2000000, dtb 0x1e00000), not an ANDROID! image: fastboot boot accepts ANDROID! but never hands over, while an ELF flashed into boot does run. XNU 4903 builds with clang 10 (CLT 10.2) + SDK 10.14, a sumire ADT was generated from the real /proc/iomem map, and an OP2XNU01 payload is packaged into a bootable ELF. Blocked on an output channel: pstore is empty, /proc/last_kmsg, /dev/mem and UART are unavailable, and an eMMC log block does not survive a power cycle.
SpringBoard stability
UnknownNo detail
Display and GPU
GPU compositing
UnknownNo detailMetal acceleration
UnknownNo detailOpenGL ES acceleration
UnknownNo detailAuto-brightness
UnknownNo detail
Input
Touch + buttons
In progressE6683 uses Synaptics ClearPad RMI4 (I2C address 0x2C, controller 0xF9928000, IRQ GPIO 42, reset GPIO 109). The repository contains a prototype RMI4 transport and F12 discovery in device/drivers/sum_rmi4.cpp. The touch driver has yet to be verified on the phone.
Keyboard input
UnknownNo detailHaptics
UnknownNo detailSensors (general)
UnknownNo detail
Audio and media
Audio output
UnknownNo detailCamera capture
UnknownNo detailVideo encode (HEVC)
UnknownNo detail
Connectivity
Wi-Fi
UnknownNo detailBluetooth
UnknownNo detailCellular modem
UnknownNo detailMobile data
UnknownNo detailPersonal Hotspot
UnknownNo detailPhone calls
UnknownNo detailSMS
UnknownNo detail
Power and thermal
Battery reporting
UnknownNo detailThermals under load
UnknownNo detail
Security and apps
Passcode
UnknownNo detailFace ID
UnknownNo detailWallet
UnknownNo detail
GPU acceleration
What changed
Photos and clips
Port iOS to the Xperia Z5 dual
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: Xperia Z5 dual. 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 xperia-z5-dual 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 xperia-z5-dual "<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 xperia-z5-dual <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 xperia-z5-dual. 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 xperia-z5-dual <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/xperia-z5-dual; 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 xperia-z5-dual "<name>" works --detail "..." --source "<link>". Once the GPU draws: node ~/.local/share/iosonand/cli.mjs gpu-set xperia-z5-dual --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@MatveyGatikimaintainer of MatveyGatiki/ios-sumire (repo claim #32)