[AT&T Samsung Galaxy S II SGH-I777] mr-cook:
I NOR ANYONE ELSE BUT YOURSELF IS RESPONSIBLE FOR ANY DAMAGES, LOSS, OR ANYTHING ELSE THAT MAY RESULTS FROM FOLLOWING THE INSTRUCTIONS, OR USING ANYTHING FOUND ON THIS PAGE ----USE AT YOUR OWN RISK----

CONSIDER THIS THE ONLY VALID POST IN THIS THREAD- EVERYTHING AFTER THIS POST COULD BE INCORRECT

ALL DANGEROUS LINKS HAVE BEEN REMOVED. IF I MISSED ANYTHING, AND A LINK TAKES YOU TO DEV-HOST- PLEASE CLOSE THE PAGE IMMEDIATELY, NONE OF THE LINK ON THAT SITE ARE SAFE!!!! If you're looking for one of the missing files try asking in the thread someone may still have them.

If your using the information on this page please remember to HIT THE THANKS BUTTON.

THIS IS ONLY FOR THE STRAIGHT TALK S2 MODEL# SGH-S959G...... NOT COMPATIBLE WITH ANY OTHER PHONE.

THE BEST WAY TO ROOT / OR FLASH A CUSTOM ROM -

Install RECOVERY using ODIN, make a BACKUP, then flash the ROOT ZIP in RECOVERY.

- TWRP 2.7.1.0 Odin-

- Make a backup with TWRP before going any further. Boot into recovery, select backup/ restore, backup.

- Root Zip- flash zip through CWM thanks to cynnar-

Mirror-

-You will need to install busybox from the market if staying on stock+ root.

- PhilZ CWM v6.0.2.7 If you will be using a Siyah based kernel ( AJK Kernel ), or would like the extra options in CWM flash this- View attachment 1703135

If you prefer CWM flashable zips can be found further down, and throughout the thread (search).

- ROMs

- I777 Main Thread- http://xdaforums.com/forumdisplay.php?f=1301 (Android Development, and Ported Development to find ROMs)

- OR flash CyanogenMod 10.1 from link below (this is flashed in CWM) From CyanogenMod 10.1 all i777 custom ROMs are compatible.

- CyanogenMod, and most all custom ROMs are already rooted when you flash them, no need to root first.

- You may need to change your APN for data to work with some custom ROMs. Stock APN is at the bottom of this post. Usually you can just edit the included APN from att.mvno to wap.tracfone , and save it, then select it. If data still doesn't work delete all other APNs besides the one you're using.

- ODIN INSTRUCTIONS -

- Samsung drivers must be installed on your computer- Samsung Drivers- http://www.samsung.com/us/support/owners/product/SGH-S959ZKATFN

- Download Odin 1.85- View attachment 1605837 and unzip.

- Enable USB Debugging in Settings menu of phone.

- Put your phone in Download Mode - -Power off, Hold volume down button, Plug in USB connected to computer, Hit volume up when prompted.

