Project

General

Profile

RecoveryInstallationWithHeimdall » History » Version 15

Denis 'GNUtoo' Carikli, 01/08/2018 02:16 PM

1 1 Denis 'GNUtoo' Carikli
h1. Recovery installation or update trough Heimdall
2
3
h2. Prerequisites 
4
5 13 Denis 'GNUtoo' Carikli
This guide applies only to the following devices:
6 14 Denis 'GNUtoo' Carikli
* Galaxy S 3 (I9300)
7
* Galaxy S 3 4G (I9305)
8
* Galaxy Note 2 (N7100)
9
* Galaxy Note 8.0 (N5100)
10
* Galaxy Note 8.0 Wi-Fi (N5110)
11 13 Denis 'GNUtoo' Carikli
12 15 Denis 'GNUtoo' Carikli
Using the instructions of this page with a device not listed above can break it, up to the point where it is too long, complicated and expensive to repair, even for technical people.
13
14 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.
15 1 Denis 'GNUtoo' Carikli
16
h2. Downloading the files
17
18
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.
19
20 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.
21 5 Denis 'GNUtoo' Carikli
2. Then identify the recovery file and its corresponding signature file:
22 1 Denis 'GNUtoo' Carikli
The recovery file will look like that:
23
<pre>
24
recovery-<yourdevice>.img
25
</pre>
26
And the its corresponding signature file will look like that:
27
<pre>
28
recovery-<yourdevice>.img.asc
29
</pre>
30
31
For instance for the Samsung Galaxy S2, the file will be named like that:
32
* recovery-i9100.img
33
* recovery-i9100.img.asc
34 4 Denis 'GNUtoo' Carikli
35 6 Denis 'GNUtoo' Carikli
3. Download the latest recovery file and its corresponding signature file for your device on [[ReplicantImages#Images|ReplicantImages]].
36 5 Denis 'GNUtoo' Carikli
4. Make sure you have added the [[ReplicantReleaseKey|Replicant release key]] to your GPG keyring
37 4 Denis 'GNUtoo' Carikli
38
h2. Check the signature of the recovery
39 1 Denis 'GNUtoo' Carikli
40 7 Denis 'GNUtoo' Carikli
1. From the command line, go inside the directory that has the dowloaded files:
41 9 Denis 'GNUtoo' Carikli
The emplacement where the files are downloaded might be different for you.
42
If it is the case, adjust the command below accordingly:
43 1 Denis 'GNUtoo' Carikli
<pre>
44
cd "${HOME}/Downloads/"
45
</pre>
46 10 Denis 'GNUtoo' Carikli
47 7 Denis 'GNUtoo' Carikli
2. Then check the signature of the recovery (and don't forget to sure to substitute "<yourdevice>" with the actual device name):
48 1 Denis 'GNUtoo' Carikli
<pre>
49
gpg --armor --verify recovery-<yourdevice>.img.asc recovery-<yourdevice>.img
50
</pre>
51 8 Denis 'GNUtoo' Carikli
Make sure the check succeeds, *do not continue the recovery installation if it doesn't*!
52 1 Denis 'GNUtoo' Carikli
53
h2. Installing heimdall
54
55
The heimdall tool is required to flash the recovery image to the device.
56
Instructions to install heimdall: [[ToolsInstallation#Heimdall|ToolsInstallation]]
57
58
h2. Preparing the device
59
60
The next step in the installation process is to prepare the device for heimdall mode.
61
62
1. Make sure the device is completely turned off and the USB cable is disconnected from the device
63
2. Start the device by holding the following key combination: *Volume down, Select, Power*
64
3. Hold the key combination until the device shows a *Warning* message
65
4. Confirm that you want to download a custom OS (using volume up)
66
5. Make sure the device is in *Downloading* mode
67
4. Connect the USB cable to both the computer and the device
68
69
h2. Installing the images
70
71
Now that both the computer and the device are set up, it is time to actually install the images to the device.
72
73 11 Denis 'GNUtoo' Carikli
1. From the command line, return inside the directory that has the dowloaded files:
74
The emplacement where the files are downloaded might be different for you.
75
If it is the case, adjust the command below accordingly:
76
<pre>
77
cd "${HOME}/Downloads/"
78
</pre>
79
80 12 Denis 'GNUtoo' Carikli
2. Install or updating the recovery:
81
If you are installing Replicant for the first time, you should run the following command:
82 1 Denis 'GNUtoo' Carikli
<pre>
83
heimdall flash --BOOT path/to/recovery-i9300.img --RECOVERY path/to/recovery-i9300.img
84
</pre>
85 12 Denis 'GNUtoo' Carikli
This command should also automatically reboot the device to the recovery.
86
87
Instead if you just want to update your recovery, run the following command:
88
<pre>
89
heimdall flash --RECOVERY path/to/recovery-i9300.img
90
</pre>
91
This command should also automatically reboot the device to the Replicant.