Project

General

Profile

GalaxyS2I9100Installation » History » Version 12

Paul Kocialkowski, 12/13/2014 09:21 AM

1 6 Paul Kocialkowski
h1. Galaxy S 2 (I9100) Installation
2 1 Paul Kocialkowski
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 7 Paul Kocialkowski
1. Find out what the latest image is: check out the @Last image@ part of the general table on [[GalaxyS2I9100]]
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 12 Paul Kocialkowski
gpg --armor --verify path/to/replicant-4.2-i9100.zip.asc path/to/replicant-4.2-i9100.zip
19
gpg --armor --verify path/to/recovery.img.asc path/to/recovery.img
20 7 Paul Kocialkowski
</pre>
21
4. Make sure the check succeeds, *do not install anything if it doesn't*!
22
5. Check the checksum of the files:
23
<pre>
24
md5sum -c i9100.md5
25
</pre>
26
6. Make sure the check succeeds, *do not install anything if it doesn't*!
27 1 Paul Kocialkowski
28 7 Paul Kocialkowski
h2. Installing heimdall
29 1 Paul Kocialkowski
30 7 Paul Kocialkowski
The heimdall tool is required to flash the recovery image to the device.
31
Instructions to install heimdall: [[ToolsInstallation#Heimdall|ToolsInstallation]]
32 1 Paul Kocialkowski
33 7 Paul Kocialkowski
h2. Copying the files to the device
34
35
There are two means of pushing the system zip to the device:
36
* Using the storage of the device
37
* Using the ADB tool to perform sideload
38
39
h3. Using the storage of the device
40
41 10 Paul Kocialkowski
You can either complete this step by using the device's internal storage or by using an external microSD card.
42 1 Paul Kocialkowski
43
h4. Using the internal storage
44
45
1. Make sure the device is started up and has an Android system running
46
2. Connect the USB cable to both the computer and the device
47
3. Enable USB mass storage on the device
48
4. Mount the mass storage on the computer
49 7 Paul Kocialkowski
5. Copy the @replicant-4.2-i9100.zip@ file at the origin of the mass storage
50
6. Safely unmount the mass storage on the computer
51
7. Disable USB mass storage on the device
52 1 Paul Kocialkowski
53 10 Paul Kocialkowski
h4. Using a microSD card
54 1 Paul Kocialkowski
55 10 Paul Kocialkowski
1. Connect the microSD card to the computer (e.g. using an USB card reader)
56
2. Mount the microSD card on the computer
57
3. Copy the @replicant-4.2-i9100.zip@ file at the origin of the microSD card
58
4. Safely unmount the microSD card on the computer
59
5. Disconnect the microSD card from the computer
60
6. Insert the microSD card in the device (make sure it is turned off before inserting the card)
61 1 Paul Kocialkowski
62 7 Paul Kocialkowski
h3. Installing ADB
63 1 Paul Kocialkowski
64 7 Paul Kocialkowski
Instructions to install ADB: [[ToolsInstallation#ADB|ToolsInstallation]]
65 1 Paul Kocialkowski
66 7 Paul Kocialkowski
h2. Preparing the device
67
68
The next step in the installation process is to prepare the device for heimdall mode.
69
70 1 Paul Kocialkowski
1. Make sure the device is completely turned off and the USB cable is disconnected from the device
71
2. Start the device by holding the following key combination: *Volume down, Select, Power*
72
3. Hold the key combination until the device shows a *Warning* message
73 7 Paul Kocialkowski
4. Confirm that you want to download a custom OS (using volume up)
74 1 Paul Kocialkowski
5. Make sure the device is in *Downloading* mode
75
4. Connect the USB cable to both the computer and the device
76
77
h2. Installing the images
78
79
Now that both the computer and the device are set up, it is time to actually install the images to the device.
80
81 7 Paul Kocialkowski
1. Install the recovery image to the device:
82 1 Paul Kocialkowski
<pre>
83 7 Paul Kocialkowski
heimdall flash --KERNEL path/to/recovery.img
84 1 Paul Kocialkowski
</pre>
85
86 7 Paul Kocialkowski
2. Make sure the device reboots to recovery
87
3. Select *install zip* (using the volume keys to navigate and the power key to select)
88
89
h3. Using the storage of the device
90
91
h4. Using the internal storage
92
93
4. Select *install zip from internal sdcard*
94
5. Select the system zip: *replicant-4.2-i9100.zip*
95
   Note: if your device was running Android 4.2 and later, it may be located in the *0* directory
96
6. Confirm the installation
97
98 10 Paul Kocialkowski
h4. Using a microSD card
99 7 Paul Kocialkowski
100
4. Select *install zip from sdcard*
101
5. Select the system zip: *replicant-4.2-i9100.zip*
102
   Note: if your device was running Android 4.2 and later, it may be located in the *0* directory
103
6. Confirm the installation
104
105
h3. Using ADB sideload
106
107
4. Select *install zip from sideload*
108
5. Back to the host computer, load the system zip with sideload:
109
<pre>
110
adb sideload path/to/replicant-4.2-i9100.zip
111
</pre>
112
6. Make sure the file is being transfered
113
114
h3. Completing the installation
115
116
8. Select *Go Back* (if necessary) to get back to the general menu
117 1 Paul Kocialkowski
8. Select *wipe data/factory reset*
118
9. Confirm the data wipe by selecting *Yes -- delete all user data*
119
10. Select *Reboot system now* to reboot the device
120
121
*Your device should now be running Replicant!*