Skip to content

Instantly share code, notes, and snippets.

@vaknin
Last active April 8, 2024 13:07
Show Gist options
  • Save vaknin/d77c432363bd4612ab7c345ee55860cd to your computer and use it in GitHub Desktop.
Save vaknin/d77c432363bd4612ab7c345ee55860cd to your computer and use it in GitHub Desktop.
anbox on arch

2024 Update

Anbox had been deprecated, and cannot/shouldn't be used.
One alternative is Waydroid:
https://github.com/waydroid/waydroid


Anbox on Arch

References:

https://wiki.archlinux.org/title/Anbox

Install required packages

yay -S anbox-git android-tools anbox-modules-dkms

Kernel Modules

Modprobe

sudo modprobe binder_linux devices=binder,hwbinder,vndbinder,anbox-binder,anbox-hwbinder,anbox-vndbinder

sudo modprobe ashmem_linux

Mount binder

mkdir -p /dev/binderfs sudo mount -t binder binder /dev/binderfs

Enable modules on startup

sudo nano /etc/modules-load.d/anbox.conf And paste the following: ashmem_linux binder_linux

Enable Network via NetworkManager

nmcli con add type bridge ifname anbox0 -- connection.id anbox-net ipv4.method shared ipv4.addresses 192.168.250.1/24

Enable anbox service

sudo systemctl enable anbox-container-manager.service

You should probably reboot here!
Install apps

adb install /path/to/app.apk

@3xploiton3
Copy link

3xploiton3 commented Jan 25, 2024

-> No AUR package found for anbox-git

https://i.imgur.com/nnejbLE.png

@vaknin
Copy link
Author

vaknin commented Feb 20, 2024

what are the alternatives regarding this android emulator?
No AUR package found for anbox-git

As updated in the gist itself, you should take a look at Waydroid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment