Anbox for Debian
#23
Note: These instructions may be outdated, use them at your own discretion.

See below the updated instructions for installing Anbox, as of kernel version 5.7.

Derived from the original post. Thanks, @nas  Big Grin


  • Consider installing SSH to ease installation

Code:
sudo apt -y install openssh-server
  • The client may refuse to connect, if so...
Code:
sudo systemctl enable ssh.service && sudo systemctl start ssh.service
  • Determine the PinePhone's IP address
Code:
ip a s dev wlan0 | grep -oP 'inet .*' | cut -d ' ' -f 2
  • Connect from the client, optionally entering the PinePhone's IP address to the hosts file and copying the client's public cryptographic key
Code:
printf '%b' '\n192.168.0.10\tmobian\n' | sudo tee -a /etc/hosts
ssh-copy-id mobian@mobian

ssh mobian@mobian

Influenced by  LINMOBnet's video on Anbox.




Code:
rsync --progress ~/Downloads/anbox-image-working.tar.gz mobian@mobian:/home/mobian/Downloads
  • Append contrib to the default SourcesList

Code:
printf '%b' 'deb http://deb.debian.org/debian bullseye main contrib\n' | sudo tee /etc/apt/sources.list
  • Install the requisite packages

Code:
sudo apt -y install anbox adb
  • Unpack the Android archive

Code:
tar xf ~/Downloads/anbox-image-working.tar.gz

sudo mv ~/Download/anbox-image/android.img /var/lib/anbox
  • Create a unit file for binderfs

Code:
printf '%b' "[Unit]\nDescription=binderfs\n\n[Mount]\nWhat=binder\nWhere=/dev/binderfs\nType=binder\n\n[Install]\n" \
"WantedBy=anbox-container-manager.service\n" | sudo tee /etc/systemd/system/dev-binderfs.mount
  • Edit the anbox-container-manager.service unit file

Code:
sudo sed -i 's/After=network.target/After=network.target dev-binderfs.mount/' /lib/systemd/system/anbox-container-manager.service
sudo sed -i '6i Requires=dev-binderfs.mount' /lib/systemd/system/anbox-container-manager.service
sudo sed -i '\_^ExecStartPre=/sbin/modprobe_s_^_#_' /lib/systemd/system/anbox-container-manager.service
  • Reload the service

Code:
sudo systemctl daemon-reload
sudo systemctl restart anbox-container-manager.service && systemctl --user restart anbox-session-manager.service

The Anbox workaround originates from Mobian Issue #63. Thanks Djhg2000 Smile




  • Anbox must be open to allow installation of APKs via adb

Code:
anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
  • Download and install an APK - APKMirror is a trustworthy source

Code:
adb install InsertAppName.apk

Android applications can be launched from the Phosh launcher (as .desktop files), or from the Anbox Application Manager.





Experimental: Implementing IP routing (for internet connectivity) and installation of MicroG is covered in the original post.


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 2,277 08-31-2023, 12:38 PM
Last Post: vusra
  Debian bookworm security repo user641 2 1,546 02-17-2023, 01:12 AM
Last Post: user641
  Gnome-podcasts on Debian repos user641 4 2,952 02-06-2022, 04:58 AM
Last Post: jsch
  gnome podcasts on debian repo, dino-mobile user641 3 3,211 09-11-2021, 12:04 AM
Last Post: user641
  Best/easiest way to install minimal Debian on PinePhone? mcgee 6 5,413 07-18-2021, 09:35 AM
Last Post: swiley
  How does calls work in debian? temp0rary 4 4,229 05-31-2021, 10:44 AM
Last Post: temp0rary
  Whatsapp in Anbox scott_VYuCAbn3k1NFK 7 9,074 03-22-2021, 08:46 AM
Last Post: Skyrrd
  Debian/Mobian packaging help needed arno_nuehm 1 2,195 03-20-2021, 04:59 PM
Last Post: TRS-80
  Anbox apps listed in the launch screen mark1250 1 2,745 03-17-2021, 02:23 PM
Last Post: tvall
  Debian / mobian Pine64 - User Manual? Harry27 1 2,295 03-03-2021, 04:50 PM
Last Post: LibrePhoneUser

Forum Jump:


Users browsing this thread: 2 Guest(s)