Project

General

Profile

RecoveryInstallationWithHeimdall » History » Version 2

Denis 'GNUtoo' Carikli, 01/03/2018 06:45 PM

1 1 Denis 'GNUtoo' Carikli
h1. Recovery installation or update trough Heimdall
2
3
h2. Prerequisites 
4
5 2 Denis 'GNUtoo' Carikli
In order to install the Replicant recovery 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.
6 1 Denis 'GNUtoo' Carikli
7
h2. Downloading the files
8
9
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.
10
11
1. First find the latest image for your device in [[ReplicantImages#Images|ReplicantImages]]. For instance for a Galaxy S2, the table will have <pre>Galaxy S 2 (I9100)</pre> in the device column.
12
2. Download *all* the files listed for your device (including the checksum and the signatures) on [[ReplicantImages#Images|ReplicantImages]] for the latest image.
13
3. Make sure you have added the [[ReplicantReleaseKey|Replicant release key]] to your GPG keyring
14
15
h2. Check the signature of the recovery
16
17
4. First identify the recovery file and its corresponding signature file:
18
The recovery file will look like that:
19
<pre>
20
recovery-<yourdevice>.img
21
</pre>
22
And the its corresponding signature file will look like that:
23
<pre>
24
recovery-<yourdevice>.img.asc
25
</pre>
26
27
For instance for the Samsung Galaxy S2, the file will be named like that:
28
* recovery-i9100.img
29
* recovery-i9100.img.asc
30
31
5. From the command line, go inside the directory that has the dowloaded files:
32
<pre>
33
cd "${HOME}/Downloads/"
34
</pre>
35
6. Then check the signature of the recovery (and don't forget to sure to substitute "<yourdevice>" with the actual device name):
36
<pre>
37
gpg --armor --verify recovery-<yourdevice>.img.asc recovery-<yourdevice>.img
38
</pre>
39
Make sure the check succeeds, *do not install anything if it doesn't*!
40
41
h2. Installing heimdall
42
43
The heimdall tool is required to flash the recovery image to the device.
44
Instructions to install heimdall: [[ToolsInstallation#Heimdall|ToolsInstallation]]
45
46
h2. Preparing the device
47
48
The next step in the installation process is to prepare the device for heimdall mode.
49
50
1. Make sure the device is completely turned off and the USB cable is disconnected from the device
51
2. Start the device by holding the following key combination: *Volume down, Select, Power*
52
3. Hold the key combination until the device shows a *Warning* message
53
4. Confirm that you want to download a custom OS (using volume up)
54
5. Make sure the device is in *Downloading* mode
55
4. Connect the USB cable to both the computer and the device
56
57
h2. Installing the images
58
59
Now that both the computer and the device are set up, it is time to actually install the images to the device.
60
61
1. Install the recovery image to the device:
62
<pre>
63
heimdall flash --BOOT path/to/recovery-i9300.img --RECOVERY path/to/recovery-i9300.img
64
</pre>
65
This should also automatically reboot the device to the recovery.