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?
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.