Repository navigation
Nestvane 1.7
Android 17 inside an iPhone or iPad app, with no JIT and no jailbreak. Version 1.7 brings root when you want it, storage that is your device's, and apps that can run commands.
Nestvane is still for developers only. The only way to run it is to sign the IPA with a paid Apple Developer Program membership (US$99 a year) and sideload it.
New in 1.7
- Root, if you want it. Off unless you turn it on in Nestvane's Settings (it takes effect the next time Android starts). Then
suexists in Android, and the first time an app runs it, iOS asks whether that app may have root. Your answers are kept and listed in Settings, where you can change them. An allowed app gets uid 0 with every capability; a refused one gets "Permission denied". - Your device's storage. Android's Storage page shows the size of the volume Nestvane is on and what iOS says is free on it, less 1 GiB kept back, and Android can write until then. Before, it saw a fixed 8 GiB and showed "16 GB total". (#2)
- Apps can run commands. Java's
Runtime.execandProcessBuilderused to leave the calling thread hanging; they work now, and the usual commands (ls,id,cp,psand about 70 more) are in/system/bin. - Apps' own native libraries run about twice as fast. They are still interpreted (iOS lets no app make machine code as it runs), but common instructions are now decoded once, and a thread that keeps interpreting moves to a core of its own, where the system libraries it calls still run as translated code. Each pre-decoded instruction is checked against the interpreter on random inputs: 406,093 of them, all the same.
- Fewer faults. Small memory mappings no longer straddle two blocks of Android's address space, which made code reaching across the boundary fault on every access: about 300,000 faults in the first 30 seconds of a start before, about 34,000 now.
- A calmer start. Apps you installed wait until the home screen is shown (at most 30 seconds) before they run; a chat app syncing at boot used to take the CPU from Android's own start.
- WebView's renderers run in Chromium's seccomp sandbox again.
Start time
On an iPhone 14, the median of five starts to the home screen is 10.9 s, against 11.1 s for 1.6's recorded baseline. Measured in turn on the same phone at the same time, 1.7 took 10.3 and 10.8 s and 1.6 took 12.9 s. Every release now has to pass this check (tools/boot-check.sh). Memory at the home screen is 2.61 GB, 0.05 GB more than 1.6.
Known problems
- ScriptWidget's widget previews do not appear. The app stops a script that runs past its own deadline, and interpreted, its scripts still do. Apps whose work is in their own native libraries remain slow; Douyin showed no video in 1.6 and was not tried again.
- On an iPad, Android is laid out as on a phone. At a tablet's density this build of Android does not work.
- The home screen does not turn with the device. Apps turn.
- Large apps start slowly. Firefox takes up to two minutes to its first screen.
- Video is decoded in software, not by the phone's decoder. Camera recording.
- Android has no Wi-Fi service: an app that insists on one stops (KDE Connect).
- Google apps and Play services: this is AOSP.
- Real phone calls and SMS.
Install
Nestvane-1.7.ipa carries no signature and no provisioning profile. Sign it with your own Apple developer identity, with the Extended Virtual Addressing and Increased Memory Limit capabilities, then install it: docs/installing.md. Installing over an earlier version with the same identity keeps Android's apps and data.
- iOS or iPadOS 17 or later, and at least 6 GB of memory. This version was tested on an iPad Air 11-inch M3 (iPadOS 27.0.1) and an iPhone 14 (iOS 17.3.1).
- A paid Apple Developer Program membership (US$99 a year) is needed.
- 1.24 GB to download, about 4 GB installed.
- SHA-256:
00521113c6edfc62306c7ee405f40c28777c6a3b8003d297b27bb85983d8208f
Measured
| iPad Air (M3) | iPhone 14 | |
|---|---|---|
| Boot to the Android home screen | 9.6 and 12.0 s | 10.9 s, median of five |
| Memory footprint at the home screen | 3.15 to 3.18 GB | 2.61 GB |
| A Wikipedia article in a WebView, loaded | 5.1 s | |
| A finger moving a list (the iPad's screen is 60 Hz) | up to 60 frames a second | |
| Text message, announced to apps | yes | |
| Root: allowed, asked, refused, switched off | all four as intended | |
| An app's own native library, interpreted | 70 to 81 million instructions a second on the main loop, more on a worker |
Not tried: an iPhone 15 Pro or 17 Pro with this build, Termux and other root apps from elsewhere, an interactive root shell, and apps from the compatibility list beyond those above.
Inside
The app contains an Android 17 system built from the Android Open Source Project with this repository's patch, Android System WebView (AOSP's prebuilt build of Chromium 128.0.6613.88), and gfxstream and ANGLE. Their notices are inside the app, in Licenses/, and attached here as NOTICE-AOSP.txt, NOTICE-WEBVIEW.html and THIRD-PARTY-NOTICES.txt. Nestvane's own code is under the Apache License 2.0.
A few parts of that Android system, iptables and libexif among them, are under the GPL or the LGPL. Their source is AOSP at android-17.0.0_r1 with this repository's patch; for three years from this release AtomSprout will also send a copy to anyone who asks at atomsprout@gmail.com, for no more than the cost of the transfer. WebView's source is Chromium at 128.0.6613.88.
With thanks to Twoyi and Kernarium: how the three compare.