[Samsung Galaxy S (4G Model)] c627627:
I don't know what you did but all the guides I hit using search were missing crucial information. I wrote this for myself in case I have to do it again but here is everything that I found out the hard way. Crucial links and crucial information is still missing from all the pages I found previously, please post if something is unclear below:

Heimdall One-Click 1.31

The "Fully Stock One-Click" solution to revert Samsung Galaxy S 4G SGH-T959V to its factory state. It includes:

Repartitioning: Repartition to stock KJ6 [UVKJ6 Android Gingerbread 2.3.6 Firmware]

Reloading: IBL/PBL, SBL, SBL2, PARAM, Kernel, Recovery, FactoryFS, Data, and Modem.

Formatting: Cache and DBdata

Use this code to format the SD Card *2767*3855#

http://sourceforge.net/projects/tea...T959VUVKJ6_STOCK-UVKJ6-One-Click.jar/download

1. Make sure Visual Studio C++ runtime, Java SE Runtime Environment and drivers are installed under Windows.

http://www.microsoft.com/en-us/download/details.aspx?id=13523

http://www.microsoft.com/download/en/details.aspx?id=8328

http://www.java.com/en/download/manual_v6.jsp

http://firon.net/xda/usb_drivers_GalaxyS_x64.zip

http://firon.net/xda/Samsung_Mobile_Driver_V1.3.800_For_SPH-d700_Epic_4G.zip

2. Press and hold USB icon in upper left corner then slide it down to get Notifications displayed > TAP on USB Connected > Turn on USB storage > OK > Your SD Card is accessible from your computer now.

[Do the same and TAP on Turn off USB storage to disconnect the phone from computer.]

3. Make sure to remove the /sdcard/Voodoo directory from your SD Card.

4. Power off your phone.

5. Take your USB cable and plug it into the computer ONLY, not the phone.

5. Hold down both the volume up and down at the same time then plug in the USB cable to your phone with the other hand. Keep holding the volume up and down buttons until you see the Download mode green [Warning!!] message.

5. Press Volume Up button to see" [Downloading... Do not turn off Target!!!]

6. Copy T959VUVKJ6_STOCK-UVKJ6-One-Click.jar to C drive then type this inside DOS prompt to start the process.

C:

java -jar T959VUVKJ6_STOCK-UVKJ6-One-Click.jar

7. Click on [Flash] > You will get a window that instructs you what to do > OK > to click on Options > List All Devices > From drop down menu, Select: SAMSUNG USB Composite Device > Replace Driver > Wait for it to finish > Close > Close the [Replace Driver] Window.

8. Now you should be able to click on [Flash] again and revert to factory state.

9. The phone will automatically reboot.

CyanogenMod 7 and 9 for Galaxy S 4G SGH-T959V

This is NOT Galaxy S Vibrant SGH-T959 or one of the many variants of Galaxy line of phones. It is Galaxy S 4G SGH-T959V. Instructions are very different for each of them.

=====

• To root the phone: Disconnect phone from computer > Tap Settings (Button in the left corner below SAMSUNG label) > Applications > Development > CHECK: Enable USB Debugging

Install Samsung drivers.

64-Bit: http://firon.net/xda/usb_drivers_GalaxyS_x64.zip

32-Bit: http://firon.net/xda/Samsung_Mobile_Driver_V1.3.800_For_SPH-d700_Epic_4G.zip

Make sure your battery is not near empty, then connect the phone to the computer with a USB cable >

Select Mass Storage when prompted but

DO NOT TAP Connect storage to PC

Use SuperOneClick software from Windows:

http://shortfuse.org/?page_id=2

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

(You may need to disable anti-virus and firewall software to use SuperOneClick.)

Double click on SuperOneClick.exe > Root > WAIT FOR THE LENGTHY PROCESS TO FINISH. The device will go in and out of sleep mode. The process may take 15 minutes.

Make sure Galaxy S 4G SGH-T959V is rooted. Check if Superuser icon is in the Applications menu.

=====

Immediately make a back up of the EFS folder from your phone. In the event any of the files in that folder get corrupted there is NO fix unless you have a backup:

Install Super Manager

https://play.google.com/store/apps/details?id=gpc.myweb.hinet.net.TaskManager

and start it

Go to [File Manager] on page 4 > TAP on [Back up level folder] twice >

Scroll down and look for folder called [efs] > Long press on the folder and select [copy] >

Now look for [sdcard] folder and select it > Paste

Copy efs folder from SD Card to tour computer so you have it backed up.

• To actually transfer files from SD Card to computer:

Press and hold USB icon in upper left corner then slide it down to get Notifications displayed > TAP on USB Connected > Connect Storage to PC (or Turn on USB storage) > OK > Your SD Card should be accessible from your computer now.

[Do the same and TAP on Disconnect Storage to PC (or Turn off USB storage) to disconnect the phone from computer.]

=====

• CyanogenMod 7 and CyanogenMod 9

1. Since Samsung drivers are already installed above,

2. Copy the following files to SD Card:

AntonX's Basic with a Twist SGS4G KJ6 1.1.3 file sms-T959V-KJ6-antsvx.v1.1.3.zip

CyanogenMod 9 installation file like cm-9-20120830-UNOFFICIAL-galaxys4gmtd.zip or

CyanogenMod 7 installation file like cm-7-20120704-UNOFFICIAL-galaxys4gmtd.zip

Latest version of Google Apps like gapps-ics-20120317-signed.zip or gapps-gb-20110828-signed.zip

Links to these files:

http://dl.dropbox.com/u/74713966/1.1.3/sms-T959V-KJ6-antsvx.v1.1.3.zip

http://xdaforums.com/showpost.php?p=27854042&postcount=4 or

http://xdaforums.com/showthread.php?p=25278378#post25278378

http://wiki.cyanogenmod.com/wiki/Latest_Version#Google_Apps

Source thread for Kernel:

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

3. Reboot the phone and make sure it is disconnected from your computer. Install SGS kernel flasher

https://market.android.com/details?id=neldar.sgs.kernel.flasher

(You will need to CHECK to allow Unknown sources to install non-Market applications when prompted.)

SGS kernel flasher > Allow Superuser access > [backup kernel] > wait for backup to complete >

[choose kernel] > [parent directory] > scroll down and select

sms-T959V-KJ6-antsvx.v1.1.3.zip

> [flash kernel] > Phone will reboot > You will hear Linda speaking on the Galaxy S 4G boot screen (if this is your first time flashing a custom kernel) > There is a lengthy wait while she keeps talking >

Phone will reboot again.

4. Power off the phone.

5. Use three fingers to hold down the Volume Up, Volume Down, and Power buttons simultaneously until you see a large S Samsung logo then let go and you will then get to

[CWM-based Recovery v5.0.2.8]

6. Press the Volume Down button to highlight [backup and restore] > Press the Power button to select highlighted item > [backup] > Power button > Wait for the backup of your current ROM to complete > You now have a backup of your current mod inside your SD Card's clockworkmod folder.

7. Press the Volume Down button to highlight [install zip from sdcard] > Press the Power button to select highlighted item > [choose zip from sdcard] > Power button > Select

CyanogenMod 9 file [cm-9-20120706-UNOFFICIAL-galaxys4gmtd.zip] or

CyanogenMod 7 file [cm-7-20120704-UNOFFICIAL-galaxys4gmtd.zip]

> Power button >

[Yes -- install cm-9-20120706-UNOFFICIAL-galax] or

[Yes -- install cm-7-20120704-UNOFFICIAL-galax]

> Power button > Wait for the phone to automatically reboot >

8. Power off the phone then use three fingers to hold down the Volume Up, Volume Down, and Power buttons simultaneously until you see: [CWM-based Recovery v5.0.2.8]

9. Press the Volume Down button to highlight [install zip from sdcard] > Press the Power button to select highlighted item > [choose zip from sdcard] > Power button >

[gapps-ics-20120317-signed.zip] for CM9 or

[gapps-gb-20110828-signed.zip] for CM7

> Power button >

[Yes -- install gapps-ics-20120317-signed.zip] for CM9 or

[Yes -- install gapps-gb-20110828-signed.zip] for CM7

> Power button >

9. When installation completes, select [+++++ Go Back +++++] >

10. The following step deletes everything from your SD Card and gets you into a completely fresh install:

[wipe data/factory reset] > [Yes -- delete all user data]

11. [+++++ Go Back +++++] > [reboot system now]

10. After an initially longer first boot, Galaxy S 4G SGH-T959V will then boot into CyanogenMod 9 or CyanogenMod 7.