Post Reply

[APP][2.1+][ROOT] Usb Host Controller 0.42

28th January 2012, 05:10 AM   |  #1  
sztupy's Avatar
OP Recognized Developer
Flag London
Thanks Meter: 856
 
1,054 posts
Join Date:Joined: Dec 2008
Donate to Me
More
Usb Host Controller







Shows enumerated usb devices, and allows you to mount external mass storage devices to the filesystem. Supports advanced features like the ability to reload partition tables and reseting USB devices. It can also control the USB Host functionality of S5PC210 devices with the appropriate kernel patch (more about this later)

The application does not use the USB Host API, so it can also run on older, 2.x devices. Because of that however almost all functionality (except for the listing of USB devices) requires root access.

The application needs a device that has USB Host (or USB OTG) functionality. Most modern high-end devices have this ability. Check the documentation and specification of your device (this functionality is usually called USB OTG or USB Host)

If your device doesn't have native USB OTG functionality, there are kernel patches for some older devices to enable the functionality, most notably for:

- S5PC210 based Samsung phones (Galaxy S, Captivate, Nexus S)
- QSD8250 based HTC phones (G1, Nexus One, Desire, Incredible)

You can find appropriate kernel drivers for these phones here:
- Samsung phones: http://forum.xda-developers.com/show....php?t=1450298
- HTC phones: http://sven.killig.de/android/N1/2.2/usb_host/

Note that these drivers might require skills to install, and may damage your phone and void your warranty!
Attached Thumbnails
Click image for larger version

Name:	cont_dmesg.jpg
Views:	113370
Size:	39.3 KB
ID:	876177   Click image for larger version

Name:	device_list_1.jpg
Views:	126897
Size:	28.3 KB
ID:	876178   Click image for larger version

Name:	device_list_2.jpg
Views:	112789
Size:	26.5 KB
ID:	876179   Click image for larger version

Name:	UsbHostController_wide.jpg
Views:	124435
Size:	21.9 KB
ID:	876180  
Last edited by sztupy; 29th January 2012 at 04:00 PM.
The Following 47 Users Say Thank You to sztupy For This Useful Post: [ View ]
28th January 2012, 05:11 AM   |  #2  
sztupy's Avatar
OP Recognized Developer
Flag London
Thanks Meter: 856
 
1,054 posts
Join Date:Joined: Dec 2008
Donate to Me
More
Changelog and downloads

The application can always be downloaded from the Android Market: https://market.android.com/details?i...hostcontroller If you have Market, please download it from there. Thanks.

Version 0.44 Download: http://android.sztupy.hu/dl/usbhost/...oller-0.44.apk

Fixed:
  • Crashes on some devices when getting wireless wifi data

Version 0.42 Download: http://android.sztupy.hu/dl/usbhost/...oller-0.42.apk

Fixed:
  • Crashes on orientation change while opening the application

Version 0.4 Download: http://android.sztupy.hu/dl/usbhost/...roller-0.4.apk

Fixed:
  • Crashes on pre-gingerbread devices
  • Crashes when using some ad-blockers


Version 0.3 Download: http://android.sztupy.hu/dl/usbhost/...roller-0.3.apk

Fixed:
  • Massive instability on JVU/gingerbread
  • Various other gingerbread fixes


Version 0.2 Download: http://android.sztupy.hu/dl/usbhost/...roller-0.2.apk

Fixed:
  • Increased stability

Added features:
  • real-time dmesg logging
  • reload partition table of devices
  • reset USB devices
  • turn off device charging (S5PC210 devices only)
  • multiple mount points support
  • Hungarian localization

Version 0.1 Download: http://android.sztupy.hu/dl/usbhost/...roller-0.1.apk
  • Initial release
Last edited by sztupy; 17th February 2012 at 12:44 PM. Reason: 0.44 released
The Following 11 Users Say Thank You to sztupy For This Useful Post: [ View ]
28th January 2012, 05:11 AM   |  #3  
sztupy's Avatar
OP Recognized Developer
Flag London
Thanks Meter: 856
 
1,054 posts
Join Date:Joined: Dec 2008
Donate to Me
More
Help/FAQ

What is this good for?

Usb Host Controller let's you see what devices are connected to your phone, and also lets you mount external drives.

There are already a lot of apps for that

Yes, but UHC has some distinctive features:
  • To enumerate devices it does not use neither the USB Host API, nor external applications, like lsusb from busybox. Instead it reads the information from the filesystem, which is always avialable, therefore it can be used to debug all kinds of devices which have USB host support.
  • It has a special features to help control the USB Host mode of S5PC210 based Samsung devices (Galaxy S, Nexus S, etc.)
  • It also has some features usually not available (even from the command line), like the ability to reload the partition information, and the ability to reset USB devices

How to use

Most of the functionality should be straightforward, but the USB tab might need some clarification:

