[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112538":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":15,"starSnapshotCount":15,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},112538,"asoft-ios-android","alpersamur3\u002Fasoft-ios-android","alpersamur3","iOS 16 in an Android app on a stock, locked phone (QEMU + a native EL0 engine). Companion of ASoftware iOS for Windows.",null,"Java",269,29,6,39,0,21,124,206,92,94.34,"MIT License",false,"main",true,[],"2026-11-23 16:53:23","2026-11-23 18:28:46","# ASoftware iOS for Android\n\niOS 16, and as previews iOS 26 and watchOS, in an Android app, on a stock phone: no root, locked\nbootloader, no Termux. Each can be installed on the phone itself from Apple's servers (iOS 26 and\nwatchOS after a check of the phone's GPU); iOS 16 can also be brought from a PC. The companion of\n[ASoftware iOS for Windows](https:\u002F\u002Fgithub.com\u002Falpersamur3\u002Fasoft-ios).\n\nResearch preview. Tested on a Galaxy S25 Ultra (Snapdragon 8 Elite, 12 GB RAM); iOS 16 also on a\nGalaxy A71 and a Galaxy M31 (much slower: their CPUs cannot run iOS's code natively, see below).\n\n## Which phones\n\nNothing in it is specific to the S25 Ultra; it is the phone it is developed and measured on.\n\n| | Needs | Recommended |\n|---|---|---|\n| iOS 16 | 64-bit Android 10 or later, 6 GB RAM | ARMv8.2-A or later (iOS's code runs natively), 8 GB RAM or more |\n| iOS 26, watchOS | the same, plus an Adreno GPU (Mesa's Turnip driver) | ARMv8.3-A or later (pointer authentication), 12 GB RAM |\n| Room | iOS 16 and iOS 26 about 12 GB each, watchOS about 5 GB; more while installing from Apple (below) | |\n\n- Without the ARMv8.2 features below, iOS still runs, all of it emulated, several times slower.\n- iOS 26 and watchOS are arm64e. On a CPU without pointer authentication (before ARMv8.3) their PAC\n  instructions cannot run natively; untested here, expect them to be slower or not to start.\n- Mali GPUs (most Exynos and MediaTek phones) have no Vulkan driver the GPU path works with yet: iOS\n  26 and watchOS do not run there, iOS 16 does (it draws on the CPU). Set up's GPU check says so\n  before anything is downloaded.\n- Speed is mostly the CPU's big cores: an older or smaller core is slower whatever its ARM version.\n- RAM: iOS 16 reached its lock screen on a 6 GB phone (Galaxy M31) with about 0.2 GB left to Android;\n  with less to spare, Android may close it. iOS 26 and watchOS have been run only on a 12 GB phone.\n  Their memory is set in their menu on the home screen (the three dots): iOS 26 3, 4 or 6 GB,\n  watchOS 2 or 3 GB (the smaller by default on a phone under 10 GB). On the S25 Ultra iOS 26 left\n  Android 1.5 GB at 3 GB and 0.8 to 1.0 GB at 6 GB, where the app warns that Android may close it.\n  Less RAM is a warning, not a stop.\n- Free memory for iOS (home screen, Settings): while iOS runs, the background processes of other\n  apps are ended every 90 s, so Android does not close iOS for lack of memory. Android 14 and later\n  let an app end only its own, so there the app asks adb's shell on the phone itself (`am kill-all`)\n  over Wireless debugging: pair once (Settings on the home screen > Wireless debugging; the code from\n  Developer options goes into a notification of the app). Wireless debugging needs Wi-Fi and is off\n  again after a restart of the phone until it is turned on.\n\n## What works\n\n- iOS 16.7 (20H392) full screen, touch, iOS's own keyboard, Safari with HTTPS pages.\n- Side bar (right edge): tap its handle to show or hide the buttons, drag it to move the bar up or\n  down; it stays where you leave it. Home, the side button, a touch lock (touches stop reaching iOS),\n  pin (Android's screen pinning: the phone's edge swipes no longer pull down the notification shade\n  or go home over iOS), saves. A long press on a button says what it does.\n- The phone's volume keys are iOS's (held, they repeat). Android's back gesture is iOS's edge swipe.\n  Turning the phone's screen off locks iOS too.\n- Quick boot: swiping the app away, or Save and close, keeps iOS as it is; it comes back in about\n  10 s instead of a boot of a few minutes. Named saves (about 3 GB each) can be taken and loaded.\n- Turn off (in 💾, or the notification) shuts iOS down without a save; the next start boots. The\n  last quick save stays as a way back: Go back, on the home screen or in 💾, returns to it with the\n  memory it was saved with, until the next Save and close replaces it.\n- Settings and apps you add stay on the phone's own copy of the disk.\n\nNot working: App Store and Apple ID, audio, GPU acceleration on iOS 16 (it draws on the CPU).\n\n### iOS 26 (preview)\n\niOS 26.6.2 in Apple's research VM (vphone600), drawing on the phone's GPU: Metal is translated to\nVulkan (reims-vgpu, metal2vulkan) on Mesa's Turnip driver for Adreno. Snapdragon 8 Elite (Adreno 830)\nonly so far. Home screen, apps, touch, keyboard, Liquid Glass; quick boot and saves as for iOS 16, and\nan automatic save before Android could run out of memory. It is slow for about 15 minutes after a\nboot. Set up installs it from Apple (below). The screen is 2x by default (faster); 3x (sharp) is in\niOS 26's menu on the home screen. On a disk set up with Always On Display, the side button takes iOS\nto it and a touch there wakes it; iOS's own Auto-Lock is set to Never there, because the app cannot\nsee iOS go to its Always On Display by itself.\n\n### watchOS (preview)\n\nwatchOS 27.2 as an Apple Watch Series 9, on the phone's GPU like iOS 26, in a drawn watch: tap the\ncrown to press it, drag it to turn it; the side button is under it. Its own disk and saves. The first\nstart boots in 5 to 7 minutes (longer on a hot phone); a save comes back in about 5 s with the right\ntime. Set up installs it from Apple, with or without iOS 26.\n\n## Installing on the phone from Apple (no PC)\n\nSet up builds iOS 16, iOS 26 and watchOS on the phone itself from Apple's files, the way the\nWindows installers do: no PC, no adb.\n\n### iOS 16\n\n- It downloads only the parts of Apple's iOS 16.7.16 IPSW (iPhone X) the disk is made of, 5.8 GB,\n  straight from Apple's servers: 8 connections, 32 MB pieces written in place, each part checked\n  against the IPSW's own CRC-32. It picks the fastest of Apple's servers (the phone's own DNS\n  answer was a cache giving 0.1 MB\u002Fs per connection, Apple's servers up to 6 MB\u002Fs), goes on after\n  an app kill, a restart or a lost network, can wait for Wi-Fi, and has Pause and Cancel on its\n  notification.\n- Then the Windows installer's helper VM (a small arm64 Linux that comes with the app) runs in the\n  app's QEMU: it makes the kernel with the iPhone's device tree and builds the iOS disk from the\n  downloaded images, as `Build-iOSDisk.ps1` does on Windows. The disk is packed (6.2 GB) and set up\n  like one brought from a PC, then iOS is started once until its lock screen and saved, so your\n  first start takes seconds.\n- On a Galaxy S25 Ultra (measured from the app, 2026-11-08): the download 26 minutes, the disk 21\n  (the helper's Linux programs run on the phone's CPU, as iOS's apps do, so this step is as fast as\n  on our PC), packing 2, iOS's first start 23 (38 in an earlier run): about 75 minutes from Apple's\n  servers to the lock screen. It needs about 24 GB free at its height (with less, the downloaded\n  files go as soon as the disk no longer needs them) and leaves about 10 GB: the disk (6.2 GB) and\n  iOS's own data with its save. Keep the phone on its charger.\n\n### iOS 26 and watchOS\n\n- First a GPU check: a few Vulkan tests on the app's Turnip, about 10 s, nothing downloaded. When it\n  fails, the screen says whether iOS 26 will not run on this phone or is not supported yet, with\n  its log to copy or share (please send it).\n- Their shared part comes once, whichever is installed first: cloudOS 26.4's kernel, firmware and\n  GPU driver from Apple, about 1 GB (3.5 minutes on the S25 Ultra).\n- Then each OS's own IPSW parts from Apple, and the helper VM builds its disk with the Windows\n  installers' own steps. iOS 26 is then started once through its first-boot work (iOS's data\n  migration, about an hour), watchOS until its watch face.\n- On a Galaxy S25 Ultra (2026-11-08\u002F09): watchOS 5 GB from Apple, about 65 minutes in all (the\n  download 14, its root file system 32, the first start 10), about 21 GB free at its height, leaves\n  about 5 GB. iOS 26 10.2 GB from Apple, about 2.5 hours (the download 32 minutes, its root file\n  system 32, the data migration about 60), about 46 GB free at its height, leaves about 12 GB.\n- Besides Apple's servers they fetch, from GitHub: a small iOS sysroot (bash and file tools the\n  disk steps run, [jprx\u002Fdarwin-vm](https:\u002F\u002Fgithub.com\u002Fjprx\u002Fdarwin-vm)), our device-tree fix-up\n  (qemu-sptm), the GPU compiler plugin (vphone-cli's open-source GraphicLoader with our patch, an\n  asoft-ios release), and the FCS key list\n  [blacktop\u002Fipsw](https:\u002F\u002Fgithub.com\u002Fblacktop\u002Fipsw) carries, used when Apple's key service does not\n  answer.\n\nThe app and this repository hold no Apple file: what is built comes from Apple's servers on the phone.\n\n## Setting it up from a PC\n\n1. On a Windows PC, install ASoftware iOS with iOS 16.\n2. Install this app on the phone (see Which phones; about 12 GB free).\n3. On the PC, run `Send-ToPhone.cmd` from the ASoftware iOS folder. It packs that iOS into\n   `ASoftware-iOS16.asoft` (about 6.5 GB) and, with the phone on USB and USB debugging on, sends it\n   to the app. Otherwise copy the file to the phone and pick it in the app.\n4. In the app: Set up > Import, then Start iOS 16. The first start takes a few minutes (2 to 4 on\n   our phone).\n\nThe file is made on your PC from what the Windows installer downloaded from Apple. Neither this\nrepository nor the app holds any Apple file. Do not share the file.\n\n## How it works\n\nQEMU runs as the app's child process. A locked phone gives an app no hypervisor, so QEMU emulates\nXNU's kernel, but the iOS processes themselves run on the phone's CPU: the native EL0 engine maps\neach iOS address space into a helper process and runs its arm64 code there, trapping to QEMU for\nsystem calls and page faults. On CPUs without the ARMv8.2 features iOS uses (LSE atomics, RDM,\ndot product, FP16, RCpc) the engine stays off and QEMU emulates everything. The screen is read straight from the guest's RAM into a GLES\ntexture each display frame; input goes over QMP.\n\n## Building\n\n- QEMU and `qemu-img`: [qemu-sptm](https:\u002F\u002Fgithub.com\u002Falpersamur3\u002Fqemu-sptm), branch\n  `asoft-android`, built in Termux on the phone (`-D__TERMUX__ -O2 -fno-emulated-tls`).\n  `pull-libs.sh` copies them (as `libqemu.so`, `libqemuimg.so`) and their Termux libraries into\n  `app\u002Fsrc\u002Fmain\u002FjniLibs`.\n- iOS 26's QEMU (`libqemu26.so`): the same branch with reims-vgpu and metal2vulkan linked in, built\n  with the NDK; Turnip and the Vulkan loader beside it. `pull-libs26.sh` puts them in\n  `app\u002Fsrc\u002Fmain\u002FjniLibs26`.\n- The setup from Apple: `pull-setup.sh [ASOFT_IOS_CHECKOUT]` copies the helper VM (`Image.gz`,\n  `initrd.gz`; `Image16k.gz` from `$KERNEL16K`, built with `setup\u002Fhelper-kernel16k.config`), the\n  iOS 16 kernel, the tools that make `payload.bin` and `asoft-setup.json` (the member and step list\n  the installers share), and for iOS 26 and watchOS the Windows installers' Linux step bodies and\n  scripts (`ios26\u002F`, `watchos\u002F` there) with this repository's `setup\u002Fphone` jobs, into\n  `app\u002Fsrc\u002Fmain\u002Fassets`.\n- The app: `.\u002Fgradlew assembleDebug` (Android Studio's JDK, SDK 36, NDK 29). A release build is\n  signed when `~\u002F.android\u002Fasoft-ios-release.properties` (or `$ASOFT_SIGNING`) names a key.\n- Tests and measurements on a phone over adb: `dev\u002F` (`dev\u002Ftest-*.sh`; input goes to the phone only while the app is on top\n  and the phone is unlocked).\n\n## Licenses\n\nThe app's code: MIT (LICENSE). The APK also carries:\n\n- QEMU 11.1 (GPL v2): source at https:\u002F\u002Fgithub.com\u002Falpersamur3\u002Fqemu-sptm, branch `asoft-android`.\n- reims-vgpu and metal2vulkan (GPL v2 or later, or LGPL v3 or later): sources at\n  https:\u002F\u002Fgithub.com\u002Falpersamur3\u002Freims-vgpu and https:\u002F\u002Fgithub.com\u002Falpersamur3\u002Fmetal2vulkan, branch\n  `asoft-android`.\n- Mesa's Turnip Vulkan driver (MIT) and the Khronos Vulkan loader (Apache 2.0).\n- For the setup from Apple: our XNU kernel for iOS 16 (Apple Public Source License 2.0; built from\n  Apple's XNU with the patches in [asoft-ios](https:\u002F\u002Fgithub.com\u002Falpersamur3\u002Fasoft-ios) `xnu\u002F`),\n  and the Windows installer's helper VM (`installer\u002Fhelper` there): Linux 6.12 (GPL v2; kernel.org's\n  6.12.114 with `installer\u002Fhelper\u002Fkernel.config`, and for the phone's engine also\n  `setup\u002Fhelper-kernel16k.config` here), Ubuntu 24.04 arm64 packages under their own licenses\n  (sources at https:\u002F\u002Flaunchpad.net\u002Fubuntu), and apfs-fuse (GPL v2,\n  https:\u002F\u002Fgithub.com\u002Fsgan81\u002Fapfs-fuse).\n- Termux packages QEMU links (GLib, GnuTLS, Nettle, libslirp, pixman, zstd and others, under\n  their own licenses): sources at https:\u002F\u002Fgithub.com\u002Ftermux\u002Ftermux-packages.\n- Conscrypt (Apache 2.0, https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fconscrypt): TLS 1.3 for the pairing with Wireless\n  debugging. The adb client itself (`Adb*.java`, `Spake2.java`) is the app's own, written after\n  AOSP's adb (Apache 2.0); SPAKE2's two points are BoringSSL's.\n\nNot affiliated with Apple. iOS is Apple's.\n","这是一个在未root、锁定引导加载程序的安卓手机上运行iOS系统（iOS 16及预览版iOS 26\u002FwatchOS）的实验性模拟项目，无需Termux或PC依赖。核心采用QEMU结合自研EL0级原生执行引擎，在支持ARMv8.2-A及以上指令集的设备上实现iOS代码近原生运行；对不支持硬件特性的设备自动降级为全软件模拟。支持触控、Safari浏览、系统键盘等基础交互，通过无线调试机制动态管理内存以维持前台运行。适用于移动平台跨系统研究、iOS界面\u002F应用行为验证及ARM架构兼容性测试等技术探索场景。",2,"2026-11-24 04:43:46","CREATED_QUERY"]