Actions

Anbox

From Whonix


About this Anbox Page
Support Status see Status below
Difficulty medium
Maintainer Patrick
Support Professional Support

Status[edit]

Works on Debian stretch on real hardware.

Does not work inside Whonix ™ VirtualBox most likely due to anbox issues inside VirtualBox.

Small chance it will work better once Whonix ™ is based on Debian buster.

Install Anbox[edit]

Update the package lists.

sudo apt-get update

Upgrade the system.

sudo apt-get dist-upgrade

Install the linux-image-amd64 adb fastboot linux-headers-amd64 anbox package.

sudo apt-get install linux-image-amd64 adb fastboot linux-headers-amd64 anbox

The procedure is complete.

Change directory to the /var/lib/anbox folder.

cd /var/lib/anbox

Download anbox andorid image.

sudo curl --tlsv1.2 --remote-name https://build.anbox.io/android-images/2018/07/19/android_amd64.img

Download anbox andorid image sha256sum file.

sudo curl --tlsv1.2 --remote-name https://build.anbox.io/android-images/2018/07/19/android_amd64.img.sha256sum

Verify.

sha256sum --check android_amd64.img.sha256sum

Should show:

android_amd64.img: OK

Rename android_amd64.img to android.img. [1]

sudo mv android_amd64.img android.img

Reboot required?

sudo reboot

[2]

Start Anbox[edit]

From Start Menu[edit]

Start menuAccessoriesAnbox

From Command Line[edit]

[3]

anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

Anbox Issues[edit]

https://github.com/anbox/anbox/issues/72

user@host:~$ anbox check-features
Your computer does meet all requirements to run Anbox
user@host:~$ sudo anbox check-features
Your computer does meet all requirements to run Anbox
env ANBOX_LOG_LEVEL=debug anbox session-manager
libEGL warning: DRI2: failed to authenticate
[ 2018-12-31 12:16:33] [Renderer.cpp:168@initialize] Using a surfaceless EGL context
[ 2018-12-31 12:16:33] [Renderer.cpp:193@initialize] Failed: Missing egl_image related extension(s)
[ 2018-12-31 12:16:33] [service.cpp:41@Service] Successfully acquired DBus service name
Stack trace (most recent call last) in thread 3080:
#7    Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in 
#6    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f324fdb8ace, in clone
#5    Object "/lib/x86_64-linux-gnu/libpthread.so.0", at 0x7f3251e76493, in 
#4    Object "anbox", at 0x56263e972600, in emugl::Thread::thread_main(void*)
#3    Object "anbox", at 0x56263e89832c, in RenderThread::main()
#2    Object "anbox", at 0x56263e96d7a3, in renderControl_decoder_context_t::decode(void*, unsigned long, IOStream*)
#1    Object "anbox", at 0x56263e8f558e, in 
#0    Object "anbox", at 0x56263e8f8555, in RendererConfigList::getPackInfo(int*, int*) const
Segmentation fault (Address not mapped to object [(nil)])
Segmentation fault

No user support in comments. See Support. Comments will be deleted after some time. Specifically after comments have been addressed in form of wiki enhancements. See Wiki Comments Policy.


Add your comment
Whonix welcomes all comments. If you do not want to be anonymous, register or log in. It is free.


Random News:

Interested in becoming an author for the Whonix News Blog or writing about anonymity, privacy and security? Please get in touch!


https | (forcing) onion

Follow: Twitter | Facebook | gab.ai | Stay Tuned | Whonix News

Share: Twitter | Facebook

This is a wiki. Want to improve this page? Help is welcome and volunteer contributions are happily considered! Read, understand and agree to Conditions for Contributions to Whonix ™, then Edit! Edits are held for moderation.

Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP. Whonix ™ is a trademark. Whonix ™ is a licensee of the Open Invention Network. Unless otherwise noted, the content of this page is copyrighted and licensed under the same Freedom Software license as Whonix ™ itself. (Why?)

Whonix ™ is a derivative of and not affiliated with Debian. Debian is a registered trademark owned by Software in the Public Interest, Inc.

Whonix ™ is produced independently from the Tor® anonymity software and carries no guarantee from The Tor Project about quality, suitability or anything else.

By using our website, you acknowledge that you have read, understood and agreed to our Privacy Policy, Cookie Policy, Terms of Service, and E-Sign Consent. Whonix ™ is provided by ENCRYPTED SUPPORT LP. See Imprint.

  1. anbox-container-manager.service expects this file name.
  2. Start anbox systemd service.

    sudo systemctl start anbox-container-manager.service

    Check if anbox systemd service is functional.

    sudo systemctl status anbox-container-manager.service

    Should show something similar to the following.

    ● anbox-container-manager.service - Anbox Container Manager
       Loaded: loaded (/lib/systemd/system/anbox-container-manager.service; enabled; vendor preset: enabled)
       Active: active (running) since Mon 2018-12-31 06:23:49 EST; 874ms ago
         Docs: man:anbox(1)
      Process: 1996 ExecStartPre=/usr/share/anbox/anbox-bridge.sh start (code=exited, status=0/SUCCESS)
      Process: 1991 ExecStartPre=/sbin/modprobe binder_linux (code=exited, status=0/SUCCESS)
      Process: 1986 ExecStartPre=/sbin/modprobe ashmem_linux (code=exited, status=0/SUCCESS)
     Main PID: 2074 (anbox)
        Tasks: 9 (limit: 4915)
       Memory: 5.1M
          CPU: 51ms
       CGroup: /system.slice/anbox-container-manager.service
               └─2074 /usr/bin/anbox container-manager --daemon --privileged --data-path=/var/lib/anbox
    
    Dec 31 06:23:48 debian systemd[1]: Starting Anbox Container Manager...
    Dec 31 06:23:49 debian systemd[1]: Started Anbox Container Manager.
    
  3. /usr/share/applications/anbox.desktop