yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S II SGH-I777] sjwaste:
Hey folks, first post in this forum, currently somewhat active as an Evo owner. My ATT SGS2 arrives on Monday.

I apologize for a seemingly basic question, but could I flash the stock rooted image in the OP to root initially, or do I already need to be rooted using some other method to flash that? The first post suggests it's the case, but I don't want the first thing I do on this phone to be bricking it - I'll save that one for later.

Also, am I correct that root on these phones is at the kernel level, and that I need to make sure any kernel I flash is root-safe? From reading this forum and the General forum a bit, it doesn't seem like it's much of an issue, but it always helps to break the noob barrier to know why a root method works on your particular phone...

Thanks. Looking forward to the SGS2 on Monday.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
There are two forms of root:

1) Insecure kernel - this provides root at all times in an ADB shell but not in any other circumstances. It's often used to achieve form 2:

2) Rooted system image - This provides root access for all apps. Some kernels will auto-inject root into the system on boot, but no kernels currently out there do this. (The autoinject scrips started breaking when ChainsDD resumed updating Superuser and su after a long break.)

Samsung devices have a method of flashing called Download Mode (aka Odin Mode) which allows flashing of ANYTHING to the device without root access.

Unless you flash a bad bootloader (Sbl.bin), nothing can hardbrick the device that I know of. (Well, maybe a bad param.lfs could too - but that's why almost no one includes either of these in flashing packages.)
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
@sjwaste

Flashing the stock plus root in the OP is not only ok, it is the preferred method to root in my opinion.

If you are concerned about incrementing the flash counter, see the guides linked in my signature.
[AT&T Samsung Galaxy S II SGH-I777] sjwaste:
Cool, I appreciate the responses.

So since we're using a rooted system image, would I still be able to ADB into the device, su, and go from there? I'm sure as you all know, it's a useful tool to remove some of the bloat, push backup APKs, etc.

Also, if I understand this method, the root isn't necessarily permanent - accidentally installing an OTA update or something can break root and patch the hole, like requiring signed packages in ODIN or something? In other words, I should be careful.

When you say auto-injecting root on boot, do you mean mounting /system r/w? Can we still adb remount, or fire up a file manager to remount /system as r/w?

I'll be able to contribute something back eventually...
[AT&T Samsung Galaxy S II SGH-I777] sjwaste:
I was able to root using the stock rooted image in the first post. I'm now running the stock rooted image plus Entropy's DD. Used Heimdall on OSX, and I already had adb set up. The whole process took 5 minutes, tops.

Thanks for the help. I'll need to go find a project to get involved in now.
[AT&T Samsung Galaxy S II SGH-I777] cropythy:
I used this to return to stock only now I get a message upon booting in green text logo_att.jpg draw fail then the att logo comes up and the phone boots, I need to return this phone due to financial issues that have arisen and I need to know how to fix this...can anyone help?
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
Havn't seen this before, so I'm only speculating. I can't think what might cause it. Did you wipe data/ factory reset before flashing stock? If not try a wipe now, and maybe try to flash again. There's also a dialer code for a hard reset that I would try if it was my phone. I can look it up for you if you want to try it.
[AT&T Samsung Galaxy S II SGH-I777] cropythy:
That would be appreciated, and in the mean time I will try to wipe then reflash. Also there is a thread in Q&A about this issue where someone else had it seems from Nov 18th that got no replies about it.

Edit: I did some more digging and it seems that the param or something like that didn't flash, and I have it working now. Thank you anyway.
[AT&T Samsung Galaxy S II SGH-I777] sjwaste:
Just so we can provide an answer should the question come back up, did the wipe and reflash work, or was there something else you did to fix it?
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
I think he had to flash param.lfs which is included separately. (I prefer to avoid touching this at all costs, which is why it is separate.)
[AT&T Samsung Galaxy S II SGH-I777] sjwaste:
Interesting. I just pulled up /mnt/.lfs to have a look. is the whole bootloader contained there, along with the splash screens? I couldn't find another traditional /boot partition that might contain it.

Seems high risk, low reward to mod those graphics.
[AT&T Samsung Galaxy S II SGH-I777] gidgiddonihah:
Hi. After issues with installing a ROM for the international Samsung Galaxy SII and having my back and search buttons not work (Stupid me), I downloaded and flashed the rooted tar from this thread. I used Odin on Windows 7 Home Premium 64 Bit, and everything went great and seems to work but for one problem:

Now whenever I try to save a contact the whole app crashes and contacts restarts. Do you guys have any ideas on how to fix this? The 3e recovery won't load unless I force it to in ROM Manger and then it spits out:

"E: failed to verify whole-file signature

E: signature verification failed"

Edit:

I did a factory reset which fixed everything (so I thought), until I needed to make an important call. The phone app would not produce or receive sound after the call or answer button was hit.

Then the superuser wouldn't uninstall (Even when apps that needed root access said that the phone wasn't rooted) so I could take it back to AT&T. After rerooting (From his unrooted tar) and then unrooting with superoneclick and then flashing his unrooted tar again with Odin did Superuser disappear.

