Installation » History » Version 9
Denis 'GNUtoo' Carikli, 05/08/2019 06:20 PM
Wipe the system partition before installation as the original filesystem can differ
1 | 1 | Denis 'GNUtoo' Carikli | h1. ReplicantInstallation |
---|---|---|---|
2 | |||
3 | h2. Backup your data |
||
4 | |||
5 | Before attempting to install Replicant, you need to backup everything you can from the device as most of the data will be erased during the installation. |
||
6 | |||
7 | You can skip this step if you have no data you want to keep. |
||
8 | |||
9 | 7 | Denis 'GNUtoo' Carikli | h2. Installation overview |
10 | 1 | Denis 'GNUtoo' Carikli | |
11 | The installation of Replicant is several steps: |
||
12 | * First you install a Replicant recovery. It's a very minimalist operating system that is dedicated to the installation of Replicant. |
||
13 | * Then you download Replicant and use the recovery to install it. |
||
14 | |||
15 | h2. Recovery installation |
||
16 | |||
17 | To install the Replicant recovery, follow the instructions on the [[RecoveryInstallationWithHeimdall|Recovery installation with Heimdall]] wiki page. |
||
18 | |||
19 | 9 | Denis 'GNUtoo' Carikli | h2. Wipe existing system partition |
20 | |||
21 | Once this is done, you then need to wipe the existing system partition. This is to ensure that the system partition is formatted correctly. |
||
22 | |||
23 | To do that, once you are in the recovery: |
||
24 | 1. Select Advanced |
||
25 | 2. Select Wipe system partition |
||
26 | 3. It will ask you to confirm the wipe, so you will need to select Yes to confirm it. |
||
27 | 4. Press the back key to get back to the general menu |
||
28 | |||
29 | 1 | Denis 'GNUtoo' Carikli | h2. Using the recovery to install Replicant |
30 | |||
31 | 4 | Denis 'GNUtoo' Carikli | Installing Replicant can be done either by: |
32 | * [[InstallOrUpgradeReplicantWithoutAComputer|downloading the installation files the device, without the need of a computer]] |
||
33 | * [[InstallOrUpgradeReplicantFromMicroSD|using a computer and a microSD]] |
||
34 | * [[InstallOrUpgradeReplicantFromInternalStorage|using a computer and the internal storage to store the installation files]] |
||
35 | 1 | Denis 'GNUtoo' Carikli | |
36 | Once this is done, you will need to do a factory reset. |
||
37 | |||
38 | h2. Factory reset |
||
39 | |||
40 | To do a Factory reset, you need to be in the recovery. |
||
41 | |||
42 | 1. Select Factory reset |
||
43 | 2. Select Wipe data (keep media) |
||
44 | 3. It will ask you to confirm the wipe, so you will need to select Yes to confirm it. |
||
45 | 4. Press the back key to get back to the general menu |
||
46 | 6 | Denis 'GNUtoo' Carikli | |
47 | h2. Reboot the device |
||
48 | |||
49 | Once the factory reset is done, you can then reboot the device. |
||
50 | |||
51 | In the recovery: |
||
52 | 1. Select Reboot system now to reboot the device |
||
53 | 1 | Denis 'GNUtoo' Carikli | 2. Your device now has Replicant installed! |
54 | 7 | Denis 'GNUtoo' Carikli | |
55 | h2. Backup the EFS |
||
56 | |||
57 | Now that Replicant is installed, it's a good idea to do a backup of the EFS partition which has the modem data. |
||
58 | |||
59 | Only the following devices that are supported by Replicant have an EFS: |
||
60 | * Galaxy S 2 (I9100) |
||
61 | * Galaxy S 3 (I9300) |
||
62 | * Galaxy S 3 4G (I9305) |
||
63 | * Galaxy Nexus (I9250) |
||
64 | * Galaxy Note (N7000) |
||
65 | * Galaxy Note 2 (N7100) |
||
66 | * Galaxy Tab 2 7.0 (P3100) |
||
67 | * Galaxy Tab 2 10.1 (P5100) |
||
68 | * Galaxy Note 8.0 (N5100) |
||
69 | |||
70 | First make sure that you have adb setup correctly and that it gives you a root shell on the device by following the wiki page that explains how to [[ADB|install adb and get a root shell]] on your device. |
||
71 | |||
72 | Once this is done you can then backup the EFS. |
||
73 | |||
74 | For the Galaxy SIII (I9300), run the following commands to do that: |
||
75 | <pre> |
||
76 | mkdir backup_efs |
||
77 | 8 | Denis 'GNUtoo' Carikli | cd backup_efs |
78 | 7 | Denis 'GNUtoo' Carikli | adb pull /efs/ efs |
79 | adb shell "cat /dev/block/platform/*/by-name/EFS" > EFS.img |
||
80 | </pre> |
||
81 | |||
82 | This will create a copy of the contents of /efs in the backup_efs directory. It will also backup the full partition. |
||
83 | Keep these files around as a backup in case anything goes wrong. |