Project

General

Profile

RecoveryInstallationWithHeimdall » History » Version 4

Denis 'GNUtoo' Carikli, 01/03/2018 06:53 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 3 Denis 'GNUtoo' Carikli
1. First find the recovery 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 4 Denis 'GNUtoo' Carikli
4. Then identify the recovery file and its corresponding signature file:
13 1 Denis 'GNUtoo' Carikli
The recovery file will look like that:
14
<pre>
15
recovery-<yourdevice>.img
16
</pre>
17
And the its corresponding signature file will look like that:
18
<pre>
19
recovery-<yourdevice>.img.asc
20
</pre>
21
22
For instance for the Samsung Galaxy S2, the file will be named like that:
23
* recovery-i9100.img
24
* recovery-i9100.img.asc
25 4 Denis 'GNUtoo' Carikli
26
2. Download the recovery file and its corresponding signature file for your device on [[ReplicantImages#Images|ReplicantImages]] for the latest images.
27
3. Make sure you have added the [[ReplicantReleaseKey|Replicant release key]] to your GPG keyring
28
29
h2. Check the signature of the recovery
30 1 Denis 'GNUtoo' Carikli
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.