yashsingh1/xdaforums huggingface dataset:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] yuns86:
Hello kernel maker

Hello kernel maker, thank you for the good data, but efsport is not accessible when using the kernel. Korean users can use volte only if they connect to the port, please read below.

Kernel cannot use Volte because it cannot open ports, but original Rom replaces Qualcomm ports with Volte files from Korean mobile carriers and mns Korean mobile carrier code in system-tailored folders.Has the authority to add or modify to the map.It adds the Korean mobile carrier code.xml file to the xlm, mns folder with root authority, but the menu is activated and the menu is available. Is there a way?Help me. Please.

Google Drive Address.

drive.google.com/folderview?id=11JaaQDtnJy8jsD9qdw2QCKEBm1RM3z14

u12plus koreaefs file, xml, screen shot
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Official TWRP 3.4.0-0

Official TWRP got updated to 3.4.0-0

Official Changelog: twrp.me

22.06.2020 3.4.0-0

HTC Firmware on Android Pie can´t be decrypted.

Add support to be able to decrypt Viper GSI - Huge Thanks to [MENTION=1162986]Captain_Throwback[/MENTION], this is alive thanks to him!
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] 29988122:
Thank you so so much! I literally dead tried doing twrp just a few months ago. Great work!

I have two questions for you, if these aren't too stupid:

1. If I were REALLY REALLY dumb, and don't care about security - Am I able to TWRP 3.4.0 (mostly restore /data nand, backup /data nand) normally, after disabling dm-verity and forceencrypt? (Android 9, latest stock/security patch)

Just want a safety net, cause I really do touch /system a lot..I also did some frida hooking, for security study purposes.

On Android 10, there's no FDE(full disk encryption) anyway, so...

2. Assuming under EXACTLY the same version of firmware:

Due to TWRP not yet available a few month ago for me, I did a

```

dd if=/dev/block/dm-0 of=/storage/0A85-81B6/data.img

```

in phone shell/terminal, data partition dump to external SD.

Will I be able to restore this nand by TWRP?

Just wanna make sure that I can:

dd dump data partition -> format and wipe data -> disable dm-verity/FDE -> TWRP restore dd dumped data. (Got some hardware issue to do with htc warranty..)

If not possible due to numerous reasons, that's understandable. Gotta migrate to GSI experiences some other day..

Again, thank you and captain throwback very much!
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] milesd:
No post since 6 month... hmmm.

Can anybody tell a success restore from any version TWRP backup?

Tried it on 3 HTC U12+ with all system versions and the fitting TWRP versions, permanent and temporary. All end up in a bootloop.

I read all now in here but a restore never was mentioned. I need help please!
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
True, this post hasn't been updated, but TWRP has. However the latest version of TWRP focuses on full compatibility with GSIs, especially the ViperExperience GSI tailored to this device.

As far as restoring, I rarely do that, but when I have, I don't recall having an issue. I assume you're either on Oreo or on Pie and unencrypted? Without logs, there's nothing anyone can do to help you.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] milesd:
Can send a logfile, but writing restore runs without any problems. and yes I'm on Oreo, The time I got my phone I had to downgrade because of TWRP encryption. So the backup is Oreo too. I have 3 U12+ here to test all variations (I repair hardware), never got a running restore. Should I try with 3.4 on Pie ?

Sorry, but I just wanted to know, if its a knowen issue and I'm trying for nothing since 2 weeks

PS cant attach recocery.log
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] milesd:
only way for me to offer logfile recovery.log of a restoring procedere
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Can you flash 3.5.0 and try it there? And no, don't upgrade to Pie because decryption won't work (unless you disable forced encryption).
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] k_l_o:
I downloaded the SDK tools and it updated my adb + fastboot, from what I can tell, and now I have a different result. I attached a screenshot.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
You may need to update your usb/mtp drivers on windows. And reboot your machine afterwards. I cannot help with that as i use Linux/ubuntu. But go into device manager and see if something pops out or has an exclamation mark when the device is connected in fastboot mode.

Basically what you do for adb with “adb devices” do also for fastboot as check.

If “fastboot devices” has an output you’re good to go. Also try different usb ports.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] k_l_o:
DONE!!!

I updated my USS/MTP drivers, and switched to the USB cable that came with the phone(don't think that was necessary) and it FINALLY.WORKED!

Thanks soooo much for your help.

:good::good::good:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] migascalp:
Thanks. Work for me too

