Run Windows exe on Android through Proot Exagear on Termux

πŸ‡ΉπŸ‡Ό δΈ­ζ–‡η‰ˆ

It is possible to run 32bit Windows exe on Android. Exagear allows you to run x86 programs on ARM platform.

First you need to install Termux. Then install a 32bit proot rootfs with Exagear included. And run Windows exe using Wine(x86).

So 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
  1. Install Termux and Real VNC VIewer

  2. Install tar and git:

1
2
pkg update
pkg install tar git
  1. The proot-exagear is developed by Zhymabek Roman. Let’s clone it:
1
2
3
4
git clone https://github.com/ZhymabekRoman/Exagear-For-Termux ~/ExaTermux
cd ~/ExaTermux
git submodule init
git submodule update
  1. 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 )
1
2
3
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 ../
  1. Login to Debian:
1
2
chmod +x start-exagear.sh
./start-exagear.sh login --old --shared-tmp
  1. Update packages
1
2
apt update
apt upgrade

If E: Sub-process /usr/bin/dpkg returned an error code (1) occurs, run:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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
  1. Install XFCE4, TigerVNC, sudo. Be patient, it is slow.
1
apt install sudo vim fonts-noto-cjk xfce* tigervnc*
  1. Add a new user and setup password:
1
2
3
addgroup wheel users
useradd -m -g users -G wheel -s /bin/bash ivon
passwd ivon
  1. Run visudo, add following lines under"root ALL=(ALL) ALL":
1
ivon ALL=(ALL) ALL
  1. Install Wine and WineTricks
1
2
3
4
5
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
  1. Finaly, setup PulseAudio. Add following lines to your ~/.bashrc:
1
export PULSE_SERVER=127.0.0.1
  1. Slide from left, start a new Termux session. Add following lines to the first line of start-exagear.sh:
1
2
pulseaudio --start --exit-idle-time=-1
pacmd load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1
  1. Add this to /data/data/com.termux/files/usr/etc/pulse/default.pa:
1
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1
  1. Restart Termux and login to Debian. Run VNC server, setup 6 characters password:
1
vncserver
  1. Click application menu on top left. Run winetricks --gui. Wait for Wine to finish install.

  2. Now try to run some 32 bit exe. See Termux wiki to know how to access Termux directory from Android file manager.

References

If this article is helpful to you please consider supporting me.