Add Android copy_directory_contents_[to|from]_device scripts

BUG=skia:
NOTRY=true
R=djsollen@google.com

Review URL: https://codereview.chromium.org/510653004
This commit is contained in:
Eric Boren 2014-08-28 09:31:15 -04:00
parent 615c369777
commit 60d30548e8
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/bin/bash
#
# Copy the contents of a directory from a device to the host.
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $SCRIPT_DIR/android_setup.sh
source $SCRIPT_DIR/utils/setup_adb.sh
adb_pull_if_needed ${APP_ARGS[@]}
exit $?

View File

@ -0,0 +1,10 @@
#!/bin/bash
#
# Copy the contents of a directory from the host to a device.
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $SCRIPT_DIR/android_setup.sh
source $SCRIPT_DIR/utils/setup_adb.sh
adb_push_if_needed ${APP_ARGS[@]}
exit $?