yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II SGH-I777] element72:
The triangle away app. I was following your guide so I can upgrade my phone at the store. Is this the wrong section? If so, please direct me in the right path :).
[AT&T Samsung Galaxy S II SGH-I777] fastvan67:
Looking for this file. Anyone have it? I have an i777 that got a i9100 kernal. Gotta fix it. Thanks

I777UCMD8 Stock Binaries (Android 4.1.2 Jelly Bean):
[AT&T Samsung Galaxy S II SGH-I777] gr8hairy1:
This really needs to be a sticky.

Sent from my páhhōniē
[AT&T Samsung Galaxy S II SGH-I777] pham818:
thanks, help me soo much.
[AT&T Samsung Galaxy S II SGH-I777] MWilkenson:
I just did a warranty replacement today and my flash counter was at 1 but I did however remove the yellow triangle. They didn't even look at the flash counter so you should be good.
[AT&T Samsung Galaxy S II SGH-I777] House M.D.:
I have a question,

my phone is galaxy s2 at&t i777..

and right now when i boot in downloading mode it says:

ODIN MODE

PRODUCT NAME: GT-i9100

CUSTOM BINARY DOWNLOAD: NO

CURRENT BINARY: SAMSUNG OFFICIAL

so it shows PRODUCT NAME: GT-i9100 instead of SGH-i777, and I used this when i did the root: http://xdaforums.com/showthread.php?t=1309293

And I'm using ICScrewD rom right now.

so if i did this guide, will it reset the model number from GT-i9100 to SGH-i777?

or there is another way to change the model number?

Thank you
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
You cleared the counter with the jig? But since you first flashed ICScrewD with Odin (or some other I9100 kernel), the counter shows I9100.

I'm only speculating, because I have not seen this verified, but I think if you flash the stock I777 kernel with Odin or Heimdall, and then immediately flash back to the kernel from ICScrewD rom using adb, terminal emulator, mobile odin or cwm recovery, that will make the counter show I777 instead of I9100.

Now the issues you face are first getting just the ICScrewD kernel so you can flash it, and also if there will be any side effects from having flashed an I777 kernel onto the phone momentarily. You may need to extract the zImage from your current rom setup before you start. You can get the stock kernel and directions for flashing it from here: How to Clear the Warning Triangle without a Jig. If you need help extracting the zImage from the rom, let me know.

If you try this, please let me know the results so that I can update the OP of the other Guide with the information. If you were returning the phone, you would be flashing back to full stock, so that would take care of it.

Edit: Another way that occured to me, is to use a nandroid backup to get back to the installed kernel. Make a backup in recovery, flash the stock kernel with Odin, then boot into recovery and restore the backup. That should be much easier, and no worries about side effects. The only thing I am unsure about with this method, is whether the nandroid backup will contain the flash count, and when you restore it, the I9100 will come back. Worth a try, and if it doesn't work, you can use the other method.
[AT&T Samsung Galaxy S II SGH-I777] House M.D.:
Cool, I will try to flash the stock kernel and see what happened.

but which stock kernel should I use?
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
It's in the linked guide. Both downloads are identical.
[AT&T Samsung Galaxy S II SGH-I777] House M.D.:
Hi

I did it, and its still shows GT-i9100 in the odin mode, but when I use this code: *#*#1234#*#* it shows

PDA:I777UCKH7

PHONE:I777UCKH7

CSC:I777UCKH7

BUILD INFO: Sat Aug 27 04:39:06 KST 2011
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
If you don't mind, could you please describe exactly what you did?

Did you try restoring with a nandroid backup?

Or did you do it by putting your kernel back on?
[AT&T Samsung Galaxy S II SGH-I777] House M.D.:
Ok,

first I did take backup from the recovery mode, and then i set the phone in the downloading mode, I used odin 1.85 and i flashed the stock kernel in the PDA section.
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
And you didn't flash the original kernel back?

And the phone runs normally with ICScrewD and the stock kernel?
[AT&T Samsung Galaxy S II SGH-I777] House M.D.:
What do you mean by flash the original kernel back?

when I used the Odin, i put the file "stock kernel PDA" and I flashed the phone with it. but I didn't restored the old backup.
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
Well, I was not thinking straight. I see ICScrewD is a hellraised rom, and uses Entropy152's kernel anyway, so the stock kernel should be compatible with it. Never mind what I was saying before about the kernel.

Also, remember I was just speculating about the flash counter. I have never seen anyone post about their flash counter saying I9100 on our phone except you.

My assumption was that flashing an I9100 kernel is what set it to that, but unless you flashed something else earlier, you didn't flash an I9100 kernel. So I don't know what caused your flash counter to say I9100. And obviously, flashing a stock kernel didn't change it. Do you know if maybe your flash counter already said I9100 when it was stock, or if not do you have any idea how it might have changed to I9100?

According to the OP of Jivy's thread, ICScrewD uses Entropy's 12/1 kernel, so you can download either that one, or his latest 12/8 kernel and flash it in CWM recovery.
[AT&T Samsung Galaxy S II SGH-I777] House M.D.:
then probably from my friend who did the root, i believe he flashed it with i9100 rom because he has the i9100 device... darn.

is there any way to change it?

Update:

I just talked to my friend, and yes he did flash my phone with i9100 rom for a stupid reason.
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
I only have one other idea. Do you have a jig? Try booting download mode using a jig while the stock rom is on the phone. After that, I'm out of ideas.

If you want to put Entropy's kernel back onto the phone you'll need to use adb, terminal emulator, or mobile odin, since you don't have ClockworkMod Recovery in the stock kernel. You should still have root though, so you should be good.
[AT&T Samsung Galaxy S II SGH-I777] House M.D.:
Okay, here is more information,

the baseband version did not change, its still i777uckh7, as shown in the pic. and like I said before, its only in the Odin mode that shows GT-i9100

do you think that I need to flash the modem? my friend told me that i need to find modem for SGH-i777 and flash that to fix it. but since what happened, I need to ask you first since you're the expert.

and THANKS a lot for helping me bro.
[AT&T Samsung Galaxy S II SGH-I777] roadrash7:
what is the easiest way to get the stock bootloaders back. i tried a restore in cwm but that didnt do it for some reason i thought it would restore the bootloaders too but it still says i9100 on boot from cog777

i am taking my phone back cause of defective screen, i have the jig to reset counter. i see something in the op about secondary bootloader but im not sure what it means by secondary.
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
There is always some risk involved while flashing bootloaders.

@roadrash7

If I understand correctly, there are actually three boot loaders, primitive bootloader (pbl), initial bootloader (ibl) and secondary bootloader (sbl), and they load onto the phone in that order. The flash counter code resides in the secondary bootloader, and that is the only one available to flash on our phone. You can get it from a thread in the development forum and flash using Odin3 v1.85 (or v1.82). Put I777 UCKH7 sbl.tar in the PDA slot.

@iSpanish

roadrash7's question suggests that your problem might be solved by flashing back the I777 secondary bootloader. If your friend flashed an I9100 kernel package that included the I9100 bootloader, that could account for your flash counter issue. Try it and see.
[AT&T Samsung Galaxy S II SGH-I777] House M.D.:
And when I download the SBL, should I flash it in the Boorloader in the odin, right?
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
No! It goes in the PDA slot. Read the posts #2 and #4 from it's thread.
[AT&T Samsung Galaxy S II SGH-I777] roadrash7:
i actually stuck the jig in and it reset the counter and now it doesnt say i9100 anymore so i think im good now. now im waiting for the one click to download, to finish return to stock...thanks though
[AT&T Samsung Galaxy S II SGH-I777] House M.D.:
It worked!!!! finally it worked, big thanks to you man, you are the best...

I got the SGH-i777 in the downloading screen right now, but I got this msg when i turn on the phone, 'logo_att.jpg' draw failed
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
Glad you have that part sorted out. Evidently, the flash counter data was hard coded into the secondary bootloader, and your friend inadvertantly flashed the I9100 secondary bootloader onto your phone.

Now, to remove the logo_att.jpg draw failed error, you need to flash the stock I777 param.lfs back to your phone. That evidently got changed also. Entropy512 included a stock param.lfs as an attachment to the OP in his UCKH7 Return/Unbrick to stock thread, but it is straight param.lfs which you can't flash. So I converted it into a flashable tar file (I thought) but when I flashed it to test it, it didn't complete the flash. Just sit tight till I get this sorted out, and then I will post the file for you.
[AT&T Samsung Galaxy S II SGH-I777] House M.D.:
Thanks bro,