Any way to boot img from device?
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Glad I could be of help and you finally got it :svetius:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
No. I wouldn’t recommend to tinker with this device without a pc nearby that has a fully working adb/fastboot environment.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] DeeZZ_NuuZZ:
It is always suggested to use the original cable, as others often don't work properly. Also tried with usb c to USB c cable, because I have a pci card with usb-c, but that didn't work either. Then used the original cable again and it worked fine.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] aer0zer0:
I've been living the essential phone dream/nightmare. Our decrypt doesn't work either, but we disable all fingerprints, swipes, pins, etc. Then it doesn't care and let's us use data partition.. I'm glad to see this device got fastboot boot commands though, really getting the itch to buy one.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
That’s different issue though. Also inherent to the pixel 2/xl devices currently but no really big deal.

You won’t be able to use the data partition at all when your phone is encrypted, regardless of pin/pattern etc.

But we may get it eventually :svetius:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] aer0zer0:
you got the best squad behind you. itll come, i bet more sooner than later.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] kickyoace:
if you need any hashing power i can lend that if you need any passwords need to be cracked or if you have any hashes that you want to test to see what algo they are using if that would help
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] k_l_o:
Your suggestion is, obviously, correct, but my problem stemmed from using a USB-C to USB-C cable, and USB/MTP driver was out of date, but mostly the driver. I've confirmed this by attempting to re-flashboot using the USB-C to USB-C, no joy... Swapped to another USB-A to USB-C, NOT included cable, and it also worked. Why am I typing this? Maybe it'll help someone else?
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] tonyyang-:
Hi. My u12+ is HongKong ver. I've followed the instructions carefully.

Install adb and fastboot tool by 'sudo apt install apt fastboot' under ubuntu. Then reboot into bootloader 'adb reboot bootloader', boot twrp by 'fastboot boot xxx.img', but it gave this error in the picture. I've tried different usb ports and original Type-C line but nothing works. Any suggestions? Thank you in advance.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Update your fastboot and adb binaries in /usr/bin (you need root rights to access it) to the latest versions found here

https://www.xda-developers.com/google-releases-separate-adb-and-fastboot-binary-downloads/

Make sure they’re executable and reboot your OS.

Try different usb ports on your pc and use the original cable. :svetius:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] tonyyang-:
Thanks. I just tried it and got another error.

fastboot boot xxxx.img

downloading 'boot.img'...

FAILED ( remote: unknown command )

finished. total time: 0.001s

Found guys who had the same issue but still no working solution.

So may u suggest another solution? Thank you.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
are you in bootloader or download mode?

what does

fastboot devices

return?
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] tonyyang-:
Thank u. I'm sure that I was in bootloader mode and it showed 'FA86S1F00474 fastboot'.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
You’re using the original cable and tried all usb ports and rebooting the pc too?
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] tonyyang-:
YES. In total 3 ports.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Well if updating the binaries on your Ubuntu was indeed successful then I’m currently out of ideas sorry.

What does adb version return?

.40 at the end?

Try updating the binaries at the location it spits out too.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] milesd:
thanks! 3.5.0 doesnt decrypt 1.53.401.5. and 1.68.401.6

Is a difference in behaviour of flashed an booted ? I just booted
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
You have to flash. Thus why I said "flash"
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] milesd:
Meanwhile I flashed, it decrypts. but same bootloop after restore backup. It stops booting at htc logo
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Did you backup with this TWRP version and then try restoring? If you used a faulty/broken TWRP to backup, then the restore wouldn't work no matter which TWRP you use.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] milesd:
At first - thank you for your patience and help!

I flashed 1.68.401.6 new, then twrp 3.5.0-9, hexpatcher and magisk, made a backup and restored it aferwards. - bootloop.

then I resored another backup made with twrp 3.3.1-0, same bootloop.

logfile.3 is here again together with some sys.info I made with xdc2clip tool.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Are you doing a Format Data and booting up to Android before rebooting to TWRP and restoring?
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] milesd:
never in my life before I did this. But now. No change.

I wonder why nobody mentioned that restore problem. I tested it with 3 devices and lot of versions, never got a running system and before I did this procedere more than 100 times with all htc flagships.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
I'm really not sure what the problem is with your devices. I don't have the this issue with any of my devices, and I have quite a few. I haven't seen anyone else report it either, so I'm not really sure what to do. Sorry.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] milesd:
frustrating. Thank You!
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
I'm confused. What exactly were you restoring before?
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] milesd:
System- Data- Boot. Ever, without thinking why. Default setting.

I did not know, that installing apps and do settings does not effect system partition
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
"System" is likely your problem. You should be backing up/restoring "System Image", not "System".
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] milesd:
Now I'm back on track! Didn't use that before, it takes more space and wasnt needed. But the 12+ is a princess, nothing is like before but is worth it. Thank you @Captain_Throwback!
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
FYI - The issue you're having is actually an upstream TWRP bug with setting the secontext of the root filesystem when restoring in TWRP. See here: https://github.com/TeamWin/Team-Win-Recovery-Project/issues/1591

