[GUIDE] Injecting CWM into any kdz update

20 posts
Thanks Meter: 28
 
By roltzy, Junior Member on 23rd February 2012, 03:31 AM
Post Reply Email Thread
Hey guys,

I've managed to devise a method to inject the CWM recovery image into the LG Update tool during updating with a kdz.

The basic idea is explained in this post. I took it a bit further. During the updating process, you can replace the recovery image inside the updater's memory. Basically, you can use this method on any LG Updating tool. This guide uses KDZ Updater. The method is great for getting the latest firmware for your region and still get it rooted.


This procedure requires some quick actions in order to succeed. Read through it before attempting to flash. I'm not responsible for anything that might happen in the result of using this guide.

Needed files:
CWMInject
UPK
Latest CWM recovery image for P970
Cheat Engine

1. Run KDZ Updater from UPK with Windows Enabler on.
Select your KDZ file.

2. Run CWMInject with Admin privileges. Select KDZU process. Set CWM image to the recovery image file.

3. Run Cheat Engine. Select KDZU process. Change Value Type to Text and write ANDROID! in the search field.

4. Open Task Manager, go to Processes and sort processes by memory.

5. In KDZ Updater, press Launch software update.

6. Keep an eye on the KDZU process in Task Manager, if it starts growing, it means it has started to load the files into memory and you can move to the next step.

7. In Cheat Engine, press First Scan. If it doesn't find anything, you did this too early. It should find 3 addresses. The last one is what you need.


8. Copy the found address to CWMInject and press Write Memory. This needs to be done as quickly as possible from the time of finding the addresses.


9. Finish flashing.

Now your phone has CWM recovery installed. You can get into it with "adb reboot recovery". You need the Android SDK for that.
To root your phone, put this Superuser.zip on your SD card and use CWM to flash it.

You don't necessarily have to use KDZ Update. I tried this method with R&D Test Tool and the regular LG Mobile software update. You just need the right process name for CWMInject and Cheat Engine.
The Following 26 Users Say Thank You to roltzy For This Useful Post: [ View ] Gift roltzy Ad-Free
23rd February 2012, 03:44 PM |#2  
adxgrave's Avatar
Senior Member
Thanks Meter: 52
 
More
That is excellent man. Bin files? Nobody need it anyway. Lol. Profit!

Sent from my LG-P970 using XDA App
23rd February 2012, 09:41 PM |#3  
OP Junior Member
Thanks Meter: 28
 
More
Updated the first post with the guide. Cheers
The Following User Says Thank You to roltzy For This Useful Post: [ View ] Gift roltzy Ad-Free
24th February 2012, 12:45 PM |#4  
Senior Member
Thanks Meter: 34
 
More
Confirmed, working with V20F from Orange Romania, using R&D Tool.

CWMInject.exe needs to be run as administrator, in case you're using Win as a non-privileged user.

As an interesting sidenote, I forgot to do a factory reset before (coming from Zeus v4.01b), so I got a bootloop. Easy way to get rid of that: flash a V10 based firmware, it won't recognize the ext4 data partition -> no bootloop. Did a factory reset from there, then repeated the flashing for V20F. Worked like a charm.
24th February 2012, 01:06 PM |#5  
Huexxx's Avatar
Senior Member
Flag Madrid
Thanks Meter: 4,871
 
Donate to Me
More
Amazing!!!!!!
24th February 2012, 01:56 PM |#6  
gabwerkz's Avatar
Senior Member
Flag Three Stars and a Sun
Thanks Meter: 1,545
 
More
Awesome! With R&D... the process is "LGUserCSTool". After flashing it boots directly to CWM.

CSE Web upgrade test: (Small server)(for a factory reset)
The Following 2 Users Say Thank You to gabwerkz For This Useful Post: [ View ] Gift gabwerkz Ad-Free
24th February 2012, 04:33 PM |#7  
Junior Member
Thanks Meter: 0
 
More
Flashed V20N with R&D.
It works like a charm. Thank you very much.
24th February 2012, 06:07 PM |#8  
OP Junior Member
Thanks Meter: 28
 
More
Great to see it working for everybody!

If you're feeling adventurous, you can test my updated CWMInject. It has a built in memory scanner, so you can just press Start after you've started updating.

Edit:
Oh yeah, it requires .Net Framework 4 now...
24th February 2012, 07:29 PM |#9  
Senior Member
Thanks Meter: 34
 
More
Quote:
Originally Posted by roltzy

Great to see it working for everybody!

If you're feeling adventurous, you can test my updated CWMInject. It has a built in memory scanner, so you can just press Start after you've started updating.

Edit:
Oh yeah, it requires .Net Framework 4 now...

Very nice. I guess the Cheat Engine is no more required.

ETA: maybe it would be a good idea to specify in the manifest that it requires admin privileges.
25th February 2012, 11:40 AM |#10  
OP Junior Member
Thanks Meter: 28
 
More
Yeah, good idea.

I guess not everybody disables UAC as the first thing after installing Windows
26th February 2012, 04:02 AM |#11  
Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by gabwerkz

Awesome! With R&D... the process is "LGUserCSTool". After flashing it boots directly to CWM.

CSE Web upgrade test: (Small server)(for a factory reset)

I have a Question!... When is the best moment to aply CWMInject?? i want to use R&
__________________________

i solve the question, really works so great!!!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes