Modern Android phones carry processors that rival entry-level laptops, yet they cannot run desktop Linux software out of the box. Box64 changes that. By translating x86_64 instructions into ARM64 code as a program runs, Box64 lets an Android device start software that was never compiled for it. This guide shows how Box64 works on Android, how to install it through Termux and how to get the best results.
How Box64 fits into Android
Android is built on the Linux kernel, so in principle it can run Linux programs. In practice, three obstacles stand in the way. First, most desktop Linux software is compiled for x86_64, not ARM64. Second, Android's C library, Bionic, differs from the glibc that desktop programs expect. Third, Android's file system layout and security model do not resemble a standard distribution.
Box64 solves the first problem directly: it translates x86_64 code. The other two are solved by giving Box64 a familiar Linux environment to live in. On Android, that environment usually comes from Termux combined with proot-distro, which installs a full Debian or Ubuntu user space inside an ordinary app folder. Box64 then runs inside that environment exactly as it would on a Raspberry Pi.
What you need before you start
- A 64-bit ARM phone or tablet running a reasonably recent version of Android.
- At least 4 GB of RAM; 8 GB or more is preferable for anything graphical.
- Around 3 GB of free storage for Termux, a Debian environment and the Box64 build.
- Termux installed from F-Droid or the official Termux GitHub releases page.
The Termux build distributed through the Google Play Store has historically lagged behind, so the F-Droid or GitHub versions are the safer choice for this guide.
Step 1: Prepare Termux
Open Termux and update its packages. Then install proot-distro, which manages Linux distributions inside Termux, and Git.
pkg update && pkg upgrade
pkg install proot-distro git
If Termux asks which mirror to use, accept the default or pick one geographically close to you.
Step 2: Install a Debian environment
Debian is a dependable choice because Box64's build instructions are written with Debian and Ubuntu in mind.
proot-distro install debian
proot-distro login debian
Your prompt changes to show that you are now inside Debian. From here on, commands run in that environment.
Step 3: Build Box64
Install the tools Box64 needs, fetch the source and configure a generic ARM64 build with the dynamic recompiler enabled.
apt update
apt install cmake build-essential python3 git
git clone https://github.com/ptitSeb/box64
cd box64 && mkdir build && cd build
cmake .. -D ARM_DYNAREC=ON -D CMAKE_BUILD_TYPE=RelWithDebInfo
make -j$(nproc)
make install
Compilation can take twenty minutes or more on a phone, so keep the screen awake and the device charging. Inside a proot environment, make install normally works without sudo because you are already the root user of that environment.
When the build finishes, check the result:
box64 --version
The output should mention the Box64 version and confirm that it was built "with Dynarec". If it does not, the build fell back to the slower interpreter and you should re-run CMake with the Dynarec option.
Step 4: Run your first x86_64 program
Copy an x86_64 Linux binary into your Debian home folder and run it with Box64 in front:
box64 ./my-x86_64-program
Box64 prints a short banner, lists the native libraries it is wrapping and then starts the program. For command-line tools, that is all there is to it.
Adding a graphical desktop
Graphical programs need somewhere to draw. On Android, two popular approaches are Termux:X11, a companion app that provides an X server, and a VNC server paired with a VNC viewer app. Termux:X11 is generally faster. Once a display is available, set the DISPLAY variable and launch graphical programs through Box64 as usual.
GPU acceleration is the hardest part of the Android puzzle. Devices with Qualcomm Adreno GPUs can use the open-source Turnip Vulkan driver from Mesa, which dramatically improves 3D performance. Devices with Mali or other GPUs often rely on software rendering or VirGL, which is slower. This difference explains why two phones with similar processors can produce very different Box64 results.
Box64 Android versus Winlator
Winlator wraps everything in this guide, plus Wine and graphics drivers, into one app with a graphical interface. If your main goal is running Windows games, Winlator is quicker to set up and easier to maintain. The Termux route shines when you want to run Linux tools, test the very latest Box64 code from GitHub or understand exactly what is happening under the hood. Many enthusiasts keep both: Winlator for games and a Termux environment for experiments. Our Box64 for Winlator guide covers the other side.
Performance tips for Box64 on Android
- Keep the phone cool. Android throttles the processor quickly under sustained load. A phone that runs cool runs faster.
- Close background apps. Memory is precious, and Android may kill Termux if other apps compete for RAM.
- Disable battery optimisation for Termux in Android's settings, so the system does not suspend long builds or running programs.
- Use the Dynarec. Confirm the "with Dynarec" banner; the interpreter is many times slower.
- Tune per program. Environment variables such as
BOX64_DYNAREC_BIGBLOCKandBOX64_DYNAREC_STRONGMEMcan improve speed or stability. See our environment variables guide.
Common Android problems
Termux closes during the build. Android's phantom process limits on some versions can stop long-running processes. Keep Termux in the foreground, disable battery optimisation for it and, if necessary, look up how to relax the phantom process limit for your Android version.
"Library not found" errors. The program needs an x86_64 library that Box64 does not wrap. Copy the library from an x86_64 package into a folder and point Box64 to it with BOX64_LD_LIBRARY_PATH.
Graphical programs open with a black window. Check that your X server is running, that DISPLAY is set correctly and that a usable OpenGL or Vulkan driver is available.
Running programs more conveniently
Typing proot-distro login debian and then a long box64 command quickly becomes tiresome. A few small habits make daily use far smoother.
First, create a short script in your Debian home folder for each program you use often. A file named run-tool.sh containing the full command, any BOX64_ variables and the correct working folder lets you start the program with a single word. Mark it executable with chmod +x run-tool.sh.
Second, add an alias to Termux itself so that logging in to Debian takes one command. Placing alias deb='proot-distro login debian' in Termux's shell configuration file saves time every session.
Third, keep x86_64 libraries organised. Create one folder, such as ~/x64libs, for every extra library you collect, and set BOX64_LD_LIBRARY_PATH to it in your shell profile. That way, a library you add for one program helps every program that needs it.
Finally, keep a simple text file recording which programs you have tested, the Box64 version used and any settings that helped. When Box64 updates, that record makes it easy to spot improvements or regressions.
Updating Box64 inside Termux
Because you cloned the source with Git, updating is quick. Log in to Debian, enter the Box64 folder, run git pull, then repeat the CMake, make and make install steps in the build folder. Keep the screen awake during the rebuild, just as you did the first time.
Choosing between Debian and Ubuntu in Termux
Both distributions work well with Box64, and the choice is largely personal. Debian is lean, stable and closely matches the environment many Box64 instructions assume. Ubuntu offers newer packages in some areas and is familiar to many desktop users. Whichever you pick, stick with it for a while; switching distributions means rebuilding Box64 and reinstalling your libraries. If storage is tight, Debian's smaller footprint is a modest advantage. You can also install both side by side with proot-distro and compare them, since each lives in its own folder and does not interfere with the other.
Frequently asked questions
Box64 needs a 64-bit ARM processor, which nearly all modern Android phones have. Performance varies widely, and phones with Adreno GPUs generally give the best graphical results.
Box64 has build options for Android and Termux, but a Debian or Ubuntu environment through proot-distro is easier for beginners because most guides and libraries assume a standard distribution.
No. Winlator is an app that includes Box64 along with Wine and drivers. Box64 alone runs Linux programs; Winlator adds the layers needed for Windows software.
Allow around 3 GB for Termux, a Debian environment and the Box64 build, plus whatever space the programs you run require.
Thermal throttling, background apps, memory limits and graphics drivers all affect results. A Raspberry Pi with active cooling can sustain its clock speed far longer than a phone.
Conclusion
Box64 on Android turns a phone into a surprisingly capable Linux machine. With Termux, a Debian environment and a fresh build from GitHub, you can run x86_64 tools and even graphical programs on hardware that fits in your pocket. Start with simple command-line software, add a display server when you are comfortable and move on to Winlator if Windows games are your goal. With a little patience, Box64 makes Android far more versatile than it first appears.

Box64 for Winlator: Versions, Presets and Smart Tuning
Box64 Download for Android: Safe Sources and a Setup Checklist
Box64 Emulator Explained: Dynarec, Wrapping and Real-World Speed