Index: platform_tools/android/bin/adb_push_if_needed |
diff --git a/platform_tools/android/bin/adb_push_if_needed b/platform_tools/android/bin/adb_push_if_needed |
new file mode 100755 |
index 0000000000000000000000000000000000000000..96e093fee9dc6c69fb7ee8872452e5ea9b2ba088 |
--- /dev/null |
+++ b/platform_tools/android/bin/adb_push_if_needed |
@@ -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 $? |