Jump to content

29 Jun: 4.0.0.5 - ClockworkMod Recovery for the LG Optimus 2X


Guest PaulOBrien

Recommended Posts

DO NOT RUN THIS ON THE G2X! The partition layout is different, doing so will do bad things to your device!

Here is an UNOFFICIAL (hence custom colouring) ClockworkMod image for the LG Optimus 2X.

Some points to note - READ THESE CAREFULLY!

  • This uses the external SD as 'sdcard'.
  • If you manage to break your device completely, this ROM should get you back up and running.

    Download

    I have packaged the recovery itself and the installation system together in one download zip.

    • 4.0.0.5 - DOWNLOAD (Mediafire Pro) - MD5: 30855ab501eaf94cff71ccfecf6bd5e9

    Installation automatically on your device

    NEW - recommended: If your device is rooted, my 99p 2X Recovery Boot app (mentioned below) can now flash the recovery image for you the first time you run the app and on subsequent version updates!

    Installation on Windows, Linux and OSX

    - Download the zip file above and extract to a directory

    - Connect your device and ensure 'USB debugging' is enabled

    - WINDOWS - double click 'install-clockworkmod-windows.bat'

    - MAC - Open a terminal window to the directory containing the files, and type 'chmod +x install-clockworkmod-mac.sh' followed by './install-clockworkmod-mac.sh'

    - LINUX - Open a terminal window to the directory containing the files, and type 'chmod +x install-clockworkmod-linux.sh' followed by './install-clockworkmod-linux.sh'

    If you wish, you can also manually install the recovery by pushing the clockworkmod.img file to /data/local/ with adb and running 'dd if=/data/local/clockworkmod.img of=/dev/block/mmcblk0p7' from a root shell.

    Launching Recovery

    To boot ClockworkMod Recovery, either:

      [*]Turn the device on while holding the volume down and power buttons until recovery loads

      [*]Download the OPTIONAL 99p 'LG 2X Recovery Boot' application from the Android Market (NOTE: This app is completely optional - if you do use it, thanks for your support - there is a discussion topic for the app here)

      Source / Updates

      I'll be posting the device profile and source changes on my GitHub shortly, and will issue fixes / new Betas as required.

      Enjoy! :D

      P

      recovery2x.jpg

Link to comment
Share on other sites

So do you get prompted for the SU access when you run the recovery app? Check in 'Superuser' if it shows as permitted or denied...

P

Your batch script for windows calls adb instead of adb-windows btw

Link to comment
Share on other sites

Nope no prompt fir SU access and the recovery app isn't listed in Superuser app

Same here for me, su works fine on, for example, root explorer, but it doesn't popup on the recovery app, neither is it listed in the log as having requested it.

Link to comment
Share on other sites

Guest jongrove

Hi

I'm getting this when I try:

adb-windows push psneuter /data/local/psneuter
error: device not found

adb-windows shell /data/local/psneuter
error: device not found

adb-windows wait-for-device
[/codebox]

The device has USB-Debugging enabled.

BTW: I've downloaded your LG 2X app to support your great work :-)

Link to comment
Share on other sites

Guest Sorensiim

