• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [CWM][WIP][DEV] Clockworkmod Recovery for the LG Viper 4G LGLS840

Done, so you'd get the notice, ignore the actual quote text, lol, but hey, I'm gonna work on this tomorrow. I've been busy tonight, and about ready to pass out. Like I said earlier, I've got the day off tomorrow, so I'll have plenty of time. Hopefully, by tomorrow night, we can get you in a better position.

gnite all!!

~Wickid_D~
 
Ok this is a tester only as I still need a few things to verify a few things.

I need a dump of the stock recovery, will need root, LG USB drivers installed, and know how to use adb.

in adb shell or term on the phone:
from from pc/cmd:
Code:
adb shell
or from term on phone:
Code:
su
Code:
busybox dd if=/dev/block/mmcblk0p13 of=/sdcard/stockrecovery.img
I also need hexdump for misc:
Code:
su
Code:
hexdump -C /dev/block/mmcblk0p25 > /sdcard/hex-misc.txt
And a copy of the vold.fstab located in system/etc

You can either zip all of this together n upload n link me, or uplaod the recovery.img n pastbin the others.

And now for the test cwm;

cwmrecovery.img


  1. Download
  2. unzip
  3. Have LG USB driver installed
  4. connect phone up via USB
  5. have debugging enable
  6. have in internet connect mode (charge mode if internet mode isnt an option)
  7. Run the follow from adb shell:
Code:
adb push cwmrecovery.img /data/local/tmp/cwmrecovery.img
Code:
mount -o remount,rw -t ext4 /dev/block/mmcblk0p27 /system
Code:
rm /system/etc/install-recovery.sh
Code:
rm /system/recovery-from-boot.p
Code:
busybox dd if=/data/local/tmp/cwmrecovery.img of=/dev/block/mmcblk0p13
Code:
rm /data/local/tmp/cwmrecovery.img
Code:
reboot recovery
Last report I got back, it all works great but booting to recovery with the button combo it wont reboot to system. A battery pull is required to boot normally.

wikidd's fake flash maybe a safer method for the non-savvy. ;)

Just wondering, could I burn thus image to an SD card and boot it from there?
 
Just wondering, could I burn thus image to an SD card and boot it from there?

You mean copy the img file to an sd card? You can copy it to an sd card all you want, but only certain phones can boot a recovery from sd (the Moto Atrix, for example, when set up right, and the process is rather complex), and unfortunately, I don't think this is one of them.

Sorry man. :(

Hey, didn't you state in another post somewhere that you already got a free replacement, or am I thinking of someone else?

TO ALL:

I do have a bit of good news.. I'm making a really strong push on getting the stock images together for everyone tonight - currently downloading the entire aosp source so that I can branch off and work on both the viper, and my ns4g - starting with a complete stock viper build, based on the 'd' update.

Stay tuned.. :)

~Wickid_D~
 
Stay tuned.. :)

~Wickid_D~[/QUOTE]
Hey thanks for all the info...its funny i basically came to all the same conclusions/progress as you listed before reading this...finally got internet installed in new home...my phones good now...have some new info/reasons and discoveries I'll share with you guys later...although I'm not a dev....I've been working on stuff...so playful wiickid and n0ve we going to be official viper first dev/mod team lol.. (ill be back to full forum activity now in between jobs...got 3 PCs on my office floor i need to finish for a customer tonight...catch yall later...peace

