h1. ReplicantInstallationHeimdall *Warning: installing an operating system, such as Replicant, may void your device's warranty and will erase the data stored on the device.* h2. Prerequisites In order to install Replicant on your device, it is assumed that you have a computer running a GNU/Linux operating system and everything necessary to connect your device to the computer through USB. Moreover, it is assumed that anyone performing the installation knows how to use the command line in a terminal and has basic knowledge about it. h2. Downloading the files The first step in the installation process is to download and set up the files that will be used to install Replicant to the device. The files must be downloaded on your computer first. 1. First find the latest image for your device in [[ReplicantImages#Images|ReplicantImages]]. For instance for a Galaxy S2, the table will have
Galaxy S 2 (I9100)in the device column. 2. Download *all* the files listed for your device (including the checksum and the signatures) on [[ReplicantImages#Images|ReplicantImages]] for the latest image. 3. Make sure you have added the [[ReplicantReleaseKey|Replicant release key]] to your GPG keyring h2. Check the signature of the recovery 4. First identify the recovery file and its corresponding signature file: The recovery file will look like that:
recovery-And the recovery signature file will look like that:.img
recovery-5. Check the signature of the recovery: gpg --armor --verify recovery-.img.asc
heimdall flash --BOOT path/to/recovery-i9300.img --RECOVERY path/to/recovery-i9300.imgThis should also automatically reboot the device to the recovery. h3. Data wipe A data wipe is necessary if you switch from the factory image or a different Android distribution to Replicant. You also need to do a data wipe when upgrading to a new major release (e.g. from Replicant 4.2 to Replicant 6.0). Only when updating to a new minor release (e.g. from Replicant 6.0 0001 to Replicant 6.0 0002), a data wipe is usually not required. 3. Select *Factory reset* 4. Select *Wipe data (keep media)* 5. Confirm the data wipe by selecting *Yes* 6. Press the back key (if necessary) to get back to the general menu 7. Select *Apply update* h3. Using the storage of the device h4. Using the internal storage 8. Select *Choose from emulated* 9. Select the system zip: *replicant-6.0-i9300.zip* Note: if your device was running Android 4.2 and later, it may be located in the *0* directory h4. Using a microSD card 8. Select *Choose from sdcard1* 9. Select the system zip: *replicant-6.0-i9300.zip* Note: if your device was running Android 4.2 and later, it may be located in the *0* directory h3. Using ADB sideload 8. Select *Apply from ADB* 9. Back to the host computer, load the system zip with sideload:
adb sideload path/to/replicant-6.0-i9300.zip10. Make sure the file is being transfered h3. Completing the installation 11. Press the back key (if necessary) to get back to the general menu 16. Select *Reboot system now* to reboot the device *Your device should now be running Replicant!*