Thursday, February 3, 2022

Anbox on Arch Linux

Anbox is the most efficient way to running an android application in Linux. Not a virtual machine, its a container. Applications run in windows as a native application.





Installing anbox

yay anbox-git

yay anbox-modules-dkms


Enable modules

modprobe binder_linux

modprobe ashmem_linux


cat > /etc/modules-load.d/anbox.conf <<EOF binder_linux ashmem_linux EOF


Enable networking

systemctl enable systemd-networkd

systemctl start systemd-networkd


Starting anbox session

systemctl start anbox-container-manager

systemctl --user start anbox-session-manager


Using anbox

use desktop icon

or

anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity


Installing apk

adb install <package_name>.apk 


Installing play store [1]

wget https://raw.githubusercontent.com/geeks-r-us/anbox-playstore-installer/master/install-playstore.sh

chmod +x install-playstore.sh

sudo ./install-playstore.sh


Fix for the audio issue

Add --data-path=/var/lib/anbox --use-rootfs-overlay options to container manager

sudo systemctl edit anbox-container-manager.service

[Service]

ExecStart=

ExecStart=/usr/bin/anbox container-manager --daemon --privileged --data-path=/var/lib/anbox --use-rootfs-overlay


sudo mkdir -p /var/lib/anbox/rootfs-overlay/system/etc/

wget https://github.com/anbox/anbox/files/2378029/media_codecs.xml.txt

sudo cp media_codecs.xml.txt /var/lib/anbox/rootfs-overlay/system/etc/media_codecs.xml

sudo systemctl restart anbox-container-manager.service

systemctl --user restart anbox-session-manager.service


Enable su

https://raw.githubusercontent.com/nayanajith/scripts/main/anbox_root.sh


Intel Corporation XMM7360 LTE Advanced Modem in ArchLinux

The required packages are available in ArchLinux User Repository (AUR) so it will be easier if you can use an AUR helper package like yay . ...