How to root manually/without Windows

Search This thread

kutysam

Senior Member
Apr 7, 2010
136
42
why not use gingerbreak?
Its an apk and it works on the latest stock firmware currently.
 

cyansmoker

Inactive Recognized Developer
Sep 18, 2010
501
636
Los Angeles
nexus.zteo.com
Doesn't Gingerbreak work only with Gingerbread ROMs?

SouthParkFan15, on the topic of adb:

My son tells me that there are two sets of USB drivers; one is for powering your phone only and the other one is for debugging. Make sure you have the right set.
 
May 14, 2011
27
2
Cyansmoke: There are several driver sets for this phone. I have tried them all in various orders to install. I have attached a screenshot of the drivers I fooled around with.
 

RajKale99

Senior Member
Aug 20, 2015
148
244
24
Pune
Error

There is already an excellent write-up on how to use SuperOneClick to root your Optimus V.
Unfortunately, you may not have a Windows machine available to run the util, or your PC hates the LG drivers, or you may wish to control how you go about rooting your device.

Hence this short write-up which, obviously, relies on pieces I got from that other write-up.

I. Rooting your device

1. You still need ADB!
2. Download the LG Optimus V Tools package from http://nexus.zteo.com/projects/tools/
3. Unzip it
4. Command-line:
Code:
adb push psneuter /data/local/tmp/
adb push su /data/local/tmp/
adb shell
cd /data/local/tmp
chmod 777 psneuter
chmod 777 su
./psneuter
5. You should be kicked out of the shell
6. Command-line:
Code:
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock5 /system
cat /data/local/tmp/su > /system/bin/su
mount -o remount,ro -t yaffs2 /dev/block/mtdblock5 /system
(Oh look you are root!)
That's it. You now have permanent root access.
After rebooting your phone, adb should be back to logging you in as a regular user but typing "su" will do the trick.

Note: I realize that the version of SuperUser.apk that comes with SuperOneClick might be re-usable here. I haven't had any success with it but you may.

II. Flashing a new ROM

1. After rooting your device, obviously...
2. Get an image for the ROM you wish to flash...
Currently, my favourite one is a fairly recent version of Zefie's CM7.
You can find it by googling "update-cm-7-04282011-NIGHTLY-thunderc-Xionia-signed.zip" -- I will refer to it, below, as <your_rom_zip_file>
3. Get a minimum Google Apps package for flashing as well.
Here, I would google "gapps-gb-20110325-signed.zip" -- I will refer to it, below, as <your_gapps_zip_file>
3. Command-line:
Code:
adb push flash_recovery /data/local/tmp/
adb push recovery.img /sdcard/
adb push Debug-FormatSYSTEM.zip /sdcard/
adb push <your_rom_zip_file> /sdcard/
adb push <your_gapps_zip_file> /sdcard/
adb shell
su
chmod 777 /data/local/tmp/flash_recovery
/data/local/tmp/flash_recovery /sdcard/recovery.img
reboot recovery
4. In recovery: Flash Debug-FormatSYSTEM.zip
5. In recovery: Wipe cache and dalvik-cache
6. In recovery: Flash <your_rom_zip_file> -- this will take a while
7. Do not reboot!
8. In recovery: Flash <your_gapps_zip_file>
9. Now, reboot.
10. Let your phone think about life for a few minutes
11. Select "Skip" when your phone asks you to create/enter your account info
12. Launch the market; now, enter your main account information

Getting error "couldn't get workspace "
After ./psneuter
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    There is already an excellent write-up on how to use SuperOneClick to root your Optimus V.
    Unfortunately, you may not have a Windows machine available to run the util, or your PC hates the LG drivers, or you may wish to control how you go about rooting your device.

    Hence this short write-up which, obviously, relies on pieces I got from that other write-up.

    I. Rooting your device

    1. You still need ADB!
    2. Download the LG Optimus V Tools package from http://nexus.zteo.com/projects/tools/
    3. Unzip it
    4. Command-line:
    Code:
    adb push psneuter /data/local/tmp/
    adb push su /data/local/tmp/
    adb shell
    cd /data/local/tmp
    chmod 777 psneuter
    chmod 777 su
    ./psneuter
    5. You should be kicked out of the shell
    6. Command-line:
    Code:
    adb shell
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock5 /system
    cat /data/local/tmp/su > /system/bin/su
    mount -o remount,ro -t yaffs2 /dev/block/mtdblock5 /system
    (Oh look you are root!)
    That's it. You now have permanent root access.
    After rebooting your phone, adb should be back to logging you in as a regular user but typing "su" will do the trick.

    Note: I realize that the version of SuperUser.apk that comes with SuperOneClick might be re-usable here. I haven't had any success with it but you may.

    II. Flashing a new ROM

    1. After rooting your device, obviously...
    2. Get an image for the ROM you wish to flash...
    Currently, my favourite one is a fairly recent version of Zefie's CM7.
    You can find it by googling "update-cm-7-04282011-NIGHTLY-thunderc-Xionia-signed.zip" -- I will refer to it, below, as <your_rom_zip_file>
    3. Get a minimum Google Apps package for flashing as well.
    Here, I would google "gapps-gb-20110325-signed.zip" -- I will refer to it, below, as <your_gapps_zip_file>
    3. Command-line:
    Code:
    adb push flash_recovery /data/local/tmp/
    adb push recovery.img /sdcard/
    adb push Debug-FormatSYSTEM.zip /sdcard/
    adb push <your_rom_zip_file> /sdcard/
    adb push <your_gapps_zip_file> /sdcard/
    adb shell
    su
    chmod 777 /data/local/tmp/flash_recovery
    /data/local/tmp/flash_recovery /sdcard/recovery.img
    reboot recovery
    4. In recovery: Flash Debug-FormatSYSTEM.zip
    5. In recovery: Wipe cache and dalvik-cache
    6. In recovery: Flash <your_rom_zip_file> -- this will take a while
    7. Do not reboot!
    8. In recovery: Flash <your_gapps_zip_file>
    9. Now, reboot.
    10. Let your phone think about life for a few minutes
    11. Select "Skip" when your phone asks you to create/enter your account info
    12. Launch the market; now, enter your main account information
    1
    Hey first of all let me tell you that I appreciate this guide. Now my problem is that I am such a noob that I may be doing this wrong.I download the file to my optimus.Then in an explorer I extract it, correct? After that once I put in the first line of command on terminal emulator I get an error that says "adb: permission denied". Please help this guide is my last resort.Whatever I do I can not root through windows.It would be nice if you could explain in more detail every step. Thanks! :)