[Q] Is is possible to add USB HOST drivers? - Android Q&A, Help & Troubleshooting

Hello,
I would like to know if it is possible to add/install USB HOST drivers to my phone. According to manufacturer specifications, in the "list of available features" I see "android.hardware.usb.accessory" but not "android.hardware.usb.host".
From what I learned, the difference between the two is in USB host the phone powers the bus, and in accessory, it does not.
I need this to be able to attach a hardware keyboard, and they are rarely self-powered.
My phone is a Sharp SH-01D, running 4.0.4, not rooted.
And, follow-up questions:
1. If possible, do I need root? (I am guessing yes, unless there's some installable driver, like in PCs).
2. Where do I get this driver from? Almost all newer models support this functionality (my girlfriend has the SH-10D, now upgraded to 4.1.2 but according to specifications, it had USB host even before the upgrade), so can I get it from her phone? Or is the driver processor-specific -- mine has a TI OMAP 4430, and hers has a Snapdragon MSM8960.

Related

UrukDroid - How to access USB Serial?

After installing UrukDroid, how can I access/call USB Serial to use it to communicate to an Arduino? (I haven't installed it yet, but was wondering about the possibilities after I did.)
Also, since the tablet has some usb host support, shouldn't the code for it be somewhere in the system? I could probably access that, but it would require root, leaving me back with UrukDroid anyway...
I'm used to playing around on my phone (Droid X2) and if I do anything wrong on there, I know that I can simply SBF. Is there something similar with the Archos101?
Device Info:
Archos 101 IT
2.4.82 firmware
A101IT-V6 board
Thank you for your help.

[Q] OTG different after flash

Hi,
After updating (flashing through odin) my GB Stock to 2.3.6, i dont get the msg "USB Host Cable Connected" which I was getting before. And apparently even if I connect a device i dont get any notification that either a keyboard or mouse has been attached. Is this normal ?
Edit: Was searching online and found out that i have USB Host Driver missing, any1 know of a way to install the drivers without recompiling a kernel ?:/
I tried USB host diagnostics and it states that Android API does not claim support but at the end it states Overall, OS support = yes, what does that mean?

[Q] OTG USB not working on a supported Oppo phone

First let me say that I am not permitted to post this question on the thread that relates to custom roms for the Oppo Muse Find R821, since I am not a developer .
The named phone has hardware capability to act as USB host but USB Diagnostics report that the kernel (I am using the original ROM) does not support it.
Is there any way to modify the rom to get it to recognize USB devices, as a host?
Or any patch/addition to the ROM that will enable this function?
Perhaps something I can install as a zip in recovery mode.
Or maybe there is a custom rom for this phone that activates the OTG capability?
I know that the phone will automatically recognize a USB stick if the hardware can do it, if the kernel allows it and if the correct OTG cable is used.
The only thing lacking now is the software.

How to dump/image/backup the NAND of brand new phone?

Hi,
Are there any guides for how to dump/backup/image the NAND/eMMC of a brand new, never-been-booted-up Android device? I want to create an image file of the entire/complete NAND before powering on a new phone for the first time.
Maybe that would be achieved by connecting the phone to a PC via USB and using SoC vendor-specific software to dump the NAND. I have done that on an Archos GamePad before. The GamePad has a RockChip RK3066 SoC, and (from memory, it was a while ago) I used rkflashtool to do that.
I read some guides for MTK-based phones, but they require doing stuff after the phone has booted up, for example enabling USB debugging. Is there any way to determine the NAND size and read it without having to do that? Maybe connecting a brand-new phone over USB I could enable some kind of factory-use mode?
And are there any guides for doing that for Qualcomm-based devices (Snapdragon 410)?

My device supports OTG but OS doesn't

Hello,
I was trying to develop an app that uses USB Host/Accessory mode to communicate with a python script on another linux device (for now it's my PC). I noticed that getAccessoryList() and getDeviceList() both return null/empty and after searching a lot I came across USB Host Diagnostics from chainfire.
And when I tried it this was the result: usbhost(dot)chainfire(dot)eu/?search=1382824
As you can see, the kernel supports OTG while the OS doesn't. My devices are Samsung S5 and Note 8.0 and both gave the same exact results. My devices are rooted but that was the only modification i've done to them.
So is there a way to fix this issue ?
Thanks in advance.

Categories

Resources