I did soe searches in here, and I've found this, http://xdaforums.com/showthread.php?t=1292524

and the file has the "I777_KH7_Stock_PARAM.tar" and I did flash it, and Voilà!! the original screen back.......
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
Glad you've got your phone all the way back.

I knew about that thread, but I had never looked in his rar file. I just assumed that the param.lfs in it was a modified file, not the stock one.
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
Download Repository

Notice: As of December 4, 2013 Hotfile file sharing service has shut down permanently. I have started uploading files to Dev-Host. I have noted below in red which files and sections have not been updated yet. If there is a file you want that still has a Hotfile link, please post a request in the Q&A forum, and I will upload it for you at the earliest convenient time.

A few people may need files for specialized purposes like flashing back the original secondary bootloader or param.lfs, or a stock kernel for removing the yellow warning triangle, etc. I've decided to collect all the downloads relevant to my Guides in one spot.

Download the Odin3 v1.85 package from xda-developers, or another source of your choice. Odin3 v1.82 will also work.

Download and install the latest version of Heimdall Command Line for your operating system from here. (Latest version 1.4.0)

I777 UCKH7 secondary bootloader:

I777 UCKH7 stock param.lfs:

I777 UCKH7 PIT:

I777 UCKH7 stock kernel:

I777UCKH7-CL503881 Stock Binaries:

I777 UCKH7 Return/Unbrick to Stock (or Root) Odin3 One-Click Downloaders

Entropy512's Original I777 UCKH7 Kernel plus Non-Rooted System Package (Links in this section have not been updated)

Entropy512's Original I777 UCKH7 Kernel + Rooted System Package (Links in this section have not been updated)

Entropy512's I777 UCKK6 Kernel + Rooted System Package (Links in this section have not been updated)

I777UCLE5 Stock Binaries (Android 4.0.3 Ice Cream Sandwich) (The One-click Downloader link in this section has not been updated):

I777UCLL6 Stock Binaries (Android 4.0.4 Ice Cream Sandwich) (The One-click Downloader link in this section has not been updated):

I777UCMD8 Stock Binaries (Android 4.1.2 Jelly Bean):

AJK v4.9 MicSwap kernel:
[AT&T Samsung Galaxy S II SGH-I777] kamots:
Can the stock kernel be flashed with Mobil Odin extract the zImage? Or does it have to be flashed with regular Odin.? Will that flash set off the flash counter on the phone?
[AT&T Samsung Galaxy S II SGH-I777] Enzopreme:
moderator, please sticky as this information is VERY helpful as I'm sure you already know, and it sometimes finds itself back on the second and third page when it in all actuality should be on top. thank you in advance.
[AT&T Samsung Galaxy S II SGH-I777] monkey28rb:
i sent mine back in as is with unnamed on it. I followed their guidelines, they said any physical or liquid damage, which there was none. Never have you changed the OS. If it is a hardware issue you are calling to complain about, not much they can do if the phone comes back with a custom rom.
[AT&T Samsung Galaxy S II SGH-I777] nhradiotech:
Dumb question, but will this wipe the data on the phone? I am looking to unroot to get the 2.3.6 update but Id really like to not have to reinstall everything. Thanks!
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
You should be ok to install stock no root without a wipe, since you are on stock rooted. You're not changing roms.

The package does not wipe, you have to do the wipe yourself if you want it.
[AT&T Samsung Galaxy S II SGH-I777] wified:
unRooted stock UCKK6 back to unRooted stock UCKH7?

I had a stock UCKH7 unrooted i777 that I was very happy with. Like an idiot, I applied the OTA update to UCKK6, and my battery life is hosed.

What part of these instructions, including post #46, do I need to follow in order to return to completely stock, unrooted UCKH7?

I know that Entropy has said:

But I need to get my battery life back now, and I'm not clear on whether I need to flash an older bootloader in order to return to what I had before.

From what I see on the AT&T forums, there are probably a lot of other people like me now - wanting to return to stock UCKH7, and willing to root/flash as needed to get there, because of the horrible battery life since OTA updating to UCKK6.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Just flash the UCKH7 return-to-stock package.

I consider any official release to be "stock" since devices will start selling with that release preinstalled - a UCKK6 return-to-stock will return a phone to factory UCKK6.

