Adding charger over OTG to a kernel

crumble6

Senior Member
Oct 24, 2009
194
24
38
Nottingham
Hi,

As the title suggests, I am looking to add the ability to charge my device at the same time as using USB OTG. The device in question is a Samsung Galaxy Tab 4 7.0 LTE (SM-T235).

Let me start by saying this is my first step into android development, so I'm currently just Googling everything and attempting to follow some guides I found, but I'm still unable to work out which files I need to edit before compiling.

I have downloaded the latest kernel sources from the Samsung development website, extracted them and downloaded toolchain, as per THIS guide.

I have then been attempting to copy the process used HERE to enable the feature, but as that applied to the OPO, I assume the process is slightly different for the Galaxy Tab. I've searched for all the files that contain OTG and there's a lot of them, I can't work out what I need to edit. See screenshot:


(For some reason I have tried 3 different image hosts and it isn't showing up so screenshot has been attached as well.

I have uploaded the contents of the drivers/usb folder from the kernel sources at the following like:

https://drive.google.com/open?id=0B9o8Fezf-53KY0dKUlhZc2VmNGc

If anyone has the time and knowledge to have a look at this and help me out, it would be greatly appreciated.

Thanks, :)
 
Last edited: