I have a Samsung Galaxy Win phone, rooted and with adbd insecure installed (using the link here).
This is the information shown by the USB OTG Checker app:
I have added the android.hardware.usb.host.xml file into
/system/etc/permissions folder and the USB-OTG app says that my phone is now OTG capable (before, it showed that OTG is not supported only due to the missing xml file).
When I connect OTG cable and a USB drive, nothing happens at all. Same with a USB mouse. The USB Device Info app says nothing is connected. It's possible USB OTG hardware itself is missing from this phone, but it is very difficult to find any information about this model at all (it was really difficult to get this phone rooted in the first place).
Is there a definitive way to know whether the phone supports OTG or not? Is there a Java function that I could call which would confirm OTG, or is there any function that would crash if OTG is not present at the hardware level?
Output after doing the procedure mentioned in the comment:
"Do with root privileges:
cd /sdcard && find /sys | sort >1. Connect USB. Then:
find /sys | sort >2 && diff 1 2. This will let you know how kernel treats USB hardware."
--- 1 +++ 2 @@ -17357,10 +17357,15 @@ /sys/kernel/debug/binder/failed_transaction_log /sys/kernel/debug/binder/proc /sys/kernel/debug/binder/proc/19015 -/sys/kernel/debug/binder/proc/19034 /sys/kernel/debug/binder/proc/21683 /sys/kernel/debug/binder/proc/22063 /sys/kernel/debug/binder/proc/22112 +/sys/kernel/debug/binder/proc/22152 +/sys/kernel/debug/binder/proc/22166 +/sys/kernel/debug/binder/proc/22185 +/sys/kernel/debug/binder/proc/22197 +/sys/kernel/debug/binder/proc/22212 +/sys/kernel/debug/binder/proc/22224 /sys/kernel/debug/binder/proc/2788 /sys/kernel/debug/binder/proc/2796 /sys/kernel/debug/binder/proc/2797 @@ -17402,12 +17407,7 @@ /sys/kernel/debug/binder/proc/5383 /sys/kernel/debug/binder/proc/5972 /sys/kernel/debug/binder/proc/6076 -/sys/kernel/debug/binder/proc/6343 /sys/kernel/debug/binder/proc/6358 -/sys/kernel/debug/binder/proc/6370 -/sys/kernel/debug/binder/proc/6382 -/sys/kernel/debug/binder/proc/6397 -/sys/kernel/debug/binder/proc/6410 /sys/kernel/debug/binder/proc/6423 /sys/kernel/debug/binder/proc/6439 /sys/kernel/debug/binder/proc/6479