https://blog.csdn.net/qq_25978793/article/details/49923579 ubuntu 安装 android模拟 Genymotion
https://ywnz.com/linuxjc/3892.html 安装 virtualBox
https://codeleading.com/article/60761416866/
网上大多教程都是旧的,实际只需要跟着https://github.com/anbox/anbox/blob/master/docs/install.md
这上面的说明走就行了,主要步骤是安装内核模块,这个也是只需要跟着https://github.com/anbox/anbox-modules
这上面的说明走就行了,如果是Centos也是这样操作但本人实验无法运行,还是ubuntu方便
$ sudo add-apt-repository ppa:morphis/anbox-support
$ sudo apt update
$ sudo apt install anbox-modules-dkms
$ sudo modprobe ashmem_linux
$ sudo modprobe binder_linux
$ ls -1 /dev/{ashmem,binder}
/dev/ashmem
/dev/binder
$ snap install --devmode --beta anbox
$ snap remove anbox
$ sudo apt install ppa-purge
$ sudo ppa-purge ppa:morphis/anbox-support
然后安装apk文件
sudo apt install android-tools-adb android-tools-fastboot
打开android setting这个软件
adb install *.apk
如果出现error:device offline那么一定是5037端口被占用重启就可以或者直接kill掉占用进程