[How-To] Root LG Optimus S

Status
Not open for further replies.
I rooted my phone maybe a week ago, and Ive noticed that I no longer recieve incoming calls, Im told it goes straight to voicemail. I can call out, get text messages, and voicemail. has there been any issues with rooting to cause this problem? because Im thinking I cant really call sprint to get there help.

I've had 4 different rooted phones and have never seen that before.

Do you have call forwarding set up or something not quite right in the settings?

Sent from my myTouch 4G
 
Ok, so I'm using Z4Root, I just don't have the balls to do all this by myself.
Once I root using Z4 where in the step by step do I pick up? I tried to backup using Titanium but it's not working, even when I have it load Busybox it says that it can't backup.
Any suggestions?
 
Ok so im ready to do this but I cant get the Drivers.....My phone is not an option for the drivers....and it says that the drivers could not be installed......does it matter if I have the drivers? if so where can I get them?
 
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.

To MAC users: Please see THIS POST by mfldmike to get you going.

For those who learn visually, iamlilysdad has put together an awesome walkthrough video of this process which you can find HERE

Complete Idiots guide to Rooting the Optimus S can be found HERE. Thanks Dishe.

What You'll Need:
- Sun JRE, FOUND HERE
- The Android SDK, FOUND HERE. 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./\

This method has been confirmed on V6, V8, and V9 versions of the Optimus S software.
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
exit
exit

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, tweak, or modify your phone, 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 :D

Thanks:
gbhil - as always thanks, you rock rainman lol.
Sebastian Krahmer - 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.
um i keep getting the $ no matter how long i wait or try i cannot get the # symbol am i doing something wrong or havent downloaded everything?
 
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
exit
exit
Curious, on my Optimus /system is actually mounted from /dev/block/mtdblock5 (mtd5, not mtd4)

Is there a reason the instructions use mtdblock4? Is it different for some Optimus units?

Perhaps it would be more universal to use this command since it is a remount.

mount -o remount,rw -t yaffs2 /system /system

The command as written still works for my unit, but probably because mount is ignoring the source partition on a remount.

Code:
# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00700000 00020000 "boot"
mtd1: 07c20000 00020000 "cache"
mtd2: 00700000 00020000 "recovery"
mtd3: 00140000 00020000 "splash"
mtd4: 00700000 00020000 "FOTA_STO"
[b][u]mtd5: 09e80000 00020000 "system"[/u][/b]
mtd6: 0a4e0000 00020000 "userdata"
mtd7: 00080000 00020000 "misc"
mtd8: 00180000 00020000 "persist"

# mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
/dev/block/mtdblock1 /cache yaffs2 rw,nosuid,nodev,noatime,nodiratime 0 0
[b][u]/dev/block/mtdblock5 /system yaffs2 ro,relatime 0 0[/u][/b]
/dev/block/mtdblock6 /data yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/mtdblock8 /persist yaffs2 rw,nosuid,nodev,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/vold/179:1 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,u
id=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relat
ime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
 
Curious, on my Optimus /system is actually mounted from /dev/block/mtdblock5 (mtd5, not mtd4)

Is there a reason the instructions use mtdblock4? Is it different for some Optimus units?

Perhaps it would be more universal to use this command since it is a remount.

mount -o remount,rw -t yaffs2 /system /system

The command as written still works for my unit, but probably because mount is ignoring the source partition on a remount.

Nope no reason, just a typo. But as you said, a typo that doesn't matter 1 way or another.

OP is changed. Thanks
 
Rooting

I am currently trying to root my Optimus S and when I open the command window in sdk it wont let me type. Any help?
 
I am currently trying to root my Optimus S and when I open the command window in sdk it wont let me type. Any help?

You need to open the cmd prompt on your pc with sdk open. All commands are entered there.

Swyped from my LS670 using Tapatalk
 
the "command" window that pops up when you start sdk isnt the command window you need...(however you need that sdk up and running while u do ur stuff).

go to START in the SEARCH section. type CMD and then hit enter..etc...
 
it wont return the # symbol

Try entering su and hit enter after the $. If you still get $ you need to try again. I had to go through the steps 3 or 4 times to get it to finally take.

One thing that worked for me was instead of waiting two minutes while your device remounts the usb connection after running the rageagainstthecage script just wait until you see your phone remount and then proceed. That's what finally did it for me.

Swyped from my LS670 using Tapatalk
 
It took me quite a few try's but I got it! You were right about doing it myself versus the 1 click method. I love the feeling of acomplishment!!!
 
what if i keep getting
adb: permission denied

?

I'm getting the same problem. I get this after I type the first line "adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage" . . . :(

By the way, I'm attempting this on a Mac while following the instructions from mfldmike.
 
Last edited:
Status
Not open for further replies.