Results 1 to 5 of 5

Thread: How to install anbox in kali?

  1. #1
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    928

    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

    Install lxc - Linux Containers userspace tools.

    sudo apt update && sudo apt install lxc

    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.
    Last edited by _defalt; 2018-05-04 at 10:29.

  2. #2
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    928
    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
    2017-Sep
    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
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    928
    @Roberta you have to install lxc - Linux Containers userspace tools.

    sudo apt update && sudo apt install lxc
    Last edited by _defalt; 2018-06-12 at 08:13.

  5. #5

    ashmem and binder modules problem solution

    Hi,

    i was having problem installing anbox with these module and found a solution here (simon1tan) https://github.com/anbox/anbox/issues/264

    i just modified it a little to build ashmem which was not there so here's the lines.

    ownload anbox from github so that you have the ashmem and binder directories.
    Extract ashmem and biinder into /usr/src
    Rename the folders to anbox-ashmem-1 and anbox-binder-1 (the 1 is the version number in dkms.conf)
    install dkms if not already installed(sudo aptitude install dkms)
    sudo dkms add -m anbox-binder -v 1
    sudo dkms build -m anbox-binder -v 1
    sudo dkms install -m anbox-binder -v 1
    sudo dkms add -m anbox-ashmem -v 1
    sudo dkms build -m anbox-ashmem -v 1
    sudo dkms install -m anbox-ashmem -v 1


    sudo modprobe ashmem-linux binder-linux
    --------

    Thanks

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
  •