Add simple sync script for Android builds

This commit is contained in:
Simon Fels 2016-11-11 09:57:44 +01:00
commit 5619662b0b

17
scripts/android-sync.sh Executable file
View file

@ -0,0 +1,17 @@
#!/bin/sh
set -ex
if [ -z "$ANDROID_PRODUCT_OUT" ]; then
echo "ANDROID_PRODUCT_OUT is not set!"
exit 1
fi
target=$1
if [ -z "$target" ]; then
echo "No target path provided!"
exit 1
fi
sudo cp -rv $ANDROID_PRODUCT_OUT/system $target
sudo rm /var/lib/anbox/rootfs/.anbox_setup_done