P.s. LG has some silly system partitioning...I've only worked with ZTE and Samsung and they weren't as complex lol...btw...same location and 3g is back to normal...so...yeah i called my old sprint rep (used to manage a 3rd party retail store..radioshack...he confirmed they have made certain efforts to i guess in a way packet sniff to detect tethering...only some apps r detectable and its easily blocked/modified
 
n0ve said earlier he never installed the cwm recovery. And personally, I've had no problem getting my girl's viper to reboot into stock recovery using one of the methods we mentioned earler, so that, combined with him never installing cwmr, is why it has me confused why he can't reboot to stock recovery. Besides, dd'ing the factory recovery back to where it's supposed to be should once again allow booting to it. dd raw writes data, as you probably already know, so it would overwrite any custom recovery on that partition.

Speaking of which, n0ve, I'm getting ready to compile the stock images here in a bit, so you should be able to pull the system apps from it when all is said and done.

catch y'all in a bit..

~Wickid_D~
I dont have the device so I am just going by what I been told and past exp with LG's. ;) The LG's I have with the LG Fact Reset screen, thats all you see when boot with the button combo (Hard Reset basically), and maybe a blink of the stock recovery then it reboots to the OS. On the Marquee, using adb reboot recovery boots it straight to recovery n does a fact reset n reboots to the OS, all with no interactions, like it was selected from the settings menu.
 
Ok this is a tester only as I still need a few things to verify a few things.

I need a dump of the stock recovery, will need root, LG USB drivers installed, and know how to use adb.

in adb shell or term on the phone:
from from pc/cmd:
Code:
adb shell
or from term on phone:
Code:
su
Code:
busybox dd if=/dev/block/mmcblk0p13 of=/sdcard/stockrecovery.img
I also need hexdump for misc:
Code:
su
Code:
hexdump -C /dev/block/mmcblk0p25 > /sdcard/hex-misc.txt
And a copy of the vold.fstab located in system/etc

You can either zip all of this together n upload n link me, or uplaod the recovery.img n pastbin the others.

And now for the test cwm;

cwmrecovery.img


  1. Download
  2. unzip
  3. Have LG USB driver installed
  4. connect phone up via USB
  5. have debugging enable
  6. have in internet connect mode (charge mode if internet mode isnt an option)
  7. Run the follow from adb shell:
Code:
adb push cwmrecovery.img /data/local/tmp/cwmrecovery.img
Code:
mount -o remount,rw -t ext4 /dev/block/mmcblk0p27 /system
Code:
rm /system/etc/install-recovery.sh
Code:
rm /system/recovery-from-boot.p
Code:
busybox dd if=/data/local/tmp/cwmrecovery.img of=/dev/block/mmcblk0p13
Code:
rm /data/local/tmp/cwmrecovery.img
Code:
reboot recovery
Last report I got back, it all works great but booting to recovery with the button combo it wont reboot to system. A battery pull is required to boot normally.

wikidd's fake flash maybe a safer method for the non-savvy. ;)
Could I boot into CWM with the .img on my sd card?
 
Sorry for the double post, I didn't see the second page so I thought my post wasn't posted. xD

And that's too bad... when the official CWM for the Viper is released, will it be flashable through ROM manager?
 
Getting to your recovery problem. I figured out a little trick with the viper, and this will work since you never put on cwmr. If you're fairly tech savvy, enable extensions on win7 (or w/e you use), make a fake update.zip (it can even be a text file called that, lol, because their stock recovery only checks for file name, not size, lmao!), and put it on your msd-card, by whatever means you normally use for that. Reboot using an app or adb reboot recovery, and it will catch the fake update.zip and stop in stock recovery. You can wipe cache and/or data from there safely, even apply the real update manually from there if you have yet to update.

Now hey, I gotta get ready for work. I'll respond to your PM on break, if not, after work.

Peace,
~Wickid_D~

My only concern with this is that it doesn't bring my phone to its stock revovery, it simply shows the Android above the loading bar, but doesn't boot into the stock recovery itself.

EDIT: Putting the update.zip in /sdcard did the trick. ;)
Would flashing a custom ROM be possible using this technique?
 
My only concern with this is that it doesn't bring my phone to its stock revovery, it simply shows the Android above the loading bar, but doesn't boot into the stock recovery itself.

EDIT: Putting the update.zip in /sdcard did the trick. ;)
Would flashing a custom ROM be possible using this technique?
Will fail signature check ;)
 
I think using the recovery too much screwed up my connection with Sprint, as I keep having a problem where my phone gets un-activated somehow. lol :D I mean, I get 3G, but it always says searching for service. Any tips?
 
I think using the recovery too much screwed up my connection with Sprint, as I keep having a problem where my phone gets un-activated somehow. lol :D I mean, I get 3G, but it always says searching for service. Any tips?

