yashsingh1/xdaforums huggingface dataset:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
No booting twrp only is just temporary. After a reboot everything is as it was before booting. (if you flash zips that change system partition safety net will obviously break)

Booting twrp is not permanent which is an advantage of just booting twrp!
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] qriozum:
So leaving the slider in the "Read-only system" position in TWRP after restarting HTC U12 + magisk will fulfill its function and SafetyNet will be preserved?

regards

q
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
yes leave that to read only.

If you flash either [MENTION=3088420]tbalden[/MENTION]’s or my kernel and are rooted with magisk safety net should pass just fine :)

Works for me :) screenshots for reference are attached.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] 5m4r7ph0n36uru:
Unlocked bootloader only already triggers the CTS check to fail, DRM to fall from L1 to L3, and PlayStore to become unverified, on the U12+. Thus you need a kernel, or Magisk 16.7 to pass CTS checks again, and probably use with respect to reestablish the test as well.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] c0dex:
Suggestion if you cannot boot into recovery:

1) adb reboot bootloader

2) fastboot boot <name_of_twrp_file>.img
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
If you are interested in testing TWRP and helping us getting twrp faster up and running, please PM me your hangouts id/email and I will add you to our test group.

It would help tremendously as I’m short on time currently and can’t do all the testing alone!

You should know how to take logs in recovery etc and have a completely working adb/fastboot environment!

Thank you very much :)
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Kirisakura Kernel also updated with the recovery touchscreen fix!

EDIT

I updated my kernel with a quick hotfix. Please download 1.4 :)

https://xdaforums.com/showpost.php?p=77234128&postcount=88

Kirisakura 1.3 and onward!

[MENTION=3088420]tbalden[/MENTION] will patch cleanslate when he finds time and announce it then :)

EDIT:

Cleanslate also patched! you can find it here:

https://xdaforums.com/u12-plus/development/kernel-cleanslate-t3822721

thanks [MENTION=3088420]tbalden[/MENTION]!
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] osm0sis:
TWRP's template is actually jcadduono's LazyFlasher with some (major) simplifications by Dees_Troy, for reference. :)

Glad it works! I'm working on getting Magisk to automatically keep itself installed as part of it now. :cowboy:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] JR 2007:
Thanks
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] c0dex:
Is it necessarily to re-flash Magisk 16.0 after flashing permanent twrp if it is already installed?
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
yes! It’s always required when flashing permanent twrp installer zip.

Otherwise you will end up with the ability to just boot to twrp regardless of the option you choose.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] heslo.rb26:
Thanks for your hard work guys! Just received my U12+ and am already rooted, flashed a kernel and have TWRP installed. Awesome stuff, now just waiting on ROMs :D
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
You’re welcome :svetius:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] qriozum:
The screen under TWRP is also "dark" as in DownloadMode mode ... :(

Not much gives lightening up to 100% ...

In U11 at the 100% setting, you could read the books ;)

regards

q.

---------- Post added at 09:53 PM ---------- Previous post was at 09:34 PM ----------

Upsss .... how to get to ... system?

Nonstop starts in the recovery mode.

