Anbox for Debian
#1
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 ]

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.

.jpg   anbox-microg.jpg (Size: 48.79 KB / Downloads: 892)

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.


Messages In This Thread
Anbox for Debian - by nas - 05-09-2020, 07:46 AM
RE: Anbox for Debian - by vanja - 05-11-2020, 12:09 AM
RE: Anbox for Debian - by nas - 05-11-2020, 05:40 AM
RE: Anbox for Debian - by vanja - 05-23-2020, 06:21 PM
RE: Anbox for Debian - by paju1986 - 05-11-2020, 01:06 AM
RE: Anbox for Debian - by paju1986 - 05-25-2020, 04:59 AM
RE: Anbox for Debian - by a-wai - 05-25-2020, 01:25 PM
RE: Anbox for Debian - by tzafrir - 05-30-2020, 08:53 AM
RE: Anbox for Debian - by nas - 05-30-2020, 09:07 AM
RE: Anbox for Debian - by tzafrir - 05-31-2020, 05:36 AM
RE: Anbox for Debian - by Id405 - 07-06-2020, 05:33 AM
RE: Anbox for Debian - by nas - 07-06-2020, 11:47 AM
RE: Anbox for Debian - by Transistor4acpu - 07-17-2020, 02:01 AM
RE: Anbox for Debian - by tophneal - 07-17-2020, 06:41 AM
RE: Anbox for Debian - by nas - 07-17-2020, 02:14 PM
RE: Anbox for Debian - by a-wai - 07-17-2020, 03:55 PM
RE: Anbox for Debian - by a-wai - 07-21-2020, 04:52 PM
RE: Anbox for Debian - by Transistor4acpu - 07-22-2020, 02:35 PM
RE: Anbox for Debian - by nas - 07-22-2020, 05:37 PM
RE: Anbox for Debian - by a-wai - 07-22-2020, 06:20 PM
RE: Anbox for Debian - by nas - 07-22-2020, 07:07 PM
RE: Anbox for Debian - by arturo2bodegas - 07-22-2020, 03:32 PM
RE: Anbox for Debian - by User 18618 - 08-12-2020, 01:35 PM
RE: Anbox for Debian - by Transistor4acpu - 08-13-2020, 11:22 AM
RE: Anbox for Debian - by User 18618 - 08-14-2020, 03:11 PM
RE: Anbox for Debian - by User 18618 - 08-14-2020, 04:20 PM
RE: Anbox for Debian - by vanja - 09-15-2020, 03:44 AM
RE: Anbox for Debian - by nas - 09-15-2020, 10:56 AM
RE: Anbox for Debian - by rik-shaw - 10-13-2020, 07:17 AM
RE: Anbox for Debian - by User 18618 - 09-15-2020, 07:08 AM
RE: Anbox for Debian - by User 18618 - 10-14-2020, 11:15 AM
RE: Anbox for Debian - by ncm - 10-14-2020, 04:47 PM
RE: Anbox for Debian - by User 18618 - 10-15-2020, 07:23 AM
RE: Anbox for Debian - by Baggypants - 11-06-2020, 09:53 AM
RE: Anbox for Debian - by Baggypants - 11-07-2020, 03:48 AM
RE: Anbox for Debian - by kramer65 - 11-09-2020, 01:58 AM
RE: Anbox for Debian - by Baggypants - 11-09-2020, 10:23 AM
RE: Anbox for Debian - by User 18618 - 11-09-2020, 02:10 AM
RE: Anbox for Debian - by User 18618 - 11-09-2020, 04:03 PM
RE: Anbox for Debian - by Baggypants - 11-11-2020, 09:25 AM
RE: Anbox for Debian - by User 18618 - 11-11-2020, 10:53 AM
RE: Anbox for Debian - by Baggypants - 11-11-2020, 11:36 AM
RE: Anbox for Debian - by User 18618 - 11-11-2020, 03:24 PM
RE: Anbox for Debian - by Baggypants - 11-11-2020, 06:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with updates: Repository 'Debian bookworm' changed its 'non-free component' Anna 7 1,812 08-31-2023, 12:38 PM
Last Post: vusra
  Debian bookworm security repo user641 2 1,455 02-17-2023, 01:12 AM
Last Post: user641
  Gnome-podcasts on Debian repos user641 4 2,824 02-06-2022, 04:58 AM
Last Post: jsch
  gnome podcasts on debian repo, dino-mobile user641 3 3,098 09-11-2021, 12:04 AM
Last Post: user641
  Best/easiest way to install minimal Debian on PinePhone? mcgee 6 5,243 07-18-2021, 09:35 AM
Last Post: swiley
  How does calls work in debian? temp0rary 4 4,102 05-31-2021, 10:44 AM
Last Post: temp0rary
  Whatsapp in Anbox scott_VYuCAbn3k1NFK 7 8,865 03-22-2021, 08:46 AM
Last Post: Skyrrd
  Debian/Mobian packaging help needed arno_nuehm 1 2,138 03-20-2021, 04:59 PM
Last Post: TRS-80
  Anbox apps listed in the launch screen mark1250 1 2,673 03-17-2021, 02:23 PM
Last Post: tvall
  Debian / mobian Pine64 - User Manual? Harry27 1 2,240 03-03-2021, 04:50 PM
Last Post: LibrePhoneUser

Forum Jump:


Users browsing this thread: 2 Guest(s)