adb: after `adb root`, wait for the device in any state.

Otherwise, `adb root` while the device is in recovery will hang.

Bug: http://b/28168212
Change-Id: Ibc8038b1745139fb505e466c74c605b9df474c8c
(cherry picked from commit 48a348183f5f4478ca5b0ca2059fa829648fc090)
diff --git a/adb/commandline.cpp b/adb/commandline.cpp
index f904df7..b828c41 100644
--- a/adb/commandline.cpp
+++ b/adb/commandline.cpp
@@ -1112,7 +1112,7 @@
     TransportType type;
     const char* serial;
     adb_get_transport(&type, &serial);
-    return wait_for_device("wait-for-device", type, serial);
+    return wait_for_device("wait-for-any", type, serial);
 }
 
 // Connects to the device "shell" service with |command| and prints the