Add simple sync script for Android builds
This commit is contained in:
parent
66a6f1d2c3
commit
5619662b0b
1 changed files with 17 additions and 0 deletions
17
scripts/android-sync.sh
Executable file
17
scripts/android-sync.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue