CWM Recovery for LG Spectrum


  1. Neph81

    Neph81 Well-Known Member

    EDIT:

    THIS INFORMATION IS EXTREMELY OUT OF DATE. DO NOT USE THIS RECOVERY. A CWM WITH OUT THE BOOT LOOP ISSUE HAS BEEN MADE.

    http://androidforums.com/spectrum-a...oot-clockworkmod-recovery-lg-spectrum-4g.html




    Credit goes to the guys at XDA for doing the initial work on CWM for the Nitro[CWM][24/01] ClockworkMod 5 Recovery For LG Nitro HD - xda-developers

    With that said, here comes the warnings

    DO NOT do this if you are not familiar with the DD command.
    DO NOT do this if you are not familiar with how to recover your phone from the LG .cab files.
    DO NOT do this if you do not understand how badly you will wreck your phone.
    DO NOT touch the page 7 partition. If you do, your phone is FULL BRICK as page 7 has all the Download Mode and Format System info
    DO NOT USE THE BUILT IN COMMAND TO FORMAT ANY PARTITION, THIS INCLUDES RESTORING NANDROID BACKUPS
    There is a known bug of /data being corrupted if you use the format command in CWM. You have been warned.

    Now that we have that out of the way, here we go.

    Download the recovery file here : "link deleted"

    Do a MD5 hash check on the completed file. The hash should return as 9fdcb32f01c21d72776a641262e273
    If it didn't try the file again. If you are still getting issues, let me know.

    Place the cwm_recovery.img file into the same directory as ADB

    Push the img file to the SD card on your phone using ADB.

    ADB into your phone and SU to enter super user mode

    CRITICAL STEP:

    Make a DD backup of your recovery partition in case something goofs up. The command would be as follows "dd if=/dev/block/mmcblk0p13 of=/sdcard/orig_recovery.img" Do not mess up this step and make sure to get that orig_recovery.img file to some place safe.

    Next CD to /sdcard
    ls -l to make sure you really are in your sd card directory and that cwm_recovery.img is sitting there.
    now run "dd if=cwm_recovery.img of=/dev/block/mmcblk0p13"
    If all went well you should be able to exit out of ADB and then run ADB REBOOT RECOVERY.

    If any of this sounds weird to you DO NOT TRY THIS. I will not be helping people trouble shoot their bricked phones. What this does at this point is allows us to ADB into our phone while in recovery and replace system files while the system is not loaded. The power button selects menu items. When you first go in, you will need to go into "mounts and storage" and mount your /system directory to see and modify your system files.

    Now that this is out, hopefully we can get some ROM loving.

    EDIT: The phone will pull a copy of the original recovery from the boot partition which will over write the CWM recovery. If you want to stop this from happening, you will need to do the following in ADB BEFORE installing CWM. At some point I will get around to writing a .bat file for all of this.

    adb shell
    su
    mount -orw,remount /dev/block/system /system
    rm /system/etc/install-recovery.sh
    exit
    adb reboot

    Attached Files:


    Advertisement
    :
    brianmaedche likes this.
  2. brianmaedche

    brianmaedche Well-Known Member

    Looks good. only question i have is about nandroids. am i able to do a backup and restore of nandroid files.
  3. Neph81

    Neph81 Well-Known Member

    At this point I am going to say probably not. Your best bet is to do DD backups to image files and then DD them back to the proper partition should something go wrong. I may be mistaken on that thou. If you read thru the Nitro recovery link, you can see what sort of issues we're currently running into. I know they have found a way to manually format partitions without issues which means we should be able to do ROMs without any issues.
  4. brianmaedche

    brianmaedche Well-Known Member

    Tested and working. Thanks for the cwm recovery.
  5. Neph81

    Neph81 Well-Known Member

    Brian, make sure you see my new note about how to stop the old recovery from over writing the CWM recovery on reboot.
  6. brianmaedche

    brianmaedche Well-Known Member

    okay so seeing as my phone overwrite cwm. Now I would need to go back and do your new steps plus the dd command to pout cwm back in place. Do I have this right before I try to do anything again
  7. Neph81

    Neph81 Well-Known Member

    Brian : you have that correct. Once the .sh file is moved, CWM will no longer be over written, but you have to DD one more time as your phone gets rebooted twice to get that file out of there
  8. mtmichaelson

    mtmichaelson Well-Known Member

    So, question, is it fully functioning, or what kind of problems are getting run into?
  9. brianmaedche

    brianmaedche Well-Known Member

    Okay completed new set of commands and its up in working, if you need help testing on anything let me know. I do know basic adb commands and I do know how to restore phone with cab file so let me know if I can be of any help.:)
  10. brianmaedche

    brianmaedche Well-Known Member

    After a li testing I've noticed that bit I've noticed that nif you reboot into cwm and reboot out its takes you back to cwm and not into the phone, any ideas on what's going on with my phone or am no missing something. I had to flash stock firmware t get my phone back, no also I nlost all audio and vibrate nfunctions
  11. Neph81

    Neph81 Well-Known Member

    That depends on how you got into recovery in the first place. Did you use the ADB command, the Rom Manager link or did you try the button on the phone method?
  12. brianmaedche

    brianmaedche Well-Known Member

  13. Neph81

    Neph81 Well-Known Member

    brianmaedche likes this.
  14. Neph81

    Neph81 Well-Known Member

    As for vibrate and audio. Disable both, reboot your phone, enable both, reboot again and you should be fine. I lost haptic feedback for almost a day before I figured it out. Let me know if that helps.
  15. x-amp

    x-amp Well-Known Member

    I noticed that after performing the following
    adb shell
    su
    echo 'ro.kernel.qemu=1' > /data/local.prop
    exit
    adb reboot
    if you don't complete the remount and reboot, all vibration and sounds are cut off. scared the crap out of me. I believe it after the removal of the local.prop
  16. brianmaedche

    brianmaedche Well-Known Member

    That's when it happened to me as well. So I would agree on that mit has to do with removal of the local.prop
  17. mtmichaelson

    mtmichaelson Well-Known Member

    Can I ask why you are having to use this method? Is it already rooted? If it's already rooted, why are you having to reuse the exploit? It should just be a simple

    Code (Text):
    1. adb push cwm_recovery.img /sdcard/cwm_recovery.img
    2. adb shell
    3. su
    At this point you will have to accept Super User permissions on your phone, but then you have root access. There should be no need to run the exploit again. After that just run

    Code (Text):
    1. mount -orw,remount /dev/block/system /system
    2. rm /system/etc/install-recovery.sh
    3. dd if=/dev/block/mmcblk0p13 of=/sdcard/orig_recovery.img
    4. dd if=/sdcard/cwm_recovery.img of=/dev/block/mmcblk0p13
    That should both make a backup and install the new
  18. Neph81

    Neph81 Well-Known Member

    SU does not allow RM access on it's own, you have to remount the partition as RW. The method that requires no additional files is the method I have posted. You have to re-exploit in order to get "adb remount" to work.

    Alternatively, you could try finding the correct remount command from inside adb shell, but I never bothered finding the correct parameters. Another option would be to use a root exploring program from within android, but that would be more files for some one to find and use. Lastly, you could try and go into CWM and then ADB in once you have that loaded, but that would require trying to explain which menu and buttons you need to press before you can use the adb commands.
  19. mtmichaelson

    mtmichaelson Well-Known Member

    Remount doesn't work inside of shell anyways, you just have to mount the system partition which I forgot about in there lol. Fixed
  20. Neph81

    Neph81 Well-Known Member

    Thanks for the command list. I have edited the first post to reflect the easier method. I'll get around to writing the .bat file tonight when I'm home from work.
  21. mtmichaelson

    mtmichaelson Well-Known Member

    I've actually got one here lol. I was going to post it on my lunch lol. I just converted the all in one I had built for the lg revolution to work on the spectrum. Do you have a copy of the stock recovery because it includes a return to stock also?
  22. mtmichaelson

    mtmichaelson Well-Known Member

  23. mtmichaelson

    mtmichaelson Well-Known Member

    Hey guys! Is anyone around to test this for me? Is there an IRC channel for the Spectrum?
  24. atomilluminati

    atomilluminati Well-Known Member

    Test the .bat? Is it just to back up the stock recovery and flash cwm?? If so I will first thing in the a.m.
Loading...

Share This Page