summaryrefslogtreecommitdiffstats
path: root/minadbd/adb.c
diff options
context:
space:
mode:
authorDa Zhou <dza@broadcom.com>2014-01-17 10:04:07 +0100
committerDees Troy <dees_troy@teamw.in>2014-10-07 20:43:53 +0200
commitd432deb371186d29af75781b497d2f1d7050c679 (patch)
tree638acdec7ed1b6c4230c23ffbe28ffc564047916 /minadbd/adb.c
parentCheck sehandle before fixing permissions (diff)
downloadandroid_bootable_recovery-d432deb371186d29af75781b497d2f1d7050c679.tar
android_bootable_recovery-d432deb371186d29af75781b497d2f1d7050c679.tar.gz
android_bootable_recovery-d432deb371186d29af75781b497d2f1d7050c679.tar.bz2
android_bootable_recovery-d432deb371186d29af75781b497d2f1d7050c679.tar.lz
android_bootable_recovery-d432deb371186d29af75781b497d2f1d7050c679.tar.xz
android_bootable_recovery-d432deb371186d29af75781b497d2f1d7050c679.tar.zst
android_bootable_recovery-d432deb371186d29af75781b497d2f1d7050c679.zip
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();
}