Skip to content

Nestvane 1.9

Choose a tag to compare

@everettjf everettjf released this 25 Nov 01:23
· 54 commits to main since this release

Android 17 inside an iPhone or iPad app, with no JIT and no jailbreak. Version 1.9 makes apps' own native libraries run longer on a core of their own, and adds floating point and SIMD to the interpreter's fast path.

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.9

  • Apps' own native libraries stay on their own core. iOS lets no app make machine code as it runs, so the libraries an app brings with it are interpreted. Since 1.7 a thread that keeps interpreting moves to a core of its own, but it used to hand itself back to Android's main loop at every floating-point or SIMD instruction, and every time a system library it had called returned. It now does both itself:
    • A call from interpreted code into a system library returns through an exit that costs no fault, where before the return faulted and ended the thread's turn on its core. About 60,000 such returns happened in two minutes of Telegram and Element.
    • Every instruction that only changes registers is taken by the fast path, all floating-point and SIMD arithmetic included, through the interpreter's own code, and the common scalar floating-point operations directly. A million random instructions were each run both ways, with random register contents: all the same.
  • Faster interpreter. On a Mac benchmark that now includes floating point, the interpreter runs 195 million instructions a second on the main loop instead of 168 million, and 242 million instead of 210 million on a worker core, which in 1.8 stopped at the first floating-point instruction.
  • Checked after 1.8: the microphone records on an iPad Air once iOS allows it, and Android turns when an iPad is turned by hand.

Start time

On an iPhone 14, the median of five starts to the Android home screen is 9.0 s (8985 ms), against 9.1 s (9130 ms) for 1.8. Because one build varies by up to 2 seconds between starts, 1.8 and 1.9 were also installed in turn on the same phone, twice each: over ten starts each the medians were 8.89 s for 1.8 and 8.99 s for 1.9, within that variation. 1.9's changes touch apps' own native libraries, which start only after the home screen.

Known problems

  • Apps' own native libraries are still interpreted, and apps whose work is there remain slow. Much of the time an app such as Element takes to open is not in its native libraries but in its Java code, which Android checks and interprets as it runs.
  • The home screen does not turn with the device. Apps turn. Planned for 1.10.
  • Android has no Wi-Fi service: an app that insists on one stops (KDE Connect). Planned for 1.11.
  • On an iPad, Android is laid out as on a phone. Video is decoded in software. Both need Android rebuilt; planned for 1.14.
  • With many apps installed, an iPad Air once ran out of guest address space while they all started after the home screen, and an app opened then did not start. Not yet looked into.
  • Large apps start slowly. Camera recording. Google apps and Play services (this is AOSP). Real phone calls and SMS.

Next

Versions now go on as 1.10, 1.11 and so on; 2.0 is kept for a real breakthrough, such as no longer needing a paid account. The next ones are planned from the feedback in #5: 1.10 installing APKs from inside Android and from the iOS share sheet, a live shared folder, pictures and videos, a Recents button and a turning home screen; 1.11 the network, screen recording, recorded sound and freezes; 1.12 KernelSU and backups; 1.13 the camera. The roadmap (in Chinese).

Install

Nestvane-1.9.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 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: d75743378e90a3092e00c27edc5c0365bb90cbed57616147f3cd35e9634a7951

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.