Android Forums at AndroidCentral.com >  LG Optimus Forums >  T-Mobile Optimus T > [How-To] Root LG Optimus T

[How-To] Root LG Optimus T

Reply
Like Tree1Likes

 
Thread Tools Search this Thread
    Thread Author   #1  
Old 11-06-2010, 03:27 AM
AC Forums Android Developer
Device(s): Too many to list
 
Posts: 3,620
Location: Rochester, NY
Join Date: Oct 2009
Thanked 1,506 Times in 510 Posts
Likes Received: 113
Activity: 1/20
WARNING - This is a cat and mouse game we play with manufacturers. I guarantee you an update will come from LG that patches this exploit and will prevent people from rooting. It will also close your root access if you've already rooted using this method. Long story short, NEVER ACCEPT OTA UPDATES FROM THE CARRIER OR MANUFACTURER.

Notice: There is now an application available called z4root which roots your phone using the same method detailed below. This has been confirmed to work on the Optimus line. Click THIS for more information. I feel the knowledge gained by doing this process yourself rather than a 1-click method will prove to be invaluable down the road if/when you encounter any issues but either way works.

For those who learn visually, iamlilysdad has put together an awesome walkthrough video of this process which you can find [Only registered users can view links. ]

What You'll Need:
- Sun JRE, [Only registered users can view links. ]
- The Android SDK, [Only registered users can view links. ]. Install this on the root of your computer so the path is C:/android
- Drivers for the LG phone installed on your computer. Instructions can be FOUND HERE courtesy of our favorite android hacker, modder, developer, blogger (jack of all trades) gbhil
- And the file I have attached to this post. Download it, unzip it, and put the 3 files inside in your android-sdk-windows\tools folder created from installing the SDK.

/\You need to have installed/done all of the stuff in the "what you'll need" section. From this point on I'll assume you've done that./\

Ready?:
Step 1: Plug your phone into your PC with the USB cable.

Step 2: Make sure the phone is charge only (don't mount as USB drive) and USB debugging is enabled. Menu > Settings > Applications > Development > check mark USB debugging

Step 3: Launch the SDK manager, should be something like C:/Android-sdk-windows SDK Manager

Step 4: Open a CMD window and type the following:
cd c:\wherever-your-sdk-tools-folder-is (mine for example is C:\android\tools however in the new SDK the correct directory would be "Platform Tools", and not just "tools". See what you have on your directory)
adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage
adb push su /data/local/tmp/
adb push busybox /data/local/tmp/
adb shell
chmod 4755 /data/local/tmp/rageagainstthecage
chmod 4755 /data/local/tmp/busybox
cd /data/local/tmp
./rageagainstthecage (let things sit a couple minutes (2), your phone will disconnect from the computer and you'll be removed from your ADB session)
adb shell This should return a "#" symbol instead of a "$" symbol. If it does you're good. If not go back and start from the beginning of step 4
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
cd /data/local/tmp
./busybox cp su /system/bin
./busybox cp busybox /system/bin
cd /system/bin
chmod 4755 su
chmod 4755 busybox
busybox --install /system/bin
exit
exit

If you get to this step "busybox --install /system/bin" you get an error, do this:

4-A) Download superuser (free) from chainsDD in the market (this is step 5 below)
4-B) Download titanium backup (free) in the market
4-C) Launch titanium. You should get a request to give it root permissions select always allow. Now in titanium, hit the "problems" button and let it install busybox
4-D) Reboot phone and enjoy

Some phones are having a problem on that step while others are not.

Step 5: Go to the android market on your phone and download "Superuser"(free). The developer will be listed as ChainsDD.

Donations:
What I ask is, if this helps you root, please watch this thread and help someone who may be experiencing issue. Yes, I am asking you to donate your time. The same donation I made while writing this so you could root your phone

Thanks:
gbhil - as always thanks, you rock rainman lol.
[Only registered users can view links. ] - Without your exploit many phones would not be rooted today.
iamlilysdad - for making the walkthrough video and sticking around and providing so much support for new users during this process.
Attached Files
File Type: zip OptimusRoot.zip (1.00 MB, 2030 views)

Last edited by KSmithInNY; 12-22-2010 at 04:12 PM.
    Thread Author   #2  
Old 11-06-2010, 03:03 PM
AC Forums Android Developer
Device(s): Too many to list
 
Posts: 3,620
Location: Rochester, NY
Join Date: Oct 2009
Thanked 1,506 Times in 510 Posts
Likes Received: 113
Activity: 1/20
Everything in this post assumes you've successfully rooted your phone.
Now what?:
-Memory Management -
The optimus has not so great lowmemory settings. This will improve that.
1) Download the free app from the market called "Minfreemanager" (free)
2) Launch the app and you'll notice the following numbers:
6, 8, 16, 20, 22, 24

For an explanation of what these numbers mean GO HERE and read an excellent in-depth explanation by Jerry Hildenbrand

3) From inside Minfreemanager hit the menu button and select "presets". Because you have a second gen device, you can select "aggressive" without a care in the world.
4) After selecting aggressive the numbers should now reflect
6, 8, 16, 32, 64, 96
5) Press the menu button and select "apply"
NOTE - This is not a sticky change and even if you select "apply at boot" it will not work. Every time the device is rebooted you will need to open the minfreemanager app and re-apply the aggressive setting but this should keep you're phone running like butter

-Cache Management-
Android has a tendency to cache everything it seems like. Now you can reclaim that space.
There are 2 really great cache cleaning apps for rooted users. CacheMate for root users and Cachecleaner. Both can be obtained for free but cacheMate for root users has a paid version (not currently showing in the market, soon) which gives you much much more customization and caches available to be cleaned. Also i prefer the free version of CacheMate over the free version Cachecleaner because it lets you pick which caches you'd like deleted, cachecleaner does not. Thats just a preference of mine.

Last edited by KSmithInNY; 11-07-2010 at 02:14 PM.
  #3  
Old 11-06-2010, 04:23 PM
AC Cowboy
Device(s): Yes
ROM/Kernel: Homebrewed
My Next Device: Yes
 
Posts: 4,816
Location: Wild and Wonderful
Join Date: Oct 2009
Thanked 2,169 Times in 538 Posts
Likes Received: 309
Activity: 8/20
Awesome. LG seems to know the score, and is selling hardware that hasn't been locked down.

Now I'm off to KMart, I need some underwear
  #4  
Old 11-06-2010, 04:42 PM
Device(s): LG Optimus T
ROM/Kernel: mik_os CM7
 
Posts: 144
Join Date: Nov 2010
Thanked 32 Times in 31 Posts
Likes Received: 18
Activity: 0/20
Thank you! I'll be picking up one of these on Monday. Just need to do some general do's, don'ts and just in case research to feel comfortable before jumping in. THANKS AGAIN!!
    Thread Author   #5  
Old 11-06-2010, 09:16 PM
AC Forums Android Developer
Device(s): Too many to list
 
Posts: 3,620
Location: Rochester, NY
Join Date: Oct 2009
Thanked 1,506 Times in 510 Posts
Likes Received: 113
Activity: 1/20
Quote:
Originally Posted by gbhil View Post
Awesome. LG seems to know the score, and is selling hardware that hasn't been locked down.

Now I'm off to KMart, I need some underwear
lol oh boy! Too funny man

Quote:
Originally Posted by Turducken View Post
Thank you! I'll be picking up one of these on Monday. Just need to do some general do's, don'ts and just in case research to feel comfortable before jumping in. THANKS AGAIN!!
You're welcome. I will have updated root instructions posted shortly. They are slightly longer but no more difficult.

The only thing i ask is when you root, stick around the thread and help the folks out who bump into issues. Seems like a fair trade to me
  #6  
Old 11-08-2010, 02:22 PM
 
Posts: 38
Join Date: Nov 2010
Thanked 1 Time in 1 Post
Likes Received: 0
Activity: 0/20
Help! its asking: Usage: chmod <mode> <file>
    Thread Author   #7  
Old 11-08-2010, 03:20 PM
AC Forums Android Developer
Device(s): Too many to list
 
Posts: 3,620
Location: Rochester, NY
Join Date: Oct 2009
Thanked 1,506 Times in 510 Posts
Likes Received: 113
Activity: 1/20
Quote:
Originally Posted by Lightos View Post
Help! its asking: Usage: chmod <mode> <file>
Where in step 4 are you? Please show me what you're screen (CMD) looks like. Also just to verify, you're on a PC (not a mac), correct?

Also to eliminate spelling/typos from being a problem, when you get to this line - adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage you can pretty much copy and paste right into the CMD window. Another side note, make sure you are NOT mounted as a USB drive.

The optimus T and optimus S share the same kernel so considering the optimus T came out first and the exploit wasn't patched by this weekend when the optimus S shipped, this method will work.

Last edited by KSmithInNY; 11-08-2010 at 03:29 PM.
  #8  
Old 11-08-2010, 05:20 PM
AC Forums Super Mod
Device(s): One X
ROM/Kernel: Stock
My Next Device: Transformer Prime
 
Posts: 5,348
Location: Indiana, USA
Join Date: May 2010
Thanked 392 Times in 288 Posts
Likes Received: 120
Activity: 15/20
just picked up the phone today. will be attempting this tonight. what goodies do you have in store for us ksmith?
  #9  
Old 11-08-2010, 05:53 PM
 
Posts: 3
Join Date: Nov 2010
Thanked 0 Times in 0 Posts
Likes Received: 0
Activity: 0/20
Works like a charm...............thank you. No more demo games here or useless apps.
    Thread Author   #10  
Old 11-08-2010, 06:33 PM
AC Forums Android Developer
Device(s): Too many to list
 
Posts: 3,620
Location: Rochester, NY
Join Date: Oct 2009
Thanked 1,506 Times in 510 Posts
Likes Received: 113
Activity: 1/20
Quote:
Originally Posted by iamlilysdad View Post
just picked up the phone today. will be attempting this tonight. what goodies do you have in store for us ksmith?
It's you!!!! Welcome. Try my free wireless tethering exploit before you root. Would be curious if it works on the T.
Thanked by ___TAKUMI___