Skip to content

Instantly share code, notes, and snippets.

@Jonarod
Created August 21, 2020 13:11
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 Jonarod/648335e2cd878ce2c735514bf42de84c to your computer and use it in GitHub Desktop.
Save Jonarod/648335e2cd878ce2c735514bf42de84c to your computer and use it in GitHub Desktop.
Install Android Apps on Linux

Install the Android Container

1. Install snap

Find original instructions for your linux flavor here: (https://snapcraft.io/docs/installing-snapd)[https://snapcraft.io/docs/installing-snapd].

For ubuntu 18.04:

sudo apt install snapd

verify snap is installed:

snap install hello-world

2 Install Anbox

sudo add-apt-repository ppa:morphis/anbox-support
sudo apt update
sudo apt install software-properties-common linux-headers-generic anbox-modules-dkms android-tools-adb

RESTART YOUR MACHINE

then after reboot:

sudo snap install --devmode --beta anbox

(yes, --devmode and --beta is ok)

Activate bridge

Get the original anbox-bridge.sh here: https://github.com/Debyzulkarnain/anbox-bridge/blob/master/anbox-bridge.sh.

Download the file and place it in ~/snap/anbox, then:

cd ~/snap/anbox
chmod +x anbox-bridge.sh
sudo ./anbox-bridge.sh start

and just in case, restart the anbox service:

sudo /bin/systemcl restart snap.anbox.container-manager.service

Done !

Now you can look through your desktop applications for a new app named something like Anbox Application Manager. Click on it and and Android emulator should popup.

or if you are lazy, you can also open it from the CLI:

anbox.appmgr

Install Android apps

Unfortunately, Google Play Store is not available here. But what you can do is download .apk files from alternative stores: just Google [my favorite app here] apk and you should find quite easily.

Install .apk into Anbox

WITH THE ANBOX EMULATOR RUNNING, do:

adb install my-app.apk

and it should install into your device.

Want to Uninstall ?

snap remove anbox
sudo apt install ppa-purge
sudo ppa-purge ppa:morphis/anbox-support
@tarfand121
Copy link

Hi, You have an incorrect spell in this code. the systemcl is incorrect.
sudo /bin/systemcl restart snap.anbox.container-manager.service
the correct is systemctl .
sudo /bin/systemctl restart snap.anbox.container-manager.service

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