aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-08-05 19:33:47 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-08-05 19:33:47 -0300
commit00af28fc5917bd5619fb27be52cb64e8aa45759c (patch)
tree5ac0dd71869a74f598c7e0844b25dbcf4efd97b1 /share
parentee9c9a8d628cb9502a51a874295dca7f7b7d8e2f (diff)
downloadtrashman-00af28fc5917bd5619fb27be52cb64e8aa45759c.tar.gz
trashman-00af28fc5917bd5619fb27be52cb64e8aa45759c.tar.bz2
Updates anbox recipe
Diffstat (limited to 'share')
-rwxr-xr-xshare/trashman/anbox/unix/linux/debian/install25
1 files changed, 20 insertions, 5 deletions
diff --git a/share/trashman/anbox/unix/linux/debian/install b/share/trashman/anbox/unix/linux/debian/install
index e03e1a9..207c494 100755
--- a/share/trashman/anbox/unix/linux/debian/install
+++ b/share/trashman/anbox/unix/linux/debian/install
@@ -6,6 +6,7 @@
# Parameters
SHARE="$1"
+IMAGE="https://build.anbox.io/android-images/2018/07/19/android_amd64.img"
# Include basic functions
. $SHARE/trashman/functions || exit 1
@@ -13,25 +14,39 @@ SHARE="$1"
# Install requirements
#apt-get update && trashman_apt_install snapd android-tools-adb apksigner
-apt-get update && trashman_apt_install android-tools-adb apksigner
+apt-get update && trashman_apt_install android-tools-adb apksigner wget
# Enable modules
modprobe ashmem_linux
modprobe binder_linux
# Include modules into config
-echo ashmem_linux >> /etc/modules
-echo binder_linux >> /etc/modules
+if ! grep -q "ashmem_linux" /etc/modules; then
+ echo ashmem_linux >> /etc/modules
+fi
+if ! grep -q "binder_linux" /etc/modules; then
+ echo binder_linux >> /etc/modules
+fi
# Install anbox
#snap install --devmode --beta anbox
apt install anbox
-# Run: one of these commands might work
+# Get a recent android image
+wget $IMAGE.sha256sum -O /var/lib/anbox/android.img.sha256sum
+wget $IMAGE -O /var/lib/anbox/android.img
+cd /var/lib/anbox && sha256sum -c android.img.sha256sum || exit 11
+
+# Start service
+service anbox-container-manager start
+
+# Run: one of these commands might work as a regular user
#snap run anbox.appmgr
-#LC_ALL=C anbox session-manager
#anbox.appmgr
#anbox session-manager
+#LC_ALL=C anbox session-manager
+#env ANBOX_LOG_LEVEL=debug anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
+#anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
# Example applications
# https://signal.org/android/apk/