yashsingh1/xdaforums huggingface dataset:
[HTC U12+ Guides, News, & Discussion] byinhh:
Single SIM?

Where do I get the boot.img for my Single SIM (europe)?

Version: 2.55.401.1
[HTC U12+ Guides, News, & Discussion] ThE_DeamoN:
I have it somewhere... I will update this post when l get home

EDIT: Here you go...

https://cloud.kochinata.eu/s/3ms53gcDLwqDWcs
[HTC U12+ Guides, News, & Discussion] UltraM8:
Yo, guys, can someone with root dump me the vendor partition pls? Wanna check camera libs
[HTC U12+ Guides, News, & Discussion] lulonen:
fastboot --set-active=a

gives an error as there in no such command -set.

What fastboot should i have to change active from b to a?
[HTC U12+ Guides, News, & Discussion] DeeZZ_NuuZZ:
Test download mode, not fastboot

Sent from my OnePlus7TPro using Thebear Blue XDA Labs
[HTC U12+ Guides, News, & Discussion] changjx:
Any suitable twrp for my u12+, security patch is 2019oct, software number is 2.50.709.3. i try in vain to flash twrp img in download mode

code:

fastboot boot twrp-3.3.1-0-ime.img

thx
[HTC U12+ Guides, News, & Discussion] JEANRIVERA:
You have to flash it in bootloader mode not download mode, also none of the twrp will decrypt Pie unless you flash you disable force encrypt disabler
[HTC U12+ Guides, News, & Discussion] apoca1:
Hi guys, I decided to root my dual sim HTC U12+ but my build number is 2.55.401.3. Do you know if it's possible to do it with image 2.55.401.1 from last year? Also, I have encrypted phone in settings and some people are saying it's not possible in this case but I want to be sure, this tutorial is 3 years old
[HTC U12+ Guides, News, & Discussion] lulonen:
Everything worked fine with 2.55.401.3 on my U12+ with magisk until my phone accidentally auto-updated system to htc original image(same build). Now it works without root and when I only patch boot.img -> whatever slot_a or b - phone hangs after login.

Changing active slots doesn't change anything, and when I flash stock boot.img then system works ok again.

Patched boot.img doesn't start / unpatched boot.img works ok.

Whast's going on? Can You help me? Most stupid is that google pay stopped working saying that my phone is rooted while it isn't. LOL
[HTC U12+ Guides, News, & Discussion] Freak07:
I would wait until this firmware will be available for download. :svetius: sorry about that
[HTC U12+ Guides, News, & Discussion] GphonePrince:
afterall, where do the boot.img files come from? How are they created in the first place? just trying to figure out whether I can create those files myself as well to continue the rooting process. I have already unlocked the bootloader so my warranty is void. It doesn't worth it if I cannot root my phone at the end of the day
[HTC U12+ Guides, News, & Discussion] JEANRIVERA:
In that case take the boot.img from any of the firmwares available, if your device is dual sim take the dual sim boot.img if not take any of the single sim boot.img custom roms on HTC devices has always used the same boot.img among all variants it won't make any difference, only problem is you will not have stock boot.img not a biggie if you don't care for warranty, but it will definitely boot....
[HTC U12+ Guides, News, & Discussion] Freak07:
Before you do this! Md 5 the different dual and single sim boot.imgs. And check if they are the same.

Just because it was like this in the past doesn’t mean it will be the same this time around.

The boot image primarily consists of the actual kernel and the ramdisk.

that was till A/B partitions system dropped.

Now there is additionally the recovery located inside the boot.img.

If you flash a slightly different boot.img that will not boot you may be stuck until a ruu or firmware zip arrives.

I’m not saying it will not work. But you will take a slight risk.
[HTC U12+ Guides, News, & Discussion] GphonePrince:
how to md5 those images? and actually why not root the phone with TWRP? is that because it will cause the phone to lose OTA?
[HTC U12+ Guides, News, & Discussion] Freak07:
When twrp is fully functional it’s just a matter of flashing the magisk zip yes. :svetius:
[HTC U12+ Guides, News, & Discussion] GphonePrince:
can this phone, u12+, be rooted by TWRP? if so, would you mind writing a guide on that please?
[HTC U12+ Guides, News, & Discussion] Freak07:
When we have a fully working twrp I will write a guide.
[HTC U12+ Guides, News, & Discussion] ziand:
Hmm.. As for firmware links, they work properly: https://xdaforums.com/showpost.php?p=76682842&postcount=30
[HTC U12+ Guides, News, & Discussion] GphonePrince:
my version is 708.6
[HTC U12+ Guides, News, & Discussion] ziand:
Oh... sorry.

Here is your RUU, you can download this: https://easy-firmware.com/home/brow...022-1804031643_release_524615_signed_2_4.zip/

Unpack with Decrypted Tool to get firmware.

Or here is a link of FulWipe_signed firmware : https://easy-firmware.com/home/brow...04031643_release_524615_signed_Hboot_2_4.zip/
[HTC U12+ Guides, News, & Discussion] GphonePrince:
sorry I'm kinda nooby :'( I cannot download from that site because it requires me to register and I have checked my emails and spam boxes but still couldn't receive their verification email. mind uploading the boot.img file to somewhere else please? this would also be convenient for other members here :)
[HTC U12+ Guides, News, & Discussion] majomathes:
Hi, thanks for this tutorial.

I flashed all my phones, since Xperia Z, dont know how many... but I have just a few questions (cause of HTC)

Do I need this S-On, Off stuff? What is important and how can I find out?

Where am I able to see if a or b is active? 3,4 or 5 "more" steps would be aweseome :D

Best regards and thanks again!
[HTC U12+ Guides, News, & Discussion] Freak07:
You need to have an unlocked bootloader. S-Off is not necessary.

After you do “adb reboot bootloader” it’s shown on the screen the phone boots into. ;)

Alternatively when in bootloader/download mode do fastboot getvar all ;) that should show it too.
[HTC U12+ Guides, News, & Discussion] majomathes:
okay thanks, on my way until...:

(bootloader) [KillSwitch] : /dev/block/bootdevice/by-name/frp

(bootloader) [KillSwitch] Last Byte is 0X00, disable unlock

(bootloader) [KillSwitch] oem unlock Turn Off!

OKAY [ 0.008s]

finished. total time: 0.009s

no token there :D any idea?

oops someone asked the same already, sorry for that.
[HTC U12+ Guides, News, & Discussion] Freak07:
You need to enable bootloader unlock in developer settings in case you didn’t do it already :cowboy:
[HTC U12+ Guides, News, & Discussion] majomathes:
thanks mate, i just remembered that someone else hit this problem :D edited too late ^^ sorry for that and appriciate your fast answer!:good:
[HTC U12+ Guides, News, & Discussion] Freak07:
You’re welcome. It’s a good idea to just Google the fastboot line that gives the error. In 95% you find an answer :)
[HTC U12+ Guides, News, & Discussion] majomathes:
ezpz, first guide it worked nearly isntant *thumbs up*
[HTC U12+ Guides, News, & Discussion] Freak07:
glad it was a help for you!
[HTC U12+ Guides, News, & Discussion] GphonePrince:
thx. I am looking forward to a guide as detailed/friendly as this one.
[HTC U12+ Guides, News, & Discussion] majomathes:
hi, another question.... face unlock isnt working anymore and... after booting, before unlock with the simcard-pin theres a message "an intern problem occured, contact HTC" something like that - its a German message, of course...

so is this message "normal"?

and whats with the face unlock? its grey, I cant activate it.

Thx again
[HTC U12+ Guides, News, & Discussion] Freak07:
yes the message is normal. In short it is due to the HTC U 12+ beeing an A/B device. Once we have the kernel source we can get rid of this message but for now it´s just cosmetic.

Face unlock is not greyed out for me. I don´t know what happend for you there... you maybe need to set a unlock method like pin/pattern first?
[HTC U12+ Guides, News, & Discussion] majomathes:
I have alle security options chosen: swipe, pin, pattern, fingerprint... all is working, but face unlock is greyed out. I have the phone since yesterday and this option is awesome :D

The unlock progress was fine, all worked, no error messages.

The Trust-Agent is greyed out, too btw. Only Smart Lock (Google) can be activated/deactivated - nothing changed with activate or deactivate the smart lock.

