yashsingh1/xdaforums huggingface dataset:
[HTC U12+ Guides, News, & Discussion] hek.je:
Crap. After spending some days to tweak/ tune / install / customize my phone I dropped it, and now the screen is cracked :(

I called HTC Netherlands, and they told me to send it in for repair.

So now I would like to make a copy of the system, and reset / un-root the phone.

Anyone here who can suggest a tool to backup the phone (Titanium backup?) , and more important, how do I go back to default (un-root)?

Thank you for any help on this.
[HTC U12+ Guides, News, & Discussion] 5m4r7ph0n36uru:
To obtain default un-rooted just flash a RUU. On the other hand a screen replacement isn't part of the guarantee and has to be payed, so why returning to stock instead of only wiping to protect your personal data.
[HTC U12+ Guides, News, & Discussion] Electronic Punk:
Anyone managed to restore stock vendor.img?

G:\>fastboot flash vendor_a vendor.img

< waiting for any device >

Sending 'vendor_a' (563249 KB) OKAY [ 19.591s]

Writing 'vendor_a' (bootloader) HOSD CL#1036375

FAILED (remote: 35 RU_PARTITION_NOT_SUPPORT vendor_a)

Finished. Total time: 20.606s

G:\>fastboot flash vendor_b vendor.img

Sending 'vendor_b' (563249 KB) OKAY [ 19.643s]

Writing 'vendor_b' (bootloader) HOSD CL#1036375

FAILED (remote: 35 RU_PARTITION_NOT_SUPPORT vendor_b)

Finished. Total time: 20.656s

OTA will check both system and vendor, so just fixing what I may have bust ;)
[HTC U12+ Guides, News, & Discussion] migascalp:
did you try in ruu mode?
[HTC U12+ Guides, News, & Discussion] Electronic Punk:
Yeah tried download, bootloader and rebootruu.
[HTC U12+ Guides, News, & Discussion] nenebear:
need rooted

command:

adb push vendor.img /sdcard/vendor.img

adb shell

su

#dd if=/sdcard/vendor.img of=/dev/block/bootdevice/by-name/vendor_a

#dd if=/sdcard/vendor.img of=/dev/block/bootdevice/by-name/vendor_b
[HTC U12+ Guides, News, & Discussion] migascalp:
I found the same problem with system_other

But it works with system

Curious about how to flash a custom rom...
[HTC U12+ Guides, News, & Discussion] Electronic Punk:
Seems to have done the trick, did it while booted, as I couldn't be bothered to add an external SD to boot via TWRP, rebooting now, lets see if it boots :D

Edit: No its boot looping, time to dig out that sdcard!

---------- Post added at 04:52 PM ---------- Previous post was at 04:14 PM ----------

Yeah didn't like that at all, got it back via a test img but best to wait for more proven methods before doing that again :D
[HTC U12+ Guides, News, & Discussion] Freak07:
May be a stupid question but did you try to “fastboot flash vendor vendor.img?

Without the _a?

if that’s indeed not working on s-on production devices I will update the OP accordingly. :svetius:

Thanks for reporting that! :highfive:
[HTC U12+ Guides, News, & Discussion] Electronic Punk:
Yeah same issue sadly.
[HTC U12+ Guides, News, & Discussion] Freak07:
Did you try other partitions as well?
[HTC U12+ Guides, News, & Discussion] Electronic Punk:
I think dtbo failed.

However, I did system the other day and it was fine.

Boot works of course, needed to do it to install your kernel ;)
[HTC U12+ Guides, News, & Discussion] Freak07:
hm if I would have known that on regular s-on production devices many commands fail I wouldn’t have posted them.

I did not try to flash vendor yet, but dtbo worked for sure when I tried it...

I’ll update the OP later! Thanks again for the report.
[HTC U12+ Guides, News, & Discussion] Electronic Punk:
Well its actually kinda odd that it lets you flash system but not vendor when both can be modified on unlocked devices, perhaps an oversight.

Ideally I would just reruu and restore user data and flash a patched_boot again but I don't think that is possible right now.
[HTC U12+ Guides, News, & Discussion] Granite1:
Hey just heard from beaups that Sunshine is out for the 12+.

Same S-off situation that the U11 has. It's temp, but all mods will persist after a reboot.

Head over to their app thread and check it out.
[HTC U12+ Guides, News, & Discussion] Freak07:
could anyone be so Kind to try if fastboot Flash Vendor_a Vendor.img work on a device that has temp s-off via sunshine?
[HTC U12+ Guides, News, & Discussion] Granite1:
I've been so busy at work, and I went on vacation, I haven't had time to S-off yet. I haven't even unlocked my bootloader yet. :o

I know, I'm slacking. If get everything done and no one has tried it yet, I'll try it for you. :good:
[HTC U12+ Guides, News, & Discussion] Freak07:
thanks :) :svetius:

Have a nice vacation :)
[HTC U12+ Guides, News, & Discussion] Freak07:
Updated the OP on how to root with the currently released TWRP
[HTC U12+ Guides, News, & Discussion] vegetaleb:
Sweet Jesus, let the roms roll :D

So can get them ported to u11+ :victory:
[HTC U12+ Guides, News, & Discussion] Freak07:
It’s not able to decrypt data currently
[HTC U12+ Guides, News, & Discussion] tdwpkidd:
Anyone else have a solution? Faceunlock is still grayed out.
[HTC U12+ Guides, News, & Discussion] Freak07:
Try to clear data of face unlock app and reboot. Worked for some :svetius:

Despite many others having it working apparently I can’t get it to work myself :(
[HTC U12+ Guides, News, & Discussion] JR 2007:
Hi! My Htc_J15 have super su,but today I received OTA 1.21.401.3.Need to flash not modified firmware from 1.15.401.4 for normal installation OTA.After wait when will be modified firmware from 1.21.401.3 for obtain super su?

Sorry for my english)
[HTC U12+ Guides, News, & Discussion] mdxdave:
Yeah the device needs to be stock in order to install a ota update. afterwards you can root your device again.
[HTC U12+ Guides, News, & Discussion] qriozum:
I threw a stock boot with 1.15.401.4 firmware, I downloaded OTA but it does not go to the installation.

What else should be flashing so that OTA will be verified and installed?

regards

q.
[HTC U12+ Guides, News, & Discussion] qriozum:
I noticed that after today's OTA to v1.21.401.3, when switching from MagiskManager, the active slot changed. Until now active "A" and now, after OTA - "B" is active.

It's just for information, however, to check the boot against the boot

greetings

q.
[HTC U12+ Guides, News, & Discussion] DeeZZ_NuuZZ:
It's normal that the slot is changed after reboot/update on a/b devices.
[HTC U12+ Guides, News, & Discussion] diamond09:
When it is ready, it is ready. So you have to be patient.
[HTC U12+ Guides, News, & Discussion] JR 2007:
I understand.I just asked)
[HTC U12+ Guides, News, & Discussion] qriozum:
I have a question for more experienced forum members:

- does the TREBLE project and related "slot a" and "slot b" mean that in the case of some software damage to our HTC U12+ on the active "slot a" can you run and run on "slot b"?

Such a mechanism we have, for example, in the motherboard BIOS Gigabyte - there is a "dual BIOS" which in case of failure of one, simply loads the other and can be used on the machine.

regards

q.
[HTC U12+ Guides, News, & Discussion] DeeZZ_NuuZZ:
Afaik it automatically switches to the other slot, where it was working fine. It's similar to the dual bios and also similar to how Microsoft does it, where the old windows files are saved and in case something goes wrong, you can revert back.
[HTC U12+ Guides, News, & Discussion] Freak07:
You may want to have a read here:

https://source.android.com/devices/tech/ota/ab/

It can be also found in the OP ;)
[HTC U12+ Guides, News, & Discussion] Freak07:
Also added this link to the OP

https://www.xda-developers.com/how-...ess-updates-affect-custom-development-on-xda/
[HTC U12+ Guides, News, & Discussion] qriozum:
Thank you for Link.

Dear friend, is changing the active slot from "B" (system v1.21.401.3) to slot "A" (there was the system v1.15.401.4) by command in fastboot mode - it will cause the older version of the system to run, i.e. v1.15?

regards

q.
[HTC U12+ Guides, News, & Discussion] Freak07:
In theory yes. :svetius:

However keep in mind you have only one data partition which is shared by both slots. It may not be downwards compatible.

I did not try to boot my old slot until now.
[HTC U12+ Guides, News, & Discussion] Freak07:
Updated the OP with info on how to obtain root by flashing magisk.zip in TWRP!

This may be interesting for some users that aren´t familiar or did not want to try the other methods.

Enjoy your weekend all :) :fingers-crossed:
[HTC U12+ Guides, News, & Discussion] Ndaoud360:
You can still root the phone after the OTA right?
[HTC U12+ Guides, News, & Discussion] DeeZZ_NuuZZ:
Yes always
[HTC U12+ Guides, News, & Discussion] Ndaoud360:
I tried that but it didn't root it, I'll try again. I think I did it on boot_a vs boot_b which the latest ota is on.
[HTC U12+ Guides, News, & Discussion] DeeZZ_NuuZZ:
Yeah of course you have to patch the right slot. But it's better to use twrp and flash the magisk zip, it gonna do the right slot for you and it's faster. Also twrp is fully working now. Just check the twrp thread for it
[HTC U12+ Guides, News, & Discussion] LibertyMonger:
Finally rooted my phone. Feels so good to have my substratum theme back and root.

A few things I don't like is not being able to use button mapper. I mainly like have back to kill. Is there a way to achieve this without a custom ROM?

Also, it seems my buttons are worse now since the update. They were perfectly fine before but I had issues while in bootloader and download modes. It wasn't recognizing my button presses while trying to scroll up and down.
[HTC U12+ Guides, News, & Discussion] DeeZZ_NuuZZ:
Custom kernel, tbalden brought his now and freak07 implemented his stuff too, so we have both kernels, with "different features"

Then you can use button mapper

For me the update barely changed anything, nearly same as before regarding buttons, but sometimes do work better. In bootloader they always work fine even better than in system sometimes ?
[HTC U12+ Guides, News, & Discussion] LibertyMonger:
Can't get button mapper to recognize the back button.

My volume and power buttons seem fine when booted but had trouble with them in bootloader and download mode.

---------- Post added at 06:51 PM ---------- Previous post was at 06:44 PM ----------

Actually I think button mapper doesn't work with the U12+. Is anyone else using it?
[HTC U12+ Guides, News, & Discussion] -4ndr01d-:
so been on the fence bout this, but how exactly do i rooot? im on 1.15 US version and that says latest update. i take it there is a 1.15 amd a 1.21 version for people in other country?

and what happens to those who are stuck to where they can only boot to recovery and not system...is there a fix?
[HTC U12+ Guides, News, & Discussion] Freak07:
It’s pretty easy with working twrp now.

Just fastboot boot the twrp for your current firmware (that’s 1.15) and backup your boot.img. Then flash the magisk zip (I’d recommend 16.0) . You’re rooted now.

the issue with only booting to twrp happen solely if you don’t read the instructions for permanently flashing twrp correctly. After flashing the twrp installer zip to obtain permanent twrp, directly without a reboot flash the magisk zip. Even if you already have root.

In case something goes wrong when flashing twrp and you’re not able to fix it just restore the boot.img you backed up earlier and everything you did will be reset. That’s because the recovery gets flashed to the ramdisk of the boot.img when using the twrp installer zips.

Just follow the instructions carefully and there won’t be a problem. :svetius:
[HTC U12+ Guides, News, & Discussion] qriozum:
It is exactly as you say :)

I do not know English, I support myself on google translate and yesterday/today I lost a few hours on RUU flashing and the re-rooting procedure :)

But thanks to this, I got to know the specificity of the structure used at U12 + :)

It is quite diametrically different from previous HTC flagships :)

Have a nice day

q.
[HTC U12+ Guides, News, & Discussion] DeeZZ_NuuZZ:
Every phone with treble support and especially a/b partitioning does this now. So from now on all phones with a/b treble it will be similar to this
[HTC U12+ Guides, News, & Discussion] -4ndr01d-:
so I started from the OS ... ran the adb reboot bootloader and then fastboot twrp. twrp loaded and i directly flashed the twrp zip and then directly flashed magisk....when I reboot I get 'this system is corrupt and cannot be trusted, it will not boot" in the bootloaded

restored the boot.img i backup and im able to boot, but no root or twrp

also i am still locked not unlocked...and software status has changed to modified ...is that all ok?
[HTC U12+ Guides, News, & Discussion] 5m4r7ph0n36uru:
Find the reason your system won't boot when TWRP and Magisk have been flashed marked above. And why you're modified now, well think of it ... it's been the case since Nagesh, that software status swits he's to modified/tempered as soon as you tinkered with your device, being S-ON.
[HTC U12+ Guides, News, & Discussion] MNoisy:
After getting the latest US ota I am all updated and ready to reroot but am not having any luck. I am via mobile right now so can post log tomorrow but I am getting the error that /vendor - device or resource is busy. Flash fails with 16 and 16.7

Any ideas?

UPDATE: Solved. I thought instructions indicated system had to be mounted, once I unchecked it, it worked perfectly.
[HTC U12+ Guides, News, & Discussion] -4ndr01d-:
ok, I am ready to try this again. I have read both threads (this and twrp thread) and I cannot get my phone rooted. I RUU'd back to 1.15 and took the ota to 1.21

can someone tell me what am I doin wrong?

form the untouched os my steps are as followed:

1. adb reboot download

2. fastboot twrp (1.21 since my OS is 1.21...also tried 1.15 since the main var shows that)

3. backup boot.img

4. flash magisk16.0.zip

5. reboot and stuck

6. have to restore boot.img so I can boot
[HTC U12+ Guides, News, & Discussion] DeeZZ_NuuZZ:
you can't boot after flashing magisk, because your bootloader is locked. it needs to be unlocked.

twrtp can be loaded and flashed though, because there is a problem, which looks like it affects all SD845 devices, that you can boot TWRP without unlocking first. you need to unlock in order to be able to use magisk and stuff like this
[HTC U12+ Guides, News, & Discussion] -4ndr01d-:
i forgot mention i was unlocked. turns out i needed to be in the bootloader and not download mode to do this correctly. not sure why on 1..15 download mode let me boot twrp and 1.21 would not. 1.21 needed bootloader for it to boot twrp.

anyways, all good now. took a backup of system vendor data boot

is it safe to weed through /system/app and /priv-app and /data and yank the programs and junk I do not want (like news republic and some google apps I will never use)?

assuming if anything breaks, I can just restore nandroid
[HTC U12+ Guides, News, & Discussion] DeeZZ_NuuZZ:
Yes it's safe
[HTC U12+ Guides, News, & Discussion] majomathes:
Anyone else with problems to install the System-Updates? Got the message after downloading "Update is incorrect" or sth like that (cause of a German phone ;) )
[HTC U12+ Guides, News, & Discussion] JWhetstone02:
Ok, I've been rooted and everything works fine. But after a reboot I'm having to reinstall BusyBox in order for AdAway to update. This happens after a reboot. But everything else seems to function normally with root.

Had anyone else noticed this?

Phone: Verizon, 1.21 ota
[HTC U12+ Guides, News, & Discussion] LibertyMonger:
I've noticed adaway and Kadaway only work with chrome I think. I just use Block it apk and it works perfectly without root.
[HTC U12+ Guides, News, & Discussion] Elponius:
Is there a way to update from 1.15.401.4 to 1.21.401.3 without wiping? Iam already running magisk root, busybox and xposed with many modules. I have tried to uninstall magisk and flashing Stock firmware but iam getting errors while installing Updates. i want to install OTA without wiping my device... I thought.. Flash stock Firmware, Update ota and Flash patched new firmware..

But i think there are more Things to do. What can i do? Uninstall adaware, xposed and busybox doesnt work. Is there a way how to find out what i have to uninstall bevor i can Update OTA? :/ or have i to lock bootloader or run/Flash RUU with full wipe?
[HTC U12+ Guides, News, & Discussion] Max128:
Hi i have unlocked the bootloader and root.. Every times i reboot i have the message The bootloader is unlocked and software integrity cannot be guaranteed.

I know is normal. But I was just wondering if could have removed it.
[HTC U12+ Guides, News, & Discussion] Vita.T:
Same here, i got the system update notification but everytime downloaded up to 98% it showed file is corrupted. Did tried Factory Reset but encounter bootloop at the white htc screen. However, it suddenly booted up after couple bootloop but only resulted in normal reboot not a Factory Reset. Any help?

Existing version: Asia HK 1.21.708.3 (update from 1.15.708 via offical OTA pushed to device)

Rooted with Magisk

Temp TRWP 3.2.2.0 booted

Stock Kernel

Thanks in advance
[HTC U12+ Guides, News, & Discussion] 5m4r7ph0n36uru:
Got to restore stock boot and vendor. As well make sure system has always be mounted ro.
[HTC U12+ Guides, News, & Discussion] Vita.T:
How about if I download the OTA zip from your spreadsheet and install it via TWRP? Just need to mount system as read only?
[HTC U12+ Guides, News, & Discussion] 5m4r7ph0n36uru:
As the recovery is part of the kernel, and the system took over flashing an update and copying needed files, due to Treble A/B, installation via TWRP currently isn't possible.

TWPR is - as the stock recovery as well - part of the kernel ramdisk now. And as I told you vendor and boot have to be pristine and full stock as well. Magisk modifies boot and vendor partition, which leads to the fact, that the pre-checks of the OTA fail, as it recognizes that vendor has been modified as well. I even wrote verything that's to do up in my guides thread to point out wht's important to know about trebelized ROMs, giong back to stock, backing up everything in the first place. Maybe take a look there to understand how the new design of the Android ecosystem works.
[HTC U12+ Guides, News, & Discussion] Vita.T:
Thanks for the details, will check them out. One more wired thing, I always encounter files/folders disappeared in external SD card, usually after unplugged from PC or system reboot any hints?
[HTC U12+ Guides, News, & Discussion] 5m4r7ph0n36uru:
Guess that's still the good old MTP bug, Google introduced way back and never got it fixed up properly.
[HTC U12+ Guides, News, & Discussion] Vita.T:
Oh...still not fixed properly? It happened since U11, but never got this issue on HTC 10 and b4.
[HTC U12+ Guides, News, & Discussion] LibertyMonger:
I have never experienced this issue. Don't even have to eject first like we used to. The option isn't even there. But I guess if it is an issue it is an unmounting issue. Just glad I never experienced it.
[HTC U12+ Guides, News, & Discussion] 5m4r7ph0n36uru:
[MENTION=5943110]emrince[/MENTION] I do not give support per PM. And maybe you should have read here how to correctly root the HTC U12+ instead of blindly using a root solution, like SuperSU. That's what these guides are for and should be read. A way back to the stock system, and how to get into download mode - even with a bootloop - can also be found in my Guides and Collections thread. Read all this, do a reset via RUU flash, and then start again.
[HTC U12+ Guides, News, & Discussion] sbiricuda:
Okay, it seems I was able to successfully root my phone with Magisk. A big thank you for your guide.

I chose not to flash a permanent TWRP.

Anyway I just wondering: what is the actual benefit of not flashing a permanent recovery?