Will I reboot to "System" or to "Bootloader" or "DownloadMode" or "Disable" - always then only recovery ... starts :(

How to run, go under the normal system?

regards

q.

---------- Post added at 10:07 PM ---------- Previous post was at 09:53 PM ----------

I think I "screwed up" in point 3.

After flashing TWRP I did not reboot to Recovery, but I did flash "Hex-Patch": (((

Now nothing can be done just flashing RUU?

Is there a chance for eg flash custom kernel?
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
If you want to start over and do all steps correctly flash back stock boot.img again.

Then read all the steps and carefully follow them.

If you don´t want to do that just flash magisk zip in twrp now. Touch should be working because you flashed the hexpatch.

It´s stated multiple times that you need to flash magisk after flashing the twrp installer zip. If you don´t do this, you will only reboot to twrp regardless of the option you choose.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] qriozum:
I hurried up, I threw in before a full RUU: /

I'll do root soon, I will throw TWRP.

I do not understand point 3 now.

Do I have to reboot after adding (+) in MagiskManager "TWRP.zip"?

After adding (+) "TWRP.zip", do you additionally make "Magisk.zip" flash and then restart?

regards

q.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Electronic Punk:
At the moment you need to flash magisk again after twrp to once again allow booting to system.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] qriozum:
Ah, I did not understand it before :(

The procedure looks like this:

1. under MagiskManger choosing "+" flashing "TWRP.zip",

2. under MagiskManger choosing "+" flashing "Hex Patcher.zip",

3. I am doing a reboot to recover TWRP,

4. from the level of TWRP I make flash packages "Magisk.zip",

5. Now I will be able to use all the restart options and run the standard system.

Is this how it should look like?

Best wishes

q.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Electronic Punk:
You can flash the magisk.zip from magisk manager as well.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] qriozum:
I do not understand anything now :(

I did:

1. flash "TWRP.zip" under MagiskManager,

2. flash "Hex-Patcher" under MagiskManger,

3, "Install v16)" from the "MagiskManager" menu.

When I wrote "adb reboot recovery" in the console, the system rebooted, but did not run TWRP.

Crap, I do not understand where I make a mistake :(

regards

q.

---------- Post added at 11:38 PM ---------- Previous post was at 11:33 PM ----------

Okay ... it's good !!!!

I did a reboot from the console but not a recovery bootloader.

From it only to "recovery" - TWRP has been launched.

And from the level of TWRP now the reboot to the system that started;)

Best wishes

q.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Indeed, with hexpatch

adb reboot recovery

Won't work, you need to boot to bootloader to be able to boot to recovery there...

adb reboot-bootloader

Then reboot to recovery from there.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
it’s also stated in the op. If you flash the hexpatch zip and are on stock kernel that reboot to recovery commands/functions will not work and boot you to the OS.

This includes adb reboot recovery as well was the boot to recovery button in magisk manager.

The way to boot to TWRP with stock kernel and hexpatch zip flashed is reboot to bootloader and then select reboot to recovery in the bootloader.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] qriozum:
Thanks for your reply [MENTION=3088420]tbalden[/MENTION] :)

Is it possible to do a flash custom kernel - your (CleanSlate) on the device in which there is "TWRP (perm)", "hex-Patch"?

regards

q.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Electronic Punk:
Or use Kirisakura kernel, perhaps Cleanslate too ;)
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Yes. Create a backup of boot partition, and flash away. :good:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] qriozum:
This is one more thing;)

For many years, I was used to a copy in TWRP:

- system,

- system image,

- cache,

- date,

- recovery,

- boot.

I know that now we have a different copy structure.

we have:

- system image,

- vendor,

- vendor image,

- date,

- boot.

Does it have copies of the "system" already?

Do you only need to restore "DATA" if you want to restore application and settings data?

I ask, because before I made flash RUU tonight, I made a copy in TWRP and I would like my application to be restored "quickly, easily and pleasantly";)
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Yep, data is the one to restore. If you made it on the same rom base version, and also set the same kind of decryption method (pin or pattern or nothing) then it should be that simple.

To make sure you won't need another round of factory data reset, create a new data backup before restoring your first backup. If something goes wrong with it, you can still restore the new backup which is sure to work.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] qriozum:
I just restored "DATA" and for now looks "OK".

Only I do not have the "HTC Contacts" widget, but he was as a system application, so after RUU it's natural that it "evaporated";)

Only the system could not be launched because it did not accept the pattern (fingerprint or face does not work after reboot). So I manually entered the bootloader, from it to TWRP and there in the file manager I removed "locksetings.db" and then reboot and the system got up normally. I set the tile with a new pattern and face image (fingerprints remained - hehe).

If this is already mastered, then you need to test the kernels;)

I wish you a good night - and thank you guys for help :)

regards

q.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
You know all the tricks already, just this a b partition thingy is new, to make things a little bit more interesting [emoji4]

Have a good night there too [emoji106]
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Hey guys and girls, :)

To simplify things a bit I added a F.A.Q. section to the second post
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] kickyoace:
can someone link me a boot.img for the 21 base for the usa unlocked version?
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Download OTA (select correct tab) from 1.15 to 1.21 and extract the boot.img from the zip.

Here’s the link.

https://docs.google.com/spreadsheets/d/1wIRrVQawd5rD-t9VKPQ-SdRK20RcJVZhwD7lhmPIK8w/htmlview#
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
there will be one last update before I go on vacation :)

I´ll return on the 28th of August. Until then I will most probably have only rarely access to the internet.

Announcement:

I´ll hereby beat [MENTION=3088420]tbalden[/MENTION], [MENTION=438152]Electronic Punk[/MENTION] and [MENTION=398245]LeeDroid[/MENTION] the knights of TWRP, which will be watching over this thread in my absence :)

So please everyone behave :highfive:

In this sense:

Have a nice summer/time everyone. Enjoy the time! I´ll be back :)
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Attention Ladies and Gentleman,

here is the last update before I go on vacation. I think with the update we should have everything covered.

thanks to extensive testing done by [MENTION=438152]Electronic Punk[/MENTION] a bug was discovered and squashed that prevented /system from being able to be mounted as R/W.

At this place thanks to [MENTION=1162986]Captain_Throwback[/MENTION] again :)

The permanent twrp installer zip now displays a message after flashing, asking you to reflash magisk again.

There were more behind the scenes updates :)

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=5862345805528066472

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

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

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

Announcement:

In case you missed it because it´s on the previous page, I´m on vacation until the 28th of August :)

take a look here:

https://xdaforums.com/showpost.php?p=77250621&postcount=100
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Electronic Punk:
Does this change correct that?

https://github.com/topjohnwu/Magisk/commit/9159f86a9e81f050340b76c065606668b722313f

Edit: Nope :)
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Electronic Punk:
Tested the official TWRPs on my 1.21 device.

Bootable image is working fine, just make sure you aren't still on 1.15 or you will need to use the unofficial ones.

ZIP is also working fine too!
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] i5lee8bit:
First of all, thanks sooooo much for everything you're contributing to this community. Also want to point out there was only like 12 hours between posts 72 and 73 - "we need testers please" to like "yo son, check it, we got it". That's insane. I don't care what anyone says about HTC, development for HTC has been and remains fk'ing legendary. Thanks to all developers and contributors!!

So quick question, couldn't find an answer: is MTP broken only within TWRP when it's permanently flashed, or it's broken overall (in booted OS)? Just trying to decide which approach I want to take.

Thanks.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] JEANRIVERA:
MTP is not broken on booted android, it is working fine here
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] phoenix79:
If I install the TWRP recovery, will it let me install openGapps over the sense versions, or will the phone complain?
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] kickyoace:
you can also boot twrp and install gapps it just will break saftey net because you are changing the system partition but yes you can install or boot it and that will work
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] DeeZZ_NuuZZ:
the f.... why do you even want to flash gapps over sense rom? it might even break more things than help you in anyway
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] 5m4r7ph0n36uru:
Leave it as is. The GApps in use on the Sense ROM are updated through PlayStore as well as silent PlayServices updates in the background.

OpenGApps and such alike are only needed on AOSP based ROMs such as AOSP, Resurrection Remix, Lineage and similar. Never, I repeat, never tinker with such a thing as you currently want. It will quite sure lead to a softbrick of your device.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] phoenix79:
This is why I was asking, wasn't sure if it would break Sense. I just don't like some of the Sense Gapps. I'll just wait for Lineage for this.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] DeeZZ_NuuZZ:
Lol.... The gapps are the same in all roms.... You're a strange dude
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] DaConcho:
He clearly doesn't understand what gapps are... I think maybe he means the dialer and messaging apps hoping to flash gapps and thinks he will get aosp apps?? But ya definitely scratching my head here lol
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] DeeZZ_NuuZZ:
Yeah ? he can just install them
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] JEANRIVERA:
[MENTION=1162986]Captain_Throwback[/MENTION] just created a slack channel for further TWRP development and testing if you are willing to test and provide logs:

https://join.slack.com/t/twrptestin...MzYTgzNDI1YzNjZjdlYWY2YjYzNGNmMTEwY2Y5ODMwYTQ

there, set up a Slack
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] osm0sis:
[MENTION=3428502]Freak07[/MENTION] congrats on the official status. :)

Just wanted to point out

print "Don´t forget to reinstall Magisk by reflashing the Magisk zip! Otherwise you will only be able to boot to TWRP!"

is no longer correct since we added the want_initramfs -> skip_initramfs hexpatch to the script.

I ended with my test enchilada zips as follows:

#cleanup
cd /
rm -rf /dev/tmp

print "Done installing TWRP!"
print
print "Reinstall Magisk to keep root!"

Hopefully the other twrp zips get updated to follow suit! Cheers! :highfive:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] daheufster:
How come / when will the HTC U11+ have official TWRP support? Onofficieel we already have a working TWRP..
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

Seems like you're in the wrong thread. This is the U12+ TWRP thread. You'll have to talk to whoever maintains your unofficial build for them to submit it for official support.

TWP
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] JEANRIVERA:
But this official TWRP still only boots to recovery without flashing magisk after.

Unless there is a newer version not available yet in TWRP.me

I don't want to disrespect but your post might confuse users here and get them stock being able to only boot in recovery (TWRP) mode, since the fix you are talking about apparently it is not implemented yet on U12+ like you mentioned it is on OP6
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] osm0sis:
I downloaded the official ime zip from twrp.me and it's in there, so I'm not sure what you're talking about:

"$tool" --hexpatch kernel 77616E745F696E697472616D6673 736B69705F696E697472616D6673

This plus the twrp ramdisk.cpio effectively unroot the device completely (since Magisk makes the reverse of that hexpatch) and should allow it boot normally.

If there's some other reason it doesn't boot maybe [MENTION=3428502]Freak07[/MENTION] can explain, since that seems entirely possible with the other crazy touch patches and such seemingly needed on this device.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] JEANRIVERA:
Well I am talking by experience I do have it on my U12+ and unless I flash magisk after it doesn't boot to system
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] osm0sis:
Are you sure you're using the latest from twrp.me?

Not saying I don't believe you, I'm just saying that what Magisk does should be completely undone by the script (and works on the identical OP6 test zip I made), so if there's something else missing then it would be good to know so we can add it.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] JEANRIVERA:
Yes I am sure I am also part of the TWRP beta testing group created by Captain Throwback and he hast mentioned anything about not needing to flash magisk after flashing the TWRP zip
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] osm0sis:
Cool, maybe [MENTION=1162986]Captain_Throwback[/MENTION], [MENTION=3428502]Freak07[/MENTION] and I can work together to fix that then. :good:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] oblivianz:
Coming from the U11, I'm quite new to this temp TWRP method. Does bootloader unlocked with temp TWRP break OTA updates?
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
I’m on vacation until the end of August :) I’ll gladly help or do what I can after then :)

Thanks for joining into the thread and the interest! Have a nice time! See you then :)
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] JEANRIVERA:
it breaks OTA if you modify system or vendor partition, if you not doing that then don't worry about it
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] k_l_o:
Breaks OTA Updates if you root via Magisk.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] stgerrard:
Just found out there is new system update available, but installation failed (my device is rooted via Magisk). How could I re-enable OTA updates?
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] k_l_o:
Well, these were my steps to update from 1.15.617.4 > 1.21.617.3. I RUU-ed 1.15 using SDCard, updated the OTA(1.21), Temp TWRP, backed up stock 1.21, Magisked while still in TWRP, and finally restored from Google. Took about 3 hours, but I was doing stuff while the phone was performing the tasks...
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] tonyyang-:
Thank u. I finally solved it using another computer.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] gsm0607455890:
I just unlocked my U12 + and I managed to install the TWRP in definitive.

But I can not find the file touchscreen_hexpatcher.zip

and so I'm stuck on an unusable TWRP

//////

I answer myself

the link is dead on page 1 it is good on page 9

https://androidfilehost.com/?w=file-thanks&fid=5862345805528064309&mid=181&download_id=b3aeb0a5fe361392199fa698c3906ee1&tid=1535104934&hc=43d95a64e351a16365000ea42d248a579e1dc14af7af19318741fc16c0fb8886
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] darkphoenix2012:
I'm on the day 1 firmware for the u12, I tried to do the ota but it failed. Is there a way to do this with twrp installed? I'm thinking without the stock recovery it's failing to install the ota. I'm s-off rooted and twrp latest installed. I kept the day 1 firmware thinking rooting and s-off would likely be easier somehow before it may have been patched in the ota. Since there's no venom or other custom roms that I've seen yet, hoping that changes, I guess I'm stuck with stock room for now, but having it up to date would be nice.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] sbiricuda:
Excuse me guys, I can't find the touchscreen workaround zip in the OP.

I found this one in a reply: https://androidfilehost.com/?w=file...00ea42d248a579e1dc14af7af19318741fc16c0fb8886

Should that be linked in the OP as well?

I'm collecting all I need to root and maybe it could be useful for other users too.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
It isn’t possible to upload it to XDA mirror link for some reason. XDA is acting up and always errors out.

you can find it on the afh mirror in the 3.2.3-0 folder ;)

I’ll move it to the current release.

Edit:

Moved it to the main afh release folder. So following the afh link will also bring you to the hexpatch zip. :svetius:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] sbiricuda:
Great, thank you!
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] beebenutz:
After executing command "adb reboot bootloader", wait for two full minutes before executing command "fastboot boot <filename of the twrp.img>". I have found that executing " fastboot boot <filename of the twrp.img>" command too soon results in hanging at "downloading". Close and restart powershell window to start over. Hope this helps!