• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Anbox: Anbox 可让你在任何 GNU/Linux 操作系统上运行 Android 应用程序 ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

Anbox

开源软件地址:

https://gitee.com/mirrors/Anbox

开源软件介绍:

Snap StatusBuild Status

Anbox

Anbox is a container-based approach to boot a full Android system on aregular GNU/Linux system like Ubuntu. In other words: Anbox will letyou run Android on your Linux system without the slowness ofvirtualization.

Overview

Anbox uses Linux namespaces (user, pid, uts, net, mount, ipc) to run afull Android system in a container and provide Android applications onany GNU/Linux-based platform.

The Android inside the container has no direct access to any hardware.All hardware access is going through the anbox daemon on the host. We'rereusing what Android implemented within the QEMU-based emulator for OpenGLES accelerated rendering. The Android system inside the container usesdifferent pipes to communicate with the host system and sends all hardwareaccess commands through these.

For more details have a look at the following documentation pages:

Anbox is currently suited for the desktop use case but can be used on mobileoperating systems like Ubuntu Touch orpostmarketOS(installation instructions).However this is still a work in progress.

The Android runtime environment ships with a minimal customized Android systemimage based on the Android Open Source Project.The used image is currently based on Android 7.1.1

Installation

See our installation instructions for details.

Supported Linux Distributions

At the moment we officially support the following Linux distributions:

  • Ubuntu 18.04 (bionic)
  • Ubuntu 20.04 (focal)

However all other distributions supporting snap packages should work aswell as long as they provide the mandatory kernel support (see documentation).

Install and Run Android Applications

You can install Android applications from the command line using adb.

adb install xyz.apk

The apk files you will sometimes find on the internet tend to only have armsupport, and will therefore not work on x86_64.

You may want to install F-Droid to get applicationsgraphically. Note that the Google Play Store will not work as is, because itrelies on the proprietary Google Play Services, which are not installed.

Build from source

Requirements

To build the Anbox runtime itself there is nothing special to know. We're usingcmake as build system. A few build dependencies need to be present on your hostsystem:

  • libdbus
  • google-mock
  • google-test
  • libboost
  • libboost-filesystem
  • libboost-log
  • libboost-iostreams
  • libboost-program-options
  • libboost-system
  • libboost-test
  • libboost-thread
  • libcap
  • libexpat1-dev
  • libsystemd
  • mesa (libegl1, libgles2)
  • libglm
  • libsdl2
  • libprotobuf
  • protobuf-compiler
  • python3
  • lxc (>= 3.0)

On an Ubuntu system you can install all build dependencies with the followingcommand:

$ 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 libexpat1-dev libsystemd-dev libegl1-mesa-dev \    libgles2-mesa-dev libglm-dev libgtest-dev liblxc1 \    libproperties-cpp-dev libprotobuf-dev libsdl2-dev libsdl2-image-dev lxc-dev \    pkg-config protobuf-compiler python3-minimal

We recommend Ubuntu 20.04 (focal) as your build environment.

Build

Afterwards you can build Anbox with

$ git clone https://github.com/anbox/anbox.git --recurse-submodules$ cd anbox$ mkdir build$ cd build$ cmake ..$ make

A simple

$ sudo make install

will install the necessary bits into your system.

If you want to build the anbox snap instead you can do this with the followingsteps:

$ ARCH=$(uname -m)$ cp /path/to/android.img data/android-images/android-$ARCH.img$ snapcraft

The result will be a .snap file you can install on a system supporting snaps

$ snap install --dangerous --devmode anbox_1_amd64.snap

Run Anbox

Running Anbox from a local build requires a few more things you need to knowabout. Please have a look at the "Runtime Setup"documentation.

Documentation

You will find additional documentation for Anbox in the docs subdirectoryof the project source.

Interesting things to have a look at

Reporting bugs

If you have found an issue with Anbox, please file a bug.

Get in Touch

If you want to get in contact with the developers please feel free to join the#anbox IRC channel on Libera.Chat.

Copyright and Licensing

Anbox reuses code from other projects like the Android QEMU emulator. Theseprojects are available in the external/ subdirectory with the licensing termsincluded.

The Anbox source itself, if not stated differently in the relevant source files,is licensed under the terms of the GPLv3 license.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap