Installing TWRP Recovery Image to HTC M8

1. Introduction

“Team Win Recovery Project (TWRP) is a FOSS, custom recovery image for Android-based devices. TWRP provides a touchscreen-enabled interface which allows users to backup the current system, ‘root’ the device, and to install third-party firmware such as custom ROMs.” (Paraphrased from Wikipedia, November 4, 2016.)

3. Installation

Desktop

Use the following command in MacOS Terminal to relaunch the device in bootloader “fastboot usb” mode.

Shell

1

2

3

adb reboot bootloader

Use the following commands in MacOS Terminal to install the TWRP recovery image to the device and to reboot the device. Use the actual image filename instead of “twrp.img.”

Shell

1

2

3

4

fastboot flash recovery twrp.img

fastboot reboot

4. Launching TWRP Recovery

TWRP Recovery may be launched either from the desktop over USB or on the device itself from its bootloader screen.

From Desktop

Connect the device to the computer with a USB cable.

Use the following command in MacOS Terminal to relaunch the device in TWRP Recovery mode.

Shell

1

2

3

adb fastboot recovery

From Device

Power off your device. Press and hold the Volume Down button and then simultaneously press and hold the Power button for several seconds. This will launch the device into bootloader mode. The HBOOT label should be indicated with a blue highlight.

The Volume buttons are used to make selections in the bootloader screen. Highlight RECOVERY and then press the Power button. TWRP will now launch.

Bootloader screen with Recovery mode highlighted.

5. Upgrading TWRP Recovery

2018-03-05 This section on upgrading TWRP was added.

TWRP can be used to upgrade TWRP to a newer version.The following was tested for an upgrade from TWRP version 3.0.2-0 to 3.2.1-0.