GalaxyNexusI9250Installation » History » Version 19
Wolfgang Wiedmeyer, 09/12/2017 05:58 PM
first data wipe, then factory reset at end
1 | 11 | Paul Kocialkowski | h1. Galaxy Nexus (I9250) Installation |
---|---|---|---|
2 | 1 | Paul Kocialkowski | |
3 | 3 | Paul Kocialkowski | *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. Before the installation |
||
10 | |||
11 | Some preliminary steps may be necessary to achieve best compatibility with your device. These steps may require more advanced technical skills than the rest of the process: make sure you know what you are doing! |
||
12 | |||
13 | h3. Saving the modified nv_data.bin |
||
14 | |||
15 | 15 | Wolfgang Wiedmeyer | If your device was *SIM-unlocked* (using a code or another procedure), you must keep the nv_data.bin file from your current installation. Make sure [[ADB]] is running as root. |
16 | 1 | Paul Kocialkowski | <pre> |
17 | 15 | Wolfgang Wiedmeyer | adb shell mount -o remount,rw /factory |
18 | 16 | Wolfgang Wiedmeyer | mkdir galaxy_nexus_efs_backup && cd galaxy_nexus_efs_backup |
19 | 1 | Paul Kocialkowski | adb pull /factory/ |
20 | adb shell "cat /data/radio/nv_data.bin > /factory/nv_data.bin" |
||
21 | 2 | Paul Kocialkowski | adb shell "cat /data/radio/nv_data.bin.md5 > /factory/nv_data.bin.md5" |
22 | 1 | Paul Kocialkowski | </pre> |
23 | |||
24 | 17 | Wolfgang Wiedmeyer | This will create a copy of the contents of @/factory@ in the @galaxy_nexus_efs_backup@ directory. Keep these files around as a backup in case anything goes wrong with @nv_data.bin@. |
25 | 1 | Paul Kocialkowski | |
26 | 3 | Paul Kocialkowski | h2. Downloading the files |
27 | 1 | Paul Kocialkowski | |
28 | 3 | Paul Kocialkowski | 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. |
29 | |||
30 | 12 | Paul Kocialkowski | 1. Find out what the latest image is: check out the @Last image@ part of the general table on [[GalaxyNexusI9250]] |
31 | 2. Download *all* the files listed for the device (including the checksum and the signatures) on [[ReplicantImages]] for the latest image |
||
32 | 2. Make sure you have added the [[ReplicantReleaseKey|Replicant release key]] to your GPG keyring |
||
33 | 3. Check the signature of the files: |
||
34 | 1 | Paul Kocialkowski | <pre> |
35 | 18 | Wolfgang Wiedmeyer | gpg --armor --verify path/to/replicant-6.0-maguro.zip.asc path/to/replicant-6.0-maguro.zip |
36 | gpg --armor --verify path/to/recovery-maguro.img.asc path/to/recovery-maguro.img |
||
37 | 1 | Paul Kocialkowski | </pre> |
38 | 12 | Paul Kocialkowski | 4. Make sure the check succeeds, *do not install anything if it doesn't*! |
39 | 5. Check the checksum of the files: |
||
40 | <pre> |
||
41 | 18 | Wolfgang Wiedmeyer | sha256sum -c maguro.sha256 |
42 | 12 | Paul Kocialkowski | </pre> |
43 | 6. Make sure the check succeeds, *do not install anything if it doesn't*! |
||
44 | 1 | Paul Kocialkowski | |
45 | 12 | Paul Kocialkowski | h2. Installing fastboot |
46 | |||
47 | The fastboot tool is required to flash the recovery image to the device. |
||
48 | Instructions to install fastboot: [[ToolsInstallation#Fastboot|ToolsInstallation]] |
||
49 | |||
50 | h2. Copying the files to the device |
||
51 | |||
52 | There are two means of pushing the system zip to the device: |
||
53 | * Using the storage of the device |
||
54 | * Using the ADB tool to perform sideload |
||
55 | |||
56 | h3. Using the storage of the device |
||
57 | |||
58 | 1. Make sure the device is started up and has an Android system running |
||
59 | 2. Connect the USB cable to both the computer and the device |
||
60 | 3. Enable USB mass storage on the device |
||
61 | 4. Mount the mass storage on the computer |
||
62 | 18 | Wolfgang Wiedmeyer | 5. Copy the @replicant-6.0-maguro.zip@ file at the origin of the mass storage |
63 | 12 | Paul Kocialkowski | 6. Safely unmount the mass storage on the computer |
64 | 7. Disable USB mass storage on the device |
||
65 | |||
66 | h3. Installing ADB |
||
67 | |||
68 | Instructions to install ADB: [[ToolsInstallation#ADB|ToolsInstallation]] |
||
69 | |||
70 | 10 | Paul Kocialkowski | h2. Preparing the device |
71 | 3 | Paul Kocialkowski | |
72 | 12 | Paul Kocialkowski | The next step in the installation process is to prepare the device for fastboot mode. |
73 | 3 | Paul Kocialkowski | |
74 | 1. Make sure the device is completely turned off and the USB cable is disconnected from the device |
||
75 | 2. Start the device by holding the following key combination: *Volume down, Volume up, Power* |
||
76 | 1 | Paul Kocialkowski | 3. Hold the key combination until the device shows *Fastboot mode* |
77 | 4. Connect the USB cable to both the computer and the device |
||
78 | 3 | Paul Kocialkowski | |
79 | h3. Unlocking the bootloader |
||
80 | |||
81 | 1 | Paul Kocialkowski | If this is the first time you are flashing an operating system to your device, you'll have to unlock it first. If this is not the case, you can skip that part. |
82 | *Beware: all data stored on the internal storage will be lost during that operation.* |
||
83 | |||
84 | 12 | Paul Kocialkowski | 1. Unlock the bootloader: |
85 | 1 | Paul Kocialkowski | <pre> |
86 | 12 | Paul Kocialkowski | fastboot oem unlock |
87 | 1 | Paul Kocialkowski | </pre> |
88 | 2. Confirm that you want to unlock the device (using the volume keys to navigate and the power key to select) |
||
89 | |||
90 | h2. Installing the images |
||
91 | |||
92 | Now that both the computer and the device are set up, it is time to actually install the images to the device. |
||
93 | |||
94 | 1. Install the recovery image to the device: |
||
95 | <pre> |
||
96 | 18 | Wolfgang Wiedmeyer | fastboot flash recovery path/to/recovery-maguro.img |
97 | 1 | Paul Kocialkowski | </pre> |
98 | 18 | Wolfgang Wiedmeyer | |
99 | 1 | Paul Kocialkowski | 2. Select recovery mode (using the volume keys to navigate and the power key to select) |
100 | 3. Make sure the device reboots to recovery |
||
101 | |||
102 | 19 | Wolfgang Wiedmeyer | h3. Data wipe |
103 | 18 | Wolfgang Wiedmeyer | |
104 | 19 | Wolfgang Wiedmeyer | 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. |
105 | 18 | Wolfgang Wiedmeyer | |
106 | 4. Select *Factory reset* |
||
107 | 19 | Wolfgang Wiedmeyer | 5. Select *Wipe data (keep media)* |
108 | 18 | Wolfgang Wiedmeyer | 6. Confirm the data wipe by selecting *Yes* |
109 | 7. Press the back key (if necessary) to get back to the general menu |
||
110 | |||
111 | 8. Select *Apply update* |
||
112 | |||
113 | 1 | Paul Kocialkowski | h3. Using the storage of the device |
114 | |||
115 | 18 | Wolfgang Wiedmeyer | 9. Select *Choose from emulated* |
116 | 10. Select the system zip: *replicant-6.0-maguro.zip* |
||
117 | 12 | Paul Kocialkowski | Note: if your device was running Android 4.2 and later, it may be located in the *0* directory |
118 | 18 | Wolfgang Wiedmeyer | 11. Confirm the installation |
119 | 12 | Paul Kocialkowski | |
120 | h3. Using ADB sideload |
||
121 | 3 | Paul Kocialkowski | |
122 | 18 | Wolfgang Wiedmeyer | 9. Select *Apply from ADB* |
123 | 10. Back to the host computer, load the system zip with sideload: |
||
124 | 12 | Paul Kocialkowski | <pre> |
125 | 18 | Wolfgang Wiedmeyer | adb sideload path/to/replicant-6.0-maguro.zip |
126 | 12 | Paul Kocialkowski | </pre> |
127 | 18 | Wolfgang Wiedmeyer | 11. Make sure the file is being transfered |
128 | 12 | Paul Kocialkowski | |
129 | 1 | Paul Kocialkowski | h3. Completing the installation |
130 | |||
131 | 12. Press the back key (if necessary) to get back to the general menu |
||
132 | 19 | Wolfgang Wiedmeyer | |
133 | If you did the data wipe after step 2, you will need to do a factory reset as well: |
||
134 | 13. Select *Factory reset* |
||
135 | 14. Select *Full factory reset* |
||
136 | 15. Confirm the factory reset by selecting *Yes* |
||
137 | 16. Press the back key (if necessary) to get back to the general menu |
||
138 | |||
139 | 17. Select *Reboot system now* to reboot the device |
||
140 | 1 | Paul Kocialkowski | |
141 | *Your device should now be running Replicant!* |