You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Use my and Stricted's Heimdall distributions as the ones on the official site are outdated,
and the source doesn't build as is.
* Grammar resolutions and consistency with the rest of the Wiki applied.
Change-Id: I2590a097b2711992598eb0b169249f10620f15d0
Copy file name to clipboardExpand all lines: _includes/templates/recovery_install_heimdall.md
+26-30Lines changed: 26 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,36 +8,34 @@
8
8
## Preparing for installation
9
9
10
10
Samsung devices come with a unique boot mode called "Download mode", which is very similar to "Fastboot mode" on some devices with unlocked bootloaders.
11
-
[Heimdall](http://www.glassechidna.com.au/products/heimdall/) is a cross-platform, open-source tool for interfacing with Download mode on Samsung devices.
12
-
The preferred method of installing a custom recovery is through this boot mode{% unless custom_root_instructions %} -- rooting the stock firmware is neither necessary nor required{% endunless %}.
11
+
Heimdall is a cross-platform, open-source tool for interfacing with Download mode on Samsung devices.
12
+
The preferred method of installing a custom recovery is through Download Mode{% unless custom_root_instructions %} -- rooting the stock firmware is neither necessary nor required{% endunless %}.
13
13
14
14
{% unless device.no_oem_unlock_switch %}
15
15
1. Enable OEM unlock in the Developer options under device Settings.
16
16
{% endunless %}
17
-
2. Download and install the [Heimdall suite](http://glassechidna.com.au/heimdall/#downloads):
18
-
***Windows**: Extract the Heimdall suite and take note of the directory containing `heimdall.exe`. You can verify Heimdall is working by opening a command
19
-
prompt in that directory and typing `heimdall version`. If you receive an error, make sure you have the
20
-
[Microsoft Visual C++ 2012 Redistributable Package (x86)](https://www.microsoft.com/en-us/download/details.aspx?id=30679) installed on your computer.
21
-
***Linux**: Pick the appropriate package to install for your distribution. The `-frontend` packages aren't needed for this guide. After installation,
22
-
verify Heimdall is installed by running `heimdall version` in the terminal.
23
-
***macOS**: Install the `dmg` package. After installation, Heimdall should be available from the terminal - type `heimdall version` to double-check.
24
-
3. Power off the device and connect the USB adapter to the computer (but not to the device, yet).
25
-
4. Boot into download mode:
26
-
17
+
2. Download and install the appropriate version of the [Heimdall suite](https://www.androidfilehost.com/?w=files&flid=304516) for your machine's OS
18
+
***Windows**: Extract the Heimdall suite zip and take note of the new directory containing `heimdall.exe`. You can verify Heimdall is functioning by opening a Command Prompt or PowerShell in that directory and running `heimdall version`.
19
+
* If you receive an error, install the [Microsoft Visual C++ 2015-2019 Redistributable Package (x86)](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads) on your computer.
20
+
***Linux**: Extract the Heimdall suite zip and take note of the new directory containing `heimdall`. Now copy `heimdall` into a directory n $PATH, a common one on most distros wiil be /usr/local/bin. For example `cp heimdall /usr/local/bin`. You can verify Heimdall is functioning by opening a Terminal and running `heimdall version`.
21
+
***macOS**: Mount the Heimdall suite DMG. Now dran `heimdall` down into the `/usr/local/bin` symlink provided in the DMG. You can verify Heimdall is functioning by opening a Terminaland running `heimdall version`.
22
+
{% include alerts/note.html content="These Heimdall suite distributions were built by LineageOS Developers Nolen Johnson (npjohnson) and Jan Altensen (Stricted), as the Heimdall suite executables distributed on the official Heimdall website were outdated and the repo mostly abaonded. Modifications were made to make it build and function on modern OSes." %}
23
+
4. Power off the device, and boot it into download mode:
27
24
* {{ device.download_boot }}
28
-
29
-
Accept the disclaimer, then insert the USB cable into the device.
30
-
5.**Windows only**: install the drivers. A more complete set of instructions can be found in the [ZAdiag user guide](https://github.com/pbatard/libwdi/wiki/Zadig).
31
-
1. Run `zadiag.exe` from the **Drivers** folder of the Heimdall suite.
25
+
* Now, click the button that the onscren instructions coorelate to "Continue", and insert the USB cable into the device.
26
+
5.**For Windows user only**: install the necessary drivers. A more complete set of instructions can be found in the [ZAdiag user guide](https://github.com/pbatard/libwdi/wiki/Zadig).
27
+
1. If nothing relevant appears, try uninstalling any Samsung related Windows software, like Samsung Windows drivers and/or Samsung Kies.
28
+
1. Download the newest zadig.exe from [here](https://github.com/pbatard/libwdi/releases).
29
+
2. Run `zadiag.exe`.
32
30
2. Choose **Options**»**List all devices** from the menu.
33
-
3. Select **Samsung USB Composite Device** or **MSM8x60** or **Gadget Serial** or **Device Name** from the drop down menu. (If nothing relevant appears, try uninstalling any Samsung related Windows software, like Samsung Windows drivers and/or Kies).
34
-
4. Click **Replace Driver** (having to select **Install Driver** from the drop down list built into the button).
35
-
5. If you are prompted with a warning that the installer is unable to verify the publisher of the driver, select **Install this driver anyway**. You may receive two more prompts about security. Select the options that allow you to carry on.
36
-
6. On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type:
31
+
3. Select **Samsung USB Composite Device** or **MSM8x60** or **Gadget Serial** or **Device Name** from the drop down menu.
32
+
4. Click **Replace Driver**, then selecting **Install Driver** from the drop down list built into the button.
33
+
5. If you are prompted with a warning that the installer is unable to verify the publisher of the driver, select **Install this driver anyway**. You may receive two more prompts about security. Select the options that accept the warnings and allow you to carry on.
34
+
6. On your machine, open a Command Prompt or PowerShell (Windows) window, or Terminal (Linux or macOS) window, and type:
37
35
```
38
36
heimdall print-pit
39
37
```
40
-
7. If the device reboots, Heimdall is installed and working properly.
38
+
7. If the device reboots that indicates that Heimdall is installed and working properly. If it does not, please refollow these instructions to verify steps weren't missed, try a different USB cable, and a different USB port.
41
39
42
40
{% if custom_downgrade_instructions %}
43
41
{{ custom_downgrade_instructions }}
@@ -56,22 +54,20 @@ heimdall print-pit
56
54
1. Download a custom recovery - you can download [Lineage Recovery](https://download.lineageos.org/{{ custom_recovery_codename }}). Simply download the latest recovery file, named something like `lineage-{{ device.current_branch }}-{{ site.time | date: "%Y%m%d" }}-recovery-{{ custom_recovery_codename }}.img`.
57
55
{% else %}
58
56
1. Download a custom recovery - you can download [TWRP](https://dl.twrp.me/{{ custom_recovery_codename }}). Simply download the latest recovery file, named something like `twrp-x.x.x-x-{{ custom_recovery_codename }}.img`.
57
+
{% include alerts/tip.html content="Ensure you download the `.img` file and not the `.tar` or `.tar.md5` versions." %}
59
58
{% endif %}
60
59
{% endif %}
61
-
2. Power off the your device and connect the USB adapter to the computer (but not to the device, yet).
62
-
3. Boot into download mode:
63
-
60
+
2. Power off the device, and boot it into download mode:
64
61
* {{ device.download_boot }}
65
-
66
-
Accept the disclaimer, then insert the USB cable into the device.
67
-
4. On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window in the directory the recovery image is located, and type:
62
+
* Now, click the button that the onscren instructions coorelate to "Continue", and insert the USB cable into the device.
63
+
6. On your machine, open a Command Prompt or PowerShell (Windows) window, or Terminal (Linux or macOS) window, and type:
{% include alerts/tip.html content="The file may not be named identically to what stands in this command, so adjust accordingly. If the file is wrapped in a zip or tar file, extract the file first, because Heimdall is not going to do it for you." %}
72
-
5. A blue transfer bar will appear on the device showing the recovery being transferred.
68
+
5. A blue transfer bar will appear on the device showing the recovery image being flashed.
73
69
6. Unplug the USB cable from your device.
74
-
7. Manually reboot into recovery:
70
+
7. Manually reboot into recovery, this may require pulling your battery, or holding the below keycombo until the device reboots:
75
71
* {{ device.recovery_boot }}
76
72
77
-
{% include alerts/note.html content="Be sure to reboot into recovery immediately after having installed the custom recovery. Otherwise the custom recovery will be overwritten and the device will reboot (appearing as though your custom recovery failed to install)." %}
73
+
{% include alerts/note.html content="Be sure to reboot into recovery immediately after installing the custom recovery. If you don't the custom recovery will be overwritten on boot." %}
0 commit comments