- Open Odin folder, Click Odin3 v1.85.exe, With your phone connected the box under ID:COM should be yellow (if it's not you missed a step earlier), Click PDA, Select the file you downloaded earlier, DO NOT TOUCH ANYTHING ELSE- MAKE SURE AUTO REBOOT AND F. RESET TIME ARE THE ----ONLY----- THINGS CHECKED----- AND RE-PARTITION AND FLASH LOCK ARE ----NOT---- CHECKED....., Press Start (It will take a few minutes to load everything do not touch your computer or the phone during any of this, after the phone re-boots it may take a few minutes to load back up leave it alone until it has fully started up and at the home screen). You should get a green PASS message in the top box.

- CWM ZIP FLASHING -

- Save Zip file to be flashed to the Root (not in a folder) of your External SD card

- BOOT INTO RECOVERY- Phone off

- Hold volume up, volume down and power button. (You can release just the power button at the samsung screen but dont have to).

- Select -install zip from sdcard, -choose zip from sdcard, -select the zip file you put there earlier, -it will ask you to confirm, select -yes -install

- If you are installing a custom ROM Do this FIRST before installing Zip, -wipe data/factory reset, wipe cache partition, select -advanced, -wipe dalvik cache

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FACTORY FIRMWARE (IN CASE OF SOFT-BRICK)

Before returning to Stock remember to format your preload partition. This can be achevied with my ROM wipe script found here- http://xdaforums.com/showthread.php?p=38199542

---CREDIT--- eclipsedarkmoon

This will only work with Heimdall-

- Download Heimdall 1.3.1-

Heimdall Suite 1.3.1 Windows https://github.com/downloads/Benjamin-Dobell/Heimdall/heimdall-suite-1.3.1-win32.zip

Heimdall Suite 1.3.1 OS X 10.4+ https://github.com/downloads/Benjamin-Dobell/Heimdall/heimdall-suite-1.3.1-mac.dmg

- Download Factory Firmware -

- Mirror-

- Open Heimdall, click Drivers, zadig.exe

- Put phone in Download Mode--Power off, Hold volume down button, Plug in USB connected to computer, Hit volume up when prompted

- zadig.exe menu, List all devices, Choose Samsung USB composite device (or similar) from list, Press Install Drivers (if you receive a message about being unable to verify the publisher of the driver click "Install this driver software anyway". Your computer may also need to restart for this).

- Now open heimdall-frontend.exe, on the Load Package (main page) select Browse from Heimdall firmware package, Select the Factory Firmware you downloaded earlier (it will take a minute while Heimdall extracts it), Once extracted press Load / Customise in the bottom right corner (this takes you to the Flash page),--- Select FACTORYFS in the box on the right labeled Partitions(Files), DO NOT TOUCH ANYTHING ELSE- MAKE SURE REPARTITION AND NO REBOOT ARE---- NOT----- CHECKED.... Press Start in the bottom right corner. (It will take a few minutes to load everything do not touch your computer or the phone during any of this, after the phone re-boots it may take a few minutes to load back up leave it alone until it has fully started up and at the home screen).

- Hopefully it has been brought back from the Dead.

- Odin flashable Factory Firmware -thanks to root4rd3d-

Uncompressed version-

- Put your phone in Download Mode --Power off, Hold volume down button, Plug in USB connected to computer, Hit volume up when prompted

- Open Odin folder, Click Odin3 v1.85.exe, With your phone connected the box under ID:COM should be yellow (if it's not you missed a step earlier), Click PDA, Select the file you downloaded earlier, DO NOT TOUCH ANYTHING ELSE- MAKE SURE AUTO REBOOT AND F. RESET TIME ARE THE ----ONLY----- THINGS CHECKED----- AND RE-PARTITION AND FLASH LOCK ARE ----NOT---- CHECKED....., Press Start (It will take a few minutes to load everything do not touch your computer or the phone during any of this, after the phone re-boots it may take a few minutes to load back up leave it alone until it has fully started up and at the home screen). You should get a green PASS message in the top box.

- STOCK ROM CWM FLASH -thanks to mr-cook

(this is will not change your recovery or modem)

- Download-

- Place on the root of your Ext.SD

- Boot into CWM recovery (if you can't do this start at the top of the page!)

- Factory reset * Wipe cache * Wipe dalvik cache

- Install zip from sdcard, choose zip from sdcard, select zip you downloaded earlier, confirm install

- Reboot

- STOCK MODEM- View attachment 1851492

- STOCK 3e RECOVERY Not sure why you would want it, but just in case- removed (YOU MUST FLASH THIS LAST TO RETURN TO STOCK)-

- IF YOU GET BOOT-LOOP- Boot into recovery

- Phone off

- Hold volume up, volume down and power button. (You can release just the power button at the samsung screen but dont have to).

- Factory reset, wipe cache

- Reboot

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ROOT ZIP-

Flash through CWM thanks to cynnar- View attachment 1752202

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

SGH-S959G - CyanogenMod

- CyanogenMod i777- http://www.get.cm/?device=i777

- GAPPS- http://goo.im/gapps

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

MODEMS

(Install with CWM)

-I777UCMD8- This is the Newest Available

- Stock- S959GUDLG1 thanks to mr-cook- View attachment 1851492

- I777UCLL6- ATT UCLL6 thanks to mr-cook- View attachment 1851555

- I777UCLK3- ATT UCLK3 thanks to mr-cook- View attachment 1851510

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

REMOVING THE YELLOW TRIANGLE

GINGERBREAD ONLY! (Root Required)

- Extract the stock zImage from the factory firmware at the top of this page (I used 7zip, and needed to extract it twice to get it apart).

- Put the stock zImage on the root (not in a folder) of your internal SD card. You can do this through the usb, adb push (adb push- Copy and paste the zImage into your folder with adb, connect your phone with usb, then command- adb push zImage /sdcard/zImage), whatever method you like.

- Now using adb shell, or terminal emulator found in the market (if you don't' have adb ask GOOGLE) issue the command (capitilazation and spacing matter):

$ adb shell

$ su

# dd if=/sdcard/zImage of=/dev/block/mmcblk0p5

This must be done as #, if you have a $ enter command: su

You must already be rooted for this to work. To switch to a different kernel afterwards you can use the same method, or CWM without getting the yellow triangle again or increasing the flash counter. As long as you flash internally, if you use Odin or Heimdall to flash anything thats not stock it will come back.

REMOVING YELLOW TRIANGLE ICS AND ABOVE!

-If running ICS or above you can use triangle away found here- http://xdaforums.com/showthread.php?p=22462960

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

CWM

Flash these from CWM

CWM RECOVERY v6.0.2.7 (ODIN flash) Thanks to r00t4rd3d-

- PhilZ CWM v6.0.2.7 built by AJ Newkirk- (Thanks to mr-cook)- View attachment 1703135 (This is compatible with AJ Newkirks Siyah kernel and jeboo's new features in SHOstock3)

- Phil's CWM v6.0.2.7 built by AJ Newkirk- (Thanks to mr-cook)-this one gets rid of the blue progress bar on the s2 boot screen, that's the only difference.

- CWM v6.0.2.7- (Thanks to mr-cook)- View attachment 1703137

-6.0.4.4 Odin-

- CWM v6.0.4.4- (Thanks to mr-cook)- View attachment 2387202

-6.0.4.5 Odin-

-6.0.4.5 zip-

-AJK CWM Odin-

-TWRP 2.7.0.0 recovery "thanks to razen kain" (flash from recovery)-

Let me know if this link gets killed and I'll add it to Dev host.

Flashing other versions of CWM with adb (Root Required)

- Extract the zImage (boot.img) from the ROM of your choice (I use 7zip to extract it).

- Put the zImage (boot.img) on the root (not in a folder) of your internal SD card. You can do this through the usb, adb push (adb push- Copy and paste the zImage into your folder with adb, connect your phone with usb, then command- adb push zImage /sdcard/zImage), whatever method you like.

- Now using adb shell (if you don't' have adb ask GOOGLE) issue the command (capitilazation and spacing matter):

$ adb shell

$ su

# dd if=/sdcard/zImage of=/dev/block/mmcblk0p6

or if it's a boot.img

# dd if=/sdcard/boot.img of=/dev/block/mmcblk0p6

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ADB (android debug bridge)

http://dottech.org/21534/how-to-ins...ows-computer-for-use-with-your-android-phone/

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

STOCK APN

APN

Name- Straight Talk

APN- wap.tracfone

Proxy- Not set

Port- Not set

User name- Not set

Password- Not set

Server- Not set

MMSC- http://mmsc.cingular.com/

MMS proxy- mms2.tracfone.com

MMS port- 80

MCC- 310

MNC- 410

Authentication type- Not set

APN type- default,supl,mms

BYOP sim card APN

APN

Name- Straight Talk

APN- att.mvno

Proxy- Not set

Port- Not set

User name- Not set

Password- Not set

Server- Not set

MMSC- http://mmsc.cingular.com/

MMS proxy- mms2.tracfone.com

MMS port- 80

MCC- 310

MNC- 410

Authentication type- Not set

APN type- default,supl,mms

New APN

Name: Straight Talk

Apn: tfdata

MMSC: http://mms-tf.net

Mms proxy : mms3.tracfone.com

MMS PORT: 80

MCC:310

MNC:410

APN TYPE: default,supl,mms

SIM unlock threads

- http://xdaforums.com/showthread.php?p=10456038

- http://xdaforums.com/showthread.php?p=30541172

If you don't have service after unlocking and switching SIM cards you need to flash an at&t modem like I777UCLL6 found above. Apparently the modem used by Straight Talk only works with their service.

Being THROTTLED? read this-

http://www.straighttalkwirelessforum.com/viewtopic.php?f=6792&t=66681

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

- I777 Main Thread-

http://xdaforums.com/forumdisplay.php?f=1301

- Samsung Drivers-

http://www.samsung.com/us/support/owners/product/SGH-S959ZKATFN

- BOOT INTO RECOVERY-

Phone off- Hold volume up, volume down and power button until you reach Recovery menu.

- DOWNLOAD MODE-

Power off, Hold volume down button, Plug in USB connected to computer, Hit volume up when prompted

- CWM ZIP FLASHING -

- Save Zip file to be flashed to the Root (not in a folder) of your External SD card

- BOOT INTO RECOVERY- Phone off

- Hold volume up, volume down and power button. (You can release just the power button at the samsung screen but dont have to).

- Select -install zip from sdcard, -choose zip from sdcard, -select the zip file you put there earlier, -it will ask you to confirm, select -yes -install

- If you are installing a custom ROM Do this FIRST before installing Zip, -wipe data/factory reset, wipe cache partition, select -advanced, -wipe dalvik cache

-Link to my CWM flashable Wipe Scripts-

http://xdaforums.com/showthread.php?p=38199542

More to come.......

THANKS

None of this would be possible without

- Entropy512

- eclipsedarkmoon

- r00t4rd3d

- RenderBroken

- and everyone else that has posted here, tested, questioned, etc...