And... after "factory reset" im stuck on bootloop - the message "attention open boatloader" is coming, than the boot logo and return again...

edit: worked after redoing step 12. & 13. but face unlock does not work, yet

another edit: in german the app is called "gesichtserkennung" - is there a possibility (and how) to give them some permissions manually?

Any other ideas?
[HTC U12+ Guides, News, & Discussion] Freak07:
it seems htc doesn´t want you to use face unlock then the rom is rooted.

I just did a quick look at the logcat. and you´re right I cannot use it too. but the actual entry directly in settings is not greyout out before you even have a pin/pattern unlock set.

but yeah here it is:

06-15 13:23:52.654 5408 5408 D FaceUnLock:BaseApp: onCreate()

06-15 13:23:52.660 5408 5408 D FaceUnLock:FaceUnlockReceiver: action = android.intent.action.BOOT_COMPLETED

06-15 13:23:52.661 5408 5408 D FaceUnLock:BILogJobService: scheduleJob

06-15 13:23:52.673 5408 5408 I FaceUnLock:[RT+]RootUtil: Rom had been rooted!!!

06-15 13:23:52.673 5408 5408 D FaceUnLock:RootedHelper: device rooted
[HTC U12+ Guides, News, & Discussion] JEANRIVERA:
Maybe setting Magisk hide helps....
[HTC U12+ Guides, News, & Discussion] majomathes:
I am new on magisk and have only experience with twrp. Can you take a look please? I think other people would use this, too? But I am very thankful for your time!
[HTC U12+ Guides, News, & Discussion] JEANRIVERA:
I can't talk for the U12+ since I don't have mine yet but I'm able to use face unlocked on my U11 not sure if it is because I have magiskhide active but it works
[HTC U12+ Guides, News, & Discussion] Freak07:
I tried already to hide a few apps but I´m not sure if magisk hide is enough or if I chose the right apps.

For Magsik Hide simply open the magisk manager app and in the side swype menu you will fine magisk hide [MENTION=6400779]majomathes[/MENTION]
[HTC U12+ Guides, News, & Discussion] mdxdave:
You need to enable magisk hide for "Gesichtsentsperrung":

How to: https://mdxdave.de/android/htc-u12-plus-root (at bottom)
[HTC U12+ Guides, News, & Discussion] Freak07:
does not work for me somehow
[HTC U12+ Guides, News, & Discussion] majomathes:
OK wow, thanks a lot? both of you??
[HTC U12+ Guides, News, & Discussion] Freak07:
Does this work for you?
[HTC U12+ Guides, News, & Discussion] Freak07:
Does this actually work for you?
[HTC U12+ Guides, News, & Discussion] mdxdave:
Yes, face unlock was greyed out until I enabled Magisk hide for the app.
[HTC U12+ Guides, News, & Discussion] majomathes:
It worked, confirmed?thought the big thanks is enough ?
[HTC U12+ Guides, News, & Discussion] Freak07:
It doesn’t work for me. That’s why I’m a bit confused. was the first thing I tried.

Do you have a fingerprint in your phone?
[HTC U12+ Guides, News, & Discussion] majomathes:
Until now I have fingerprint and pattern, I will disable it give me 2min

Worked without fingerprint, too
[HTC U12+ Guides, News, & Discussion] mdxdave:
Fingerprint and pin (6 digits)
[HTC U12+ Guides, News, & Discussion] Freak07:
I don’t know then.

What software version are you on?
[HTC U12+ Guides, News, & Discussion] majomathes:
1-15-401-4
[HTC U12+ Guides, News, & Discussion] mdxdave:
1.15.401.4 htc__034
[HTC U12+ Guides, News, & Discussion] Boskoel03:
How are u using it on u 11 can u explaine,thanks?
[HTC U12+ Guides, News, & Discussion] JEANRIVERA:
Settings>security> smartlock>trusted face
[HTC U12+ Guides, News, & Discussion] OMJ:
yeah, that's different than HTC Face Unlock..
[HTC U12+ Guides, News, & Discussion] Boskoel03:
As [MENTION=506238]OMJ[/MENTION] stated that's not it,that is google's feature,like it says,trusted face only,it can not unlock phone.
[HTC U12+ Guides, News, & Discussion] HeartWare42:
[MENTION=3428502]Freak07[/MENTION]: Thank you for this guide. I have a couple of questions (got a European HTC U12+, firmware 1.15.401.4).