A UCKH7 return-to-stock will return it to KH7 - and KH7 is what you want. That has been available since early October.
[AT&T Samsung Galaxy S II SGH-I777] wified:
Is there any need to flash back to the stock bootloader? I'm not clear on whether UCKK6 changed the bootloader from what was there with stock UCKH7?
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
The OTA update does not include the secondary bootloader.
[AT&T Samsung Galaxy S II SGH-I777] wified:
Thanks. Does the Micro-USB jig work with the OTA update to UCKK6, just like it worked before to place the phone into download mode and reset the flash counter?
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
Yes, because the code for that resides in the secondary bootloader, which remains unchanged.
[AT&T Samsung Galaxy S II SGH-I777] prophet of doom:
how do i flash the UCKK6 package? Open odin put the uckk6 package in the pda slot then go into download mode then click start? What all options should be checked on? Ive never used odin before so any help would be awesome.

thanks
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
Follow these directions except use the UCKK6 tar package. The directions are exactly correct otherwise.
[AT&T Samsung Galaxy S II SGH-I777] BuddhaMunx:
Thanks for the help! Helped me out immensely...great knowledge to have for future use also, Thanks again!
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
One thing Creepy - based on a few isolated reports from people, I'm not sure if your One-Click variant is properly flashing the stock kernel.
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
I've seen a couple of your posts about this, and I've followed those threads where people seemed to have problems with it, but my own perception is that in all of those cases, there was some other issue going on. It's really hard to know if you have enough information from what people post, especially if they are noobs, because they don't have enough understanding to give a complete picture of their problem.

There have been a large number of people use the one-clicks, ~1500 downloads of the non-rooted, and ~1800 downloads of the rooted. A pretty good sized few of those have reported success here in the forums. Only a small number of people have reported problems. It seems to me that if there were a problem with the downloader, there would be many more reports. After all, computers behave the way they are programmed, otherwise it would be impossible to debug.

When I first created these, I sent you a pm to ask for your input about them before I posted them, but after about a week, when I realized I wasn't going to get a response from you, I went ahead and posted them in my guide. I'm not an android developer or a linux user, so there may be some things I miss from time to time, but I have been a windows developer, and I have good troubleshooting skills.

Download creator works similarly to Odin. To create the one-clicks, I made tar files containing the three components from your packages, zImage, factoryfs.img and modem.bin, using terminal on my phone. To make the one-click, the tar goes in the PDA slot, just like in odin, and compiles it into Odin3excution v1.81.exe. I can't think where in this process anything could go wrong with the final product. In my understanding, busybox on the phone has the same processing power as a linux box, so the tar should be fine, and there was no change made to the components of your packages.
[AT&T Samsung Galaxy S II SGH-I777] Lynk128:
edit. wrong thread. sorry.
[AT&T Samsung Galaxy S II SGH-I777] rezcroll:
Unbricking my SGS2 i777

Okay so I am fairly new here, however I would not call myself a noob.

Anyways, I am facing a major and weird problem with my Samsung Galaxy S II i777. I couldn't wait for ICS to come to our phones so instead I installed a rom that was meant for the international GS2 (i9100) using "Install ICS on Galaxy S2(SII) I9100XXKPA firmware Android 4.0.3 (much stable)" on the dial android site

It worked pretty well, except the softkey key mapping but I reprogrammed that anyway. So the phone works, however I am not able to go back to CM7 Nightly. And I'm pretty sure it was because I didn't only flash the i9100 ICS PDA file, but also the PIT file, the CSC file, and the MODEM file in odin. So my phone essentially is programmed completely like a i9100. Whenever, I try to flash stock rom in the PDA section of odin I get the Galaxy S II i9100 boot screen and it just hangs there...and eventually it says Upload Kernel Panic Mode.

This process happens whenever I try to flash any type of i777 stock rom even with stock i777 PIT file and i777 Modem file.

The weird thing is that I can easily flash the i9100 ICS anytime...So I am very confused haha

I know it was a dumb idea to flash a i9100 pit file in odin...and now I am considering just removing the warning triangle and taking the phone back to ATT for replacement, but I still believe its possible to fix.

Any help is greatly appreciated. Thank You in advance

btw since I installed CWM onto my phone long time ago, my boot screen has showed i9100 instead of i777...
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
The I9100XXKP8 package, which I assume is the one you flashed, contains primitive bootloader, secondary bootloader and param.lfs, all for the I9100.

