From 083cc573b6166e0f2e6f507cc56d963e37fe7550 Mon Sep 17 00:00:00 2001 From: Hammed Oyedele Date: Wed, 4 Mar 2020 10:23:32 +0100 Subject: [PATCH] feat: add script that automates install steps --- INSTALL.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 INSTALL.sh diff --git a/INSTALL.sh b/INSTALL.sh new file mode 100755 index 0000000..b66be2c --- /dev/null +++ b/INSTALL.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +# First install the configuration files: +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 + +# Finally use dkms to build and install: +sudo dkms install anbox-ashmem/1 +sudo dkms install anbox-binder/1 + +# 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