The USB tab shows all the USB devices connected to your phone, that have been found by the system. Below the devices you can see all of the USB Mass Storage devices (external hard drives, flash drives, other Android phones, etc.), with their avialable partitions. You can click on any line, and based on the line you click on you will have a list of options to choose from:
  • Clicking on an USB device in the upper part lets you reset that device. Sometimes mice, and keyboards need to be reset for them to work correctly.
  • Clicking on a partition lets you mount it to a mount point. The application will ask you where you want to mount it. The list of mount points can be set inside the settings panel. If the partition is mounted you can unmount it here.
  • Clicking on a Mass Storage Device (not on the partitions, but the base device above tha partitions) will lets you reset the hard drive, or reload the partition table of the disk. The latter is useful, if the system doesn't recognize a change in its partition information. This is usually needed, if you connect an external card reader, and you insert or remove a card from it. It also makes conecting other Android phones as storage possible, as they will not send their partition tables until you switch the USB Storage mode on them on.

What are the options if I have an S5PC210 based phone
The application lets you change how the USB Host is working in the S5PC210 based kernels (and currently only on those!). The avialable modes are:
  • Client: Default mode, means no matter what happens the phone stays in client (USB gadget) mode
  • Host: No matter what happens, the phone switches to host mode and stays there. Not recommended.
  • OTG: The phone is in client mode by default but changes to host mode if an OTG cable is detected.
  • Auto-host: The phone is in client mode by default but changes to host mode if any type of cable is detected. (good for homemade OTG cables where pins 4-5 are not shorted)

Using Host mode is not recommended, as the root hub of the S3C Host driver won't re-enumerate devices if they are changed (It is still useful for debug purposes). If you need host mode use either OTG mode (preferred if you have a valid OTG cable, which means it has the 4th pin grounded), or auto-host mode, which you should use if you have a "non valid" OTG cable (on which the 4th pin is not connected)
Last edited by sztupy; 28th January 2012 at 06:21 AM.
The Following 4 Users Say Thank You to sztupy For This Useful Post: [ View ]
28th January 2012, 05:20 AM   |  #4  
DJBhardwaj's Avatar
Recognized Contributor
Flag Delhi
Thanks Meter: 1,818
 
3,097 posts
Join Date:Joined: Apr 2011
Donate to Me
More
Nice! Download ?
Between i have a lg optimus one. Will it work ?

Sent from my LG-P500 using Tapatalk
28th January 2012, 07:15 AM   |  #5  
Junior Member
Thanks Meter: 0
 
11 posts
Join Date:Joined: Aug 2009
Nice! Download
28th January 2012, 08:16 AM   |  #6  
Senior Member
Flag Porvoo
Thanks Meter: 571
 
1,425 posts
Join Date:Joined: Mar 2011
Donate to Me
More
What info/files you need, so that you can add support to other devices?

Sent from my Derp using XDA Herp
28th January 2012, 08:30 AM   |  #7  
sztupy's Avatar
OP Recognized Developer
Flag London
Thanks Meter: 856
 
1,054 posts
Join Date:Joined: Dec 2008
Donate to Me
More
Quote:
Originally Posted by julle131

What info/files you need, so that you can add support to other devices?

Sent from my Derp using XDA Herp

If the device has USB host mode (most newer high-end devices and tablets, from that even most chinese ones), this app should work on it just fine.

If it doesn't have, but the chip supports it then a willing developer needs to try to enable it. I'm only working on S5PC210 (Hummingbird) based phones, as I have only access to them. Patches for QSD8250 (Snapdragon) based phones are available though.

If the device has a chip without USB host support (most low-end / mid-range phones) then sorry, this is not possible.
The Following User Says Thank You to sztupy For This Useful Post: [ View ]
28th January 2012, 06:24 PM   |  #8  
sztupy's Avatar
OP Recognized Developer
Flag London
Thanks Meter: 856
 
1,054 posts
Join Date:Joined: Dec 2008
Donate to Me
More
Version 0.3 released here, and on the Market

Version 0.3 Download: http://android.sztupy.hu/dl/usbhost/...roller-0.3.apk

Fixed:
Massive instability on JVU/gingerbread
Various other gingerbread cosmetic fixes
31st January 2012, 06:30 AM   |  #9  
kshitij_bhatt's Avatar
Senior Member
Flag Jaipur
Thanks Meter: 46
 
368 posts
Join Date:Joined: Aug 2011
More
I have a snapdragon chipset phone named Ideos X6 i think that phone had very good possiblity with usb otg .. it has hdmi out too .... i think its possible to make otg for this phone ... can anyone help out ??? Ideos X6 check it here plz
31st January 2012, 07:05 AM   |  #10  
sztupy's Avatar
OP Recognized Developer
Flag London
Thanks Meter: 856
 
1,054 posts
Join Date:Joined: Dec 2008
Donate to Me
More
Quote:
Originally Posted by k****ij_bhatt

I have a snapdragon chipset phone named Ideos X6 i think that phone had very good possiblity with usb otg .. it has hdmi out too .... i think its possible to make otg for this phone ... can anyone help out ??? Ideos X6 check it here plz

It might work, check the topics of other snapdragon phones, like the ones mentioned above.

Post Reply Subscribe to Thread

Tags
app, otg, root, usb, usb host
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Apps and Games by ThreadRank