Assuming you know what you are doing, you probably can fully recover using the resources in the Download Repository which is linked in my signature and in the OP of this thread. The specific files you will need are in section I777UCKH7-CL503881 Stock Binaries.

The only thing you flashed that is not available there is the csc file. If you need that, I guess you will have to find it yourself.

Edit: After you recover the phone, enter into the phone dial pad *#1234# which will print the PDA, PHONE and CSC values. On my phone CSC value reads I777ATTKK6.
[AT&T Samsung Galaxy S II SGH-I777] rezcroll:
ok so I used the I777UCKH7-CL503881 exe file but I got a fail message right after flashing cache.img

However, when I restarted the phone, on the boot screen the 'i9100' went away, it only shows 'Samsung Galaxy S II' and in odin it now shows SGH-i777

O I am assuming that flashing the param and boot files were a success, but it's not getting past cache

right now I'm trying to reflash the stock pit, pda, and modem files

---------- Post added at 02:10 PM ---------- Previous post was at 01:59 PM ----------

IT WORKED!!! Also successfully flashed CWM and CM7!

Thank you very much creepyncrawly
[AT&T Samsung Galaxy S II SGH-I777] :
I thought this thread was stickied? Oh well, it is now...
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
Great news. Glad for you. Now that you have recovered after flashing an I9100 csc file, what is your csc using *#1234#?
[AT&T Samsung Galaxy S II SGH-I777] rezcroll:
Currently I'm running UnNamed 2.2.1

my csc is I777ATTKK6
[AT&T Samsung Galaxy S II SGH-I777] pfmahoney:
I'm definitely a n00b. To Android, to ROMs and to the forum.

First off, a big thank you to Creepy for the post on recovering the phone back to stock. That was hugely helpful and I appreciate the time and thoroughness put into creating it.

I did the same thing as rezcroll. I bought a SGS2 i777 from Craiglist, and then flashed the same pre-release ICS for the i9100 onto it.

So then trying to undo this, I followed the guide at the top of the thread and things are mostly back to normal. There's only one issue and that is that I can't enter download mode or recovery mode the usual way. If I hold down power+home+down volume while the phone is off, it just turns on like normal. This power+home+down volume worked fine before I went off on my ICS i9100 adventure so it's something that I did. The only way that I was able to follow the instructions on flashing with Heimdall was by turning off the phone, holding down both volume controls and then plugging it into the computer.

Everything else is working. If I hit *#1234#, it reads:

PDA: I777UCKH7

Phone: I777UCKH7

SCS: I777ATTKH7

When I'm in download mode it says:

ODIN MODE

PRODUCT NAME: SGH-I777

CUSTOM BINARY DOWNLOAD: NO

CURRENT BINARY: SAMSUNG OFFICIAL

To get back from ICS 9100 land, I flashed

--pit I777UCKH7.pit

--kernel zImage

--factoryfs factoryfs.img

--modem modem.bin

--cache cache.img

--param param.lfs

--secondary-boot sbl.bin

and I think that's it. All files are from Creepy's other super-helpful page: http://xdaforums.com/showpost.php?p=20229527&postcount=46

So notably missing from the list is the boot.bin. But I'm scared to flash things without any instructions (I'm actually scared to flash things even with instructions), so I thought that I'd ask.

Thanks again, creepy
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
I don't know how you ever booted into download mode using power + home + vol- unless that is controlled by the secondary bootloader. That is the I9100 button configuration I believe. Anyway, on the I777, the only way to get into download mode as far as I know is holding vol- and vol+ while plugging in the usb cable, the jig, and through a modified phone options menu. To get into recovery on the I777 hold down vol - and vol + and power.

It's possible that the primitive bootloader, boot.bin, may not differ between I9100 and I777. The phone specific code such as the flash counter printout is contained in the secondary bootloader which you did flash. So as long as the phone is booting correctly, then I think you are fine not flashing the primitive bootloader.
[AT&T Samsung Galaxy S II SGH-I777] ComradeTao:
Hello, I bought a GS2 off of craigslist and unfortunately didn't know the guy had flashed a custom rom on the phone. I do not have a "jig" and I'm wondering if I can flash back to stock without considerable risk.

"ODIN MODE" reads

Product Name: SGN-I777

Custom Binary Download: Yes (7 counts)

Current Binary: Custom

Please shed some light on the subject for me.