I returned the phone and got a new one through warranty... But I don't think I'm going to root for awhile until I figure out which way works the best, and how to reliably unroot it.
[AT&T Samsung Galaxy S II SGH-I777] phjnky:
Downloaded to sgs2. unzipped with archidroid and used mobile Odin to flash PDA.tar. worked without a hitch from unnamed.

Apps/settings all intact. Flashed dd kernel back in.

Never Connected PC or Mac.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Just uploaded UCKK6 rooted stock package - OP edited with link.

The UCKK6 package requires a slightly different heimdall command to flash the cache image:

heimdall flash --kernel zImage --factoryfs factoryfs.img --cache cache.img
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
What's the reason/advantage of including the cache?
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
On bone-stock devices that have never been turned on, the CSC is in an update.zip on /cache that gets flashed on first boot.

So when we get a full Odin package for a firmware, we can get the complete picture.

For the UCKH7 firmware, that was a dump from a device that had already been turned on, so everything that was in /cache had been put into /system
[AT&T Samsung Galaxy S II SGH-I777] hchxoom:
Entropy and/or Creepy - looks like someone has figured out how to access and use SGS2's encryption abilities (see this XDA thread http://xdaforums.com/showthread.php?t=1405165 )

The downside is it only will work on stock kernels and stock (maybe stock-based) ROMs.

Planning to flash back to experiment. Can I use the latest KK6 package with mobile Odin? Once on a stock kernel with 3e recovery,is there a way to flash one of the stock-based ROMs tobsee if they'll work?

Thanks in advance.
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
I just read through the OP of that thread quickly, but it seems you need to not only have a stock kernel, but the busybox symlinks must not be present.

I havn't played with Entropy's KK6 yet, but it does include root. I think you need to be real clear about what will work. Maybe you should post questions in that thread. Anyway, the only way to go back to fully stock unrooted, as far as I know, would be with UCKH7.

That being said, you can flash the UCKK6 tar with mobile odin. After that, mobile odin only works if you are rooted, and flashing something with adb or terminal also requires root, so it all depends if you can use that tool on a rooted phone or not.
[AT&T Samsung Galaxy S II SGH-I777] hchxoom:
Thanks, Creepy, for this response as well as your helpful guide threads. I have read the whole thread and discussed briefly with that author (very helpful), and think it will work on a rooted kernel... but I may test both ways. He/she is in an int'l sgs2, so couldn't advise much on ours... and the app may not work on ours at all. Will report back
[AT&T Samsung Galaxy S II SGH-I777] :
Lets stick this all important thread, shall we?

Done.
[AT&T Samsung Galaxy S II SGH-I777] ou812bkewl:
What is hidden.img for? It's never listed to be flashed in any of the Heimdall command lines.
[AT&T Samsung Galaxy S II SGH-I777] the_professor.:
i put it to stock,now it just hangs on the the att rethink possible part.Please help
[AT&T Samsung Galaxy S II SGH-I777] gr8hairy1:
Put it in download mode and try taking it to stock again

Sent from my páhhōniē
[AT&T Samsung Galaxy S II SGH-I777] the_professor.:
tried that nothing happen
[AT&T Samsung Galaxy S II SGH-I777] BruteSource:
Thank you so MUCH! Peope do not realize that besides a few donations here and there you guys do this for free, and you do it amazingly! Thanks you a million times over!
[AT&T Samsung Galaxy S II SGH-I777] xfive420:
updates fail

Is it possible that using this method to root the phone could cause the recent AT&T software update to fail? There is an AT&T software update available which I believe upgrades the phone to 2.3.6 but when I try to install it, the phone reboots, goes to a white "software update" screen, prepares the update, reboots again, and then gives the error:

"Install interrupted. The software update could not be installed at this time."

I can't think of a reason why simply having root access on a stock ROM should prevent updates from installing, but that seems to be the case. Maybe the update checks for the presence of the superuser app and aborts if it finds it. I know I'm not the only one getting this error when updating, but has anyone else gotten this error after using this particular method to root the phone?
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
No clue why - but why bother with updates? If you really want UCKK6, there's a flashable image in the first post, but nearly everyone who has gone to UCKK6 has wound up reverting.
[AT&T Samsung Galaxy S II SGH-I777] xfive420:
Oh I didn't realize UCKK6 was the same update. It's great that I still have access to it by flashing it. Thanks.

Personally I don't need the update at all, and the more I read about it the less I want it. It just popped up and I figured it doesn't get any easier than updating by hitting the "OK" button. I was just surprised when it failed and wondered if it was just me or if the same thing happened to anyone else who flashed the rooted stock rom.
[AT&T Samsung Galaxy S II SGH-I777] Waddle:
Thanks entropy. This saved my phone when I was a super noob.

If I had money, I would get a credit card. If I had a credit card, I would donate.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Note that I'm working on finding alternative hosting for these, as the majority of the Multiupload links are now gone in the fallout of the Megaupload fiasco, and the remaining ones seem to be dropping like flies.
[AT&T Samsung Galaxy S II SGH-I777] CapoRocco:
At&t oem rom ???

Is this the actual AT&T OEM Stock Rom ???
[AT&T Samsung Galaxy S II SGH-I777] Simba501:
Yes.

Sent from my Galaxy SII
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Yes (except for the pre-rooted packages, of course - and root is the only change there). The UCKH7 system image was dumped from a stock device by Jivy26. I used this dump to make a prerooted system image that let me dump a kernel on launch day.

