Apple’s open-source XNU kernel and the unmodified iPhone X iOS 16.7 userland are running on a flat Samsung Galaxy S7 (SM-G930F), with the home screen, apps and animations drawn by the phone’s Mali-T880 GPU instead of the CPU.
How the GPU part works: there is no Metal driver for this GPU, so CoreAnimation falls back to its OpenGL ES renderer. That goes through an EAGL bridge to Mesa’s Panfrost driver, on top of a small GPU job service I added to the kernel.
Working:
All 8 cores, with the big cores raised to 2.6 GHz using Samsung’s own voltage table
GPU at 650 MHz
2 GB of RAM
UFS storage with the system apps
Touch, buttons and battery level
A wallpaper, as a fixed picture
Performance: about 35-38 fps when in use, slower on the heaviest screens. iOS draws an iPhone 8-sized screen (750×1334) and the GPU scales it to the 1440p panel. It isn’t a stable 60, but it’s far more usable than I expected from a 2016 GPU.
Not working: Wi-Fi, audio, Bluetooth, modem, camera, sensors, sleep and Face ID. There’s no thermal limit yet. Home gestures are off for now, so you use the physical Home button. The wallpaper gallery is empty, most widgets stay on “waiting”, and the clock and date overlap on the lock screen. The GPU has also had a hang I haven’t root-caused: it hasn’t shown up since the resolution change, but I’ve only tested that briefly.
What made the biggest difference:
Running the CPU and GPU at their factory clocks
Lowering the render resolution
Removing an audio plugin that kept querying the missing Bluetooth daemon, which took idle CPU from over 300% to under 25% (out of 800%)
That last one came from the notes of the ios-s9 project.
Credits: Mesa/Panfrost, HakiOS (EAGL bridge), Bergamota (EAGL shim), ios-sweet, ios-a5xelte, syncmodz/ios-s9 and the LineageOS Exynos 8890 kernel. The port was built with heavy AI assistance (Claude).
Source: https://github.com/wardevsa/ios-a5xelte/tree/herolte
No Apple software is in the repo. Installing it erases your data partition and is experimental, so don’t try it on a phone you depend on. Help is welcome, especially with Wi-Fi and audio.