summaryrefslogtreecommitdiffstats
path: root/envsetup.sh
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2013-08-30 17:34:37 -0700
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 16:26:35 -0700
commit3bc5cfd0c1629da7b44ce25fa8039870d4a05413 (patch)
tree932f5e839363162ebf0b165c2eb77ccc672a9aec /envsetup.sh
parent9e0a3f767bd9135ddb20b025b8af40ae8baceda1 (diff)
downloadbuild-3bc5cfd0c1629da7b44ce25fa8039870d4a05413.zip
build-3bc5cfd0c1629da7b44ce25fa8039870d4a05413.tar.gz
build-3bc5cfd0c1629da7b44ce25fa8039870d4a05413.tar.bz2
envsetup: Wait for device in installboot/installrecovery
* Useful when you're racing against a bug that causes a kernel panic shortly after USB turns on :( Change-Id: I2a503e4b195e632ed5b67a77b942e80c47d0ff45 envsetup: Use wait-for-online so these cmds work in recovery Change-Id: I7a85e7068f373b1d726aa6b27a51862fa9b7c6fd
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/envsetup.sh b/envsetup.sh
index f7810b7..c572c16 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -1627,6 +1627,7 @@ function installboot()
fi
fi
adb start-server
+ adb wait-for-online
adb root
sleep 1
adb wait-for-online shell mount /system 2>&1 > /dev/null
@@ -1671,6 +1672,7 @@ function installrecovery()
fi
fi
adb start-server
+ adb wait-for-online
adb root
sleep 1
adb wait-for-online shell mount /system 2>&1 >> /dev/null