The UCKK6 image is extracted from the Samsung "leak". I have never seen a "leak" differ from an OTA that went live with the same build identifier. (Other than the leak had bootloaders which I removed, the OTA did not have bootloaders. You don't want UCKK6 bootloaders!)
[AT&T Samsung Galaxy S II SGH-I777] xfile102:
Entropy, I am at your mercy, as you have been regarded as somewhat of a genius. Here is the deal. I followed a guide on another site to Root my i777. I am a N00B and was unaware the package was a GT-I9100 flash and put it on my phone. I later decided to Flash ICS Rom, and after doing so, lost a great deal of the functionality of my phone. I have since been directed here. Here is where I am now.

ODIN MODE

PRODUCT NAME: GT-i9100

CUSTOM BINARY DOWNLOAD: YES (6 COUNTS)

CUSTOM BINARY: SAMSUNG OFFICIAL

All I want to do is return my phone to factory default so I can re-root it and put a VALID i777 rom on it. Please help. I have been sent in so many directions, following threads like this:

http://xdaforums.com/showthread.php?p=18576627#post18576627

http://xdaforums.com/showthread.php?t=1452980

I simply want my phone back to a i777 rom.

I have tried the Odin3 One-Click Downloader Stock I-777 UCKH7 with Root no BL, and it fails everytime. Help a lowly n00b out PLEASE!!!
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
Your flash counter indicated that you flashed the I9100 secondary bootloader. You probably flashed a package with bootloaders, param.lfs and all the other files for I9100. The files you need to recover your phone are in the Download Repository, linked in my signature. In particular, you need the files in the section I777UCKH7-CL503881 Stock Binaries.
[AT&T Samsung Galaxy S II SGH-I777] xfile102:
Ugh

I am going to beat my head against a wall....

I followed the instructions to Flash the i777 Secondary Bootloader prior to doing the I777UCKH7-CL503881 FULL Odin3 One-click Downloader. All went well. Then I shut the phone off so I can use the One Click Downloader, and I can't get the phone into download mode anymore. I tried Power and Volume Down, several times, no response. I tried Power + Volume Up, no dice. What to do now??
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
On the I777 secondary bootloader, download mode is:

with the phone off, hold down vol+ and vol- (but not power) while plugging in the usb cable.
[AT&T Samsung Galaxy S II SGH-I777] xfile102:
@CreepyCrawly - Thank You so much. However, running the one click Odin, it failed. What next?

---------- Post added at 11:06 PM ---------- Previous post was at 10:24 PM ----------

Ok. I managed to reflash the .PIT which put the phone into the Phone--!--PC screen, which then enabled me to run the I777UCKH7-CL503881-No-BL One Click Odin. It completed and rebooted, but went straight to Recovery, and I get the Following:

Installing update...

Successfully installed package.

--Copying media files...

Successfully copied media files.

-- Wiping cache...

Formatting /cache.,..

Cache wipe complete.

--Updating Application...

E:failed to mount /data (Unknown error: 0)

E:install_application_for_customer :Can't mount /data

your storage not prepared yet. please use UI menu for format and reboot actions.

copy application failed.

--Applying Multi-CSC...

Installing Multi-CSC

Can't access to '/system/csc/KOR/system'.

Successfully applied multi-CSC.

What should i do? Just reboot?
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Reboot, you may need to manually enter recovery (VolUp + Power) and choose "wipe data/factory reset"
[AT&T Samsung Galaxy S II SGH-I777] xfile102:
Alright. I rebooted into recovery, and then "wipe data/factory reset". Then I rebooted.

ALL IS WELL NOW!!!:cool::cool:

THANKS TO ENTROPY, CREEPYNCRAWLY, and any others for all your AMAZING help. You managed to take an i777 phone with wrongly flashed i9100 BL's, ROM's, Krrnels, and a MultiFlashed Odin Counter, and resurrect it back to stock without a jig. YOU ARE AMAZING.

NOW.... To avoid my previous CHAGRIN...

I followed this guide before :

http://xdaforums.com/wiki/Samsung_Galaxy_S_II_Series#Recovery_Mode

Which directs you HERE to Root: http://xdaforums.com/showthread.php?t=1056334

Until I had to go through this nightmare you all helped me with, I never noticed this procedure was for the i9100. How do ROOT the i777?

I simply want to ROOT my i777, and put a 2.3.6 or 2.3.7 ROM on it. Thanks for all your help!
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
See sticky posts in general forum. I777 currently has 2.3.4 and 2.3.6 based roms.
[AT&T Samsung Galaxy S II SGH-I777] avidmovies:
This is what you want: http://xdaforums.com/showthread.php?t=1311081
[AT&T Samsung Galaxy S II SGH-I777] dustinshepard:
Sorry I am a NOOB to Samsung devices need help rooting

I have the Samsung Galaxy S2 and firmware is: 2.6.35.7-1777UCKK6-CL770444I want to root with keeping my current ROM and hopefully not do a wipe. Can I use this file to root "uckk6_stock_rooted.tar"?

Any help you can give would truly be appreciated!!!

Thank you
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Yes, that should work to root without wipe.

Wiping is usually only needed when changing firmwares - returning to stock from custom, or reverting from UCKK6 back to UCKH7 to escape KK6's battery life bugs.
[AT&T Samsung Galaxy S II SGH-I777] themann00:
I'm having the same boot-looping issue, and can get into recovery mode, but it wants me to confirm a password when I try the "wipe data/factory reset"
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Did you have a PIN or password set up previously?

You may need to install a CWM-enabled kernel and do a data wipe from CWM.
[AT&T Samsung Galaxy S II SGH-I777] cmd512:
Anyway to get the KK6 root file? Can't load multiupload at all now... thanks!
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
If this is more than a temporary outage, I'll reupload this weekend.
[AT&T Samsung Galaxy S II SGH-I777] xandr115:
Eek, looks like it's still down. Anyone else have another link?
[AT&T Samsung Galaxy S II SGH-I777] avidmovies:
I have a copy on my home computer, is there any host you prefer?
[AT&T Samsung Galaxy S II SGH-I777] diddysho:
image mirrors

Multiupload has been down for over 2 days.

I am looking for these 2 packages. Anyone got a mirror link?

Kernel + non-rooted UCKH7

UCKH7 modem package
[AT&T Samsung Galaxy S II SGH-I777] fapulous:
I'm looking for one click to stock with boot. Used a I9000 hellraised rom and when I unplugged it from my PC it went berserk.
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
You can find the files you need in the Download Repository, linked in my signature. Except, MultiUpload is currently down, and I have not updated all the links yet. I hope to get them all switched over to dropbox links by the end of the day today. (Saturday)
[AT&T Samsung Galaxy S II SGH-I777] fapulous:
Using my old inspire right now, but would like to have my sgs 2 back. If you do I'll put on my dropbox. How much would hosting cost?
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
Everything I posted in the Download Repository now has a working link. I'm using dropbox public sharing links for everything.

If you need help getting your I777 recovered, let me know.
[AT&T Samsung Galaxy S II SGH-I777] dustinshepard:
Got it rooted however cannot access Clockworkmod?

So I got this rooted, thank you! But when I hold down the +- volume and power button when the phone is off (to try to get into clockworkmod) it just takes me into the Android system recovery? I am definitely rooted and am trying to install a zip file from the "Kitchen" for battery percentage on the notification bar. Any help?
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
root and having CWM have nothing whatsoever to do with each other. Installing kernels with CWM is covered in the FAQ for this device.

Edit: I'm working on reuploading stuff to dev-host.org - UCKK6 rooted is up, for some reason the first rooted UCKH7 upload failed so I'm reuploading.
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
You installed a bone stock kernel, along with stock system image which includes root.

Now you need to install a custom kernel which contains ClockworkMod Recovery, probably Entropy512's daily driver. See the guide linked in my signature if you need help.
[AT&T Samsung Galaxy S II SGH-I777] desiromeo719:
Entropy every time i download the uckk6 file from the second link...it downloads really fast and does not unzip on my comp...it just doesnt even start...i think there might be something wrong with the file...is it just me?

edit - nvm the file downloaded is 276mb so it must be full file...ill try another program to unzip...

still no luck.
[AT&T Samsung Galaxy S II SGH-I777] fapulous:
Thanks man, unfortunately I just got home to check it and the link is down.

Edit: I fixed it! I used Entropy's uckk6 stock root file and then siyah -v2.6.12 kernel. I was getting a decryption meta data error. It was really weird because I've been flashing roms for years and never seen that happened. Thank you Creepyncrawly and Entropy512.
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
Um, it's a 7-zip (.7z) file - you need to use 7-zip to extract it, which I've linked to from the first post.
[AT&T Samsung Galaxy S II SGH-I777] diddysho:
creepyncrawly, your Dropbox links are giving me bandwidth errors.

Still looking for

Kernel + non-rooted UCKH7

UCKH7 modem package
[AT&T Samsung Galaxy S II SGH-I777] creepyncrawly:
Exceeded their 10GB download limit in the first day. Links down for three days. I'm out of town and will not be able to deal with it until I get home. Sorry for the inconvenience. Btw, there is nothing in the dropbox terms of service about bandwidth limits. You have to go over the limit and get their email, or look in their FAQ, to find out about it.

Also, some of the dropbox links in the download repository are still good. (I have two accounts.) You could still download all the parts separately and use heimdall or terminal to install them.
[AT&T Samsung Galaxy S II SGH-I777] themann00:
That's what I ended up doing- fixed it- thanks!

Now that I'm back to stock, I'm trying to go to CM7 (not you, I know) with the same files that got me to CM7 in the first place, and after doing CWM flash, it just sits at the Samsung splash screen. Any ideas? I've followed all guides, wiped everything before, after, before&after flashing. Now I can just go back to your stock rom anytime, so I'm not too worried--- but it's frustrating, since these files worked before.

The whole reason I needed to get back to the stock was to see if my exchange server wasn't talking to my phone because of CM7, or something else. It's working in Stock, so I want to go BACK to CM7 again, and now I can't. Any ideas?

Thanks for all your hard work!
[AT&T Samsung Galaxy S II SGH-I777] Entropy512:
CM7 needs to be double-flashed when you install it (The CM7 installation instructions cover this...). It seems to be a general quirk of installing CM7 on any Samsung. Enter CWM and wipe/flash again.
[AT&T Samsung Galaxy S II SGH-I777] Ensomniacc:
Before I go on...I've searched, I've read, I just have a few questions that I am a little confused about, in this thread: http://xdaforums.com/showthread.php?t=1313659 it states that if you have the GT-9100 on your splash that you have a different bootloader, mine has that splash but I am running UnNamed 2.2.1, will returning to stock with this method flash the original bootloader? Or does UnNamed even change it?

I want to clarify because I bricked my captivate once due to neglecting bootloader safety >.<