While the cons are quite obvious to me (you always need a PC to boot into recovery, and this doesn't let you restore a nandbackup on the go), I can't easily recognize the pros.

The warranty is gone with the unlocked bootloader.. is that because of OTA's?
[HTC U12+ Guides, News, & Discussion] Tachi91:
1. None, Normally if you kept your system stock and used TWRP for just small mods. OTAs would still download and install using the stock recovery. If you didn't remove some of the apps/files it uses to check system integrity.

- For Example originally I ran TWRP to simply add my own hosts file. OTA still worked because it didn't detect root or apps missing.

- Once you start installing root and removing and adding stuff at the /system level. That's when you break system integrity.

2. Warranty isn't necessarily gone. HTC just has the right to deny service if they determine that whatever issues they find where caused by you modifying the software in anyway. Ive sent phones to customer service with customs ROMS before. The issue were physical damage etc so they chose to ignore the software and fix the phone.

- If you send the phone in to repair with a broken screen or USB port. Theyll still cover anything under warranty because having root doesn't magically cause that.

- if you send the phone in for bad network performance, random restarts etc. If your phone isn't running 100% stock software. Then those things can easily be denied because you were running unauthorized software that could've caused those issues.

At the end of the day accept the fact you won't receive OTAs the moment you unlock the bootloader because you're now running software the OTA wasnt meant for. Always RUU back to stock and relock the bootloader before sending it in for any kind of repairs.
[HTC U12+ Guides, News, & Discussion] sbiricuda:
Handy to know, thank you!

But all this leads back to the original question: if having a permanent TWRP doesn't prevent OTAs, why should I want to keep it temporary? There are many users who prefer not having it in their phones, just wondering why. :confused:
[HTC U12+ Guides, News, & Discussion] Freak07:
well you need to differentiate between A/B devices and none A/B devices. on non A/B devices the recovery was on it´s own partition. Here it resides in the boot.img´s ramdisk.

The biggest factor on the U12+ may be the fact that with perm TWRP installed, you either have to use a custom kernel or the hexpatch for touchscreen to work.

There are people that don´t want to run custom kernels. And flashing the hexpatch zip breaks reboot to recovery commands and functionality. I guess that is also not everyone feels comfortable with.

despite all that, I´d advice everybody asking me, not to tinker with the phone on the go, even when perm TWRP is installed. You always should have a pc nearby. Otherwise you may end up with a not working phone on the go. If you do it that way it´s not a big deal to only boot twrp and keep the stock boot.img clean.
[HTC U12+ Guides, News, & Discussion] sbiricuda:
Okay, I see. Thank you. :)

Edit: just to be clear, when I say "on the go" I refer to some circumstances when my phone stopped working out of the blue. It happened on a plane and during my holidays abroad. Of course, I was not messing with system or anything at that time; actually I wasn't doing anything at all. I restored a nandbackup on the go to fix that. That's why I see a permanent TWRP as an advantage.
[HTC U12+ Guides, News, & Discussion] JWhetstone02:
So I am away from a PC this weekend and do not have the permanent TWRP and accidentally updated Magisk Manager (5.9.0). I rebooted my phone and now have no root at all. It is asking me to install v17.0 and I'm not sure how to go about this without a PC to get to TWRP.

Can I update Magisk from v16.0 to v17.0 by just clicking install from within the Magisk Manager app?

I'm afraid I'll be stuck in a bootloop and that's my only worry for this weekend.
[HTC U12+ Guides, News, & Discussion] qriozum:
Unfortunately, after your surgery you should go through the entire procedure with the Magisk and later twrp. However, you need a computer.

regards

q.
[HTC U12+ Guides, News, & Discussion] Marco589:
I tried to root my U12+, but I stuck on "this device is corrupt"

what I did is:

Unlock Bootloader

Debug USB

- Powershell -

adb reboot bootloader

fastboot boot twrp.img (twrp official)

-on the phone-

install :

* twrp installer

* Magisk 17

* touch fix

when I reboot into recovery (even in the others mod), I get this Message: "This devices is corrupt. It can't trusted and will not boot"

can anyone help me? pls