Results 1 to 4 of 4

Thread: How to install anbox in kali?

  1. #1
    Senior Member
    Join Date
    Oct 2016
    Location
    /dev/sda
    Posts
    805

    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

    Install

    First install deb packages.

    sudo wget -O /etc/apt/trusted.gpg.d/zhsj.gpg https://ftp.ustclug.org/~zsj/anbox/zhsj.gpg
    echo "deb [arch=amd64] https://ftp.ustclug.org/~zsj/anbox 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 https://build.anbox.io/android-image...id_3_amd64.img

    Start

    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
    Senior Member
    Join Date
    Oct 2016
    Location
    /dev/sda
    Posts
    805
    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
    Junior Member
    Join Date
    Sep 2017
    Posts
    1

    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
    Senior Member
    Join Date
    Oct 2016
    Location
    /dev/sda
    Posts
    805
    @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 PM.

Posting Permissions

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