Skip to content

Instantly share code, notes, and snippets.

@vaknin
Last active February 20, 2024 14:15
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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

@tonystinge
Copy link

Any way I try to install this I receive:

curl: (28) Failed to connect to build.anbox.io port 80 after 130090 ms: Couldn't connect to server

My System:
OS: Manjaro Linux x86_64
Host: iMac8,1 1.0
Kernel: 6.1.7-1-MANJARO
Packages: 1589 (pacman), 7 (snap)
Shell: zsh 5.9
Resolution: 1920x1200
DE: GNOME 43.2
WM: Mutter
WM Theme: WhiteSur-Dark-solid
Theme: WhiteSur-Dark-solid [GTK2/3]
Icons: Papirus-Dark-Maia [GTK2/3]
Terminal: gnome-terminal
CPU: Intel Core 2 Duo E8435 (2) @ 3.066GHz
GPU: NVIDIA GeForce 8800M GTS
Memory: 2966MiB / 4921MiB

@sinanaybar
Copy link

i got the same error

@hoshi411
Copy link

same error

@vaknin
Copy link
Author

vaknin commented May 29, 2023

I apologize, I haven't used anbox since posting this.
in addition, it was deprecated, so you should look for an alternative.

@adilhyz
Copy link

adilhyz commented Jan 6, 2024

what are the alternatives regarding this android emulator?

@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