Thursday, 22 August 2019

How to install Anbox in Fedora 30

How to install Anbox in Fedora 30 as quick as possible.

Open a terminal and type the following commands:

sudo dnf install dkms
sudo dnf install kernel-devel

cd ~
git clone
cd anbox-modules
sudo cp anbox.conf /etc/modules-load.d/
sudo cp 99-anbox.rules /lib/udev/rules.d/
sudo cp -rT ashmem /usr/src/anbox-ashmem-1
sudo cp -rT binder /usr/src/anbox-binder-1
sudo dkms install anbox-ashmem/1
sudo dkms install anbox-binder/1
sudo modprobe ashmem_linux
sudo modprobe binder_linux

sudo dnf install snapd
sudo ln -s /var/lib/snapd/snap /snap

snap install --devmode --beta anbox
to update do this: snap refresh --beta --devmode anbox

But wait...Anbox doesn't launch!
because SELinux.
Don't disable SELinux, that's a bad idea.
Instead use SELinux Troubleshooter to find out the cause. To fix it I did this, it might be different for you:

sudo ausearch -c servicemanager --raw
sudo semodule -X 300 -i my-servicemanager.pp
sudo ausearch -c anboxd --raw
sudo semodule -X 300 -i my-anboxd.pp
sudo ausearch -c gatekeeperd --raw
sudo semodule -X 300 -i my-gatekeeperd.pp

Then launch Anbox. You might need to reboot first though.

Also, install adb so you can do:
adb install filename.apk <--- to install apks into anbox (assuming you don't have your real android device plugged in)


  1. This solution works for me, thanks a lot!

  2. Thanks! I think the ` sudo ln -s /var/lib/snapd/snap /snap` is optional here

  3. After the command "sudo semodule -X 300 -i my-servicemanager.pp", I got the following error:
    libsemanage.map_file: Unable to open my-servicemanager.pp
    (No such file or directory).
    libsemanage.semanage_direct_install_file: Unable to read file my-servicemanager.pp
    (No such file or directory).
    semodule: Failed on my-servicemanager.pp!

    What should I do?