Jump to content

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


Recommended Posts

Posted

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

Guest Xoneso
Posted

Recovery flashed, rebooted and testet ok with taking a backup.. thanks paul :D

Guest Sorensiim
Posted

Woo!

Nicely done!

Now I'll just sit back and wait for somebody competent to start rolling out the custom roms...

Posted
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

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

Fixed, thanks.

P

Posted
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.

Guest jongrove
Posted

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 :-)

Guest Sorensiim
Posted

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

Posted
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

Posted
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

Guest londahl
Posted

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?

Posted
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

Guest Sorensiim
Posted (edited)
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
Guest xrockyx
Posted
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?

Guest BrumBrum74
Posted (edited)

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
Posted
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

Guest BrumBrum74
Posted

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

Posted
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

Guest Vu Nhat Van
Posted

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

Guest djmcnz
Posted

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

Guest katun79
Posted

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

Guest djmcnz
Posted

Back capacitive button works as enter/confirm... :D

Guest Vu Nhat Van
Posted
Is your phone rooted?

Yes.

And I rooted it again and then run the bat file. Done. OK

Thanks

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.