New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
shardul_seth
Old
(Last edited by shardul_seth; 24th January 2013 at 10:04 AM.) Reason: Updated v6 added
#1  
shardul_seth's Avatar
Senior Member - OP
Thanks Meter 1561
Posts: 1,063
Join Date: Jul 2011
Storage [APP] USB OTG Helper v6 ☰ Update 16-12-12 ☰ [ROOT] (Stock/Custom kernel)

A one-stop no-pain solution for enabling and using USB OTG mass storage on your android phone!


What is USB OTG?
It stands for USB On-the-Go!
"It is a specification that allows USB devices such as digital audio players or mobile phones to act as a host allowing a USB flash drive, mouse, or keyboard to be attached." - Wikipedia
The stock kernel allows Mouse & Keyboard, but USB storage is missing..

Features:
  • Stock and custom kernels supported
  • Mount and Unmount drive with a single click
  • No Ads!
  • Full NTFS support built-in!! (from v3.0.3)
  • Automatically start on device connect (intent broadcast) (from v3.0.3)
  • Notification when drives mounted! (from v3.0.3)
  • One click access to unmount (from v3.0.3)
  • Option to enable UTF-8 if kernel support (from v4)
  • Automatically open explorer after drive mounted (from v3.0.7)
  • One click debugging and feedback (in app) [Donate version only]

What phones are supported?
Sony Ericsson Xperia Neo, Neo V, Ray, Arc and the Arc S! Modules for stock kernel on second post.
If you get it to work on other devices, please PM me and I will add them to the list.

Please note that this app is an "Helper" app.. it will not magically make your kernel support USB Mass storage


What are the requirements?
  1. root (su binary)
  2. busybox
  3. USB OTG cable

How to use on stock kernel?
See this post to load modules!

WARNING
I will not be held responsible for any damage to your device. Do not use for a long time, u may risk burning the device chip/motherboard due to the voltage supply in host mode.

Screenshots and Screencast:






Download:
USB OTG Helper



For modules for stock ROM / other ROMS -> See here.


Changelog:
 

v5 (2012-10-27):
+ Option to select system busybox or in-app busybox (fixes a lot of bugs in newer devices)
= Updated internal busybox binary
= Bumped version number

v4.3.3 (2012-10-26):
+ App log also saved in debug info [debugging data is much more meaningful now]
+ Settings to enable/disable debugging mode [off by default]

v4.2 (2012-10-24):
+ Supports multiple drives via powered hub [sda to sdz block devices]
= (Fix) Folder open intent (still needs OI or ScriptManager)

v4.1.5 (2012-10-20):
= (Fix) umask error (some users could not mount ext2 and ext3 drives)
= (Fix) folder open intent (but works only with some apps eg., OI file manager or Script Manager)
= minor bugfixes

v4.0.0 (2012-07-29):
+ Lots of visual changes
+ Settings (Preferences) activity
+ Changes for ICS (Action bar)
= (Fix) Choice of file explorer to open the mounted drive
= (Fix) Notification is cleared on Unmount
= Code optimizations
- UTF-8 mode off by default (enable in Settings menu)

v3.0.7 (2012-07-04):
+ UTF-8 default if kernel supports nls_utf8
+ Automatically start file explorer after mount

v3 (2012-06-27):
+ Full NTFS support (with write support)!
+ Automatically start app on device connect (intent broadcast)
+ Notification when drives mounted!
+ One click access to unmount
- Removed setup (to support many more devices)
+ Lots of optimization and bug-fixes!

v2 (2012-06-19):
+ NTFS module integrated
+ Bugfixes
+ Now NTFS drive can be explored with ANY file explorer (Fixed bug)



Touble-shooting!:
1. Settings -> "In-app Busybox preferred" -> Uncheck. Then try again.
If still not working:
1. Settings -> Debugging mode -> Check.
2. Do the steps that fail.
3. Send me debugging data (in the app itself)

Credits:
DooMLoRD @xda-developers.com - For the original idea and implementation.
shardul_seth @xda-developers.com - For creating this app.

Bug reports, feedback and constructive criticism , please send a PM



Please do not download from below attachments. They are for historical reasons only.
Attached Thumbnails
Click image for larger version

Name:	Main_v3_small.png
Views:	12859
Size:	69.3 KB
ID:	1160199   Click image for larger version

Name:	main.jpg
Views:	3204
Size:	27.0 KB
ID:	1228610   Click image for larger version

Name:	main_v4.jpg
Views:	100632
Size:	51.9 KB
ID:	1228614  
Attached Images
 
Phone ....: Xperia Neo V
ROM ......: Spacious Smooth ICS -> PAC JB ROM
SDCard....: 16GB Class 4 Sandisk


My Apps: [APP] USB OTG Helper (MAJOR UPDATE) -> DONATE

My ROMs: [Neo/V] Spacious, smooth, light GB and ICS 4.0.4
My Kernels: Suave Kernel and Super Stock ICS

Composed/Posted with WYSIWYG BBCode Editor
The Following 97 Users Say Thank You to shardul_seth For This Useful Post: [ Click to Expand ]
 
shardul_seth
Old
(Last edited by shardul_seth; 1st November 2012 at 11:49 AM.) Reason: One more device (kernel) added!
#2  
shardul_seth's Avatar
Senior Member - OP
Thanks Meter 1561
Posts: 1,063
Join Date: Jul 2011
Database Modules for various devices

This app requires USB OTG support in device kernel..

For stock kernel, you can load the modules required!
For NTFS,EXT4 or specific file system, kernel should support it (natively or modules)
For NTFS write support kernel should support fuse driver (natively or modules)

USB OTG Helper app will automatically load required modules if they are present in /system/lib/modules folder

