[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Attention Ladies and Gentleman :)

with the help of the relentless [MENTION=1162986]Captain_Throwback[/MENTION] we finally resolved all the major issues on TWRP for the HTC U12+!

This release includes a flashable twrp installer zip that will flash TWRP permanently on your device. That means you don´t have to

fastboot boot twrp.img

every single time!

There is one downside when using that flashable zip though. HTC implemented a nasty check in the touchscreen driver, which checks for recovery mode. When it detects recovery mode touchscreen gets disabled. This doesn´t relate to just

fastboot boot twrp.img

We managed to bypass this too:

you have two options:

Option 1: Flash a custom kernel like Kirisakura or Cleanslate which will be patched to bypass this

Option 2: If you´re on stock kernel, flash the Imagine_touchscreen_hexpatcher-CPTB.zip made by [MENTION=1162986]Captain_Throwback[/MENTION]

This zip will make touchscreen work in the permanently flashed recovery! But be advised that this will break all recovery related commands/actions (like

adb reboot recovery

, reboot to recovery via apps such as magisk manager and reboot to recovery in TWRP)

But it gets better again! Way better!

thanks to the work of [MENTION=4544860]osm0sis[/MENTION] it´s possible we flash this installer zip directly in the magisk manager app. Which means, if you´re rooted you don´t need a pc to permanently flash TWRP to your U12+! However it´s advised to have one nearby especially if it´s the first time doing this!

This is really handy!!

Important:

Always flash magisk zip directly after flashing the TWRP installer zip! if you don´t do this you will only be able to reboot to twrp, no matter what!

Instructions:

How to temporary boot TWRP:

1. You need a working fastboot and adb environment

2. Download the twrp.img provided in this thread and copy it to your fastboot folder (pay attention that firmware version matches)

3. Open a command prompt in your fastboot folder!

3.a While your phone is booted to the OS and USB debugging is enabled, type:

adb reboot bootloader

4. You need to fastboot boot twrp

fastboot boot <filename of the twrp.img>

example:

fastboot boot TWRP_3.2.2.0_Imagine.img

5. Wait for twrp to be booted

6. You´re now in TWRP

7. Please note that you need to fastboot boot the TWRP every single time you need it. After a reboot it will be gone!

How to permanently flash TWRP

1. Download the flashable TWRP installer zip provided in this thread!

1a. If you´re on a stock kernel that has no touchscreen fix for recovery included please also download the touchscreen_hexpatcher.zip

2. Flash the TWRP-Installer.Zip from the booted TWRP or Magisk Manager on your phone (hit the + while in modules section)

3. Important: Directly afterwards flash the magisk zip from TWRP or Magisk Manager

If you don´t flash it you will only be able to reboot to TWRP, regardless of the option you choose

4.Only needed when on stock kernel without touchscreen fix:

also flash the touchscreen_hexpatcher.zip from TWRP or Magisk Manager

Be aware that flashing touchscreen_hexpatcher.zip will make touch work when using stock kernel but render all recovery related commands unusable.

This includes

adb reboot recovery

, reboot to recovery from magisk manager and reboot to recovery from inside TWRP.

To get into TWRP you first have to reboot to bootloader and from there on to TWRP/Recovery!

5. Reboot

6. Congratulations: you can now reboot into your permanently flashed TWRP :)

7. Please note that MTP will not work when you use the permanently flashed recovery!

Downloads are here:

TWRP Image 1.15: https://www.androidfilehost.com/?fid=5862345805528064312

TWRP Image 1.21: https://www.androidfilehost.com/?fid=5862345805528064315

Flashable TWRP Installer: https://www.androidfilehost.com/?fid=5862345805528064314

Touchscreen_hexpatch_zip: https://www.androidfilehost.com/?fid=5862345805528064309

at this point it´s time for the credits!

A huge thanks to [MENTION=1162986]Captain_Throwback[/MENTION] again! without him this wouldn´t be existent!

A huge thanks to [MENTION=4470081]topjohnwu[/MENTION] for magiskboot!

An equally huge thanks for [MENTION=912474]Dees_Troy[/MENTION]. He created the flashable TWRP Zip template!!

The last huge thanks goes to [MENTION=4544860]osm0sis[/MENTION] for making it possible to flash the twrp installer zip in magisk manager!

These guys truly rock!!

Also thanks to [MENTION=438152]Electronic Punk[/MENTION] for testing! :)