summaryrefslogtreecommitdiffstats
path: root/minadbd/adb.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--minadbd/adb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/minadbd/adb.c b/minadbd/adb.c
index 4cd05ed3c..4626bd3aa 100644
--- a/minadbd/adb.c
+++ b/minadbd/adb.c
@@ -390,7 +390,7 @@ int adb_main(const char* path)
init_transport_registration();
// The minimal version of adbd only uses USB.
- if (access("/dev/android_adb", F_OK) == 0) {
+ if (access(USB_ADB_PATH, F_OK) == 0 || access(USB_FFS_ADB_EP0, F_OK) == 0) {
// listen on USB
usb_init();
}