There's actually a fix zip linked there that would probably allow all of your previous backups to boot. If you decide to try it, let me know if it works. We're going to have to patch TWRP to fix it.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] milesd:
I'm sorry to tell no success. tried the fix with different twrp-versions (flashed) and elder and new backups. flashed the fix always after resoring. But Im thankfull and willing to test everything as I have the setting now with 3 devices and an extra workplace.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Just realized the system path in the zip was incorrect. Please try the one attached here and let me know if it works. Thanks!
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] milesd:
YEP! this was it. smooth booting into system . Congrats!

PS: but thats all within Oreo as u know.. do not have Pie
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
It'll be the same on Pie. Thanks for testing! At least now we know the cause of the issue and it can be fixed.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] alecxs:
Chears,

seems 'fastboot boot' not always working...

just send you the link in case you are interested to write up an answer

https://android.stackexchange.com/questions/233126/htc-u12-flashing-twrp-stuck-booting

Greetings
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Why aren't you asking here?

You have to be in BOOTLOADER mode to use fastboot boot, not DOWNLOAD mode. It sounds like you're in the wrong mode when you're running the command. Please confirm what mode you're in and try again.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] alecxs:
i don't own this device. i already suggested to ask here. nevertheless if the output is ...

fastboot boot twrp.img
Sending 'boot.img' (32424 KB) OKAY [ 2.006s]
Booting

... i doubt the user is in wrong mode ;)
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
You can doubt all you want, but that's the #1 symptom of being in the wrong mode. The easiest way to confirm which mode the user is in is using the command

fastboot getvar boot-mode

Please report back the output of that command. If the output is "download", then you owe me an apology.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Max128:
Hello, I have read your problem and some posts the other days.. Usually I sometimes make nandroid but I hardly ever restore them. That's why I didn't make this mention. But Now i was curious about it so i have made a nandroid and i have restored only the system.. yeah i have finished in a bootloop too , I was forced to reflash my rom. I have using the last version of twrp 3.5.0_9-0

So if i understand you was able to fix the problem with flashing the fix_rootfs_label_U12 + _CPTB.zip file of @Captain_Throwback after having restored the backup and that it?
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] lulonen:
I have a similar problem and get-var gives : boot-mode: download

I can boot TWRP when I am on 2.55.401.1 and no chances when I update the system to 2.55.401.3

always stuck at booting...

Tried different PC's, drivers, cables.

excuses - it worked only once with patched 2.55.401.1 with old magisk. Now I can't boot TWRP on any of my 2 u12's. Always stuck at 'booting...'

ok. TWRP starts from bootloader not download mode in my case.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] hek.je:
Sorry to "bumb" this old thread.

I just got a "not working" old U12+ from a friend, and would like to get it to work again.

This is all I'm getting, and wonder if some one here can help me to get this to work again.

Preferably by using a SD card, but if needed I will install ADB.

This is all I can get out of it for now.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] mariosaraylian:
Definitely install ADB. Go and download this version of the firmware/RUU/FUU: https://androidfilehost.com/?fid=4349826312261700234, then go and follow the steps in Post #3 of this thread here: https://xdaforums.com/t/ime-exo-gui...mage-firmware-boot-ota.3794664/#post-76606102.

After you successfully flash it, boot up the OS and download and install the OTA from within the OS to upgrade to version 2.55.401.3. After that you can root and try another ROM or stay stock or whatever you choose....
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] five_c:
In order to completely clear the previous data and perform a new installation of Android 12, what should Twrp choose to clear the data? Are there any errors in the teaching below (https://www.getdroidtips.com/android-12-custom-rom/ )
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] tonyyang-:
That's OK. Thank you. I'm sure it is the latest ver and I tried it too.:laugh:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
One more idea. If you get the chance. Try a different pc. Or windows even.

I know it sounds strange but I had these problems on one old laptop of mine too.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] tonyyang-:
Thank you. Fastboot cannot recognize the device under fastboot mode in Windows (even the latest ver from google or Minimum adb and fastboot) and I will try a different PC later.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Did you make sure you have the latest htc usb/mtp drivers on your windows installed while in fastboot mode?

fastboot devices not recognizing it sounds like this.

Go to device manager while in fastboot mode and look for the device and install the correct driver.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Attention and good News:

Thanks to [MENTION=1162986]Captain_Throwback[/MENTION] the U12+ will soon have a TWRP with working decryption :cowboy: :cool:

