Anbox
![]() | |
![]() Wikipedia application for Android running on Anbox | |
Original author(s) | Marius Gripsgard, Ricardo Mendoza, Simon Fels, Thomas Voß |
---|---|
Developer(s) | Anbox authors (4) |
Initial release | 11 April 2017 |
Repository | github |
Operating system | Linux |
Platform | x86-64, ARM, ARM64 |
Type | Compatibility layer |
License | GNU GPL v3[1] |
Website | anbox |
Anbox는 안드로이드에 대해 개발된 모바일 응용 프로그램과 모바일 게임을 리눅스 배포판에서 실행하도록 허용하는 것을 목표로 하는 자유와 오픈-소스 호환성 계층입니다.[2] 캐노니컬은 클라우드 환경에서 안드로이드 응용 프로그램을 실행하기 위한 Anbox 클라우드를 도입했습니다.[3]
Anbox는 LXC (Linux Containers)를 사용함으로써 안드로이드 런타임 환경을 실행하여, 안드로이드의 디렉토리 구조를 마운트 가능한 루프 이미지로 재생성하면서, 네이티브 리눅스 커널을 사용하여 응용 프로그램을 실행합니다. 그것은 격리를 위해 LXC를 통해 리눅스 이름공간의 사용을 만듭니다. 응용 프로그램은 하드웨어에 임의의 직접 접근을 가지지 않으며, 모든 접근은 Anbox 데몬을 통해 전송됩니다.[4]
Installation
아래의 옵션을 추가하고 커널 컴파일을 수행해야 합니다: 모듈로 컴파일할 때, 오류가 발생합니다!!
Device Drivers --->
Android --->
[*] Android Drivers
<*> Android Binder IPC Driver
<*> Android Binderfs filesystem
(binder,hwbinder,vndbinder) Android Binder devices
[*] Android Binder IPC Driver Selftest
[*] Staging drivers --->
Android --->
<*> Enable the Anonymous Shared Memory Subsystem
다음 파일을 만들고, fstab을 수정합니다:
- sudo nano /etc/tmpfiles.d/anbox.conf
- d! /dev/binderfs 0755 root root
- sudo nano /etc/fstab
- none /dev/binderfs binder nofail 0 0
의존성 패키지를 먼저 컴파일합니다:
그런-다음 데비안 패키지를 컴파일합니다. 아래에서 소스를 구할 수 있습니다.
그런-다음 위의 2 패키지를 설치하면, 의존성 패키지 lxc를 설치해야 할 것입니다.
Configurations
설치가 끝나고 서비스가 lxc-net.service를 시작할 수 없는데, BIND를 사용하고 있다면, 아래의 오류가 발생합니다:
- dnsmasq: failed to create listening socket for 10.0.3.1: Address already in use
이제, 다음과 같이 처리해 줍니다:
- sudo systemctl stop named
- sudo systemctl start lxc-net.service
- sudo systemctl start named
다음으로, 안드로이드 이미지를 가져옵니다:
- cd /var/lib/anbox
- sudo wget https://build.anbox.io/android-images/2018/07/19/android_amd64.img
- sudo mv android_amd64.img android.img
이제 서비스를 시작합니다:
- sudo systemctl enable anbox-container-manager.service
- sudo systemctl start anbox-container-manager.service
- sudo systemctl --user enable anbox-session-manager.service
- sudo systemctl --user start anbox-session-manager.service
다음과 같이 사용해 보십시오:
- anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
Playstore install
다른 프로그램을 설치하기 위해, 플레이스토어를 먼저 설치합니다:
- cd
- wget https://raw.githubusercontent.com/geeks-r-us/anbox-playstore-installer/master/install-playstore.sh
- chmod +x install-playstore.sh
- sudo ./install-playstore.sh
- anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
다른 프로그램이 설치되지 않을 때에는, 설정에서 허가권을 추가해야 할 것입니다:
- Settings->Apps->Google Play Services->Permissions
- Settings->Apps->Google Play Store->Permissions
See also
- Android-x86 - An open source project that makes an unofficial porting of Google's Android mobile operating system to run on devices powered by AMD and Intel x86 processors, rather than RISC-based ARM chips.
- The SPURV compatibility layer[5] is a similar project developed by Collabora.
- Wine - A Windows compatibility layer for Unix-like systems.
References
- ^ "anbox/anbox". GitHub.
- ^ Lynch, Jim (2017-04-12). "Anbox: Run Android apps in Linux". InfoWorld. Retrieved 2020-04-13.
- ^ "Canonical's Anbox Cloud puts Android in the cloud". TechCrunch. Retrieved 2020-04-13.
- ^ "anbox/anbox". GitHub. Retrieved 2020-04-13.
- ^ "Running Android next to Wayland".
External links
- Anbox
- Port to Sailfish OS (not maintained anymore)
- Port to Purism / Librem 5
- Port to postmarketOS
- 설치 참조 문서