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 94ae87f9a10ab1a0e703a287dac7b760f3aaf0bd..5396294c7fc41a880b925efdfc23c124c0c7273c 100755 |
--- a/platform_tools/android/bin/android_setup.sh |
+++ b/platform_tools/android/bin/android_setup.sh |
@@ -70,6 +70,11 @@ if [ -z "$ANDROID_SDK_ROOT" ]; then |
fi |
fi |
+if [ -z "$ANDROID_HOME" ]; then |
+ echo "ANDROID_HOME not set so we are setting it to a default value of ANDROID_SDK_ROOT" |
+ exportVar ANDROID_HOME $ANDROID_SDK_ROOT |
+fi |
+ |
# check to see that gclient sync ran successfully |
THIRD_PARTY_EXTERNAL_DIR=${SCRIPT_DIR}/../third_party/externals |
if [ ! -d "$THIRD_PARTY_EXTERNAL_DIR" ]; then |