I have downloaded Full_Stock_firmware_1.15.401.4_UHL_FullWipe_combined.zip from the linked-to thread and can see a "boot_signed.img" file in it. However, on the linked-to page it seems to me like if I proceed with the patching, I will lose OTA updates to Android P. I would very much like to keep OTA updates to Android P (and beyond, ie. security updates).

Would I (in your best estimation) be advised to go forward, if I want to keep OTA update capability?

Thank you in advance for any advise you may give...
[HTC U12+ Guides, News, & Discussion] GphonePrince:
As I am a noob, is there any chance that you are gonna make a step-by-step guide as detailed/friendly as this one? it will be even better if it is guided with pictures https://xdaforums.com/lg-k10/how-to/friendly-root-method-lg-k8-k10-t3531223
[HTC U12+ Guides, News, & Discussion] Freak07:
If you flash the patched_boot.img OTA will break.

But it should be possible to just flash the stock signed boot.img back ( the one you extracted from the zip) and OTA function should be back.

However if you decide to modify stuff on the system partition OTA will break even if you flash the original signed boot img back. Systemless stuff like magsik modules etc is fine.

Alternatively you can always just RUU back to factory state AFAIK.
[HTC U12+ Guides, News, & Discussion] mdxdave:
To remove system apps you can use the magisk module "debloat" for example.

So it should be possible to install OTA by flashing Stock Boot image.
[HTC U12+ Guides, News, & Discussion] Freak07:
There are plenty ways to modify system. but you can do much with magsik that is correct :)

It’s just something one has to be aware of. I replaced an emoji file without magisk so I’m not systemless.
[HTC U12+ Guides, News, & Discussion] vegetaleb:
Is it an app? If yes we should be able to use it on u11/u11+
[HTC U12+ Guides, News, & Discussion] Freak07:
there is an app too but I don’t think it’s all just “app”
[HTC U12+ Guides, News, & Discussion] OMJ:
Yes, but as Freak07 said there's more needed than just the app, I've been playing with it when I have time but so far no luck. It just FC's, logcat shows missing lib which is not present in ruu
[HTC U12+ Guides, News, & Discussion] HeartWare42:
So - just to sum it up (sorry - I am a bit careful here :p):

I can follow your guide and have Magisk patch my "boot_signed.img", copy it back to my PC and then "install" with adb. I will then have a rooted phone (without OTA support).

When Android P comes around, I can then "install" the "boot_signed.img" (without having Magisk patch it), and this should give me back OTA support, so I can upgrade to Android P. (How do I install the original boot_signed.img file when the time comes? Just running "fastboot flash boot_[a/b] signed_boot.img" directly without first copying it to the phone and having Magisk patch it?)

Finally, how do I determine if I'm to use boot_a or boot_b? In your guide you simply say "Check your active slot in the bootloader/download mode on your phone.". How exactly is this done (do you have a screen shot of it? Does it say so during boot-up or is it a menu I have to go into on the phone?)

I have some experience with rooting my phones (all my phones have been rooted - all of them HTC models), so I am not unaccustomed to running adb etc., but this method is a little different from the earlier times, so I need a little guidance :D.
[HTC U12+ Guides, News, & Discussion] Freak07:
You don’t “install” it with adb but with fastboot.

You flash the boot_signed.img the same you flash the patched boot.img.

so yes with the fastboot command you quoted.

No screenshots from fastboot.

Just reboot once to your bootloader with “adb reboot bootloader” and you will see what I mean with just check the slot. It’s written on the screen when in bootloader. You can just reboot back to the OS without flashing anything :) either navigate with vol buttons and choose with power button to reboot, or do “fastboot reboot” :)

Hope that helps.
[HTC U12+ Guides, News, & Discussion] DeeZZ_NuuZZ:
My bootloader/download mode didn't showed the slot, had to use fastboot getvar all command to check which slot is active
[HTC U12+ Guides, News, & Discussion] Freak07:
If you do adb reboot bootloader you don’t have that screen?
[HTC U12+ Guides, News, & Discussion] Freak07:
Picture
[HTC U12+ Guides, News, & Discussion] ValVK:
Thank you Freak07!

