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 在安卓手机硬件(或 QEMU)上启动苹果开源的 XNU 内核(即 iOS 16.5 所用的内核),并在其之上运行未经修改的 iOS 16.5 用户空间,包括 launchd、backboardd、SpringBoard 和各类应用。
这是可以永久刷入的 ROM 吗?不是,它是一个研究用的环境,而不是 ROM:每次运行都在内存中持续一段设定的时间,之后内核会把控制权交还给加载器;重启后,手机会恢复为原装安卓,不做任何改动。
没有兼容的手机,怎么运行?在任意 Linux 电脑上用 QEMU(virt,aarch64)运行:预编译的内核、加载器和程序都已包含,你只需要在自己的电脑上,用苹果官方的 IPSW 构建 iOS 系统镜像。
宿主机需要什么?一台 Linux x86-64 机器,至少约 12 GB 可用磁盘空间和 4 GB 可用内存,并安装 git、python3、7-Zip(23 及以上版本,用于处理 APFS)、liblz4-dev、gcc、qemu-system-arm 和 qemu-efi-aarch64 等软件包。
目前还有哪些功能不能用?蜂窝网络和蓝牙尚未实现;在此内核下手机只能放电,无法充电;Metal 渲染仍不完整(456 个着色器中有 293 个能运行);由于没有 Secure Enclave,App Store 和 Apple ID 登录无法使用。
这个项目到底能在哪款手机上运行?目前只支持 POCO X5 Pro 5G(代号 redwood,骁龙 778G):在解锁 Bootloader 且不刷入任何分区的前提下,通过 fastboot boot 启动;此外,在任何 Linux 电脑的 QEMU 中运行效果完全相同,无需任何手机。
这是苹果官方的项目吗?不是。HackiOS 是 OOSEX GANG 团队的独立研究项目,明确与苹果公司无关,也未获得其授权或背书。
没有苹果的闭源驱动,iOS 是怎么运行的?iOS 的二进制文件和 dyld 共享缓存保持不动;取而代之,内核提供自己的驱动替代品,或者向使用 DYLDINSERTLIBRARIES 的进程注入一个库,以补足缺失的部分。
iOS 软件本身从哪里来?由脚本 ios165/fetch.sh 直接从苹果官方 CDN 把 iOS 16.5 IPSW 下载到你的电脑上,并只在本机解压所需的部分,因此仓库中从不存储任何苹果文件。
手机上已经能用哪些功能?锁屏和主屏幕、系统手势、支持多点触控的触摸屏、最多 8 个 CPU 核心、通过 Mesa/freedreno 驱动的 Adreno GPU、Wi-Fi(55-90 Mbit/s)、声音、相机拍照、重启后依然保留的存储,甚至还能运行 Sileo/Procursus 越狱工具并使用 SSH。
作者
oosexgang
大小
199 MB
星标
2.8K
更新
提交Nov 06
时长
27天
提交 · 90 天