From 44dc351409c6e1665c0dd3c7a32c8e79a2950a4e Mon Sep 17 00:00:00 2001 From: "@Kumar" Date: Tue, 18 Apr 2023 11:16:36 +0530 Subject: [PATCH] Update README.md --- README.md | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 20a80a3..3823790 100644 --- a/README.md +++ b/README.md @@ -22,31 +22,31 @@ You can either run `./INSTALL.sh` script to automate the installation steps or f * First install the configuration files: ``` - $ sudo cp anbox.conf /etc/modules-load.d/ - $ sudo cp 99-anbox.rules /lib/udev/rules.d/ + sudo cp anbox.conf /etc/modules-load.d/ + sudo cp 99-anbox.rules /lib/udev/rules.d/ ``` * Then copy the module sources to `/usr/src/`: ``` - $ sudo cp -rT ashmem /usr/src/anbox-ashmem-1 - $ sudo cp -rT binder /usr/src/anbox-binder-1 + sudo cp -rT ashmem /usr/src/anbox-ashmem-1 + sudo cp -rT binder /usr/src/anbox-binder-1 ``` * Finally use `dkms` to build and install: ``` - $ sudo dkms install anbox-ashmem/1 - $ sudo dkms install anbox-binder/1 + sudo dkms install anbox-ashmem/1 + sudo dkms install anbox-binder/1 ``` You can verify by loading these modules and checking the created devices: ``` -$ sudo modprobe ashmem_linux -$ sudo modprobe binder_linux -$ lsmod | grep -e ashmem_linux -e binder_linux -$ ls -alh /dev/binder /dev/ashmem + sudo modprobe ashmem_linux + sudo modprobe binder_linux + lsmod | grep -e ashmem_linux -e binder_linux + ls -alh /dev/binder /dev/ashmem ``` You are expected to see output like: @@ -65,31 +65,31 @@ ou can either run `./UNINSTALL.sh` script to automate the installation steps or * First use dkms to remove the modules: ``` - $ sudo dkms remove anbox-ashmem/1 - $ sudo dkms remove anbox-binder/1 + sudo dkms remove anbox-ashmem/1 + sudo dkms remove anbox-binder/1 ``` * Then remove the module sources from /usr/src/: ``` - $ sudo rm -rf /usr/src/anbox-ashmem-1 - $ sudo rm -rf /usr/src/anbox-binder-1 + sudo rm -rf /usr/src/anbox-ashmem-1 + sudo rm -rf /usr/src/anbox-binder-1 ``` * Finally remove the configuration files: ``` - $ sudo rm -f /etc/modules-load.d/anbox.conf - $ sudo rm -f /lib/udev/rules.d/99-anbox.rules + sudo rm -f /etc/modules-load.d/anbox.conf + sudo rm -f /lib/udev/rules.d/99-anbox.rules ``` You must then restart your device. You can then verify modules were removed by trying to load the modules and checking the created devices: ``` -$ sudo modprobe ashmem_linux -$ sudo modprobe binder_linux -$ lsmod | grep -e ashmem_linux -e binder_linux -$ ls -alh /dev/binder /dev/ashmem + sudo modprobe ashmem_linux + sudo modprobe binder_linux + lsmod | grep -e ashmem_linux -e binder_linux + ls -alh /dev/binder /dev/ashmem ``` You are expected to see output like: @@ -99,4 +99,4 @@ modprobe: FATAL: Module ashmem_linux not found in directory /lib/modules/6.0.2-7 modprobe: FATAL: Module binder_linux not found in directory /lib/modules/6.0.2-76060002-generic ls: cannot access '/dev/binder': No such file or directory ls: cannot access '/dev/ashmem': No such file or directory -``` \ No newline at end of file +```