logo NodeSeekbeta

Ubuntu安装ashmem_linux和binder_linux的方法

目的:运行Redroid
VPS:天翼云电脑
环境:Ubuntu 22.04
与甲骨文的系统不同的是,
很多Ubuntu没有自带或启用ashmem_linux和binder_linux的内核,需要自己添加。

步骤

  1. 安装 DMKS:
sudo apt install dkms
  1. 安装 Git and Clone:
sudo apt install git
git clone https://github.com/anbox/anbox-modules.git
cd anbox-modules
  1. 复制文件:
sudo cp anbox.conf /etc/modules-load.d/
sudo cp 99-anbox.rules /lib/udev/rules.d/
sudo cp -rT ashmem /usr/src/anbox-ashmem-1
sudo cp -rT binder /usr/src/anbox-binder-1
  1. 使用DKMS安装:
sudo dkms install anbox-ashmem/1
sudo dkms install anbox-binder/1
  1. 最后启用他们:
modprobe binder_linux devices="binder,hwbinder,vndbinder" 
modprobe ashmem_linux 

感谢:https://www.youtube.com/watch?v=k_eMzlHBXiA
https://github.com/anbox/anbox-modules
https://github.com/remote-android/redroid-doc

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

📈用户数目📈

目前论坛共有72800位seeker

🎉欢迎新用户🎉