[How-To] Root LG Optimus S

Status
Not open for further replies.
when i try to push the file i keep getting an error "device not found" ? didn't have this problem with my hero so not sure...

try unplugging your phone and then plugging it back in. and reopen the command prompt.
 
Hi,

I'm new to the forum, but I've done a lot of work on the Samsung Moment. I'm a dev over at SDX-Developers but am wanting to learn about this phone since my wife is gonna be getting it tomorrow. SDX is pretty insulated from the rest of these forums (we only support Samsung phones, do not have working CM) so I don't know how kernel flashing works for you guys. Can I use just about any kernel out there for this phone, or only ones listed under the Optimus forum? It appears there aren't any stickied. At SDX there's no question, since everything is well organized. Are there subforums for this phone, like Development, Themes, Kernels, etc, that I'm just missing, or is this a pretty new forum? Hopefully you understand my confusion. And thanks in advance.
 
Finally got mine rooted after a couple of tries! Not sure why it finally took for me, though I actually didn't start the SDK manager... when root didn't take at the middle of step 4, I killed all adb processes and quit the SDK manager started again at the beginning of step 4 "adb push..."
 
The Mac Guide

Using a Mac to Root the LG Optimus S

I originally used a PC to root my LG Optimus S however I primarily use a Mac and wondered if there was an easy way to do it. I?ve decided to write this guide for people using a Mac primarily because there are some steps you can skip vs. using a PC. As always you can use Z4Root but there is something about knowing some of the ADB Commands that you should people should be familiar with.

1. Download Android SDK from Android SDK for Intel Macs
A. This will download a .zip file to your default download directory this is more or less going to be ?downloads.?

2. Unzip the package to the desktop and rename it to something easy like ?Android.?

NOTE: On my Mac there I didn?t have to download Java OR the LG Drivers.

3. Download Optimusroot.zip this will also go into the downloads folder. Extract the files and move them to the (Android>Tools) folder that you placed on your desktop earlier.

4. Make sure you have USB Debugging Enabled on your phone ?Menu>Settings>Applications>Development? ---CHECK USB DEBUGGING---
usb-debugging-g1-android.png


5. Open the ?Android? folder (created earlier) and right click on the folder named ?tools? then select ?get info?.
6MQmm.png


6. Then you will copy the file location, you need the location when you are going to use the Terminal to Root your device.
WNlmS.png


7. Next you will connect your LG to your Mac?ignore & cancel the network setup notification that pops up.

8. On your Mac go to Applications>Utilities>Terminal

9. Now? in the Terminal PASTE the folder location ie:
/Users/Michael/Desktop/android_mac

NOTE: You HAVE to add the where the tools are located to start ADB SHELL? ie:

/tools/adb shell

You should end up with something like:

/Users/Michael/Desktop/android_mac/tools/adb shell

Hit <ENTER> or <RETURN>
yjnik.png



You should see something like above except you will have a ?$? sign instead of a ?#? sign this means you are not yet rooted.

10. From here you can follow KSmithInNY?s STEP 4
Step 4:
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
 
Using a Mac to Root the LG Optimus S

I originally used a PC to root my LG Optimus S however I primarily use a Mac and wondered if there was an easy way to do it. I’ve decided to write this guide for people using a Mac primarily because there are some steps you can skip vs. using a PC. As always you can use Z4Root but there is something about knowing some of the ADB Commands that you should people should be familiar with.

Nice. Ksmith, I vote you add a link to this post on the first page!
 
