1 Introduction
1.1 UOS
The unified operating system UOS is a Linux kernel-based operating system developed by Tongxin Software, which supports notebooks, desktops, all-in-one machines, workstations, servers, and desktops with domestic chip platforms such as Loongson, Feiteng, Zhaoxin, Haiguang, and Kunpeng Mainly application scenarios, including self-developed desktop environment, a variety of original applications, as well as rich application stores and Internet software warehouses, which can meet users' daily office and entertainment needs.
1.2 Anbox
Anbox (Android in box) is a container-based method of booting a complete Android system on a common GNU/Linux system like Ubuntu. In other words: Android will let you run Android on your Linux system without the overhead of virtualization.
2. Installation steps
2.1 System environment
CPU: Huawei Kunpeng 920
Operating system: UOS
Graphics card: AMD
system message
2.2 install anbox
$ sudo apt install anbox
2.3 Install Anbox kernel module
download source code
$ git clone https://github.com/anbox/anbox-modules.git
install dkms
$ sudo apt install dkms
Install configuration file:
$ sudo cp anbox.conf /etc/modules-load.d/
$ sudo cp 99-anbox.rules /lib/udev/rules.d/
Copy the module source code to /usr/src
$ sudo cp -rT ashmem /usr/src/anbox-ashmem-1
$ sudo cp -rT binder /usr/src/anbox-binder-1
Build and install using dkms
$ sudo dkms install anbox-ashmem/1
$ sudo dkms install anbox-binder/1
load kernel module
$ sudo modprobe ashmem_linux
$ sudo modprobe binder_linux
Check installation status
$ lsmod | grep -e ashmem_linux -e binder_linux
binder_linux 1146880
ashmem_linux 163840
$ ls -alh /dev/binder /dev/ashmem
crw-rw-rw-1 root root 10,55Jun1916:30/dev/ashmem
crw-rw-rw-1 root root 511,0Jun1916:30/dev/binder
2.4 Download android image
The official arm64 image cannot be used, you can use what I have compiled:
Link: https://pan.baidu.com/s/1P-SZOl0TUoy3QXV9-UCo_A Password: 4988
You can also refer to anbox documentation to compile android image
$ cp android_1_arm64.img /var/lib/anbox/android.img
2.5 start
Start the Anbox container manager
$ sudo service anbox-container-manager start
View Anbox container manager status
$ sudo service anbox-container-manager start
Start the session manager
$ anbox session-manager
start anbox
$ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
3. finish
system message
4. ALL
Some APPs are not compatible and will die
Compatibility issues are relatively large