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:
parent
615c369777
commit
60d30548e8
10
platform_tools/android/bin/adb_pull_if_needed
Executable file
10
platform_tools/android/bin/adb_pull_if_needed
Executable 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 $?
|
10
platform_tools/android/bin/adb_push_if_needed
Executable file
10
platform_tools/android/bin/adb_push_if_needed
Executable 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 $?
|
Loading…
Reference in New Issue
Block a user