Repository navigation
JIT
This page describes Andarium 1.2 and later.
Andarium normally runs Android's apps with its own interpreter engine. On an iPhone or iPad, it can use a JIT (just-in-time compiler) instead. The JIT needs StikDebug: it turns on when StikDebug attaches to Andarium, and there is no switch to set.
JIT is optional and experimental. It makes heavy work much faster: CPU performance improves by more than 100%, while Andarium's load on the device's processor drops by about 5%. Apps may start more slowly with it. To run without JIT again, close Andarium and open it from the Home Screen.
- 32-bit apps run much slower with JIT. Leave JIT off if you use them.
- Android's own start and its built-in apps do not get faster.
- Once the JIT is prepared, Andarium holds memory for it until you close Andarium, even while Android is not running.
- The JIT is not available when Andarium runs on a Mac or on Apple Vision Pro.
First set up StikDebug on your iPhone or iPad as StikDebug's own instructions describe: its pairing file imported and LocalDevVPN connected.
- Open Andarium. While the virtual machine is not running, Home's Performance section says JIT is off and shows a Turn on JIT button under it.
- Tap Turn on JIT. StikDebug opens and asks you to confirm; tap "Enable and Run Script".
- StikDebug attaches to Andarium and brings Andarium back to the front by itself. The row changes from Waiting for StikDebug to Preparing JIT and then JIT is on.
- Tap Start.
You do not need to assign a script to Andarium in StikDebug for this:
Andarium names the one it needs (universal.js) in its request.
The button is shown only when StikDebug is installed, the virtual machine is not running, and the JIT is not already on or being prepared.
- In StikDebug, make sure the universal script (
universal.js) is assigned to Andarium, as StikDebug's instructions describe. - Open Andarium from StikDebug's app list. Attaching StikDebug to an Andarium that is already open works too.
- In Home's Performance section, check that it says JIT is on, then tap Start. If it still says JIT is off, close Andarium (swipe it away in the App Switcher) and open it from StikDebug again.
The JIT stays on until you close Andarium, unless you change the virtual machine's CPU or memory. Each time you open Andarium again, turn the JIT on again if you want it.
| Home says | What it means |
|---|---|
| JIT is off: "To use JIT, open Andarium from StikDebug." | The JIT has not been prepared. Android starts with the interpreter engine. |
| Waiting for StikDebug | You tapped Turn on JIT. Andarium waits up to 90 seconds for StikDebug to attach. |
| Preparing JIT | StikDebug is preparing the JIT. This takes a few seconds. |
| JIT is on | The next start uses the JIT. Closing StikDebug now changes nothing. |
| JIT is off: "StikDebug did not respond. Try again." | Nothing attached within 90 seconds. The Turn on JIT button is there again. |
| JIT is off: "The CPU or memory changed. Close Andarium, then open it from StikDebug." | The virtual machine's CPU or memory was changed after the JIT was prepared. |
| JIT is off: "Close Andarium, then open it from StikDebug with the universal script." | StikDebug was connected, but the JIT could not be prepared. |
-
"StikDebug did not respond. Try again.": StikDebug showed its own message, you did not confirm, or its connection was off. Check StikDebug's setup, then tap Turn on JIT again. Andarium waits only while it is in front; switching to StikDebug and back is part of the call. Starting the virtual machine or leaving Home while the row waits ends the wait, and Android starts with the interpreter engine.
-
"To use JIT, open Andarium from StikDebug." after you opened it from StikDebug:
- Check in StikDebug that the universal script (
universal.js) is assigned to Andarium and allowed to run. - On some older devices StikDebug does not run scripts by default. Check StikDebug's settings or help for how to make it run the script.
- Check that Android was not running when you opened Andarium.
- Then close Andarium and open it from StikDebug again.
- Check in StikDebug that the universal script (
-
"The CPU or memory changed.": either set the CPU and memory back to what they were, or close Andarium (swipe it away in the App Switcher) and turn the JIT on again.
-
"Close Andarium, then open it from StikDebug with the universal script.":
- Close Andarium in the App Switcher.
- Check the script in StikDebug.
- Open Andarium from StikDebug.
Opening it again without closing it first does not help.
-
StikDebug itself shows an error: see StikDebug's own help.
-
You don't want the JIT for a session: close Andarium in the App Switcher if it is open, then open it from the Home Screen and do not tap Turn on JIT.