summaryrefslogtreecommitdiffstats
path: root/minadbd/adb.c
diff options
context:
space:
mode:
authorDa Zhou <dza@broadcom.com>2014-01-17 10:04:07 +0100
committerPierre Couillaud <pierre@broadcom.com>2014-01-17 23:23:48 +0100
commit65ad928602479379187d6fbe1d924f0fd60bea0e (patch)
tree13b4686433a3237b6b58c8ba2068cf848f316b31 /minadbd/adb.c
parentMerge "correctly mount tmpfs as /tmp in recovery" (diff)
downloadandroid_bootable_recovery-65ad928602479379187d6fbe1d924f0fd60bea0e.tar
android_bootable_recovery-65ad928602479379187d6fbe1d924f0fd60bea0e.tar.gz
android_bootable_recovery-65ad928602479379187d6fbe1d924f0fd60bea0e.tar.bz2
android_bootable_recovery-65ad928602479379187d6fbe1d924f0fd60bea0e.tar.lz
android_bootable_recovery-65ad928602479379187d6fbe1d924f0fd60bea0e.tar.xz
android_bootable_recovery-65ad928602479379187d6fbe1d924f0fd60bea0e.tar.zst
android_bootable_recovery-65ad928602479379187d6fbe1d924f0fd60bea0e.zip
Diffstat (limited to 'minadbd/adb.c')
-rw-r--r--minadbd/adb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/minadbd/adb.c b/minadbd/adb.c
index 948f4b755..7291b4bd5 100644
--- a/minadbd/adb.c
+++ b/minadbd/adb.c
@@ -387,7 +387,7 @@ int adb_main()
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();
}