It is possible to run 32bit Windows exe on Android. Exagear allows you to run x86 programs on ARM platform.
Exagear, released by the Russian company ElTechs a few years ago, can translate X86 into ARM instructions, and when used with Wine, it can execute Windows programs on Android phones without root. (Wine is the software that allows Linux computers to execute Windows exe)
Although Exagear was later bought by Huawei ( related discussion on Zhihu), a Russian developer on Github released the Termux Proot version of Exagear.
First you need to install Termux. Then install a i686 32bit proot rootfs with Exagear included. And run 32bit Windows exe using Wine(x86).
You could run 32bit Windows exe in proot.
Even Google Chrome (32bit) works! Though it is slow.
Also you could run some 2D old games, for example Fate/Stay Night. And there is no GPU acceleration.
Follow below steps to install proot-exagear to your system.
Please note that currently Exagear executables on the Internet are somewhat illegal because it was closed-source software and it has been bought by Huawei in 2019. If you are aware of this, you should try Box86 on Proot instead.
Install Proot Exagear#
- Device: Sony Xperia 5 II, 8GB RAM, Android 11.
- Termux version: 0.118.0
Install Termux and Real VNC VIewer
Install tar and git:
pkg update
pkg install tar git
- The proot-exagear is developed by Zhymabek Roman. Let’s clone it:
git clone https://github.com/ZhymabekRoman/Exagear-For-Termux ~/ExaTermux
cd ~/ExaTermux
git submodule init
git submodule update
- Download Debian 10 rootfs from Termux Proot and extract it. (The lastest Debian 11 rootfs provided by the developer of Proot-Exagear does not work for me )
wget https://github.com/termux/proot-distro/releases/download/v1.1-debian-rootfs/debian-buster-i386-2020.12.05.tar.gz
mkdir exagear-fs/ && tar -C exagear-fs/ --warning=no-unknown-keyword --delay-directory-restore --preserve-permissions --strip=0 -xvf debian-buster-i386-2020.12.05.tar.gz --exclude='dev'||: && cd exagear-fs/ && mv debian-buster-i386-2020.12.05/* ./ && rm -rfv debian-buster-i386-2020.12.05/ && cd ../
- Login to Debian:
chmod +x start-exagear.sh
./start-exagear.sh login --old --shared-tmp
- Update packages
apt update
apt upgrade
If E: Sub-process /usr/bin/dpkg returned an error code (1)
occurs, run:
cd /var/lib/dpkg/
mv info info.bk
mkdir info
apt update && apt install -f
cd info
mv ./* ../info.bk
cd ..
rm -rf info
mv info.bk info
cd
- Install XFCE4, TigerVNC, sudo. Be patient, it is slow.
apt install sudo vim fonts-noto-cjk xfce* tigervnc*
- Add a new user and setup password:
addgroup wheel users
useradd -m -g users -G wheel -s /bin/bash ivon
passwd ivon
- Run
visudo
, add following lines under"root ALL=(ALL) ALL":
ivon ALL=(ALL) ALL
- Install Wine and WineTricks
wget -nc https://dl.winehq.org/wine-builds/winehq.key
apt-key add winehq.key
echo "deb https://dl.winehq.org/wine-builds/debian/ buster main" >> /etc/apt/sources.list
apt update
apt install winehq-staging winetricks zenity
- Finaly, setup PulseAudio. Add following lines to your
~/.bashrc
:
export PULSE_SERVER=127.0.0.1
- Slide from left, start a new Termux session. Add following lines to the first line of
start-exagear.sh
:
pulseaudio --start --exit-idle-time=-1
pacmd load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1
- Add this to
/data/data/com.termux/files/usr/etc/pulse/default.pa
:
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1
- Restart Termux and login to Debian. Run VNC server, setup 6 characters password:
vncserver
Click application menu on top left. Run
winetricks --gui
. Wait for Wine to finish install.Now try to run some 32 bit exe. See Termux wiki to know how to access Termux directory from Android file manager.