]> gitweb.fluxo.info Git - trashman.git/commitdiff
Adds anbox
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 3 Nov 2018 10:46:44 +0000 (07:46 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 3 Nov 2018 10:46:44 +0000 (07:46 -0300)
share/trashman/anbox/info [new file with mode: 0644]
share/trashman/anbox/unix/linux/debian/install [new file with mode: 0755]

diff --git a/share/trashman/anbox/info b/share/trashman/anbox/info
new file mode 100644 (file)
index 0000000..c94bc86
--- /dev/null
@@ -0,0 +1 @@
+run Android applications on any GNU/Linux operating system
diff --git a/share/trashman/anbox/unix/linux/debian/install b/share/trashman/anbox/unix/linux/debian/install
new file mode 100755 (executable)
index 0000000..28923df
--- /dev/null
@@ -0,0 +1,39 @@
+#!/usr/bin/env sh
+#
+# Install anbox system-wide.
+# See https://docs.anbox.io
+#
+
+# Parameters
+SHARE="$1"
+
+# Include basic functions
+. $SHARE/trashman/functions || exit 1
+. $SHARE/trashman/debian    || exit 1
+
+# Install requirements
+apt-get update && trashman_apt_install snapd android-tools-adb apksigner
+
+# Enable modules
+modprobe ashmem_linux
+modprobe binder_linux
+
+# Include modules into config
+echo ashmem_linux >> /etc/modules
+echo binder_linux >> /etc/modules
+
+# Install anbox
+snap install --devmode --beta anbox
+
+# Run
+#snap run anbox.appmgr
+
+# Example applications
+# https://signal.org/android/apk/
+# https://whatsapp.com/android
+
+# Verify
+#apksigner verify --print-certs app.apk
+
+# Install
+#adb install app.apk