hakios-xnu-kernel README

README проекта с github.com/oosexgang/hakios-xnu-kernel. Одним файлом markdown: README.md.

HakiOS

English · 中文 · Українська

Apple's open-source Darwin kernel (XNU, xnu-8796.121.2) on Android phones, the way Android is Linux on phones: a boot loader of its own, drivers of its own, a configuration system and a version of its own. The same kernel runs in QEMU with nothing of Apple's and nothing of any phone's (make qemu-open). A research bench, not a ROM: by default it runs from RAM, and a reboot gives the phone back to Android.

Documentation: docs/, and the site, hackios-web.vercel.app.

News, 4 November 2026: on the POCO X5 Pro 5G the window server draws through Metal on the Adreno 642L, two ways. hakios-metal: page swipes 110 to 115 frames a second, Settings' scroll 118, the home button 106, rendering at 828x1792 stretched to the panel; 101, about 90 and about 90 at the full 1125x2436. UniXNU's Metal on Vulkan: swipes 50 to 57, scroll 41. The panel is 120 Hz, and 120 frames a second has not been reached. Metal on the Adreno, the measurements.

Start with Getting started, On the phone or Port a device. What works, part by part: the documentation's front page.

Repositories

Repository Contents
hakios-xnu-kernel common: the kernel port, every common driver, the loader, user space, the tools, this documentation, and devices/qemu
hakios-metal/ Metal's command model on the Adreno, through the kernel's GPU driver
hakios-sm7325 POCO X5 Pro 5G: its defconfig, status, UEFI platform, firmware script, and its SoC's layer (Qualcomm SC7280 family)
hakios-mt6768 Infinix Hot 20 (MediaTek Helio G85): an experimental port with its own loader. Not in this repository's manifest
hakios-uefi the firmware that starts the loader: Mu-Silicium with HakiOS's boot path, banner and name, and HakiOS's U-Boot
hackios-web the website
hackios-xnu-userland old: a pointer kept for its links. User space is userland/ here

How they fit: the repositories.

What you bring, and what is never here

Nothing of Apple's and no vendor's firmware is in these repositories. The Darwin user space, if you want it, you lay out yourself from an IPSW you get yourself, and the firmware comes off your own phone; nothing is downloaded for you, decrypted or circumvented. Apple's services (activation, Apple ID, iCloud, the App Store) are not supported and not a goal. What is in the repository, and what never is.

Contributing

See CONTRIBUTING.md and COMMUNITY.md.

The XNU patch and the files derived from it are under the Apple Public Source License 2.0 (LICENSE.APSL), the rest under MIT (LICENSE), as the file headers say. Third parties: NOTICE, THIRD_PARTY_LICENSES.md, COMPLIANCE.md. What is and is not distributed: LEGAL.md. None of this is legal advice.

HakiOS is an independent research project. It is not affiliated with or endorsed by Apple; "Darwin", "iPhone", "XNU" and "Apple" are named only to describe what the code works with. If you believe a file here infringes anyone's rights, open an issue and it will be removed.

Team

hakios is an experimental project focused on bringing darwin to android hardware. our goal is to make hakios free and accessible to everyone.

@oodze - founder, @netusd - advertising / ceo-dev, @wannqn - dev, @hxfuxyyXD - dev, Rhaenja Hun(杭润嘉) - developer / sponsor

tym sicilium for the sources!

hakios-xnu-kernel (oosexgang/hakios-xnu-kernel)

Ищем в базе…

Что это такое?HackiOS загружает открытое ядро XNU от Apple (то самое ядро, на котором работает iOS 16.5) на оборудовании телефона на Android (или в QEMU) и запускает поверх него неизменённое пользовательское пространство iOS 16.5: launchd, backboardd, SpringBoard и приложения.
Это ROM, который можно прошить и установить насовсем?Нет, это не ROM, а исследовательский стенд: сеанс работает заданное время в оперативной памяти, затем ядро возвращает управление загрузчику, и после перезагрузки телефон снова работает на стоковом Android, который ничем не изменён.
Как это запустить без подходящего телефона?Запустите его в QEMU (virt, aarch64) на любом компьютере с Linux. Готовые ядро, загрузчик и программы уже включены, нужно только собрать образ системы iOS из IPSW от самой Apple на своём компьютере.
Что нужно на компьютере?Машина с Linux x86-64, примерно 12 ГБ свободного места на диске и 4 ГБ свободной оперативной памяти, а также пакеты git, python3, 7-Zip (23+, для APFS), liblz4-dev, gcc, qemu-system-arm и qemu-efi-aarch64.
Что пока не работает?Сотовая связь и Bluetooth не реализованы, под этим ядром телефон только разряжается (зарядки нет), отрисовка Metal пока частичная (работают 293 шейдера из 456), а вход в App Store и Apple ID невозможен, так как нет Secure Enclave.
На каком телефоне это реально работает?Только на POCO X5 Pro 5G (кодовое имя redwood, Snapdragon 778G) через fastboot boot при разблокированном загрузчике и без прошивки чего-либо. В остальном то же самое работает в QEMU на любом ПК с Linux, даже без телефона.
Это официальный проект Apple?Нет. HackiOS — независимый исследовательский проект команды OOSEX GANG, и он прямо не связан с Apple Inc., не авторизован и не одобрен ею.
Как iOS работает без закрытых драйверов Apple?Бинарные файлы iOS и общий кэш dyld не изменяются. Вместо этого ядро предоставляет собственные замены драйверов или внедряет библиотеку в процессы через DYLDINSERTLIBRARIES, чтобы закрыть недостающее.
Откуда берётся сама программная часть iOS?Скрипт (ios165/fetch.sh) скачивает IPSW iOS 16.5 прямо с CDN Apple на ваш компьютер и извлекает там только нужное, поэтому файлы Apple никогда не хранятся в репозитории.
Что уже работает на телефоне?Экран блокировки и главный экран, системные жесты, сенсорный экран с мультитачем, до 8 ядер процессора, графический процессор Adreno через Mesa/freedreno, Wi-Fi (55-90 Мбит/с), звук, фото с камеры, постоянное хранилище между перезагрузками и даже инструменты джейлбрейка Sileo/Procursus с SSH.
Какие есть похожие проекты?ios-sweet, hackios-xnu-userland, ios-topaz, hmg_nemesis, Snapintosh, UniXNU, CivSwitch, w1700k-sdr
Автор
oosexgang
Размер
199 MB
Звёзды
2.8K
Обновлён
КоммитNov 06
Возраст
27 д
Коммиты · 90 дней