Following on from this post, here's a recap and some extra info.
Install the anbox modules: [ Edit: No longer required from kernel 5.7 so read this post ]
Download anbox-image-working.tar.gz from here - extract android.img and ignore the other files.
Get the services and frontend started:
Download an app and install it, eg bbc news app
App loads but no internet? The below should help once the kernel supports ip routing:
You may want to modify the android image, e.g. to support the microg app suite as discussed here. Someone has already provided a patched services.jar - download it from here. Following instructions are taken from here.
Uncompress filesystem:
Copy over patched file:
Recompress to image:
I haven't found any use for it but the microg self-test says it works.
anbox-microg.jpg (Size: 48.79 KB / Downloads: 958)
Okay, that should be about it - except sound might not work. See this discussion but the media xml files are present in this image so maybe it's a permission issue. Anyway, have a play with it and see whether it works for you.
Install the anbox modules: [ Edit: No longer required from kernel 5.7 so read this post ]
Code:
sudo apt install dkms
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
Download anbox-image-working.tar.gz from here - extract android.img and ignore the other files.
Code:
sudo apt install anbox android-tools-adb
sudo cp android.img /var/lib/anbox/
Get the services and frontend started:
Code:
sudo systemctl start anbox-container-manager.service
systemctl --user start anbox-session-manager.service
anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
Download an app and install it, eg bbc news app
Code:
adb install InsertAppName.apk
App loads but no internet? The below should help once the kernel supports ip routing:
Code:
sudo /usr/share/anbox/anbox-shell.sh
su
ip route add default dev eth0 via 192.168.250.1
ip rule add pref 32766 table main
ip rule add pref 32767 table local
You may want to modify the android image, e.g. to support the microg app suite as discussed here. Someone has already provided a patched services.jar - download it from here. Following instructions are taken from here.
Uncompress filesystem:
Code:
sudo apt install squashfs-tools
mkdir ~/anbox-work
cd ~/anbox-work
cp /var/lib/anbox//android.img .
sudo unsquashfs android.img
Copy over patched file:
Code:
sudo cp ./services.jar ~/anbox-work/squashfs-root/system/framework/
cd ~/anbox-work/squashfs-root/system/framework/
sudo chown -R 100000:100000 services.jar
Recompress to image:
Code:
cd ~/anbox-work
rm android.img
sudo mksquashfs squashfs-root android.img -b 131072 -comp xz
sudo cp android.img /var/lib/anbox/
I haven't found any use for it but the microg self-test says it works.
anbox-microg.jpg (Size: 48.79 KB / Downloads: 958)
Okay, that should be about it - except sound might not work. See this discussion but the media xml files are present in this image so maybe it's a permission issue. Anyway, have a play with it and see whether it works for you.