Project

General

Profile

InstallationHeimdall » History » Version 2

Denis 'GNUtoo' Carikli, 01/03/2018 06:09 PM
the zip is checked by the recovery

1 1 Denis 'GNUtoo' Carikli
h1. ReplicantInstallationHeimdall
2
3
*Warning: installing an operating system, such as Replicant, may void your device's warranty and will erase the data stored on the device.*
4
5
h2. Prerequisites 
6
7
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 available. Moreover, it is assumed that anyone performing the installation knows how to use command lines in a terminal and has basic knowledge about it.
8
9
h2. Downloading the files
10
11
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.
12
13
1. Find out what the latest image is: check out the @Last image@ part of the general table on [[GalaxyS3I9300]]
14
2. Download *all* the files listed for the device (including the checksum and the signatures) on [[ReplicantImages]] for the latest image
15
2. Make sure you have added the [[ReplicantReleaseKey|Replicant release key]] to your GPG keyring
16
3. Check the signature of the files:
17
<pre>
18
gpg --armor --verify path/to/recovery-i9300.img.asc path/to/recovery-i9300.img
19
</pre>
20
4. Make sure the check succeeds, *do not install anything if it doesn't*!
21
5. Check the checksum of the files:
22
<pre>
23
sha256sum -c i9300.sha256
24
</pre>
25
6. Make sure the check succeeds, *do not install anything if it doesn't*!
26
27
h2. Installing heimdall
28
29
The heimdall tool is required to flash the recovery image to the device.
30
Instructions to install heimdall: [[ToolsInstallation#Heimdall|ToolsInstallation]]
31
32
h2. Copying the files to the device
33
34
There are two means of pushing the system zip to the device:
35
* Using the storage of the device
36
* Using the ADB tool to perform sideload
37
38
h3. Using the storage of the device
39
40
You can either complete this step by using the device's internal storage or by using an external microSD card.
41
42
h4. Using the internal storage
43
44
1. Make sure the device is started up and has an Android system running
45
2. Connect the USB cable to both the computer and the device
46
3. Enable USB mass storage on the device
47
4. Mount the mass storage on the computer
48
5. Copy the @replicant-6.0-i9300.zip@ file at the origin of the mass storage
49
6. Safely unmount the mass storage on the computer
50
7. Disable USB mass storage on the device
51
52
h4. Using a microSD card
53
54
1. Connect the microSD card to the computer (e.g. using an USB card reader)
55
2. Mount the microSD card on the computer
56
3. Copy the @replicant-6.0-i9300.zip@ file at the origin of the microSD card
57
4. Safely unmount the microSD card on the computer
58
5. Disconnect the microSD card from the computer
59
6. Insert the microSD card in the device (make sure it is turned off before inserting the card)
60
61
h3. Installing ADB
62
63
Instructions to install ADB: [[ToolsInstallation#ADB|ToolsInstallation]]
64
65
h2. Preparing the device
66
67
The next step in the installation process is to prepare the device for heimdall mode.
68
69
1. Make sure the device is completely turned off and the USB cable is disconnected from the device
70
2. Start the device by holding the following key combination: *Volume down, Select, Power*
71
3. Hold the key combination until the device shows a *Warning* message
72
4. Confirm that you want to download a custom OS (using volume up)
73
5. Make sure the device is in *Downloading* mode
74
4. Connect the USB cable to both the computer and the device
75
76
h2. Installing the images
77
78
Now that both the computer and the device are set up, it is time to actually install the images to the device.
79
80
1. Install the recovery image to the device:
81
<pre>
82
heimdall flash --BOOT path/to/recovery-i9300.img --RECOVERY path/to/recovery-i9300.img
83
</pre>
84
85
2. Make sure the device reboots to recovery
86
87
h3. Data wipe
88
89
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.
90
91
3. Select *Factory reset*
92
4. Select *Wipe data (keep media)*
93
5. Confirm the data wipe by selecting *Yes*
94
6. Press the back key (if necessary) to get back to the general menu
95
96
7. Select *Apply update*
97
98
h3. Using the storage of the device
99
100
h4. Using the internal storage
101
102
8. Select *Choose from emulated*
103
9. Select the system zip: *replicant-6.0-i9300.zip*
104
   Note: if your device was running Android 4.2 and later, it may be located in the *0* directory
105
10. Confirm the installation
106
107
h4. Using a microSD card
108
109
8. Select *Choose from sdcard1*
110
9. Select the system zip: *replicant-6.0-i9300.zip*
111
   Note: if your device was running Android 4.2 and later, it may be located in the *0* directory
112
10. Confirm the installation
113
114
h3. Using ADB sideload
115
116
8. Select *Apply from ADB*
117
9. Back to the host computer, load the system zip with sideload:
118
<pre>
119
adb sideload path/to/replicant-6.0-i9300.zip
120
</pre>
121
10. Make sure the file is being transfered
122
123
h3. Completing the installation
124
125
11. Press the back key (if necessary) to get back to the general menu
126
127
If you did the data wipe after step 2, you will need to do a factory reset as well:
128
12. Select *Factory reset*
129
13. Select *Full factory reset*
130
14. Confirm the factory reset by selecting *Yes*
131
15. Press the back key (if necessary) to get back to the general menu
132
133
134
16. Select *Reboot system now* to reboot the device
135
136
*Your device should now be running Replicant!*