giugee(k)

CyanogenMod for Samsung Galaxy S II

This guide is for installing CyanogenMod 10.1 on Samsung Galaxy S II using Mac OS X (10.8.4 at the time of writing).

Get the files

Installation

  1. Fully charge the device.
  2. Place the CyanogenMod rom and the Google Apps .zip files on the root of the SD card and on the root of the phone storage.
  3. Install Heimdall Suite as a normal application and follow the instructions.
  4. Extract the zImage file from the ClockworkMod zip.
  5. Open a terminal on the computer and navigate to the directory containing zImage (do not close the terminal for the moment).
  6. Power off the Galaxy S II and connect the USB adapter to the computer but not to the Galaxy S II.
  7. Now boot the Galaxy S II into download mode by holding down Volume Down, Home & Power. Accept the disclaimer. After this insert the USB cable into the device.
  8. From the previously open computer terminal run the following command:

    sudo heimdall flash —kernel zImage —no-reboot

  9. A blue transfer bar will appear on the device showing the recovery being transferred.

  10. Manually reboot the phone into ClockworkMod Recovery mode by holding Volume Up, Home, & Power.
  11. Use the physical volume buttons to move up and down and the power button to confirm your selection.
  12. Select backup and restore to create a backup of the current installation on the device.
  13. Select the option to wipe data/factory reset.
  14. Select install zip from sdcard.
  15. Select choose zip from sdcard.
  16. Select the CyanogenMod file you placed on the sdcard. You will then need to then confirm that you do wish to flash this file.
  17. If for some reason it’s not possible to install from the sdcard, select the choose zip from internal sdcard option to select the files from the internal memory.
  18. Repeat the install, choose and select procedure for the Google Apps file.
  19. Return back to the main menu, and select the reboot system now option.
  20. The device should now boot into CyanogenMod.

Go back to the Stock Official Firmware

  1. Unzip the Official Stock Firmware
  2. Open a terminal on the computer and navigate to the directory containing the extracted files (do not close the terminal for the moment).
  3. Power off the Galaxy S II and connect the USB adapter to the computer but not to the Galaxy S II.
  4. Now boot the Galaxy S II into download mode by holding down Volume Down, Home & Power. Accept the disclaimer. After this insert the USB cable into the device.
  5. From the previously open computer terminal run the following command:

      sudo heimdall flash --factoryfs factoryfs.img --cache cache.img --hidden hidden.img --modem modem.bin --kernel zImage --param param.lfs --primary-boot boot.bin --secondary-boot Sbl.bin
    
  6. A blue transfer bar will appear on the device showing the recovery being transferred.

  7. Reboot the phone.

Sources