Project

General

Profile

Heimdall/Recovery Installation

Warning: flashing another operating system like Replicant may void your warranty and will erase the data stored on the device.

This guide assumes your phone is supported by Heimdall and installation is to be done using recovery.

Download the files

  • Refer to your device page to find a link to the latest images (Last images part of the table).
  • Download the images and the md5 checksum
  • Download and install heimdall (version 1.4 RC1 or later)
  • System permissions are needed to access the device with heimdall. You can either lunch heimdall as root, for instance using sudo, or setup udev rules for your user.

Copy the files to the device

Using the internal memory

  1. Mount usb storage from the current system of your phone
  2. Create a directory at the root of the usb storage
  3. Copy the downloaded images and md5 checksum to this directory

Using a µSD card

  1. Mount the µSD card, make sure it's fat32
  2. Create a directory at the root of the µSD card
  3. Copy the downloaded images and md5 checksum to this directory

Device specificities table

Each device has its own set of keys to enter different boot modes and specific partition names.
Moreover, a specific partition name has to be specified to heimdall when flashing.

Device Keys for Download mode Keys for recovery mode Kernel partition Recovery partition
Galaxy S Volume-, Select, Power Not available kernel Not available
Galaxy S2 Volume-, Select, Power Not available kernel Not available
Galaxy S3 Volume-, Select, Power Volume+, Select, Power BOOT RECOVERY
Galaxy Tab 2 10.1 Volume+, Power Volume-, Power kernel recovery
Galaxy Tab 2 7.0 Volume- Volume+, Power kernel recovery

Prepare the phone

  1. Turn the phone off, disconnect any USB cable
  2. Hold the key combination for Download mode (release only when in Download mode)
  3. You should be in Download mode. If not, remove the battery and retry the steps above
  4. You might need to confirm that you want to download a custom OS
  5. Once the Download screen is waiting, plug the USB cable

Flash the images

  1. Flash the recovery image using heimdall:
    If the recovery partition is available for your device, you can install recovery to the recovery partition:
    heimdall flash --[RECOVERY PARTITION] path/to/recovery.img
    

    If it is not available, flash recovery on the kernel partition:
    heimdall flash --[KERNEL PARTITION] path/to/recovery.img
    
  2. The phone should reboot and heimdall indicate that the operation was successful
  3. If you flashed to the recovery partition, hit the recovery mode keys quickly, or you'll have to power off the phone and hit the recovery mode keys then
  4. Wait until recovery boots
  5. You should be in recovery mode. If not, remove the battery and retry the steps above
  6. Select flash images
  7. Choose the location of the images (internal sdcard is the phone's internal memory, sdcard is the µSD card)
  8. Confirm flash
  9. Get back to the general menu
  10. Select wipe data/factory reset
  11. Confirm wipe
  12. Get back to the general menu
  13. Reboot

Your device should now be running Replicant!