Yeah, running the windows bat file (I'm at work, windows only here...) and rebooting to recovery will send you to the stock LG recovery - and wipe your phone.

That'll teach me to run batfiles without reading the source! :D

Link to comment
Share on other sites

Hi

I'm getting this when I try:

adb-windows push psneuter /data/local/psneuter
error: device not found

adb-windows shell /data/local/psneuter
error: device not found

adb-windows wait-for-device
[/codebox]

The device has USB-Debugging enabled.

BTW: I've downloaded your LG 2X app to support your great work :-)

Sounds like you don't have the driver installed, i used the one from the superoneclick root thread on xda

Link to comment
Share on other sites

Yeah, running the windows bat file (I'm at work, windows only here...) and rebooting to recovery will send you to the stock LG recovery - and wipe your phone.

That'll teach me to run batfiles without reading the source! :D

Only if it didn't work...?

P

Link to comment
Share on other sites

Guest londahl

Great work Paul!

Just a simple question, just purchased the app in marked, but haven't installed cwm yet (at work, no admin rights)

Will the app boot into the stock recovery if cwm is not present, and if it does, will it wipe the phone?

Link to comment
Share on other sites

Great work Paul!

Just a simple question, just purchased the app in marked, but haven't installed cwm yet (at work, no admin rights)

Will the app boot into the stock recovery if cwm is not present, and if it does, will it wipe the phone?

It shouldn't wipe, just load stock recovery... (i've tested it and that's what happened).

P

Link to comment
Share on other sites

Guest Sorensiim
It shouldn't wipe, just load stock recovery... (i've tested it and that's what happened).

P

If the bat file doesn't work (you might wan't to add some sort of notification for that...), booting the phone while holding vol-down, you will get stock recovery - and wipe. :D

Lesson learned: Do full backup, THEN try the first beta :D

Edited by Sorensiim
Link to comment
Share on other sites

Guest xrockyx
If the bat file doesn't work (you might wan't to add some sort of notification for that...), booting the phone while holding vol-down, you will get stock recovery - and wipe. :D

Lesson learned: Do full backup, THEN try the first beta :D

whats happend?

Link to comment
Share on other sites

Guest BrumBrum74

Don't work for me:

C:\tools>install-clockworkmod-windows.bat

C:\tools>adb-windows push psneuter /data/local/psneuter

1751 KB/s (557962 bytes in 0.311s)

C:\tools>adb-windows shell /data/local/psneuter

/data/local/psneuter: permission denied

C:\tools>adb-windows wait-for-device

C:\tools>adb-windows push clockworkmod.img /data/local/

1926 KB/s (4444160 bytes in 2.253s)

C:\tools>adb-windows shell dd if=/data/local/clockworkmod.img of=/

lk0p7

/dev/block/mmcblk0p7: cannot open for write: Permission denied

Edit: Rooted again and it went ok.

Edited by BrumBrum74
Link to comment
Share on other sites

Don't work for me:

C:\tools>install-clockworkmod-windows.bat

C:\tools>adb-windows push psneuter /data/local/psneuter

1751 KB/s (557962 bytes in 0.311s)

C:\tools>adb-windows shell /data/local/psneuter

/data/local/psneuter: permission denied

C:\tools>adb-windows wait-for-device

C:\tools>adb-windows push clockworkmod.img /data/local/

1926 KB/s (4444160 bytes in 2.253s)

C:\tools>adb-windows shell dd if=/data/local/clockworkmod.img of=/

lk0p7

/dev/block/mmcblk0p7: cannot open for write: Permission denied

Ah, damn you Windows permissions. Could you edit the batch file to add 'adb-windows shell chmod 4755 /data/local/psneuter' after the push and see if that fixes it?

P

Link to comment
Share on other sites

Guest BrumBrum74

And I got my device wiped again. Should be a pause after scripthas run to see if it all went ok or not.

Vol Down and Power wiped my phone when I though all went ok. :D

Link to comment
Share on other sites

And I got my device wiped again. Should be a pause after scripthas run to see if it all went ok or not.

Vol Down and Power wiped my phone when I though all went ok. :D

So adding that line sorted it right?

P

Link to comment
Share on other sites

Guest Vu Nhat Van

I have the same problem, when I holding vol- and power, the phone doesn't go into clockworkmode. So I have added command "pause" into the file install-clockworkmod-windows.bat. This is picture

56833847.jpg

Uploaded with ImageShack.us

How do I correct it

Link to comment
Share on other sites

Guest djmcnz

Thanks for this too Paul, worked like a dream, full adb shell and all. Nice work.

FYI, it didn't affect me but psneuter doesn't have execute modes in /data/local/ so throws a permission denied in the script.

Perhaps:

adb-windows shell chmod 0777 /data/local/psneuter

Before it runs?

Dave

Link to comment
Share on other sites

Guest katun79

Hi to all.

I'm waiting for the shipment of my new 2x, now I have read this topic and I have a question...

Do you know a way to backup stock rom and recovery before install clockworkmod?

Thanks

Tommaso

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.