Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Entropy512
Old
(Last edited by Entropy512; 11th June 2012 at 02:14 AM.) Reason: Change title
#1  
Elite Recognized Developer - OP
Thanks Meter 20799
Posts: 11,497
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
Default [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
Attached Files
File Type: 7z param.lfs.7z - [Click for QR Code] (540.5 KB, 2653 views)
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
The Following 117 Users Say Thank You to Entropy512 For This Useful Post: [ Click to Expand ]
 
H_Scrappy
Old
#2  
Junior Member
Thanks Meter 2
Posts: 16
Join Date: Apr 2010
Awesome, thanks. Downloading now.
The Following User Says Thank You to H_Scrappy For This Useful Post: [ Click to Expand ]
 
serialtoon
Old
#3  
serialtoon's Avatar
Senior Member
Thanks Meter 43
Posts: 705
Join Date: May 2006
Location: Long Beach, CA
*If it were a zip file, some doofus would probably think it was CWM-flashable and complain that it didn't flash.*

LOL! Enough said right there. Thanks Ent!
Current Device(s)
[B]Too many to list and keep up with [B]
 
jivy26
Old
#4  
jivy26's Avatar
Recognized Developer
Thanks Meter 1090
Posts: 1,731
Join Date: Aug 2010
Location: Baton Rouge, LA

 
DONATE TO ME
Worked great with odin, thanks.
The Following 2 Users Say Thank You to jivy26 For This Useful Post: [ Click to Expand ]
 
dayv
Old
#5  
dayv's Avatar
Senior Member
Thanks Meter 127
Posts: 631
Join Date: Sep 2010
If one was to add the correct pit file to your package would that fix a bad pit flash, as well as fix if one had messed up partitions?

They would be useful for flashing back from cm7 wouldn't it? Or am I completely off?

Sent from my SAMSUNG-SGH-I777 using XDA App
 
jivy26
Old
#6  
jivy26's Avatar
Recognized Developer
Thanks Meter 1090
Posts: 1,731
Join Date: Aug 2010
Location: Baton Rouge, LA

 
DONATE TO ME
Quote:
Originally Posted by dayv View Post
If one was to add the correct pit file to your package would that fix a bad pit flash, as well as fix if one had messed up partitions?

They would be useful for flashing back from cm7 wouldn't it? Or am I completely off?

Sent from my SAMSUNG-SGH-I777 using XDA App
Flashed from CM7 using just the PDA
 
dayv
Old
#7  
dayv's Avatar
Senior Member
Thanks Meter 127
Posts: 631
Join Date: Sep 2010
Quote:
Originally Posted by jivy26 View Post
Flashed from CM7 using just the PDA
Was that without or with a .pit file?



Sent from my SAMSUNG-SGH-I777 using XDA App
 
Entropy512
Old
#8  
Elite Recognized Developer - OP
Thanks Meter 20799
Posts: 11,497
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
With a good .pit file, yes it could recover from a bad .pit flash.

As far as going back/forth to CM7 - I believe that differences in architecture between the original GS and the GSII (mainly no FSR/RFS proprietary modules) make going to/from CM7 much less painful.
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
The Following 3 Users Say Thank You to Entropy512 For This Useful Post: [ Click to Expand ]
 
jivy26
Old
#9  
jivy26's Avatar
Recognized Developer
Thanks Meter 1090
Posts: 1,731
Join Date: Aug 2010
Location: Baton Rouge, LA

 
DONATE TO ME
Quote:
Originally Posted by dayv View Post
Was that without or with a .pit file?


Sent from my SAMSUNG-SGH-I777 using XDA App
Yes without a .pit file
The Following 3 Users Say Thank You to jivy26 For This Useful Post: [ Click to Expand ]
 
dayv
Old
#10  
dayv's Avatar
Senior Member
Thanks Meter 127
Posts: 631
Join Date: Sep 2010
thank you for all your work and for educating me. I will make sure and hit the thanks button next time I'm on a PC.

Wish we could hit thanks button from xda app.


Sent from my SAMSUNG-SGH-I777 using XDA App

 
Post Reply+
Tags
heimdall, i777 unroot, stock, unbrick
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...