First bad news: u8815 ignore state of ID pin - driver cannot switch automatically to usb host mode. But we can force host mode by hands!
Run in adb shell (over network) or directly in android terminal:
echo host > /d/otg/mode
If you want check current state:
u8815 not provide power to external device. You should connect power source to it:
For return to normal (peripheral) mode:
echo peripheral > /d/otg/mode
But in this case driver ignore connect/disconnect to usb. To fix this we should patch kernel: https://github.com/M...63616ff155b6c2d
At now I try add some kind of auto switch to host mode and back.
P.S. Tested on cm-10.1-20130913 (Dazzozo)
Edited by Mihail Zenkov, 15 October 2013 - 02:07 PM.