Skip to content

Instantly share code, notes, and snippets.

@thoroc
Last active June 20, 2025 05:26
Show Gist options
  • Save thoroc/c988aaed65b5450fd61bd19c44885a8d to your computer and use it in GitHub Desktop.
Save thoroc/c988aaed65b5450fd61bd19c44885a8d to your computer and use it in GitHub Desktop.

Revisions

  1. thoroc revised this gist Mar 24, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -46,5 +46,5 @@ 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)
    Also, install adb so you can do to install apks into anbox (assuming you don't have your real android device plugged in):
    `adb install filename.apk`
  2. thoroc created this gist Mar 24, 2020.
    50 changes: 50 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,50 @@
    [source](https://www.linuxsurge.com/2019/08/how-to-install-anbox-in-fedora-30.html)

    # Open a terminal and type the following commands:

    ```
    sudo dnf install dkms
    sudo dnf install kernel-devel
    ```

    ```
    cd ~
    git clone https://github.com/anbox/anbox-modules
    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
    ```
    # install snapd https://snapcraft.io/docs/installing-snap-on-fedora
    ```
    sudo dnf install snapd
    sudo ln -s /var/lib/snapd/snap /snap
    reboot
    ```

    ```
    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)