I am trying to make a collection of modules for various devices. If you know any modules that work with your kernel, please let me know.

Downloads:
- For Xperia PAC-man (JB) Here and for buluk kernel Here
- For Xperia 2011 CM10 (JB) Here - thanks Abhilesh7
- For Xperia 2011 devices .587 Here (Thanks zxp)
- For Xperia 2011 ICS devices (Arc,Neo,Neo V,Mini Pro,Ray etc) Download + UTF-8 support
- For Xperia 2011 ICS FXP kernel / Cyanogenmod Download
- For Xperia 2011 GB v4.0.2.A.0.58 (GB) Download
Attached Files
File Type: zip Xperia-2011-ICS-USB-OTG-modules.zip - [Click for QR Code] (1.50 MB, 11139 views)
File Type: 7z fuse.ko-xperia-2011-new.7z - [Click for QR Code] (157.9 KB, 1830 views)
File Type: zip Xperia-2011-ICS-nls_utf8_module.zip - [Click for QR Code] (247.8 KB, 1681 views)
File Type: zip CM10_modules.zip - [Click for QR Code] (206.8 KB, 3397 views)
File Type: zip modules_PACman.zip - [Click for QR Code] (177.9 KB, 1399 views)
File Type: zip modules_PAC_buluk.zip - [Click for QR Code] (177.9 KB, 976 views)
Phone ....: Xperia Neo V
ROM ......: Spacious Smooth ICS -> PAC JB ROM
SDCard....: 16GB Class 4 Sandisk


My Apps: [APP] USB OTG Helper (MAJOR UPDATE) -> DONATE

My ROMs: [Neo/V] Spacious, smooth, light GB and ICS 4.0.4
My Kernels: Suave Kernel and Super Stock ICS

Composed/Posted with WYSIWYG BBCode Editor
The Following 38 Users Say Thank You to shardul_seth For This Useful Post: [ Click to Expand ]
 
F.A.I.S.A.L
Old
(Last edited by F.A.I.S.A.L; 8th April 2012 at 07:09 PM.)
#3  
F.A.I.S.A.L's Avatar
Member
Thanks Meter 36
Posts: 92
Join Date: Nov 2011
Location: India
thanks bro...
I was looking for this kind of application
-----
tried and working well on my xperia neo v
 
Velcis Ribeiro
Old
#4  
Velcis Ribeiro's Avatar
Senior Member
Thanks Meter 137
Posts: 299
Join Date: Jan 2012
Location: Porto Alegre
No result in ICS When i put SETUP, it says, Copy modules fialed. :X

Not failed, yes FIALED, and click mount and say no modules found.
 
shardul_seth
Old
#5  
shardul_seth's Avatar
Senior Member - OP
Thanks Meter 1561
Posts: 1,063
Join Date: Jul 2011
Sorry, my bad. Not tested on ICS.

For now, you can go to DooMLoRDs thread and download the USB-storage.ko module and manually push to /system/lib/modules, chmod 644. .. Or else, wait for a fix.
Phone ....: Xperia Neo V
ROM ......: Spacious Smooth ICS -> PAC JB ROM
SDCard....: 16GB Class 4 Sandisk


My Apps: [APP] USB OTG Helper (MAJOR UPDATE) -> DONATE

My ROMs: [Neo/V] Spacious, smooth, light GB and ICS 4.0.4
My Kernels: Suave Kernel and Super Stock ICS

Composed/Posted with WYSIWYG BBCode Editor
The Following 2 Users Say Thank You to shardul_seth For This Useful Post: [ Click to Expand ]
 
shardul_seth
Old
#6  
shardul_seth's Avatar
Senior Member - OP
Thanks Meter 1561
Posts: 1,063
Join Date: Jul 2011
@Velcis Ribeiro:
I tested on ICS also, and it seems to work flawlessly here..
Could you post a logcat after you click SETUP..

Also what kernel and ROM are you using.. If you are using night-elf kernel, not need to setup first!!
Phone ....: Xperia Neo V
ROM ......: Spacious Smooth ICS -> PAC JB ROM
SDCard....: 16GB Class 4 Sandisk


My Apps: [APP] USB OTG Helper (MAJOR UPDATE) -> DONATE

My ROMs: [Neo/V] Spacious, smooth, light GB and ICS 4.0.4
My Kernels: Suave Kernel and Super Stock ICS

Composed/Posted with WYSIWYG BBCode Editor
 
emhis
Old
#7  
Junior Member
Thanks Meter 0
Posts: 8
Join Date: May 2011
Default Neo V

on stock rom with root and locked bootloader i cant press the "Setup" is it normal?
 
shardul_seth
Old
#8  
shardul_seth's Avatar
Senior Member - OP
Thanks Meter 1561
Posts: 1,063
Join Date: Jul 2011
If modules are live, setup button is disabled. You may have pressed setup earlier..
other wise it is not normal.
Phone ....: Xperia Neo V
ROM ......: Spacious Smooth ICS -> PAC JB ROM
SDCard....: 16GB Class 4 Sandisk


My Apps: [APP] USB OTG Helper (MAJOR UPDATE) -> DONATE

My ROMs: [Neo/V] Spacious, smooth, light GB and ICS 4.0.4
My Kernels: Suave Kernel and Super Stock ICS

Composed/Posted with WYSIWYG BBCode Editor
 
emhis
Old
#9  
Junior Member
Thanks Meter 0
Posts: 8
Join Date: May 2011
ok i thought that the disabled setup button was the reason of not working mass storage. i found out that the my usb devices requires more power, so im going to buy powered usb hub
 
mondaza
Old
#10  
Senior Member
Thanks Meter 20
Posts: 250
Join Date: Mar 2012
Does anyone know where to buy a cheap USB OTG?