[How-To] Root the LG Optimus V
This guide will show you how to get a permanent root on your Optimus V, WITHOUT flashing a custom recovery.
Much of this post comes from KSmithInNY's Guide to rooting the Optimus S which can be found HERE. Thanks to KSmithInNY for letting me use his guide as a base.
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.
What You'll Need:
- Sun JDK,
- The Android SDK, . Install this on the root of your computer so the path is C:/android. After you've installed the SDK, make sure it's up to date by launching the SDK Manager. This will be something like c:\android\SDK Manager.exe. It will ask you to update several things, but the only one that needs to be up to date is the SDK Platform for Android 2.2
- 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
- SuperOneClick v1.6.3, which is available from xda-developers .
- And the file I have attached to this post. Download it, unzip it, and put the 2 files inside in your android\platform-tools folder created from installing the SDK.
Before you go any further, make sure you have downloaded/installed/updated everything in the list above, or will you not be able to complete the root.
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: Run SuperOneClick.exe. Select the psneuter exploit on the right, and then click the Shell Root button. SuperOneClick will attempt to gain a temporary root for your phone. This may take several tries. Keep trying until you get a message that says "You phone has a Temp ADB Root". Leave this window open, do not reboot your phone, and continue to step 4.
Step 4: Open a CMD window and type the following:
cd c:\wherever-your-sdk-tools-folder-is (mine for example is C:\android\platform-tools).
(After entering the next line, adb shell, you should have a "#" prompt, if instead you see "$", SuperOneClick has not been able to gain access to your phone. Go Back to step 3 and try again).
mount -o remount,rw -t yaffs2 /system /system
adb push su /system/bin
adb push busybox /system/bin
chmod 4755 su
chmod 555 busybox
(Your phone will now reboot)
Step 5: Go to the android market on your phone and download "Superuser"(free). The developer will be listed as ChainsDD. You can then download TitaniumBackup and attempt to backup your phone. It will also check to make sure your phone has been rooted correctly. It you don't get any errors, your phone has been rooted correctly!
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
Simple Explanation of commands and programs:
busybox - busybox is collection of Linux utilities to manipulate files and many other things. Many programs that require root use busybox to copy files and move them around, among other things.
su - su allows programs to run with higher (e.g. root) permissions.
adb shell - Logs you into your phone and allows you to enter commands directly
exit - Logs you out of your phone
adb push - Sends a file to your phone
mount - Allows you set up file systems as read/write instead of read only, among many other things
cd - Changes to whatever directory is specified
chmod - Changes the permissions for the file specified. the number 4755 simply tells the linux system that anyone can run the file.
Last edited by RevolutionRed; 02-14-2011 at 04:01 PM.Thanked by 163:
+ Show/Hide list of the thanked
-_-DrOiD, acidminded, adamshep, muoi13, alec2504, alisonc, AndyOpie150, Arceadrian, shindig, bcrest1, BigBooyaw, bmwkeith, BorisBadinov, bpcnabe, brainwash, bunanson, checcles, ChewySquirrel, chrisboice, cnega, cobracat03, ComputerScienceMajorInProgress, curtvan, cybermaniak, darknighte, daskdt, Dav3yDark0, daveh2676, dcannoli, Deal Trees, demoptimus, denshigomi, desper0, devanttrio, dhiru2000, dj miah 23, DPackMan, dphm, Dr.Hax, drewdad, dualmatrix, ejlmd, elbertchu, eldude43, Ellipse#AC, emillan, EnBat43, eyepilot, FANTTOMAS, fieryfennix, fix4all, furrynerfherder, gr8mike01, gunndaddy, HallJust, HiTKiDx, ictshocker, Ili3kca3k, jaysacto, jbustamovej, jenonfirex, jerk714, JerryScript, jkct, jocibrielle, JustinW396, jyklly, karel.smith, kekoaclark, keltin, Kiernon, kramerjm, Kreatur3, Kroto Smith, KSmithInNY, Lumify, lwlamar, m.w.stemple, maddogpro, MadOne#AC, Malaclypse the Younger, maniac79, Mauddib36, mcclain71, mclaiborne, mereidmo, merow42, Mikeh0918, mikeladue, milkdwatkins, mmkaho, moose93, Moosebreath#AC, motorhedd, mrg666, msiers, New_Droid, Noodles#AC, notsohazyanymore, nphektor, Nxflash, odoketa, omgwtfmason, OptimusNate, pete84, petenavey, pjzeman3, plutonia, podux, poppybe, RavinX, rawdawg22, raynoldsk, rickkeyser, rlbaird9161, rmagallon000, RockOut, RWerksman#AC, RyanJKremer, sandy12155yang, SecondVariety, shanetj, shawne11, SillyHalfMexican, SillyTA, sixit, SlimeyBooger, smankins, spaids, SPeD iNC, Spikemikefiftyseven, Spliffferous, nickmiller71, sstoner, staticpelle1000, steckle, stev101113, StevenOptimusV, stiingya, supermanstwin, takehull, TankMcFragface, thechronicle87, TheContorted, thisisnotmyname, thislandisyourland, ThunderFluff, tomtwo78, triscut, twiztidmf, ultramanjones, veebayerr, voljames, whistle, whitley42005, wolvius, yroc1234, zapittwice, zedorda, Zeldster, zires
- 02-01-2011, 01:22 AM #2
- 02-01-2011, 10:56 PM #3
- 02-01-2011, 11:53 PM #4
- 02-01-2011, 11:56 PM #5
1. Flash a custom recovery that will put whatever rom you want on the phone
2. Do the perm root manually, as I've shown above.
- 02-02-2011, 12:13 AM #8
1. Reversed Home and Menu keys on all roms (and custom S kernels).
2. No accelerometer on Xionia kernel (as of version 005) UPDAT:E It DOES work with the stock VM rom if you wipe EVERYTHING (data,cahce,etc).
3. Sprint branding and programs on Thunderom
1 is easily fixed with buttonremapper. 3 is simply because that rom is meant for a sprint phone.
I think the stock VM rom with beezy's kernel is the way to go at the moment as the only thing you'll need to do is remap the buttons and you'll get a speed boost. Various versions of both beezy's kernel and xionia are available HERE (4th post down). It'd be nice to get some rom projects going for the V, but there's nothing in the works that I know of.
UPDATE: Xionia works as well if you wipe everything (data,cache,etc) and use the stock VM Rom.
Last edited by RevolutionRed; 02-02-2011 at 04:15 PM.
- 02-02-2011, 01:27 AM #10Hipster Retro Jelly Bean
- 151 Posts
- Android 4.1 Jelly Bean!
- 02-02-2011, 02:03 AM #11
For anyone that's seen me post about the accelerometer not working with Xionia,
Xionia works correctly if you do a clean wipe (EVERYTHING data, cache, etc.) and use the stock VM rom. So, the accelerometer issue not kernel related. Both beezy's kernel and xionia work correctly.
- 02-02-2011, 04:17 PM #13
If I choose to install any kernel, do I always have to go in through ADB and put in specific commands?
edit: If I put the kernel on the root of the SD card, can I just rename it to "update" so I can use the second option on LG's recovery to "apply sdcard:update.zip" ?
Last edited by cnega; 02-02-2011 at 04:27 PM.
My personal opinion is that if you're going to install a new kernel, you might as well go the whole way and install a customs recovery as well (which makes it much easier to change things if something goes wrong). The guide found HERE works perfectly for the V. You'll get one error on the "install-recovery.sh" command, but it doesn't matter and you can safely ignore it.
After you've installed the custom recovery, installing a new kernel is as easy as putting it on the SD card, and selecting Flash Zip from the recovery menu.
One word of warning though, as of right now, no one has posted a complete guide and all the files needed to return the V to stock form once you install the custom recovery, so until someone does, it's a one-way street.
UPDATE: There's a new thread that shows how to return to the phone to stock, so there's no downside now!
Last edited by RevolutionRed; 02-03-2011 at 05:33 PM.
- 02-02-2011, 05:08 PM #15
I already posted this in another thread about the stock dump but here it is again. My girlfriend just got hers yesterday and It hasnt been rooted or anything. Could I somehow adb temproot her phone and pull the stock recovery image off of it? I have been searching all over for a command to adb pull recovery image but nothing works because technically its not in the system itself. I know with my Nexus One I had Fastboot mode but this phone doesnt from what Ive seen. Let me know if anyone thinks this is possible.
Open up a command window and cd to your android/platform-tools directory.
type the following
adb shell (logs you into the phone, you should see the # prompt)
cat /dev/mtd/mtd0 > /sdcard/stock-boot.img
cat /dev/mtd/mtd2 > /sdcard/stock-recovery.img
You should now have two files on your sd card called stock-boot.img and stock-recovery.img. Post them on the forum and I'll take a look an see if I can't get a post up on how to undo rooting and restore the phone to stock.
BTW, this shouldn't do anything to the phone at all, if you reboot the root will be gone.
- 02-02-2011, 11:49 PM #17
- 02-03-2011, 12:24 AM #18
- 02-03-2011, 11:00 AM #19
- 02-03-2011, 08:54 PM #22
- 02-03-2011, 09:24 PM #23
It was all due to the adb shell. I didnt see it there the whole time. I went through and downloaded everything okay. I was not able to connect with the lg mobile support tool ,so i spent some time trying to uninstall and reinstall lg drivers.
I ran across a post on xda for "noobs" titled "READ FIRST] [REF] Dictionary for n00b." It was created by " The_ERROR " it gave me a little background on what I was doing. There was a video I ran across on where i used the adb
devices command. I thought okay the app was seeing my phone,I went back to the post and saw the "ADB SHELL" worked like a charm after that.I would move the "(At this point, you should have a "#" prompt, if instead you see "$", SuperOneClick has not been able to gain access to your phone. Go Back to step 3 and try again)" above the adb shell so all the commands are together.
I used the set cpu app but it said the rom would not let me overclock, oh well I will need to read more before I move on.
Last edited by Lenoh; 02-03-2011 at 09:29 PM. Reason: added critique
As far as overclocking your phone goes, you'll need to flash a new kernel. Rooting your phone simply gives you permission to do whatever you want to your phone. It doesn't actually do anything in and of itself.
There's some information in the Optimus S section that will get you started on how to do that.
- 02-04-2011, 11:27 PM #25