I was unlocked bootloader and get a root, using your super guide.

All work just fine (root as well),thanks one more time and big respect!!!:)

If i will want to bring my HTC to factory setting, should i first flash full RUU and then relock bootloader, or first

relock bootloader and then flas full RUU?

Thank you in advance and have a nice day!
[HTC U12+ Guides, News, & Discussion] mdxdave:
Relocking Bootloader is not necessary
[HTC U12+ Guides, News, & Discussion] DeeZZ_NuuZZ:
Never relock before being completely stock and you don't even need to relock, unless you send it back for warranty.
[HTC U12+ Guides, News, & Discussion] kickyoace:
anyone know if the fastboot command fastboot oem rebootRUU works for this device when on bootloader screen?
[HTC U12+ Guides, News, & Discussion] DeeZZ_NuuZZ:
you need to be in download mode, but yea it should work...if not it's not even necessary now to use that command.

on the HTC One M9 and 10 you didn't have to boot into RUUmode to flash anything
[HTC U12+ Guides, News, & Discussion] kickyoace:
it was always a failsafe back in the m7 days to boot into bootloader mode then run that command then to run an RUU because the phone wouldnt need to be rebooted if something was a bad flash also in software it would detect the phone as the original sw version, idk it got me out of some bad situations so i would like if its still availible just incase
[HTC U12+ Guides, News, & Discussion] ValVK:
Thanks all for the responses!

But just in case,if i need relocked bootloader - first RUU then relock or other way ?

Thanks!
[HTC U12+ Guides, News, & Discussion] qriozum:
Hello.

Have you personally tried or you know a known case that by rooting U12 + in the way described in your tutorial, without S-Off - you can run a compatible RUU flash?

Without downgrades, S-Off is needed for this.

regards

q.
[HTC U12+ Guides, News, & Discussion] DeeZZ_NuuZZ:
Always ruu before doing things like that.
[HTC U12+ Guides, News, & Discussion] Shark5060:
So just to clarify it for me. If I unlock my bootloader, everything is fine. If I root my device with Magisk Faceunlock won't work unless I "hide" the root for the Faceunlock app?
[HTC U12+ Guides, News, & Discussion] st_voss:
Same for me.

This is how to check. The following command

fastboot getvar all

should show something like:

(bootloader) kernel: lk
(bootloader) product: htc_imedugl
(bootloader) version: 1.0
(bootloader) max-download-size: 1082400000
(bootloader) serialno: xxxxxxxxxxxx
(bootloader) slot-count: 2
[B](bootloader) current-slot: a[/B]
(bootloader) imei: xxxxxxxxxxxxxxx
(bootloader) version-main: 1.15.401.4
(bootloader) boot-mode: download
(bootloader) version-baseband: sdm845-000022-1804031643
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 2Q5510000
(bootloader) cid: HTC__034
all:
finished. total time: 0.002s

Notice the "current-slot" line.
[HTC U12+ Guides, News, & Discussion] qriozum:
Main log getvar all:

e:\ADB>fastboot getvar all
(bootloader) avb_err:0(0)
(bootloader) is_avb_critical_error:no
(bootloader) boot-mode:FASTBOOT
(bootloader) unlocked:no
(bootloader) off-mode-charge:0
(bootloader) charger-screen-enabled:0
(bootloader) battery-soc-ok:yes
(bootloader) battery-voltage:4128
(bootloader) version-baseband:
(bootloader) version-bootloader:
(bootloader) variant:SDM UFS
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0xC55000000
(bootloader) partition-type:system_a:ext4
(bootloader) partition-size:system_a: 0xEAC00000
(bootloader) has-slot:modem:no
(bootloader) has-slot:system:yes
(bootloader) current-slot:a
(bootloader) has-slot:boot:yes
(bootloader) slot-retry-count:b:0
(bootloader) slot-unbootable:b:no
(bootloader) slot-successful:b:no
(bootloader) slot-retry-count:a:6
(bootloader) slot-unbootable:a:no
(bootloader) slot-successful:a:yes
(bootloader) slot-count:2
(bootloader) secure:yes
(bootloader) serialno:FA85S.......
(bootloader) product:HTC_Phone
(bootloader) max-download-size:536870912
(bootloader) kernel:uefi
all:
finished. total time: 0.186s

e:\ADB>

With the fact that I do not have any SIM cards inserted in the slots yet :)

Oh - the bootloader is still blocked

And log getvar all is "DownloadMode"

e:\ADB>fastboot getvar all
(bootloader) kernel: lk
(bootloader) product: htc_imedugl
(bootloader) version: 1.0
(bootloader) max-download-size: 1092800000
(bootloader) serialno: FA85S.........
(bootloader) slot-count: 2
(bootloader) current-slot: a
(bootloader) imei: 3....................
(bootloader) version-main: 1.15.401.4
(bootloader) boot-mode: download
(bootloader) version-baseband: sdm845-000022-1804031643
(bootloader) version-bootloader: 1.0.0.0000
(bootloader) mid: 2Q5510000
(bootloader) cid: HTC__034
all:
finished. total time: 0.103s

e:\ADB>

regards

q.
[HTC U12+ Guides, News, & Discussion] Freak07:
I´ll update the OP to make it a bit more clear :)

I didn´t know that different type of bootloaders could come into play and show additional info directly on the screen.

yes download and bootloader mode show different outputs.

I would always use bootloader mode but that is up to you. Keep in mind however that

fastboot boot boot.img

will not work in download mode.

I´ll add a bit more info to the OP.
[HTC U12+ Guides, News, & Discussion] Freak07:
It was reported by several people that they have it working exactly that way.

For me this does not work. But maybe I did some other things on my phone that the root utility detection didn´t like at all.
[HTC U12+ Guides, News, & Discussion] Freak07:
OP updated to make the slot situation a bit more clear!

also add a notice on the faceunlock workaround.
[HTC U12+ Guides, News, & Discussion] Brax33:
It looks like my firmware build number is 1.15.617.4 - Should I download the 617.3, or wait for a newer version?
[HTC U12+ Guides, News, & Discussion] Freak07:
Certainly safer to wait.
[HTC U12+ Guides, News, & Discussion] Freak07:
Update

Updated the OP with a lot of information about the A/B partition system on the U12+
[HTC U12+ Guides, News, & Discussion] st_voss:
Just a related minor info:

Switching the slot only works in fastboot mode, but not in download mode.
[HTC U12+ Guides, News, & Discussion] Freak07:
yes you´re correct. do you think I should state that specifically, as all commands aim to get to bootloader and not download mode?

Alright I updated the OP :svetius:
[HTC U12+ Guides, News, & Discussion] ziand:
1.15.617.4 is available. Just there is a little typing error in the spreadsheet by @5m4r7ph0n36uru

Open the link and you can see 1.15.617.4, direct link: https://androidfilehost.com/?fid=962339331458995991
[HTC U12+ Guides, News, & Discussion] 5m4r7ph0n36uru:
Corrected. Thanks a lot, as always mate! :good:
[HTC U12+ Guides, News, & Discussion] qriozum:
When I chose the "Patched boot image" option, Magiska was downloaded and then performed as if ": installation" (the commands were visible in the console window). I wrote the log (I will try to find it right away).

Then I copied the patched image of the boot and in the ADB console I made the tutorial order

But I have such a message?

e:\ADB>adb pull /sdcard/MagiskManager/patched_boot.img
3242 KB/s (22982656 bytes in 6.920s)

e:\ADB>adb reboot bootloader

e:\ADB>fastboot getvar current-slot
current-slot: a
finished. total time: 0.003s

e:\ADB>fastboot flash boot_a patched_boot.img
target reported max download size of 536870912 bytes
sending 'boot_a' (22444 KB)...
OKAY [ 0.619s]
writing 'boot_a'...
[B][COLOR="DarkRed"]FAILED (remote: Not allowed on PRODUCTION device)[/COLOR][/B]
finished. total time: 0.629s

e:\ADB>fastboot reboot
rebooting...

Hmm ... where did I make a mistake?

rerards

q.