This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Anbox
Shouko edited this page Nov 5, 2020
·
2 revisions
You should except huge baterry drains, many apps may not work, and others may work in a limited way
- Do SSH between the phone and your computer
ssh [email protected]
or simply use terminal app sudo mount -o rw,remount /
sudo apt update && sudo apt install -y anbox-ubuntu-touch android-tools-adb
mkdir ~/anbox-data
wget http://cdimage.ubports.com/anbox-images/android-armhf-64binder.img -O ~/anbox-data/android.img
touch ~/anbox-data/.enable
sudo start -q anbox-container
- Restart your phone, and wait a moment, then the Android apps should appear in the App Launcher
- Test if detected by adb with command
adb devices
you should seeemulator-5558 device
, if for any reason it appears offline just restart the phone and try again
Copy the APK to your device, then run the following from your host:
ssh [email protected]
adb install /path/to/my-app.apk
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.
ssh [email protected]
- Download F-Droid APK
wget https://f-droid.org/F-Droid.apk
adb install F-Droid.apk
Android storage is located at /home/phablet/anbox-data/data/media/0
.
Links to android libraries can be made in their respective XDG counterparts:
ln -s ~/anbox-data/data/media/0/Documents ~/Documents/android
ln -s ~/anbox-data/data/media/0/Pictures ~/Pictures/android
ln -s ~/anbox-data/data/media/0/Music ~/Music/android
ln -s ~/anbox-data/data/media/0/Movies ~/Videos/android
More information in http://docs.ubports.com/en/latest/userguide/dailyuse/anbox.html