Straight Talk SGS2- SGH-S959G

Search This thread

graphicw

Senior Member
Nov 12, 2012
62
2
I am already aware of the issue with the stock kernel because I had already attempted to build it and flash it. In the case of the factoryfs that is posted, I would say you are correct though I did not pay attention to the partition that was pulled. Another pull can always be performed to get the correct partition. Being that I have modified my phone, I cannot contribute usefully in providing the images.
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,088
25,086
Owego, NY
Fair enough, but this phone is indeed locked down in some fashion and you cannot just flash any i777 rom to it and expect it to work. There are clearly some of the i777 kernels that this varient will not work with. If you look over the thread, you will see that there is indeed and dump of factoryfs already posted on the thread. You will also see a copy of the kernel built from stock source code.



You cannot flash the recovery partition on this phone. It is indeed locked and this is easy to verify.

Where's your evidence of this? What makes you think you cannot flash it? I haven't seen a SINGLE person indicate that they have attempted to flash the recovery partition, nor have any people posted what error happens when they flash it. (NOTE: Don't write to mmcblk0p6 or flash recovery in Odin until someone has backed up mmcblk0p6 as described above!)

All I've seen evidence of is that an old-style kernel (combined kernel/recovery) does NOT enter recovery when people attempt to do it - which, if this device actually uses the recovery partition like sane Android devices do (the I777, I9100, and N7000 are broken in this regard), would make perfect sense.

And the fact that flashing alternate modems breaks things indicates clearly you can write to the modem partition - however I777 and I9100 modems appear not to be compatible with the S959G, just like I777, N7000, and I9100 modems are all incompatible with each other. The only evidence you've provided regarding modems is that if you flash a modem image to the cache partition (mmcblk0p7 is cache not modem), your modem doesn't change - which is exactly what you'd expect.
 
Last edited:
  • Like
Reactions: 4-2ndtwin

graphicw

Senior Member
Nov 12, 2012
62
2
I have attempted to flash the recovery partition and modem partition. It fails in Odin and returns the following error in Heimdall:

Uploading MODEM
100%
ERROR: Failed to confirm end of file transfer sequence!
MODEM upload failed!
Ending session...
ERROR: Failed to send end session packet!

I have tried multiple times. You also cannot flash sbl, boot, recovery or datafs without getting the same errors. You can successfully flash factoryfs, cache, hidden and kernel. There are several more here that can vouch the same thing. When did I ever post that I succeeded in flashing the modem? I do not recall ever posting that, the baseband has never changed on my device.

---------- Post added at 06:45 AM ---------- Previous post was at 06:36 AM ----------

Since my phone is hosed as of right now (wont boot beyond Rethink Possible regardless of what I flash) I went on ahead and attempted to flash the modem partition with your dailydriver Entropy. Here is the outcome of that little experiment:

graphicw@graphicw-Desktop-Main:~/Desktop$ sudo heimdall flash --modem zImage
[sudo] password for graphicw:
Heimdall v1.3.2, Copyright (c) 2010-2012, Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
Claiming interface...
Attempt failed. Detaching driver...
Claiming interface again...
Setting up interface...

Checking if protocol is initialised...
Protocol is not initialised.
Initialising protocol...
Handshaking with Loke...

Beginning session...
Session begun with device of type: 131072

Downloading device's PIT file...
PIT file download sucessful

Uploading MODEM
100%
ERROR: Failed to confirm end of file transfer sequence!
MODEM upload failed!
Ending session...
Rebooting device...
Re-attaching kernel driver...
 
Last edited:

Wanderin

New member
Dec 10, 2012
2
0
I have been watching this for a few days now and just signed up so i can post. Loved the Noob video btw LOL.....I still have an unmolested S959G if you guys need anything to keep this project moving. I AM a noob when it comes to smart phones, but i am proficient with PC building and tinkering. Whatever i can do to help.....

EDIT: Just heading to work and will check back in about 12hrs....
 
Last edited:

mr-cook

Senior Member
Nov 4, 2012
987
2,046
Entropy512 thank you so much for jumping back in here, and giving us a direction to head in. Hopefully you stick around to see the progress. Cynnar and eclipsedarkmoon didn't you already dump all the partitions? Now that we know the count numbers were off, could you please attach the correct ones needed? Then hopefully someone will be able to build a working kernel. With the info entropy512 has given us we are very close to getting this.

Sent from my SGH-S959G using Tapatalk 2
 
  • Like
Reactions: 4-2ndtwin

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,088
25,086
Owego, NY
I have attempted to flash the recovery partition and modem partition. It fails in Odin and returns the following error in Heimdall:

Uploading MODEM
100%
ERROR: Failed to confirm end of file transfer sequence!
MODEM upload failed!
Ending session...
ERROR: Failed to send end session packet!

I have tried multiple times. You also cannot flash sbl, boot, recovery or datafs without getting the same errors. You can successfully flash factoryfs, cache, hidden and kernel. There are several more here that can vouch the same thing. When did I ever post that I succeeded in flashing the modem? I do not recall ever posting that, the baseband has never changed on my device.

---------- Post added at 06:45 AM ---------- Previous post was at 06:36 AM ----------

Since my phone is hosed as of right now (wont boot beyond Rethink Possible regardless of what I flash) I went on ahead and attempted to flash the modem partition with your dailydriver Entropy. Here is the outcome of that little experiment:

graphicw@graphicw-Desktop-Main:~/Desktop$ sudo heimdall flash --modem zImage
[sudo] password for graphicw:
Heimdall v1.3.2, Copyright (c) 2010-2012, Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
Claiming interface...
Attempt failed. Detaching driver...
Claiming interface again...
Setting up interface...

Checking if protocol is initialised...
Protocol is not initialised.
Initialising protocol...
Handshaking with Loke...

Beginning session...
Session begun with device of type: 131072

Downloading device's PIT file...
PIT file download sucessful

Uploading MODEM
100%
ERROR: Failed to confirm end of file transfer sequence!
MODEM upload failed!
Ending session...
Rebooting device...
Re-attaching kernel driver...
Those look like an Odin protocol mismatch and not a sign of locking to me. I'll ask AdamOutler for details on what it looks like with a locked down device, but that REALLY looks like what happens when you have a protocol mismatch with broken PIT handling. I've seen the EXACT same thing from devices that I KNEW were unlocked when using the wrong version of Heimdall or Odin.

Entropy512 thank you so much for jumping back in here, and giving us a direction to head in. Hopefully you stick around to see the progress. Cynnar and eclipsedarkmoon didn't you already dump all the partitions? Now that we know the count numbers were off, could you please attach the correct ones needed? Then hopefully someone will be able to build a working kernel. With the info entropy512 has given us we are very close to getting this.

Sent from my SGH-S959G using Tapatalk 2
I covered it earlier, but the most important ones are for someone who has only flashed Daily Driver (not Siyah as that touches /system, although for some purposes it's better than no system dump) to get mmcblk0p6 (recovery) and mmcblk0p9 (system) dumps. Also a modem partition dump (mmcblk0p8) would be a good thing to have. Param (mmcblk0p4) is less important but still useful.
 

graphicw

Senior Member
Nov 12, 2012
62
2
Those look like an Odin protocol mismatch and not a sign of locking to me. I'll ask AdamOutler for details on what it looks like with a locked down device, but that REALLY looks like what happens when you have a protocol mismatch with broken PIT handling. I've seen the EXACT same thing from devices that I KNEW were unlocked when using the wrong version of Heimdall or Odin.

That could be possible. Both Heimdall and Odin fail on the boot, sbl, modem, datafs and recovery partitions. You can only flash kernel, hidden, cache, factoryfs and param partitions. You can also change the PIT as well. I have already tested that since my phone was hosed anyway. Thanks for looking into it. Should we find that partitions are indeed locked, how would we work around that?
 

Jack_R1

Senior Member
Aug 9, 2009
4,362
964
Here's the best reason to believe there's no lock on partitions:

One of the "supposedly locked" partitions is datafs, which is userdata and writable by default. There is absolutely no way to work with the phone if this partition is locked for write. Given that, I believe other partitions aren't locked either.
 
Last edited:

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,088
25,086
Owego, NY
Here's the best reason to believe there's no lock on partitions:

One of the "supposedly locked" partitions is datafs, which is userdata and writable by default. There is absolutely no way to work with the phone if this partition is locked for write. Given that, I believe other partitions aren't locked either.
Yeah. Datafs fails when flashing with Odin/Heimdall on a regular basis. Hell I don't think I've ever succeeded with that.
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,088
25,086
Owego, NY
That could be possible. Both Heimdall and Odin fail on the boot, sbl, modem, datafs and recovery partitions. You can only flash kernel, hidden, cache, factoryfs and param partitions. You can also change the PIT as well. I have already tested that since my phone was hosed anyway. Thanks for looking into it. Should we find that partitions are indeed locked, how would we work around that?

Even if Odin can't flash a partition, you can flash it with root access. The only exception is mmcblk0boot0/1 (needs a kernel patch) and HTC devices (that S-ON ****) - I've never seen a standard MMC partition write-locked on any Samsung I've ever worked with.

DO NOT try to **** with boot/sbl - improperly flashing these can easily hardbrick you.

Which version of Heimdall was it? 1.3.2 had a lot of issues on Samsungs.
 

graphicw

Senior Member
Nov 12, 2012
62
2
I tried Heimdall 1.31 as well and had the same issues. I only tested to see what partitions could actually be flashed which is why I attempted to flash datafs. My phone is pretty much hard bricked as of right now anyway. I will be able to be the guinea pig when a solution is found because I have nothing to lose by flashing the phone.
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,088
25,086
Owego, NY
I tried Heimdall 1.31 as well and had the same issues. I only tested to see what partitions could actually be flashed which is why I attempted to flash datafs. My phone is pretty much hard bricked as of right now anyway. I will be able to be the guinea pig when a solution is found because I have nothing to lose by flashing the phone.

I know even 1.3.1 had issues with datafs.
 

graphicw

Senior Member
Nov 12, 2012
62
2
I decided to experiment with Heimdall 1.30 and it ends up the same result as 1.32 and 1.31. I will say that Heimdall 1.32 cannot flash cache or factoryfs without failing whereas Heimdall 1.30 and 1.31 can.
 

Edward12

New member
Dec 12, 2012
4
1
I have a unmodified sgh-s959g, and I'd be willing to help in any way, as long as reverting back to stock is possible. Don't know much about Android (but am familiar with Linux on PC). If I understand correctly, if someone with a custom kernel uploads a dump of a pre-rooted filesystem, I could copy the image to my phone, and dump the stock kernel? There's no way to access the kernel image from outside the phone?
 

StoneComputers

Senior Member
Apr 12, 2012
124
1
Adams MA
You Guys are the best!!!

Reading this thread is like reading an intense book with ups and downs my heart really sunk when the guy said it was locked and the others quit... I had my phone in its box ready to return then the other guy posted (I'm sorry I'm horrible with names) he started talking about how it cant be locked and then others started to go along with him and my phone was back out of the box and back in my pocket... I really love this phone and I hope this happens...

Those of you who have flashed to the AT&T firmware are you using the SIM card that came with the phone? and those of you who flashed it and then messed it up were its now showing its the i777 does it still work on the network? At first when I brought the phone home I tried to use my BYOP SIM and the voice and text worked but not the Data and MMS I looked at the APN settings and they are the same as the ones I used on my iPhone, but there are a few more... I really want to root my phone because I need tethering (if any of you know of a tethering program that works without root on this phone with this network could you let me know?) also I want to edit the APN settings because I saw in another post on here that if you get rid of the proxy they cant keep track of your DATA usage or throttle your speed (anybody else do this?) I am a very patent man and I can wait for a proper root since I've seen people have complications with the AT&T ROOT so Im waiting a little while to see how you guys do... I know this post is a little off course but mainly Id like to thank you guys who do all this work and you do it just for the thrill and the cred... I tried so many times to get into the programing part of Tech but never got a hang of it... even though I used to run DOS back in the day and can still remember most of the commands (I hear Linux is close to old DOS with its commands) Im a hardware Tech and do a lot of repairs.

If nothing comes of this after a while I guess Ill try that Odin AT&T root but I have faith you guys will bump this thing out... ROCK on my friends


StoneComputers
 

graphicw

Senior Member
Nov 12, 2012
62
2
We are still not out of the woods yet as far as getting a solution for this phone and there are still several things to look into. If it has not been 15 days since you bought it yet, you may want to look into taking it back. As some have already pointed out in this thread, there are phones out there with better hardware available at the same price that already have custom solutions available for them. I have cofidence that there may be a solution for this phone eventually, but it may still be a bit of a wait on that.
 

SkywolfNINE

New member
Dec 12, 2012
4
0
so are there any roms i can flash with odin to get this thing to use wifi so i can add a APN? ive tried the zedomax kernel and that kills wifi, the siyah kernel just gives me a blank screen, and anything else i find wont show up in odin. my phone is stock other than those 2 flashes so i may be of help as a guinea pig, although i am just learning how to do all of this. i work for walmart though so i can get my hands on the returned phones before we send them to claims and test them if needed
 
Dec 1, 2012
19
12
greetings all. I am still actively working on stock recovery and getting clockworkmod working on this phone, albiet at a slow pace. I am juggling a lot of different things at the moment.

My dualboot laptop with ubuntu decided that it wants to randomly shut down, so it has been deemed unreliable for testing with the phone and I am working on getting ubuntu installed on a different computer.

I do not have a virgin dump of mmcblk0p9 the factoryfs.img and would like someone who has to upload it and provide a link. I am going to work on building the odin flashable tar with a rooted factoryfs.img, so then someone should be able to get a stock rom. Once the stock rom is avail, a stock rom should be able to be built.

graphicw, since you are currently bricked, would you try flashing a i777 stock rom, either gingerbread or ICS, perhaps if that will take the phone can be exploited to a clockwork recovery.
 

Entropy512

Senior Recognized Developer
Aug 31, 2007
14,088
25,086
Owego, NY
greetings all. I am still actively working on stock recovery and getting clockworkmod working on this phone, albiet at a slow pace. I am juggling a lot of different things at the moment.

My dualboot laptop with ubuntu decided that it wants to randomly shut down, so it has been deemed unreliable for testing with the phone and I am working on getting ubuntu installed on a different computer.

I do not have a virgin dump of mmcblk0p9 the factoryfs.img and would like someone who has to upload it and provide a link. I am going to work on building the odin flashable tar with a rooted factoryfs.img, so then someone should be able to get a stock rom. Once the stock rom is avail, a stock rom should be able to be built.

graphicw, since you are currently bricked, would you try flashing a i777 stock rom, either gingerbread or ICS, perhaps if that will take the phone can be exploited to a clockwork recovery.

That's the biggest thing we need.

Although I just realized - Most likely, one of the prerooted I777 system images would work for getting a stock kernel dump.

So if one person:
Flashes a prerooted I777 Gingerbread image (UCKH7 or UCKK6, doesn't matter) in Odin/Heimdall, they can get stock kernel (mmcblk0p5) and recovery (mmcblk0p6) dumps

If another person:
Flashes a Gingerbread Daily Driver release and NOTHING else, they can get stock system image (mmcblk0p9) and another copy of stock recovery (mmcblk0p6) to be sure we have a good dump of it

Once we have a backup of stock recovery, and ONLY after we do, then someone can see if flashing DD to mmcblk0p6 changes the recovery behaviors.
 

StoneComputers

Senior Member
Apr 12, 2012
124
1
Adams MA
Conspiracy theory....

I usually I have no problem waiting, in fact I think the way it sits is really fast and minimal, Also I can not return the phone... if I did I couldn't buy a new one since I used my Walmart credit card to get it... but the problem is whats going on behind the scenes. Have any of you guys installed Avast antiVirus on this phone yet? When installing the theft system Avast wants to install a program to get all incoming text before they are posted on the phone (so you can send commands to the phone to lock it, erase it, and stop it from shutting down so you can find it on the map and do what must be done to get your phone back.) There is a problem when they try to install this and its Trackfone Device Manager it takes first look on all your incoming Texts and data... Can ANYBODY tell me what this does? is Tracfone receiving my incoming texts? do they have a system laid out to control my phone just like this Avast program can do, by sending my phone texts and doing things like changing my settings and other things? This is one reason I cant wait to ROOT the phone to get rid of this crapware and I hope if this program does in fact spy on us we could sue or press charges... I am sorry for posting this here but this thread is the top thread for this phone thus far and those of you on the net that could check this thing out are here already... Anybody know what this thing does when it intercepts text messages? what else does it intercept? I wonder if the phone could be unlocked or controlled by this... maybe Im just paranoid but its worth taking a look at...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 85
    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 Odin3-v1.85.7z 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 S959GUDLG1_modem.zip
    - 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 SGH-S959G_Root.zip

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


    SGH-S959G - CyanogenMod

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


    MODEMS
    (Install with CWM)
    -I777UCMD8- This is the Newest Available

    - Stock- S959GUDLG1 thanks to mr-cook- View attachment S959GUDLG1_modem.zip

    - I777UCLL6- ATT UCLL6 thanks to mr-cook- View attachment I777UCLL6_modem.zip

    - I777UCLK3- ATT UCLK3 thanks to mr-cook- View attachment I777UCLK3_modem.zip

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


    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)

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

    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-
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    - I777 Main Thread-

    - Samsung Drivers-


    - 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-


    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...
    13
    Off-Topic:

    I just wanted to take a minute to congratulate mr-cook on becoming an XDA Recognized Contributor! :good: :good:

    This guy gives so much to the SII community and it is great to see him be recognized for his efforts.

    Congrats!

    /Off-Topic
    9
    The op needs to be updated with this'd information...

    The latest cwm is only for kitkat ROMs, that's cm 11+. Of you want to go with jelly bean ROMs like the one you're trying to use, you need to use cwm 6.0.2.7 it's older but JB won't flash on the newer ones. There are a few different versions but any will work as long add it's philZ, AJK, or 6.0.2.7

    Since you already have cwm installed you can just DL the zips and flash them in recovery then reboot "recovery" and it will be complete. No need for Odin now. Try that and get back to us

    I think I'm just going to replace CWM with the new TWRP in the op. It seems to be easy more compatible. Plus I like it better.

    EDIT: Done. Op updated to install TWRP with Odin to be more compatible.

    Sent from my SGH-S959G
    9
    since this post is in AT&T Samsung Galaxy S II SGH-I777 section...i thought it might be compatible. i even saw a lot of ROM posts where they says its compatible with i777 and sgh s959g....so i was in doubt and had to ask.....glad to know its not compatible...thx....







    I thought it was...a lot of the ROMs I search are based on the i777 builds just have to make sure you have the correct radio installed.....I've rooted mine and used several different ROMs just based off of this thread. Searching the thread with the search tool will yield massive results. See post#5 from the OP that's a fairly good clue.

    Ok ok ok wait... Let's clear up some confusion. The one and only difference between the 959g and the i777 is that the 959g has its recovery on a separate partition by itself, whereas the i777 has kernel and recovery on the same partition. The 959g can use any ROM or kernel built for the i777 no problem. But if you want a different recovery on 959g you must use one of the zips from the op or Odin. If you had an i777 and you flash a new kernel it will also install a new recovery as it will be packaged in the zip. If you flash the same kernel on the 959g, your kernel will change but recovery remains untouched since it is on a different partition. That is the one and only difference between the two. Happy flashing :thumbup::D