Message ID | 20110215063022.GA17460@black |
---|---|
State | New |
Headers | show |
diff --git a/adb/adb.c b/adb/adb.c index d9f96df..7f1b12a 100644 --- a/adb/adb.c +++ b/adb/adb.c @@ -946,13 +946,14 @@ int adb_main(int is_daemon, int server_port) if (sscanf(value, "%d", &port) == 1 && port > 0) { // listen on TCP port specified by service.adb.tcp.port property local_init(port); - } else if (access("/dev/android_adb", F_OK) == 0) { - // listen on USB - usb_init(); } else { // listen on default port local_init(DEFAULT_ADB_LOCAL_TRANSPORT_PORT); } + + if (access("/dev/android_adb", F_OK) == 0) { + usb_init(); + } init_jdwp(); #endif