Guide for Android Emulation with arm64 translation

Kept up-to-date at Github.

Waydroid Guide

This guide takes you through the process of installing waydroid, and getting arm translation on Linux.

System details:


OS: Zorin OS 16 x86_64
Kernel: 5.11.0-41-generic
DE: GNOME
WM: Mutter
Terminal: gnome-terminal
CPU: Intel i3-7020U (4) @ 2.300GHz
GPU: Intel HD Graphics 620
Memory: 3812MiB

Pre-requisites:

  1. Follow the pre-requisites section: Ubuntu/Debian Based Install Instructions - Waydroid

  2. Download lineageOS system images archive from Google Drive: https://drive.google.com/file/d/1sXxng8ALWEK3Yjg4BVvU_Xy1NJcUdFV1/view?usp=drivesdk

  3. Create the system images directory:

sudo mkdir -p /usr/share/waydroid-extra/images
  1. Extract the contents of the archive to ~/temp_folder (Where ~ denotes the user home directory)

  2. Move the contents of the temp_folder to system images directory:

sudo mv temp_folder/* /usr/share/waydroid-extra/images
rmdir temp_folder
  1. Get the latest libgbinder updates:
sudo apt install git libglib2.0-dev libglibutil-dev
git clone --depth=1 https://github.com/mer-hybris/libgbinder
cd libgbinder
make
make install
  1. Copy the new libgbinder.so.1, libgbinder.so.1.1 and libgbinder.so.1.1.14 files added to /usr/lib to wherever your system has the current libgbinder installed. Use dpkg -L libgbinder to find out.

Install Waydroid

  1. Follow the install waydroid section : Ubuntu/Debian Based Install Instructions - Waydroid

  2. Edit sudo nano /etc/gbinder.d/anbox.conf to read like:

[Protocol]
/dev/anbox-binder = aidl3
/dev/anbox-vndbinder = aidl3
/dev/anbox-hwbinder = hidl

[ServiceManager]
/dev/anbox-binder = aidl3
/dev/anbox-vndbinder = aidl3
/dev/anbox-hwbinder = hidl

[General]
ApiLevel = 30
  1. Restart waydroid:
sudo systemctl restart waydroid-container.service
waydroid show-full-ui

Arm Translation

  1. Install lzip:
sudo apt install lzip
  1. Install Waydroid Extras Script:
git clone --depth=1 https://github.com/casualsnek/waydroid_script
cd waydroid_script
sudo python3 -m pip install -r requirements.txt
sudo python3 waydroid_extras.py -h
  1. Install Libhoudini arm Translation:
cd waydroid_script
sudo python3 waydroid_extras.py -l

You may need to umount /dev/loop12`` and waydroid session stop``` for Libhoudini to install.

  1. Restart Waydroid Container:
sudo systemctl start waydroid-container.service
  1. Launch Waydroid:
waydroid show-full-ui
3 Likes