Changes to be done in the kernel for USB adb support

In the old linux kernels (3.4) there is a function for usb ADB support but the same is missing in the latest kernels, so what are the changes to be done in the latest kernel to make sure that USB debugging works properly in android

Which board are you talking about?

In general not specific to any board, what all to be enabled in the Linux to make USB ADB working?

@pundiramit any idea about the specifics of enabling adb?

It used to be f_adb.c, but that’s now obsolete. I believe it is now covered by f_accessory.c
Note that its not a mainline driver.


Other than platform specific USB/UDC support enabled, CONFIG_USB_CONFIGFS_F_FS=y is all you need for ADB to work.

I am using this 2 yr old topic because I am now trying to do the same but for Linux Kernel 4.19. Can someone help me to have my device (AM335x starter Kit) with Linux + adb tools packages also included to be listed as device when I execute the adb devices on the windows host machine