Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,194 Members 51,587 Now Online
XDA Developers Android and Mobile Development Forum

[Windows/Linux][Source]Optimus G All in One Root/Unlock

Tip us?
(Last edited by TheShadow1; 11th January 2013 at 04:17 AM.)
Senior Member - OP
Thanks Meter 246
Posts: 174
Join Date: Dec 2010
Default [Windows/Linux][Source]Optimus G All in One Root/Unlock

Hello everyone.

I have created an AIO tool for the Sprint LG Optimus G. (G AIO, or GAIO).

I am trying to spur up more people to get interested in rooting and unlocking their devices to get more action around here. I have coded this AIO tool quickly to help those who can not find root/unlock information, are too lazy to do it, or don't know how to use it.

The AIO tool supports both Linux and Windows (Not sure about Mac OS X, please don't test on Mac because I won't know the outcome).

The tool supports both unlocking the bootloader and rooting the device via Linux AND Windows. The AIO tool is programmed in Java to allow that to happen.

Before I continue, I would like to point out I did not make the unlock/root methods.

Credits for the Root method:

Credits for the Unlock method:

Here is a screenshot of the program under Windows:

I have released the source to Github for all to see and use:

Current Version: 1.50



Fixed root detection bug
Automate root scripts. You no longer have to press '1' to activate the scripts
Add confirmation dialog for rooting, unlocking, installing recovery etc.
Fixed bug where adb server was not killed on application close
Fixed deleting temporary files on exit
Added software version check to check if device is supported. ZV9 added to unsupported list at the time
Updated Bin4y root scripts to v18
Modified those root scripts to work automatically
Added JSON library. Example of use, Allows for dynamic elements in program
Added recovery installer! Needs internet connection. Currently supports TWRP and clockwork
Added element to check if device bootloader is unlocked
Add boot restore function! Restore your boot.img if you flashed a bad kernel. Requires internetc connection
Added automatic LG Driver installer. Requires internet connection
LG Installer will check if Windows driver is installed, if not, gracefully ask the user to install it.
Added an update function. This only checks for an update if you are connected to the internet
The update is checked on start, once, in the background and only annoys you if you are out of date
Update Swing GUI threading the correct way, since Swing is not thread safe
Fixed many graphical errors
Fixed some exceptions
Fixed many other random bugs and cleaned up some code


Initial Release
Future Additions:
Remove Root
Remove Unlock
Implement Reboot menu (recovery, bootloader etc.)

I hope this is useful for some people, my intention was to centralize and ease the rooting and unlocking process. I am sorry if the program doesn't work for your specific computer. I am also sorry if my code is a little unorganized, as this was made rather quickly.
The Following 48 Users Say Thank You to TheShadow1 For This Useful Post: [ Click to Expand ]
Senior Member
Thanks Meter 93
Posts: 358
Join Date: Dec 2010
Thanks bro i haven't rooted yet still waiting on this update ( jellybean ) too come ... fingers crossed

But when i do i will def use this. THANKS FOR YOUR HARD WORK AND TIME BRO.
Senior Member
Thanks Meter 58
Posts: 524
Join Date: Nov 2012
I'm rooting after finals but if this works with windows 8 and only takes one click, I may just root this week!

Sent from my LG-LS970 using Tapatalk 2
Senior Member - OP
Thanks Meter 246
Posts: 174
Join Date: Dec 2010
Should work with Windows 8. No reason it shouldn't. Let me know how it goes and thanks for your interest.
_Epic's Avatar
Senior Member
Thanks Meter 1,187
Posts: 1,814
Join Date: Apr 2011
Location: Lakeland, FL

Sent from my LG-LS970 using xda premium

If you enjoy my work or I have helped you in anyway, let me know. Hit the "Thanks" button.
Junior Member
Thanks Meter 8
Posts: 25
Join Date: May 2010
Just used this to root, works perfectly and very easy. Thanks a lot!
engine95's Avatar
Recognized Contributor
Thanks Meter 1,070
Posts: 1,846
Join Date: Oct 2008
This is awesome! It'll definitely generate more interest here.
I've been rooted and unlocked as soon as available. And loving it. This phone will come into its own soon. Thank you.

Sent from my LG-LS970 using xda premium
Thanks to HPTesla and PartimusPrime!!! Whoohoo!!
Senior Member
Thanks Meter 9
Posts: 126
Join Date: Dec 2009
This is great. Hope you can add a rom into it when roms start coming . I am still not at my upgrade time, but soon
Thanks Meter 5
Posts: 44
Join Date: Nov 2012
Location: San Diego
Great news!

Sent from my Nexus 7 using xda app-developers app
HTC EVO 3D: S-Off, HBoot 1.50, CyanogenMod 11.0 - VILLUMINATI
LG Optimus G: OFFICIAL CM11.0
LG G3: Stock
Senior Member
Thanks Meter 21
Posts: 212
Join Date: Mar 2010
Going to give this a try in a few minutes I have been to lazy and with school and a family I do think have a lot of free time. With any other device I'm usually rooted within the first day of owning it just didn't have a huge need this phone is dang good stock

Thread Tools
Display Modes