From 61165588424a6a0112bba7fa49fbf699b12ae6fe Mon Sep 17 00:00:00 2001 From: dongjiuzhu1 Date: Tue, 5 Dec 2023 21:02:16 +0800 Subject: [PATCH] system/adb: using inotify to check usb hotplug event Signed-off-by: dongjiuzhu1 --- system/adb/Kconfig | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/system/adb/Kconfig b/system/adb/Kconfig index 3d4c8cf98..0451e4b0e 100644 --- a/system/adb/Kconfig +++ b/system/adb/Kconfig @@ -113,13 +113,25 @@ config ADBD_USB_SERVER ---help--- Run adb daemon on USB bus +choice + prompt "Check usb hotplug" + default ADBD_USB_HOTPLUG_BYTIMER + config ADBD_USB_HOTPLUG_BYTIMER bool "Using 1s timer to check usb hotplug" depends on ADBD_USB_SERVER - default n ---help--- Using 1s timer to check usb hotplug +config ADBD_USB_HOTPLUG_BYNOTIFY + bool "Using fs notify to check usb hotplug" + depends on ADBD_USB_SERVER + depends on FS_NOTIFY + ---help--- + Using fs notify to monitor usb hotplug + +endchoice # Check usb hotplug + config ADBD_LOGCAT_SERVICE bool "ADB logcat support" select LIBC_PRINT_EXTENSION