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 snapdverify snap is installed:
snap install hello-worldsudo add-apt-repository ppa:morphis/anbox-support
sudo apt update
sudo apt install software-properties-common linux-headers-generic anbox-modules-dkms android-tools-adbRESTART YOUR MACHINE
then after reboot:
sudo snap install --devmode --beta anbox(yes, --devmode and --beta is ok)
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 startand just in case, restart the anbox service:
sudo /bin/systemcl restart snap.anbox.container-manager.serviceDone !
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.appmgrUnfortunately, 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.
WITH THE ANBOX EMULATOR RUNNING, do:
adb install my-app.apkand it should install into your device.
snap remove anbox
sudo apt install ppa-purge
sudo ppa-purge ppa:morphis/anbox-support
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