Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
Shouko edited this page Nov 5, 2020 · 2 revisions

Warning! This feature is highly experimental!

You should except huge baterry drains, many apps may not work, and others may work in a limited way

Installing and enabling Anbox

  1. Do SSH between the phone and your computer ssh [email protected] or simply use terminal app
  2. sudo mount -o rw,remount /
  3. sudo apt update && sudo apt install -y anbox-ubuntu-touch android-tools-adb
  4. mkdir ~/anbox-data
  5. wget http://cdimage.ubports.com/anbox-images/android-armhf-64binder.img -O ~/anbox-data/android.img
  6. touch ~/anbox-data/.enable
  7. sudo start -q anbox-container
  8. Restart your phone, and wait a moment, then the Android apps should appear in the App Launcher
  9. Test if detected by adb with command adb devices you should see emulator-5558 device, if for any reason it appears offline just restart the phone and try again

How to install new APKs

Copy the APK to your device, then run the following from your host:

  1. ssh [email protected]
  2. adb install /path/to/my-app.apk
  3. exit

Done! You might have to refresh the apps scope (pull down from the center of the screen and release) for the new Android apps to show up.

How to install F-Droid

  1. ssh [email protected]
  2. Download F-Droid APK wget https://f-droid.org/F-Droid.apk
  3. adb install F-Droid.apk

Access Android storage (Not Tested)

Android storage is located at /home/phablet/anbox-data/data/media/0.

Links to android libraries can be made in their respective XDG counterparts:

  1. ln -s ~/anbox-data/data/media/0/Documents ~/Documents/android
  2. ln -s ~/anbox-data/data/media/0/Pictures ~/Pictures/android
  3. ln -s ~/anbox-data/data/media/0/Music ~/Music/android
  4. ln -s ~/anbox-data/data/media/0/Movies ~/Videos/android

More information in http://docs.ubports.com/en/latest/userguide/dailyuse/anbox.html