Skip to content

Instantly share code, notes, and snippets.

@edouard-lopez
Forked from electricg/CyanogenMod.md
Created March 4, 2016 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edouard-lopez/4f8c6fd482cc6593dcb9 to your computer and use it in GitHub Desktop.
Save edouard-lopez/4f8c6fd482cc6593dcb9 to your computer and use it in GitHub Desktop.
CyanogenMod for Samsung Galaxy S II

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

  • Install Heimdall Suite as a normal application and follow the instructions.

  • Extract the zImage file from the ClockworkMod zip.

  • Open a terminal on the computer and navigate to the directory containing zImage (do not close the terminal for the moment).

  • Power off the Galaxy S II and connect the USB adapter to the computer but not to the Galaxy S II.

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

  • From the previously open computer terminal run the following command:

    sudo heimdall flash --kernel zImage --no-reboot

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

  • Manually reboot the phone into ClockworkMod Recovery mode by holding Volume Up, Home, & Power.

  • Use the physical volume buttons to move up and down and the power button to confirm your selection.

  • Select backup and restore to create a backup of the current installation on the device.

  • Select the option to wipe data/factory reset.

  • Select install zip from sdcard.

  • Select choose zip from sdcard.

  • Select the CyanogenMod file you placed on the sdcard. You will then need to then confirm that you do wish to flash this file.

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

  • Repeat the install, choose and select procedure for the Google Apps file.

  • Return back to the main menu, and select the reboot system now option.

  • The device should now boot into CyanogenMod.

Go back to the Stock Official Firmware

  1. Unzip the Official Stock Firmware
  • Open a terminal on the computer and navigate to the directory containing the extracted files (do not close the terminal for the moment).

  • Power off the Galaxy S II and connect the USB adapter to the computer but not to the Galaxy S II.

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

  • 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
    
  • A blue transfer bar will appear on the device showing the recovery being transferred.

  • Reboot the phone.

Sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment