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

Search This thread

sztupy

Inactive Recognized Developer
Dec 21, 2008
1,061
877
Edinburgh
sztupy.hu
Usb Host Controller

attachment.php


attachment.php


attachment.php
attachment.php


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://xdaforums.com/showthread.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!
 

Attachments

  • cont_dmesg.jpg
    cont_dmesg.jpg
    39.3 KB · Views: 191,559
  • device_list_1.jpg
    device_list_1.jpg
    28.3 KB · Views: 210,109
  • device_list_2.jpg
    device_list_2.jpg
    26.5 KB · Views: 190,844
  • UsbHostController_wide.jpg
    UsbHostController_wide.jpg
    21.9 KB · Views: 203,928
Last edited:

sztupy

Inactive Recognized Developer
Dec 21, 2008
1,061
877
Edinburgh
sztupy.hu
Changelog and downloads

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

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

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

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

Fixed:
  • Crashes on orientation change while opening the application

Version 0.4 Download: http://android.sztupy.hu/dl/usbhost/UsbHostController-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/UsbHostController-0.3.apk

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


Version 0.2 Download: http://android.sztupy.hu/dl/usbhost/UsbHostController-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/UsbHostController-0.1.apk
  • Initial release
 
Last edited:

sztupy

Inactive Recognized Developer
Dec 21, 2008
1,061
877
Edinburgh
sztupy.hu
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:

julle131

Senior Member
Mar 24, 2011
1,476
606
What info/files you need, so that you can add support to other devices?

Sent from my Derp using XDA Herp
 

sztupy

Inactive Recognized Developer
Dec 21, 2008
1,061
877
Edinburgh
sztupy.hu
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.
 

JUGOMAN

Senior Member
Jan 7, 2011
161
25
Gtablet cm 7.1.0.1

App mounts external drive,but contents is not visible. Reports s3c usb host driver not found. Any ideas? ((btw no other app works at mounting the drive:just yours. Great job)

---------- Post added at 05:43 AM ---------- Previous post was at 05:28 AM ----------

App mounts external drive,but contents is not visible. Reports s3c usb host driver not found. Any ideas? ((btw no other app works at mounting the drive:just yours. Great job)
 

sztupy

Inactive Recognized Developer
Dec 21, 2008
1,061
877
Edinburgh
sztupy.hu
App mounts external drive,but contents is not visible. Reports s3c usb host driver not found. Any ideas? ((btw no other app works at mounting the drive:just yours. Great job)

---------- Post added at 05:43 AM ---------- Previous post was at 05:28 AM ----------

App mounts external drive,but contents is not visible. Reports s3c usb host driver not found. Any ideas? ((btw no other app works at mounting the drive:just yours. Great job)

S3c driver only visible if you have an s3c otg controller (samsung phones). Please post a dmesg log (after connecting the device) if you can, i'll check it

Sent from my GT-I9000 using XDA App
 
  • Like
Reactions: JUGOMAN

ToiletDuck555

Senior Member
Sep 21, 2010
51
5
Works on CM9 Nook Color. Have not tried any of the advanced options but it does display good info.

Thanks for making this app!!
 

JUGOMAN

Senior Member
Jan 7, 2011
161
25
Is your drive formatted as FAT32? If yes according to the logs there is some problem with it.
Yes, FAT32. I can mount it without problems on my Iconia a500 (HC 3.2)but not on the gtablet. It probably has to do with the kernel, since it is not really a "true" Ginger KERNEL

thank you very much!!!!!
 
Last edited:

linh1987

Senior Member
Dec 7, 2007
70
16
I've tried your application. It's very nice and work ok but is there any chance you can add support for NTFS mounting as well? :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 48
    Usb Host Controller

    attachment.php


    attachment.php


    attachment.php
    attachment.php


    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://xdaforums.com/showthread.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!
    11
    Changelog and downloads

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

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

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

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

    Fixed:
    • Crashes on orientation change while opening the application

    Version 0.4 Download: http://android.sztupy.hu/dl/usbhost/UsbHostController-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/UsbHostController-0.3.apk

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


    Version 0.2 Download: http://android.sztupy.hu/dl/usbhost/UsbHostController-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/UsbHostController-0.1.apk
    • Initial release
    4
    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)
    2
    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.
    1
    App mounts external drive,but contents is not visible. Reports s3c usb host driver not found. Any ideas? ((btw no other app works at mounting the drive:just yours. Great job)

    ---------- Post added at 05:43 AM ---------- Previous post was at 05:28 AM ----------

    App mounts external drive,but contents is not visible. Reports s3c usb host driver not found. Any ideas? ((btw no other app works at mounting the drive:just yours. Great job)

    S3c driver only visible if you have an s3c otg controller (samsung phones). Please post a dmesg log (after connecting the device) if you can, i'll check it

    Sent from my GT-I9000 using XDA App