Skip to content

Android compatibility layer

Danct12 edited this page Oct 19, 2022 · 5 revisions

Waydroid

NOTE: You may have issue with networking if you have Anbox installed alongside with Waydroid.

NOTE: Waydroid does not work on encrypted file system.

To setup Waydroid, run the following command:

$ sudo pacman -Syu
$ sudo pacman -S waydroid-image
$ sudo waydroid init -f
$ sudo systemctl enable --now waydroid-container

After that, go back to your application launcher and tap on the Waydroid icon. First time setup may take a while for it to go to the home screen.

Workaround for PinePhone Pro

Until mesa is fixed, you need to switch to software rendering on PinePhone Pro. To do that, in /var/lib/waydroid/waydroid_base.prop, set the following:

ro.hardware.gralloc=default
ro.hardware.egl=swiftshader

Or, you could use a custom Waydroid image based on LineageOS 18.1, you can read more in this issue.

Anbox

Anbox is deprecated and will be removed in 2023.

To setup Anbox, run the following command:

$ sudo pacman -Syu
$ sudo pacman -S anbox-image-aarch64

Once asked for confirm, press "y" and reboot the device after the installation.

After done, you can tap on the Anbox icon to start the container.