Research. Currently Im having issues again lol...I used the mobile handset update tool, trying to get a stock restore, it hangs like always, and someway somehow certain system apps werent restored, and my NAM settings were all changed/making the phone unrecognizable. Now i have it where i can make calls but no data whatsoever...no radios work...Going to try to whipe,push system apps soon, but Sprint is willing to replace my handset b/c of the overheating...Anybody know a quick way to guaranteed have traces of root removed..? Unfortunately b/c of this issue w/ the NAM, apps like superonclick don't detect phone properties therefore will not unroot the one click method...is it as simple as removing via adb the sueperuser.apk itself, and that will be sufficient as to not "void warranty"?
 
Hi my son accidently rebooted my phone into recovery then i rebooted and it stayed in the lg logo start up i have tried lg supporter to update even by recover but it says software is current i tried adb pushing to get into recovery again but no go i can get into lg boot downloader and use cmd to send it commands but im not that advance like some of you guys in here im a noob please help i can't afford a new phone right now i have search many places googles the heck out of everything and couldn't find any but i did retreat the following file from lg support tool LS840_WD_1_0_0_0.dll , LS840ZVD_02.bin and LS840ZVD_02.SD_02.P25002.wdb funny part is that LGNPST picks it up while connected to it so i know its alive it just need someone to give cpr please help thank you
 
Hi my son accidently rebooted my phone into recovery then i rebooted and it stayed in the lg logo start up i have tried lg supporter to update even by recover but it says software is current i tried adb pushing to get into recovery again but no go i can get into lg boot downloader and use cmd to send it commands but im not that advance like some of you guys in here im a noob please help i can't afford a new phone right now i have search many places googles the heck out of everything and couldn't find any but i did retreat the following file from lg support tool LS840_WD_1_0_0_0.dll , LS840ZVD_02.bin and LS840ZVD_02.SD_02.P25002.wdb funny part is that LGNPST picks it up while connected to it so i know its alive it just need someone to give cpr please help thank you

How did you pull those files? I had the MS840 CWM, formatted /data and I'm bricked again. Fortunately, I do have. adb, but my phone is stuck at the LG symbol, the second boot splash, and I need the .dll and the .tot, could anyone PM me?

EDIT: Also, I can't access shell in adb. So I can't dd a .img or unroot. Would Sprint's insurance policy cover this?
 
How did you pull those files? I had the MS840 CWM, formatted /data and I'm bricked again. Fortunately, I do have. adb, but my phone is stuck at the LG symbol, the second boot splash, and I need the .dll and the .tot, could anyone PM me?

EDIT: Also, I can't access shell in adb. So I can't dd a .img or unroot. Would Sprint's insurance policy cover this?

Look at my new thread in a few hours. It will guarantee fix your issue. I was stuck at lg logo for three days before figuring this method out.

Don't bring your phone to sprint!
 
Sorry for the double post, I didn't see the second page so I thought my post wasn't posted. xD

And that's too bad... when the official CWM for the Viper is released, will it be flashable through ROM manager?

I got you covered later too. ;)
 
what still needs to be done to get CWM installed on the Viper? I saw where LgOpenSource has the 4.0 Ice Cream Sandwich up for grabs and I was also wondering how I would install that onto my phone ,...?
 
well that is a good find about open source for ICS for LG Viper. I just look too see if there was a ICS open source like 2 or 3 days ago and wasn't there.
 
I installed ROM Manager v5.0.2.0 and from there installed LG Lucid VS840 ,.. seeing as itwas an LG and had the same model number,... Well when i did the prompt for rebootinto recovery it booted right away into CWM v5.8.3.1,.... I did a few things and could see my sdcard ect,.... However when doing a backup it hung on the /system folder ,... i forgot what it said,.....

The other thing i was trying to do was install the Touch Recovery from CWM i dont know how to make it a .zip file from "recovery-clockwork-touch-6.0.1.0-grouper.img"

Also i have'nt been able to get into recovery from anything other than ROM Manager,... The down Button + Power still lead me to the auto format and re-install,....

:rolleyes:RedBunny;)
 
the problem i got when i installed it was when doing nandroid backups it would say: cannot mount /system!

So basically after trying to flash a few other images i screwed it up. Hey if there is anyway you could get the Pull SystemRecovery.img from the phone then head over to CWM Recovery Builder and build a new recovery just for our phone,... i have the graphics.c and postrecoveryboot.sh files but not the origional phone recovery.img ,.....
 
Back
Top Bottom