Skip to content

Nestvane 1.6

Choose a tag to compare

@everettjf everettjf released this 24 Nov 08:30
· 90 commits to main since this release

Android 17 inside an iPhone or iPad app, with no JIT and no jailbreak. Version 1.6 brings WebView: apps that show web pages inside themselves work.

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

  • Web pages inside apps. Android System WebView 128, AOSP's own prebuilt build of Chromium, is now part of the system. A Wikipedia article loads in a WebView in 4.4 seconds on an iPad Air and 8.3 seconds on an iPhone 14. JavaScript runs in V8's interpreter, with no JIT.
  • Apps that needed it. Toutiao's feed now loads (its network library waited for a WebView on every request); AnkiDroid opens to its introduction; Jellyfin opens to Connect to Server. 51 of the 54 apps tried open: the list.
  • Ready-made code is translated too. Android's own code is built with five processor registers left for Nestvane; WebView's library is not. The translator now lends other registers in their place, so code built the ordinary way can be translated ahead of time as well. WebView's library, 27 million instructions, is translated and ships inside the app. Each rewritten instruction is checked on a Mac against the processor: 75 written tests, and 45,000 instructions sampled from WebView's library.
  • What WebView needed of the Linux layer. Reservations of tens of GiB of address space, mapping hints, abstract Unix sockets, capabilities that let WebView's zygote start renderers, seccomp() with SIGSYS, and a TCP peek. A process that uses WebView now stays native; before, the whole process fell back to the interpreter.

Known problems

  • Douyin shows no video within two minutes: its own native libraries are interpreted. That is the work of the next version.
  • Renderers run without Chromium's seccomp sandbox, and WebView's overlays are off.
  • 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.
  • An app's own native libraries are interpreted and slow.
  • Real phone calls and SMS.

Install

Nestvane-1.6.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: 0893ca0ad684900c4e151e4b8a28998c2a74defd8232f08056b2b4df057308e8

Measured

iPad Air (M3) iPhone 14
Boot to the Android home screen 10.4 and 14.1 s 14.3 s, the first start after installing
Memory footprint at the home screen 3.04 to 3.19 GB
A WebView made 0.83 s 1.3 s
A Wikipedia article in a WebView, loaded 4.4 s 8.3 s
Memory footprint with the article open 3.53 GB, 0.76 GB below the limit
Text message, announced to apps yes

Not tried: an iPhone 15 Pro or 17 Pro with this build, the Wikipedia and DuckDuckGo apps themselves (they were not installed on the test devices), iOS 18, and a phone that is really hot.

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.