Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,666 Members 39,760 Now Online
XDA Developers Android and Mobile Development Forum

[Script] USB Mass Storage (UMS) for LG Optimus L9

Tip us?
 
mateo1111
Old
(Last edited by mateo1111; 22nd May 2013 at 08:58 PM.)
#1  
mateo1111's Avatar
Senior Member - OP
Thanks Meter 953
Posts: 207
Join Date: Jan 2011
Location: Opalenica

 
DONATE TO ME
Default [Script] USB Mass Storage (UMS) for LG Optimus L9

[Script] USB Mass Storage (UMS) for LG Optimus L9

I've made script that's on every boot changing default USB mode to UMS.
On USB plug it mounts your External SD (doesn't matter if you have swapped IntSD with ExtSD or not )





Method 1 - init.d script (recommended)
Download:
L9-USB-Mass-Storage_fix___mateo1111.zip (221.4 KB)

Requirements:
- CWM
- init.d support (you can easy enable it with this app: Uni-init v1.0.apk - see original thread)

Installation:
- Flash .zip using CWM
(Select "No" in CWM while rebooting.)

How to remove the script? Just delete /system/etc/init.d/30ums.
Attached Files
File Type: zip L9-USB-Mass-Storage_fix___mateo1111.zip - [Click for QR Code] (221.4 KB, 2385 views)
The Following 26 Users Say Thank You to mateo1111 For This Useful Post: [ Click to Expand ]
 
mateo1111
Old
(Last edited by mateo1111; 19th April 2013 at 04:08 PM.)
#2  
mateo1111's Avatar
Senior Member - OP
Thanks Meter 953
Posts: 207
Join Date: Jan 2011
Location: Opalenica

 
DONATE TO ME
Method 2 - using SManager app

Download:
Script:
L9-UMS_fix.sh (229 B)

App to execute script:
Script Manager - SManager

Requirements:
- root

Installation:
- Download script and install SManager,
- Copy script to /system/etc/
- Open script in SManager, tick "SU" and "BOOT" (like on screenshot) and press "SAVE".







_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Quote:
Changelog:
19.04.2013 (L9-USB-Mass-Storage_fix___mateo1111.zip)
- now on first partition will be mounted ExternalSD, second partition will be empty (on first release first partition was empty, on second partition was ExternalSD mounted).

18.04.2013 (L9-USB-Mass-Storage___mateo1111.zip)
--- (first release) ---
The Following 14 Users Say Thank You to mateo1111 For This Useful Post: [ Click to Expand ]
 
cmahendra
Old
(Last edited by cmahendra; 18th April 2013 at 09:43 PM.)
#3  
cmahendra's Avatar
Senior Member
Thanks Meter 4,165
Posts: 3,474
Join Date: Jan 2012
Location: Mumbai

 
DONATE TO ME
Quote:
Originally Posted by mateo1111 View Post
[Script] USB Mass Storage (UMS) for LG Optimus L9

I've made script that's on every boot changing default USB mode to UMS.
On USB plug it mounts your External SD (doesn't matter if you have swapped IntSD with ExtSD or not )



Download:
L9-USB-Mass-Storage___mateo1111.zip (221.5 KB)

Requirements:
- CWM

Installation:
- Flash .zip using CWM


I've tested it on stock V20B and V20C roms - works great ! (should work on other roms too)

How to remove the script? Just delete /system/etc/init.d/30ums.
OMG. GREAT. Something I wanted since long time. Now I can connect the phone to my LCD TV and BlueRay Player directly in USB mode. Thanks (if works)

If this was possible is such a simple step, why those idiots RESTRICETED it?
=====================
Naaaaah!!!

EDIT: Did not work on P765 V20D Hongkong Rom. Tried all USB modes, but it did not loaded as a drive.
The Following User Says Thank You to cmahendra For This Useful Post: [ Click to Expand ]
 
mateo1111
Old
#4  
mateo1111's Avatar
Senior Member - OP
Thanks Meter 953
Posts: 207
Join Date: Jan 2011
Location: Opalenica

 
DONATE TO ME
On my Sony Blu-Ray it works like a charm


Wysłane z mojego LG-P760 za pomocą Tapatalk 2
My builds for LG Optimus L9 (P760):
JB 4.3.x: [CyanogenMod 10.2] / / [SlimBean] / / [PACman] / / [Chameleon OS]

My sources on GitHub:
https://github.com/mateo1111
 
RL77LUC
Old
#5  
RL77LUC's Avatar
Senior Member
Thanks Meter 48
Posts: 269
Join Date: Oct 2009
Location: Trilport
Doesn't work on CM10.1 .

-----------------
Really sorry for my very bad english ...
 
steve1000
Old
#6  
steve1000's Avatar
Senior Member
Thanks Meter 20
Posts: 149
Join Date: Apr 2012
Location: Gmunden
It works like a charm

Sent from my LG-P760 using xda app-developers app
 
mateo1111
Old
(Last edited by mateo1111; 19th April 2013 at 03:25 PM.)
#7  
mateo1111's Avatar
Senior Member - OP
Thanks Meter 953
Posts: 207
Join Date: Jan 2011
Location: Opalenica

 
DONATE TO ME
Quote:
Originally Posted by cmahendra View Post
EDIT: Did not work on P765 V20D Hongkong Rom. Tried all USB modes, but it did not loaded as a drive.
It won't work if you will change USB Mode .
With this script phone on boot is automatically changing usb mode to UMS (UMS is not listed - after connect you should see all positions unchecked)

Quote:
Originally Posted by RL77LUC View Post
Doesn't work on CM10.1 .
Tomorrow I'll try to make script for CM10.1 rom


Edit:
I can't manage it to work on CM10.1 :/ Maybe soon
My builds for LG Optimus L9 (P760):
JB 4.3.x: [CyanogenMod 10.2] / / [SlimBean] / / [PACman] / / [Chameleon OS]

My sources on GitHub:
https://github.com/mateo1111
 
cmahendra
Old
(Last edited by cmahendra; 19th April 2013 at 10:11 PM.)
#8  
cmahendra's Avatar
Senior Member
Thanks Meter 4,165
Posts: 3,474
Join Date: Jan 2012
Location: Mumbai

 
DONATE TO ME
Quote:
Originally Posted by mateo1111 View Post
On my Sony Blu-Ray it works like a charm
Wysłane z mojego LG-P760 za pomocą Tapatalk 2
Now Not working here.

Its strange. I lost 3G connectivity. Is it by any chance related to 3G? May be I am stupid to ask this, but I flashed this and lost 3G. Getting Error 106, internet connection lost.

Edit: It was NOT working here. Typo error)
 
mateo1111
Old
#9  
mateo1111's Avatar
Senior Member - OP
Thanks Meter 953
Posts: 207
Join Date: Jan 2011
Location: Opalenica

 
DONATE TO ME
Quote:
Originally Posted by cmahendra View Post
Now working here.

Its strange. I lost 3G connectivity. Is it by any chance related to 3G? May be I am stupid to ask this, but I flashed this and lost 3G. Getting Error 106, internet connection lost.
This script isn't doing anything with 3G.

Wysyłane z mojego ASUS Transformer Pad TF300T za pomocą Tapatalk 2
My builds for LG Optimus L9 (P760):
JB 4.3.x: [CyanogenMod 10.2] / / [SlimBean] / / [PACman] / / [Chameleon OS]

My sources on GitHub:
https://github.com/mateo1111
 
cmahendra
Old
#10  
cmahendra's Avatar
Senior Member
Thanks Meter 4,165
Posts: 3,474
Join Date: Jan 2012
Location: Mumbai

 
DONATE TO ME
Quote:
Originally Posted by mateo1111 View Post
This script isn't doing anything with 3G.

Wysyłane z mojego ASUS Transformer Pad TF300T za pomocą Tapatalk 2
yes, i also think so. but seems some co-incidence.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes