[GUIDE] How to Prepare Your Phone to Return to the Store or for Warranty Replacement

creepyncrawly

Senior Member
Sep 3, 2010
2,770
3,276
0
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.
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.
 
  • Like
Reactions: 4-2ndtwin

rezcroll

New member
Jan 13, 2012
4
1
0
Chicago
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...
 
Last edited:

creepyncrawly

Senior Member
Sep 3, 2010
2,770
3,276
0
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.
 
Last edited:

rezcroll

New member
Jan 13, 2012
4
1
0
Chicago
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
 

pfmahoney

Member
Jan 18, 2012
16
12
0
Fort Collins, Colorado, USA
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://forum.xda-developers.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
 
Last edited:

creepyncrawly

Senior Member
Sep 3, 2010
2,770
3,276
0
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.
 
  • Like
Reactions: 4-2ndtwin

ComradeTao

New member
Aug 4, 2011
4
0
0
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.
 

creepyncrawly

Senior Member
Sep 3, 2010
2,770
3,276
0
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.
There is very little risk involved since the return to stock package does not contain bootloaders. However, returning to stock will not reset the flash counter, as only the jig will do that. As long as you are not returning the phone under warranty, the flash counter is of little consequence. It has no effect whatever on the function of the phone.
 
  • Like
Reactions: 4-2ndtwin

zizzerboy

Member
Feb 16, 2011
21
1
0
I'm very sorry if this has been asked, but where can we obtain the Odin3 One-click Downloader I-777 UCKH7? Obviously the link on the OP no longer works...

Thanks!
 

lorijuan1024

Senior Member
Mar 15, 2008
437
5
0
nothing is happening when i open the odin3 and i am in download mode too i also have 2 flash counts if that is relevant

nvm i got it to work just unplugged and replugged
 
Last edited:

AlwaysNoob

Senior Member
Jan 25, 2012
81
17
0
Minneapolis
downloading stock UCKK6 for i777 without losing data

I had 2.3.6 UCKK6 before I rooted my phone.

I rooted with method described by galaxys2root which was written for 2.3.4 and it broke my wifi. I only downloaded his zedomax kernel for rooting via odin.

I want to return to stock 2.3.6 kernel for i777 without losing system settings, apps, app data and user data. Is there any way of safely reverting to stock without losing these data? I see that all of your packages are kernel+ROM which needs a factory reset/wipe.

If there is a safe method, can you please direct me to link for 2.3.6 UCKK6 stock kernel for i777?
 

creepyncrawly

Senior Member
Sep 3, 2010
2,770
3,276
0
There is a stock plus root UCKK6 package in the Unbrick/Return to stock thread which is a sticky in the development forum. You can try flashing that without a wipe. You will know right away whether it works ok, because if it doesn't, things will be broken, and you will get for instance force closes, etc. If it doesn't work, then just go ahead and do a wipe and you should be fine.

I would suggest that you first back everything up that you can't manually restore, however.
 
Last edited:
  • Like
Reactions: 4-2ndtwin

AlwaysNoob

Senior Member
Jan 25, 2012
81
17
0
Minneapolis
I do not want to wipe the device. Any way of downloading just the kernel without wipe? The package posted in unbrick/return to stock is kernel +ROM.

Sent from my SAMSUNG-SGH-I777 using XDA App
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone