Results 1 to 4 of 4

Thread: How to install anbox in kali?

  1. #1
    Join Date

    How to install anbox in kali?

    Anbox is a container-based approach to boot a full Android system on a regular GNU/Linux system like Debian. In other words Anbox will let you run Android on your Linux system without the slowness of virtualization. Anbox puts the Android operating system into a container, abstracts hardware access and integrates core system services into a GNU/Linux system. Every Android application will be integrated with your operating system like any other native application.

    Learn more about this open-source project from the author.

    How to install
    The official Anbox installation is not compiled for Debian so it doesn't run in kali-linux. Even though Anbox now supports Debian yet i was still not able to run it after installation. This person who is also a contributor of Anbox, has compiled Anbox from the source for Debian 9 stretch and it is also working in kali.

    From his Personal Package Archive, read before install


    First install deb packages.

    sudo wget -O /etc/apt/trusted.gpg.d/zhsj.gpg
    echo "deb [arch=amd64] stretch main" |sudo tee /etc/apt/sources.list.d/anbox.list
    sudo apt update && sudo apt install anbox

    Now you need to download the Android image.

    sudo wget -O /var/lib/anbox/android.img


    There are two systemd services.

    sudo systemctl start anbox-container-manager.service
    systemctl --user start anbox-session-manager.service

    Now you can start anbox application from your desktop.

    If you want these services to start when booting, just

    sudo systemctl enable anbox-container-manager.service
    systemctl --user enable anbox-session-manager.service

    You can also build Anbox from the source if you meet with its requirements.

    If anyone manages to run Anbox application by installing it from its author's Personal Package Archive, you are requested to post the solution here.

    You can contribute your programing skills to help improving this project and make it compatible for kali-linux so that pentesters can test the security of their Android apps directly on Linux platform without using emulators.

  2. #2
    Join Date
    Please keep in mind that Anbox currently is ALPHA level software. Not every feature is supposed to work or work well yet. You will find bugs, you will see crashes and unexpected problems. When you do so, please report a bug here.

  3. #3
    Join Date

    Unhappy error message

    starting the service I get it:

    # systemctl start anbox-container-manager.service

    Job for anbox-container-manager.service failed because the control process exited with error code.
    See "systemctl status anbox-container-manager.service" and "journalctl -xe" for details.

  4. #4
    Join Date
    @Roberta you have to install lxc - Linux Containers userspace tools.

    sudo apt update && sudo apt install lxc

    Enable AppArmor
    $ sudo mkdir /etc/default/grub.d
    $ echo 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_D EFAULT apparmor=1 security=apparmor"' \
    | sudo tee /etc/default/grub.d/apparmor.cfg
    $ sudo update-grub

    $ sudo reboot

    Inspect the current state
    $ sudo aa-status

    Start the apparmor service
    $sudo service apparmor start
    Last edited by _defalt; 2017-09-24 at 12:54.

Similar Threads

  1. Replies: 11
    Last Post: 2017-09-24, 23:06
  2. Replies: 1
    Last Post: 2016-10-30, 12:04
  3. Can't install gnome-tweak tool on fresh kali install
    By Dave46 in forum General Archive
    Replies: 0
    Last Post: 2016-08-20, 19:57
  4. Replies: 2
    Last Post: 2014-01-27, 21:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts