Rabu, 07 Februari 2018

Anbox - Run Android Apps on Ubuntu Without Emulator

Hallo, sorry can only post because of limited connection time back and forth yesterday. As the title suggests, here I will share about Anbox, where we can run Android app on GNU / Linux without using emulator.
Quoted from its official page, Anbox puts the Android operating system into a container, abstracts hardware access and integrates core system services into GNU / Linux systems. Every Android app will be integrated with the operating system you use like any other native app.
Anbox is a container-based approach to running a full Android system on a regular GNU / Linux system like Ubuntu. In other words: Anbox will let you run Android on your Linux system without any slowness of virtualization.

Android on UbuntuDifferences Anbox with Android Emulator

One of the big differences between Anbox and other emulators (eg Genymotion) is if the emulator needs to create its own system, its own kernel, virtual hardware, etc.

 Anbox runs android systems using the same kernel, Hardware, etc. accommodate without emulation layer, which allows better integration with the host operating system.
Features
  • The project is Open Source - The whole source code is available as Open Source and licensed under the terms of the Apache and GPLv3 license.
  • It has no limitations - As Anbox is running an entire Android system, conceptually any application can run.
  • Secure - Anbox puts Android apps into a tightly sealed box without direct access to hardware or your data.
  • Performant - Runs Android without hardware virtualization and seamlessly bridges over hardware acceleration features.
  • Integrated - Tightly integrated with the host operating system to offer a rich feature set.
  • Convergent - Anbox scales across different form factors similar to Android does. It works on a laptop and a mobile phone.

Instalation

The installation process in Ubuntu is facilitated by the anbox-installer.
wget https://raw.githubusercontent.com/anbox/anbox-installer/master/installer.sh -O anbox-installer && +x anbox-installer && ./anbox-installer
Note:
For Ubuntu 14.04 users you have to install the snap first.
apt-get update && apt-get install snap

Build from source.

for who want to build Anbox directly from its sourcecode, following step stepnya:
Install dependencies.
 
sudo apt install build-essential cmake cmake-data debhelper dbus google-mock libboost-dev libboost-filesystem-dev libboost-log-dev libboost-iostreams-dev libboost-program-options-dev libboost-system-dev libboost-test-dev libboost-thread-dev libcap-dev libdbus-1-dev libdbus-cpp-dev libegl1-mesa-dev libgles2-mesa-dev libglib2.0-dev libglm-dev libgtest-dev liblxc1 libproperties-cpp-dev libprotobuf-dev libsdl2-dev libsdl2-image-dev lxc-dev pkg-config protobuf-compiler 
and compile.
git clone https://github.com/anbox/anbox.git
cd anbox
mkdir build
cd build
cmake ..
make
sudo make install
that's how to install android apps with Anbox:
adb install path/to/my-app.apk
The next icon of the installed app will appear in your os application list.
Disqus Comments