About to run vdc...
Retrying connection to vold (Reason: E:vdc E 07-26 00:19:35 626 626 vdc.cpp:79] Error connecting to cryptd: Connection refused|RC=4)
Connected to vold: I:213 639 default|RC=213
vdc cryptfs result (passwd): I:200 646 0|RC=0
Stopping services...
Stop service sys_vold: stopped.
Stop service ven_qseecomd: stopped.
Stop service sys_hwservicemanager: stopped.
Stop service ven_keymaster-3-0: stopped.
Finished.
Start service sbinqseecomd: running.
I:Unable to unmount '/vendor'
[SIZE="5"][B][COLOR="Red"]Data successfully decrypted, new block device: '/dev/block/dm-0'[/SIZE][/COLOR][/B]
I:mount -o bind '/data/media' '/sdcard' process ended with RC=0
I:Backup folder set to '/data/media/0/TWRP/BACKUPS/'
Updating partition details...
I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Electronic Punk:
Woop woop
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] i5lee8bit:
Yaaaaaaaaaaaaaaaaaas
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
:good:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
Captain for Admiral now! The navy must be contacted

:good::good::good:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Granite1:
Houston we have lift off!!!

Please let the Cap'n know I said hello, and we really appreciate his help. Bummed we don't see him around the halls anymore. :(
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Attention Ladies and Gentleman,

here is the long awaited TWRP release with working decryption of your data partition. This is [MENTION=1162986]Captain_Throwback[/MENTION] ’s work I just compiled the builds with his fixes for decryption as mentioned in one of the last posts.

That means access to /storage and flashing magsik to obatin root is now possible.

Before flashing magisk, mount system in the mount options.

The only thing you currently have to keep in mind is, this twrp is not yet flashable. Which means you need a pc to boot it! We´re working on the zip to permanently flash TWRP. So tinker wisely with your phone.

Important!!!

For decryption to work there is a seperate build needed for both 1.15 firmware and 1.21. That is due to the security patch state being different. If you use the wrong one you can´t access data when booted to OS again.

Downloads:

Choose the TWRP that matches your current firmware and OS!

1.15:

https://www.androidfilehost.com/?fid=5862345805528059739

1.21

https://www.androidfilehost.com/?fid=5862345805528059740

Disclaimer

When rebooting from recovery, you´ll see a message "NO OS installed", swype it away and reboot it´s fine. It´s cosmetic and will be taken care of in one of the next releases probably.

please, when flashing magisk, mount system in mount option beforehand. This issue will be dealt with later :svetius:

If you have any issues please state your current firmware, the version of twrp you flashed, as many details as possible and provide a recovery.log.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] guidogsbn:
Thank you very much. A really great job helpful for us all with a little help from our friend [MENTION=1162986]Captain_Throwback[/MENTION] who never stopped being helpful too for our community. Thank you also to the captain! And here a little help for a (short) timeout and a cool beer 99X633697J2921540:good::good::good:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Before flashing magisk go to mount menu and manually mount system.

I mentioned that in my guide thread, but forgot here. It will be fixed in an upcoming release!

But for now it’s no big deal. :)
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Thank you very very much for that! I really appreciate it :highfive:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] sardroid:
What is wrong?

Bootloader unlocked.

Firmware 1.23.401.3 and twrp downloaded for 1.23.401.3
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
“fastboot boot twrp.img” is the right command. Issued in bootloader not download mode.

fastboot flash recovery does not work on a/b devices as the recovery now sits inside the boot.img’s ramdisk.

We’re working on the flashable zip that will make twrp permanent when flashed via the booted twrp. No ETA though ;)

Are you on 1.23 or 1.21? was that just a typo?

Because if you’re on any newer security patch than June you need another build.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] sardroid:
Now hanging with:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Update adb and fastboot binaries from here

https://www.xda-developers.com/google-releases-separate-adb-and-fastboot-binary-downloads

and reboot your machine.

If that doesn’t help update your usb/mtp driver in device manager and reboot your machine.

try different usb ports and make sure to use the original cable.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] sardroid:
Deleted
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
hope you did get it resolved?

Might be interesting for the thread to know :)
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] st_voss:
I had that when trying "fastboot boot twrp.img" from download mode.

Are you sure that you are in bootloader mode?

Gets me confused sometimes. "fastboot flash ..." needs download mode but "fastboot boot ..." needs bootloader mode.
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] sardroid:
TWRP already on board☺
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Nice :)

Sorry I must be still a bit sleepy. I wanted to ask how you resolved it so if someone searches for it he may find a lead :svetius:
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] Freak07:
Yeah it’s not exactly ideal how htc enabled disables some commands in the various modes... Makes things quite complicated
[HTC U12+ ROMs, Kernels, Recoveries, & Other Develo] qriozum:
Will downloading temporary TWRP cause complications in CTS and SafetyNet?

I'm asking because I really care about GooglePay :)

BTW - I have root with Magisk of course :)

regards

q.