[Heimdall][Odin][Stock][Root]UCKH7/KK6 Return/Unbrick to Stock (or Root)

Rating

No votes yet

389 posts / 0 new
Last post
Entropy512's picture
Offline
Joined: 03/04/2012 - 05:02
[Heimdall][Odin][Stock][Root]UCKH7/KK6 Return/Unbrick to Stock (or Root)

Multiupload links removed - MU seems to be gone forever. I will repost an unrooted UCKH7 package in the next week along with a modem package - Until then, use the rooted package and then remove:
/system/xbin/su
/system/bin/su
/system/app/Superuser.apk
And then reboot

I have uploaded Heimdall/Odin flashable kernel ,rooted system, and modem images to dev-host. This should be sufficient to unbrick most hosed-up phones, as long as you didn't flash a bad .pit. Note that after flashing this, you might need to wipe data depending on what ROM you were coming from. If you bootloop or things behave wacky, enter 3e recovery (stock kernel means stock recovery) and do a Wipe Data/Factory Reset. If you are reverting from UCKK6 back to UCKH7 you MUST perform this step or wifi will not work. If you're coming from a 100% stock ROM and only using this to gain root, you should be able to keep all your data and not need to wipe.

The kernel is 100% bone stock, the system image is stock except that it is pre-rooted (su binary and Superuser.apk)

I am including the modem in a separate package since that goes in a separate modem slot, and I don't want to reupload a 200+ MB file if I don't have to.

The kernel + rooted UCKH7 system package is here: http://dev-host.org/UWm
Kernel + cache + rooted UCKK6 system package: http://dev-host.org/8LA

Download, extract the package using 7-Zip, which can be downloaded from http://www.7-zip.org/download.html, then either:
1) (Tested on Linux, should work on MacOS) - Extract the tar and flash the components with heimdall from the commandline as follows:

Code:
heimdall flash --kernel zImage --factoryfs factoryfs.img

for the kernel + system package, and:

Code:
heimdall flash --modem modem.bin

for the modem package

I've never had good results with the Heimdall Frontend GUI.

2) (Tested by Jivy26 for kernel + system, untested for modem) - Flash the .tar in Odin. I'm a Linux user, so I have only tested this with Heimdall so far.
Kernel + system package goes in PDA slot I believe, modem package in Phone slot.

If you are wondering why I used 7-Zip to compress the archive:
7-Zip provides better compression ratios than Zip
7-Zip is open source unlike RAR
If it were a zip file, some doofus would probably think it was CWM-flashable and complain that it didn't flash.

Also - great thanks goes to Jivy26 for providing a stock /system dump. Without that it would not have been possible to make the system image or get a kernel dump.

Coming in the next few days - stock unrooted /system package.

Also just added - a param.lfs backup from my device. This is NOT contained in an Odin-flashable .tar file yet, I'll work on cleaning up my packages when I'm feeling better. I came down with a nasty cold a few days ago.

UPDATE:
creepyncrawly has written an EXCELLENT step-by-step guide for flashing this with Odin. The guide is at:
http://forum.xda-developers.com/show....php?t=1313659

In addition, he posted an Odin-flashable tar package for just the stock kernel, for those who want to do a ! removal. I have mirrored the file (I don't trust Dropbox for long-term hosting) at http://www.multiupload.com/MD7SMMNG24 - his original post is at http://forum.xda-developers.com/show...&postcount=174


jivy26's picture
Offline
Joined: 03/30/2012 - 12:23

Worked great with odin, thanks.

mjgspr95's picture
Offline
Joined: 03/30/2012 - 12:23

Thanks for the Kernel work!
Will it hurt anything if I'm already rooted and SU'd with other kernel method or should I factory reset? Also out of curiousity will sgs kernel flasher work?

Haloruler64's picture
Offline
Joined: 03/30/2012 - 12:23
Quote:
Originally Posted by Entropy512
View Post
Try installing Kies maybe?

This is why I always flash from Linux. Heimdall Just Works - no drivers. :P

Edit: Actually I think when in download mode, the USB VID/PID for all GSIIs is the same.

I'll install Kies anyway :P useful I guess. Thanks!

Simba501's picture
Offline
Joined: 03/30/2012 - 12:23
Quote:
CWM is usually the first feature added to any custom kernel. Codeworkx's kernel includes CWM, I'll probably be posting a CWM-enabled kernel in a day or two.

If you want to, you can flash this system and codeworkx's zImage in one go - then you'll get CWM and root without needing to do the SuperOneClick steps.

Nice. I was waiting to use mine to decide which method I wanted to use (and maybe wait on some ROMs to appear, but I may stick with stock rooted until someone makes an AOSP). This sounds good.


eep2378's picture
Offline
Joined: 02/26/2012 - 09:00

entropy check your pm

Entropy512's picture
Offline
Joined: 03/04/2012 - 05:02
Quote:
since we now have kernel/modem, we can now install euro firmware correct?

Unknown/untested.

msnyder's picture
Offline
Joined: 03/30/2012 - 12:24

Entropy, this worked perfectly. I had to do a little digging to figure it but didn't take long. Your help is definately appreciated

hussarfilms's picture
Offline
Joined: 03/30/2012 - 12:24
Quote:
Thanks! I'll try that!

As far as your question I was told to untar it and rename it to zImage and flash zImage with heimdall.

so untar the file [using? keka?][

then type

heimdall flash --kernel zImage

without the [--factoryfs factoryfs.img] ??


hussarfilms's picture
Offline
Joined: 03/30/2012 - 12:24

when i extracted the .tar file it gave me a zImage file
didnt have to rename anything

Entropy512's picture
Offline
Joined: 03/04/2012 - 05:02
Quote:
Just a quick question here, what do we need to do to create a modem zip that can flash in cwm? With my cappy I was able to add ANY modem into a CM7 format modem zip and flash it via cwm. Should that still work since it uses (I think) the same version of cwm?
Like could we get these files and zip them with the modem file and flash it in cwm

Sent from My KickAss Captivated CM7 OC'd 1.5Ghz/Undervolted

This was covered before - I'm going to look into it eventually, however I need to figure out if there are any major differences in how to flash modems from CWM on this device.

If you look at the I9100 modem collection you'll notice that there isn't anything CWM flashable, and the developer there is reluctant to post CWM-flashable packages. It even looks like they may have softbricked devices when trying to flash modems. So if pulser_g2 thinks it's a bad idea - I'm going to proceed with extreme caution.