system/adb: using inotify to check usb hotplug event

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2023-12-05 21:02:16 +08:00 committed by Xiang Xiao
parent 7ab6704920
commit 6116558842

View File

@ -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