Hope everyone that benefits from the MAC post, or is just generous, gives mfldmike a "thanks" (button is on the bottom of his post #225). Love it when people jump in with stuff like that.
 
I was having problems, but what worked for me was to install and run Superuser after running the command "./rageagainstthecage" (and waiting 2 minutes). Then when I went to adb shell and got the $ I typed su Superuser asked for permission to run it as root (on the phone). I gave it permission and it went to a # right away. Then I proceeded with the mount and copy commands. Hopefully that helps those with issues.
 
  • Like
Reactions: draenub
Hope everyone that benefits from the MAC post, or is just generous, gives mfldmike a "thanks" (button is on the bottom of his post #225). Love it when people jump in with stuff like that.

I sent him a thanks even though I don't use a Mac. As an Ubuntu user, I know what it is like to try to adapt Windows-specific instructions to meet my needs. I just got my phone last night and was able to root it at work this morning on my work XP machine, but tonight I'm going to try to get it working on Ubuntu. If successful, I'll post a similar Ubuntu guide to mfldmike's Mac guide.

EDIT: working Ubuntu guide was already written by someone else, can be found here:
http://esausilva.com/2010/05/13/setting-up-adbusb-drivers-for-android-devices-in-linux-ubuntu/
 
Last edited:
I sent him a thanks even though I don't use a Mac. As an Ubuntu user, I know what it is like to try to adapt Windows-specific instructions to meet my needs. I just got my phone last night and was able to root it at work this morning on my work XP machine, but tonight I'm going to try to get it working on Ubuntu. If successful, I'll post a similar Ubuntu guide to mfldmike's Mac guide.

Nice. Personally I would recommend starting a new thread for a new set of instructions, that way people can ask platform specific instructions if they have problems/questions.

Then again, if those don't get as many views as the original thread, I suppose it might fragment the helpful responses and alienate some users. I dunno, just trying to think of how to help keep this straight forward and informative for everyone.
 
I sent him a thanks even though I don't use a Mac. As an Ubuntu user, I know what it is like to try to adapt Windows-specific instructions to meet my needs. I just got my phone last night and was able to root it at work this morning on my work XP machine, but tonight I'm going to try to get it working on Ubuntu. If successful, I'll post a similar Ubuntu guide to mfldmike's Mac guide.

I would think the Ubuntu instructions would be quite similar just because of the O.S.'s.
 
I would think the Ubuntu instructions would be quite similar just because of the O.S.'s.

I'm thinking the same thing. I read that beezy does his work in Ubuntu, so it can be done. Once you can get to adb shell it's all the same anyway. Just need to get things set up.
 
I sent him a thanks even though I don't use a Mac. As an Ubuntu user, I know what it is like to try to adapt Windows-specific instructions to meet my needs. I just got my phone last night and was able to root it at work this morning on my work XP machine, but tonight I'm going to try to get it working on Ubuntu. If successful, I'll post a similar Ubuntu guide to mfldmike's Mac guide.

Oh gosh, please do. I'm an Ubuntu user, but a complete noob at it still in spite of >1 year of it being my only OS. I get my Optimus tomorrow, and I'm already wanting to root it.
 
Oh gosh, please do. I'm an Ubuntu user, but a complete noob at it still in spite of >1 year of it being my only OS. I get my Optimus tomorrow, and I'm already wanting to root it.

I'll try to get to it tonight while watching Cleveland fans throw things at LeBron. It would still be worth your while getting familiar with the instructions in post 1, because just like the instructions for the Mac, any instructions I come up with will basically just get the environment software installed and get you to the point of getting in the adb shell. At that point it should be the same no matter what OS you are using.
 
Feeling like a total idiot, but when i reach the part in step 4 to push the files with adb, i get no transfers, instead i get "175 KB/s <0 bytes in 5392.000s>, the phone is connected but doesn't seem to accept the files, also, again at the risk of sounding dumb, this might be because i don't seem to have the option to connect my phone as "charge only", the option isn't available anywhere that i can see

thanks for the effort!
 
Feeling like a total idiot, but when i reach the part in step 4 to push the files with adb, i get no transfers, instead i get "175 KB/s <0 bytes in 5392.000s>, the phone is connected but doesn't seem to accept the files, also, again at the risk of sounding dumb, this might be because i don't seem to have the option to connect my phone as "charge only", the option isn't available anywhere that i can see

thanks for the effort!

"Charge only" is the default...it just means NOT to mount the phone as a drive on your computer. If you plug your phone in to your computer and do nothing else, you are in "charge only" mode. As for the bytes, I don't have an answer for that. I can't remember what mine said, but the video that iamlilysdad made (linked from post 1) definitely shows numbers greater than 0.
 
Nice. Personally I would recommend starting a new thread for a new set of instructions, that way people can ask platform specific instructions if they have problems/questions.

Then again, if those don't get as many views as the original thread, I suppose it might fragment the helpful responses and alienate some users. I dunno, just trying to think of how to help keep this straight forward and informative for everyone.

Well, I like how the Mac write-up was handled - a link to it in the first post, to keep everything in one thread. I agree with you if it was a whole new set of instructions, but in the Mac case, it was really just a different set of initial instructions to get the Mac people up to the point where they can do the adb stuff.

Anyway, I was going to do the same for Ubuntu, but when I googled an issue related to the sdk manager, I discovered that someone already did it:
Setting Up ADB/USB Drivers for Android Devices in Linux (Ubuntu) ? Esau Silva

Following this set of instructions, I was able to get everything set up in minutes all the way up to step 4 of post 1 of this thread.
 
  • Like
Reactions: shortyjacobs
Status
Not open for further replies.