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

Search This thread

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,088
25,086
Owego, NY
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/showthread.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/showpost.php?p=18535109&postcount=174
 

Attachments

  • param.lfs.7z
    540.5 KB · Views: 4,926
Last edited:

serialtoon

Senior Member
May 25, 2006
928
118
*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!
 

dayv

Senior Member
Sep 7, 2010
685
135
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

Inactive Recognized Developer
Aug 7, 2010
1,848
1,142
OnePlus 9
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
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,088
25,086
Owego, NY
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.
 

dayv

Senior Member
Sep 7, 2010
685
135
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
 

Drew489

Senior Member
Aug 21, 2010
527
26
New Hampshire
Flashed w/ Odin...stuck in a boot loop. Any other suggestion? I had CM7 on there but had no sound when making calls. Tried to go back to stock...SOL.

Had the phone 9 hours and haven't been able to make a single call yet.
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,088
25,086
Owego, NY
Flashed w/ Odin...stuck in a boot loop. Any other suggestion? I had CM7 on there but had no sound when making calls. Tried to go back to stock...SOL.

Had the phone 9 hours and haven't been able to make a single call yet.

Enter recovery (this kernel has stock 3e recovery) and wipe data/factory reset.

Power off (may need to battery pull), then:
Hold VolUp+VolDn
Push Power until the screen turns on
Let go of Power, keep holding VolUp+VolDn until you're in recovery
 

mjgspr95

Senior Member
Mar 3, 2009
627
84
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?
 

drawde40599

Senior Member
Aug 11, 2010
5,322
1,966
not rooted

do u have a version for odin without the root ? im looking for 100% stock out the box rom ? (future warranty purposes ) thanks
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,088
25,086
Owego, NY
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?
No, shouldn't hurt anything. Should only need to wipe if coming from a significantly different ROM such as CM7 or an I9100 ROM.

do u have a version for odin without the root ? im looking for 100% stock out the box rom ? (future warranty purposes ) thanks
Yes, but I figured this would be more popular and uploading one of these takes an hour. I'll put up the unrooted stock in a day or two as I'm doing kernel work. However it's easy enough to unroot, just remove the two following files:
Code:
/system/app/Superuser.apk
/system/xbin/su

Not able to access the download site, could you please attache here?
It's WAY larger than XDA's attachment limit, sorry, no can do.
 

Haloruler64

Senior Member
Aug 11, 2010
2,206
387
Daly City
Hey kids! Don't know if anyone here knows me, but I am an ex avid Captivate user. But I've been out of the game for so long (exploring webOS and BBOS7) that I am very behind. Anyone kidn enough to post a link to the newest Odin? Also, what slot do .tar files go into? The first one, PDA?

EDIT: Opened the file, definitely PDA :p Still, anyone have a good link to a working Odin? I remember at one time some Odin versions worked really badly, and I used the original 1.00 but I heard there is a 2 and I'd prefer to use that with this new phone.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 124
    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/showthread.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/showpost.php?p=18535109&postcount=174
    48
    Odin3 One-click Downloaders for Stock and Stock + Root

    I have prepared Odin3 One-click Downloaders for the Stock non-rooted and Stock + Root packages. Each One-click Downloader also contains the Modem. This will make flashing back to stock or flashing root in Windows easier. These were tested and flashed successfully on my device. These could be posted in the OP for convenience.

    Odin3 One-click Downloader I-777 UCKH7 Stock No Bootloaders
    I777_UCKH7_OCD_No_BL.7z
    (This one-click downloader flashes: zImage, factoryfs.img, and modem.bin)

    Odin3 One-click Downloader I-777 UCKH7 Stock + Root No Bootloaders
    I777_UCKH7_OCD_Root_No_BL.7z
    (This one-click downloader flashes: zImage, factoryfs.img with root, and modem.bin)

    How to Use:
    • Download the 7 zip package. Extract the contents of the zip file to a directory on your hard disk drive.
    • Start the Odin3 One-Click Downloader program by double clicking on "I777UCKH7 OCD No BL.exe" or "I777UCKH7 OCD Root No BL.exe".
    • Now Enter Download Mode:
      • With the phone powered off, plug in the usb cable while holding the vol up + vol down buttons (but not the power button).
      • When the warning screen appears, press Volume up to continue into download mode.
    • In Odin, the small edit box in the upper left corner will turn yellow, and say something like [0:COM8]. The number could be different.
    • Click Start. Watch the progress bar advance in green while the message box in the lower area describes the steps. When the flash is finished, the top left larger edit box will turn green and say PASS! and your phone will automatically reboot.
    • Unplug the usb cable from you phone after it boots up. Success.
    8
    Stock Kernel Flashable .tar

    Here is the stock kernel, extracted from the stock unrooted package in the OP, in an Odin flashable .tar, (see Download Repository, link in sig)

    Created the tar file in Android Terminal Emulator on my phone. Flashed it twice successfully on my phone. Verified with CPU Spy:

    Linux version 2.6.35.7-I777UCKH7-CL503881 ([email protected]) (gcc version 4.4.0 (GCC) ) #2 SMP PREEMPT Sat Aug 27 04:53:41 KST 2011

    I'm thinking this would be a good addition to the first post, as a few people may need it occasionally.
    5
    Good job I wasn't using it as an excuse then.

    Sent from my SAMSUNG-SGH-I777 using xda app-developers app

    You were. You asked if wifi issues after reverting was a known bug. It is, and this is explicitly stated in the first post in addition to being bold, yet you chose to post without searching or even reading the first post in its entirety. Even if it is not bold with whatever crippled method you use to read these forums, the fact is - it is there, and you posted without reading.
    5
    Uploading a package without root... Gonna be an hour or so.