Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: platform_tools/android/bin/android_setup.sh

Issue 23514051: various bug fixes. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: skip buildbots Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform_tools/android/bin/android_setup.sh
diff --git a/platform_tools/android/bin/android_setup.sh b/platform_tools/android/bin/android_setup.sh
index 07ff3c5601461f056afbcee14ed4c9a80bdff942..7c3ba6a24318f580ced26b2a40344a304e457a44 100755
--- a/platform_tools/android/bin/android_setup.sh
+++ b/platform_tools/android/bin/android_setup.sh
@@ -165,7 +165,7 @@ setup_device() {
TARGET_DEVICE=$(cat .android_config)
echo "INFO: no target device was specified so using the device (${TARGET_DEVICE}) from the most recent build"
else
- TARGET_DEVICE="arm_v7"
+ TARGET_DEVICE="arm_v7_thumb"
echo "INFO: no target device type was specified so using the default '${TARGET_DEVICE}'"
fi
fi
@@ -264,7 +264,11 @@ adb_pull_if_needed() {
then
#get the MD5 for dst and src
ANDROID_MD5=`$ADB $DEVICE_SERIAL shell md5 $ANDROID_SRC`
- HOST_MD5=`md5sum $HOST_DST`
+ if [ $(uname) == "Darwin" ]; then
+ HOST_MD5=`md5 -q $HOST_DST`
+ else
+ HOST_MD5=`md5sum $HOST_DST`
+ fi
if [ "${ANDROID_MD5:0:32}" != "${HOST_MD5:0:32}" ];
then
@@ -300,7 +304,11 @@ adb_push_if_needed() {
then
#get the MD5 for dst and src
ANDROID_MD5=`$ADB $DEVICE_SERIAL shell md5 $ANDROID_DST`
- HOST_MD5=`md5sum $HOST_SRC`
+ if [ $(uname) == "Darwin" ]; then
+ HOST_MD5=`md5 -q $HOST_SRC`
+ else
+ HOST_MD5=`md5sum $HOST_SRC`
+ fi
if [ "${ANDROID_MD5:0:32}" != "${HOST_MD5:0:32}" ];
then
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698