From 3bc5cfd0c1629da7b44ce25fa8039870d4a05413 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Fri, 30 Aug 2013 17:34:37 -0700 Subject: 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 --- envsetup.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'envsetup.sh') 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 -- cgit v1.1