Template:Samsung install
From CyanogenMod
Installing a custom recovery on {{{device_name}}}
Samsung devices come with a unique boot mode called Download Mode which is very similar to Fastboot Mode on some devices with unlocked bootloaders. Heimdall is a cross-platform, open source tool for interfacing with Download Mode on Samsung devices. The preferred method of installing a custom recovery is through this boot mode. Rooting the stock firmware is neither recommended nor necessary.
- Download {{{install_devname}}}'s ClockworkMod Recovery, and the Heimdall Suite:
- {{{install_devname}}}'s ClockworkMod Recovery: [{{{install_file}}} download]
- md5:
{{{install_md5sum}}}
- md5:
- Windows:
- Heimdall Suite 1.4RC1 Command-line Binary(has bug): download
- Heimdall Suite 1.4RC2 Command-line Binary: download
- NOTE: The Heimdall Suite 1.4RC2 requires the Microsoft Visual C++ 2012 Redistributable Package to be installed on the computer, which can be downloaded here. You will need the 32/64 bit version as required by Heimdall, NOT as required by your OS. Heimdall currently seems to be 32 bit. You may well ACTUALLY need to reboot for the redistributable to install properly.
- Linux 32bit:
- Heimdall Suite 1.4RC1 Command-line Binary: download
- Linux 64bit:
- Heimdall Suite 1.4RC1 Command-line Binary: download
- Mac OS X:
- Heimdall Suite 1.4RC1 Command-line Binary: download
- Place the libusb-1.0.0.dylib library from the zip inside /opt/local/lib on the machine.
- Heimdall Suite 1.4RC1 Command-line Binary: download
- Building From Source: The source code for the Heimdall Suite is available on Github. For more details about how to compile the Heimdall Suite, please refer to the README provided on Github or refer to the instructions to Install and compile Heimdall.
- {{{install_devname}}}'s ClockworkMod Recovery: [{{{install_file}}} download]
- Power off the {{{device_name}}} and connect the USB adapter to the computer but not to the {{{device_name}}}.
- Now boot the {{{device_name}}} into download mode by holding down {{{device_download_mode_steps}}} and tapping the power button. Accept the disclaimer. After this insert the USB cable into the device.
- Windows only:
- Run the included zadig.exe in the drivers folder of the Heimdall Suite.
- Choose Options » List All Devices from the menu.
- Select Samsung USB Composite Device or Gadget Serial or Device Name from the drop down menu.
- Click Replace Driver (having selecting "Installed Driver" from the drop down list built into the button).
- NOTE: A prompt may appear warning that the installer is unable to verify the publisher of the driver, ignore it and select "Install this driver anyway." Also you may receive two strange prompts, possibly from Windows, about security. Cancel then both and just carry on.
- NOTE: On Windows 8 you must disable driver signature enforcement in order to use zadig.
- Windows only:
- Place {{{install_devname}}}'s ClockworkMod Recovery file into the Heimdall directory.
- On the computer, open a terminal and run the following command from the Heimdall directory:
- Tip: It may be necessary to run the command as root in Linux distributions, ie "sudo heimdall [...]". If a blue bar doesn't show up after the process has finished or this appears: "Failed to confirm end of file transfer sequence!", it may be a symptom.
- Tip: it may be necessary to capitalize the name of the partition on some devices... ie --KERNEL instead of --kernel
- Tip: protocol initialization can (does?) fail if the device is connected via a USB hub - connect directly to the PC
- A blue transfer bar will appear on the device showing the recovery being transferred.
- You need now to manually reboot the phone into ClockworkMod Recovery mode by holding {{{device_recovery_boot_steps}}}.
- The {{{device_name}}} now has ClockworkMod Recovery installed. Continue to the next section.
Helpful Tip
- The stock ROM may overwrite your custom recovery on boot. To prevent this, boot immediately into ClockworkMod Recovery after leaving Download Mode instead of letting the ROM boot up normally. If your recovery is overwritten, simply redo the steps you followed above and catch it before it boots next time.
- Some users have reported connection errors if the device is connected to a USB hub. If you experience such errors it is recommended that you try connecting your device to a USB port on the motherboard.