Don't use qemu pipe for adb for unknown api level.
Now we return a very large api level when there is no build.prop file.
This is common for old image. In this case, don't use qemu pipe for
adb.
Change-Id: I776e4f2954588dcc73a63a68f7ca91e6a0032baf
Signed-off-by: Tao Wu <lepton@google.com>
diff --git a/android/avd/info.c b/android/avd/info.c
index 484aaa9..de69351 100644
--- a/android/avd/info.c
+++ b/android/avd/info.c
@@ -1432,9 +1432,9 @@
int avdInfo_getAdbdCommunicationMode( const AvdInfo* i )
{
- if (i->apiLevel < 16) {
+ if (i->apiLevel < 16 || i->apiLevel > 99) {
// QEMU pipe for ADB communication was added in android-4.1.1_r1 API 16
- D("API < 16, forcing ro.adb.qemud==0");
+ D("API < 16 or unknown, forcing ro.adb.qemud==0");
return 0;
}