Jump to content


Photo

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

* * * * * 2 votes

  • Please log in to reply
311 replies to this topic

#1
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,335 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien
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

Posted Image

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#2
Xoneso

Xoneso

    Newbie

  • Members
  • Pip
  • 43 posts
  • Devices:Samsung Galaxy S, SE X10
Recovery flashed, rebooted and testet ok with taking a backup.. thanks paul :D

  • 0

#3
Sorensiim

Sorensiim

    Grumpy ol' bastard

  • Members
  • PipPip
  • 119 posts
  • Location:The Land of Pork and Taxes
  • Devices:LG2X
  • Twitter:@sorensiim
Woo!

Nicely done!

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

  • 0
ADHD is an abbreviation of Attention Deficit H... Oooh, shiney!

#4
thla

thla

    Regular

  • MoDaCo Silver
  • PipPip
  • 125 posts

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

  • 0

#5
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,335 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien

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

Fixed, thanks.

P

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#6
thla

thla

    Regular

  • MoDaCo Silver
  • PipPip
  • 125 posts

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.

  • 0

#7
jongrove

jongrove

    Newbie

  • Members
  • Pip
  • 8 posts
  • Gender:Male
  • Devices:Samsung GSII & HTC Desire S
Hi
I'm getting this when I try:

[codebox]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 :-)

  • 0

#8
Sorensiim

Sorensiim

    Grumpy ol' bastard

  • Members
  • PipPip
  • 119 posts
  • Location:The Land of Pork and Taxes
  • Devices:LG2X
  • Twitter:@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

  • 0
ADHD is an abbreviation of Attention Deficit H... Oooh, shiney!

#9
thla

thla

    Regular

  • MoDaCo Silver
  • PipPip
  • 125 posts

Hi
I'm getting this when I try:

adb-windows push psneuter /data/local/psneutererror: device not foundadb-windows shell /data/local/psneutererror: device not foundadb-windows wait-for-device

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

  • 0

#10
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,335 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien

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

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#11
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,335 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien
I've added a discussion topic dedicated to the reboot app [ur=http://android.modaco.com/content/lg-optimus-2x-2x-modaco-com/335484/lg-2x-recovery-boot-app-discussion/]here[/url].

P

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#12
londahl

londahl

    Newbie

  • Members
  • Pip
  • 4 posts
  • Gender:Male
  • Devices:LG O2X / Galaxy Nexus GSM
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?

  • 0

#13
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,335 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien

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

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#14
Sorensiim

Sorensiim

    Grumpy ol' bastard

  • Members
  • PipPip
  • 119 posts
  • Location:The Land of Pork and Taxes
  • Devices:LG2X
  • Twitter:@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, 25 March 2011 - 01:44 PM.

  • 0
ADHD is an abbreviation of Attention Deficit H... Oooh, shiney!

#15
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,335 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien
Reboot app updated to r2.

P

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#16
xrockyx

xrockyx

    Newbie

  • Members
  • Pip
  • 7 posts
  • Devices:LG Optimus 2x

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?

  • 0

#17
BrumBrum74

BrumBrum74

    Enthusiast

  • MoDaCo Silver
  • PipPipPip
  • 229 posts
  • Gender:Male
  • Devices:Nexus One, HTC Rezound
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, 25 March 2011 - 01:54 PM.

  • 0
Posted Image

#18
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,335 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien

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

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#19
BrumBrum74

BrumBrum74

    Enthusiast

  • MoDaCo Silver
  • PipPipPip
  • 229 posts
  • Gender:Male
  • Devices:Nexus One, HTC Rezound
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

  • 0
Posted Image

#20
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,335 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien

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

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users