yashsingh1/xdaforums huggingface dataset:
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Siminica:
If I look at post #179 I would say no. maybe twrp build 8.0 can work with the decrypted partition (if you format) but thinking you only can install cleanslate from external card (as specified in this thread or the cleanslate one, my guess is it can't)
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Slok 00:
I FINALLY SOLVED!

i installed magisk again from magisk manager choosing direct installation and everything worked! now i can install all modulesss yeeahh
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] hopeshadow:
By using fastboot boot command, I'm getting black screen. Does anyone know how to sort it out? I want to boot it to be able to extract boot and recovery as it is HTC-GCC revision.

I will be grateful for any help you can provide.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] tbalden:
In a lot of cases that does not work. You would need to hunt down at least a stock recovery for your region/cid and base version. Look around on the forum
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] kuchivas:
Format data, decrypt work. But after reboot decrypt don't work. Can you help me?

Gửi từ HTC U11 plus của tôi bằng cách sử dụng Tapatalk
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] LeeDroid:
[MENTION=4997871]kuchivas[/MENTION]

It states in the op that this version of TWRP cannot decrypt /data

OP, as this is a trebble device, have you added support for backing up /vendor?

In order to modify system, fstab in /vendor would need to be modified to remove DM verity, the same applies to removing forced encryption
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] kuchivas:
Thanks for the support. Can you create a rom for U11+ ?

Gửi từ HTC U11 plus của tôi bằng cách sử dụng Tapatalk
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] vegetaleb:
Leedroid should put back his superhero cape :laugh:
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] vegetaleb:
Someone wakes up leedroid :p

Anyway can we root the u11+ without flashing twrp? Will you still have to unlock the bootloader?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] sm_vl:
ReaD this topic again!
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Tumpster:
Coming from [MENTION=398245]LeeDroid[/MENTION] on the HTC U11, I salivate at the thought of him building a ROM for this phone. I'll buy some rounds if it happens!
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] DeeZZ_NuuZZ:
Download magisk manager, get the boot.img from your device. Patch it with magisk manager and flash through bootloader/download. And yes you have to unlock the bootloader for this, like for everything else too, regarding custom stuff
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] newyesor:
Hi,I have a question with root magisk this method.

My device is root perfect but it's safety net not pass.

How to fix safetynet pass on MagiskV16.0

Thanky you.

Instead of that using the closed source SuperSU, use open source Magisk to root, and without touching the recovery partition. Follow this procedure:

1. Download http://fotadl-az.htc.com/secure/OTA_...bbi6tc9m38.zip

2. Extract firmware.zip.

3. Extract boot.img from firmware.zip from step 2 and transfer to the /sdcard.

4. Install Magisk Manager and select Beta channel

5. Click install and choose to use "patch the stock boot image" method. It will browse you to /sdcard. Choose the boot.img from step 3. After its done, it will give you path of patched boot image.

6. Transfer the patched boot image from step 5 to PC using 'adb pull'

7. Boot the phone into download mode and flash the patched boot image.

8. Reboot and enjoy!!
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Tumpster:
I can't seem to even seem to get my Linux Mint box to see my HTC U11+ when in bootloader mode. No issues seeing it normally but bootloader/fastboot seems to go blind. Any one else run into this issue?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Exelios:
Encryption is not a problem for Magisk

You just have to wipe data in TWRP, this removes encryption until next boot, so do not reboot! Flash magisk from MicroSD now before rebooting, as data is not encrypted at this moment.

Stupid simple way we got around rooting many phones.

Works in most cases, if it fails then there is also something else holding magisk back.

Never patch a boot.img manually again.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] b_rajesh13:
Hi all.

I attempted to flash twrp. See below for the command and results. It seems successful.

I proceeded to execute the 'fastboot reboot-bootloader' command after flashing. Then, On the phone I selected 'Reboot to Recovery'. But after initial boot the phone comes back to the fastboot screen without starting the TWRP. I can't seem to fire up TWRP for some reason.

I tried erasing the cache as recommended by some other forums but not helping.

Any help will be appreciated! Thank you!

PS C:\Users\rajesh.balakrishnan1\Desktop\platform-tools> .\fastboot flash recovery twrp-3.2.1-0_TEST1212_2_ocm.img

target reported max download size of 2399200000 bytes

sending 'recovery' (44264 KB)...

OKAY [ 3.185s]

writing 'recovery'...

(bootloader) HOSD CL#1010171

(bootloader) start@1

(bootloader) recovery@100%

(bootloader) Update partition OK

(bootloader) end@Done

OKAY [ 4.716s]

finished. total time: 7.914s
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] b_rajesh13:
I stuffed up my phone with a treble enabled rom and after several attempts flashing the stock RUU zip file, I resort to recovering thr phone through a nandroid backup using TWRP.

So does that mean my recovery attempt will fail too? Any way to make it work?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
Unless you got rid of force encryption somehow, that won't work. TWRP can't read the internal storage, so creating and restoring a nandroid can't work. Which method did you try? This video is for the HTC 10, but the procedure didn't change and the method works flawless on the U11+ as well. Good luck. [youtube]1ACU3RGm9YI[/youtube]
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Siminica:
hi all

currently rooted with magisk (twrp installed) - got an update notification for 1.24.401.7 and I have some questions:

will it be enough to flash stoc recovery and take the update?

after the update magisk will still be in place and functional?

thank you
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] DanteGR:
You also need the stock boot.img along with the stock recovery.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Siminica:
will this https://github.com/topjohnwu/Magisk/blob/master/docs/tips.md not be enough to do from magisk? (point 2 from prerequisites)
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] DanteGR:
This should be enough yes. What it does essentially is the same I stated above i.e. restore the stock boot.img.

Would you happen to know which of the methods stated after that (Devices with A/B partitions OR devices with Flashfire support) we have to use after that?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Siminica:
Haven't got that far yet :)

I remember I read somewhere that U11+ even if it got treble doesn't have A/B but only A partition - or maybe I didn't get it right

As for Flashfire - never tried it and don't know if even it's compatible

But what bothers me right now are posts #155 - #158 from this thread - seems even with stock recovery and stock boot.img OTA is not possible, but only with prior RUU flash
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] DanteGR:
Yeah well if I finally decide to mess with root i'm not touching the recovery partition. I will use the patched boot.img method instead. It's such a shame that this wonderful device doesn't have proper developer support (and most probably will not have in the future either).
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Siminica:
I just read the FlashFire description in playstore - won't work for magisk patched boot images, only if magisk installed through twrp :(

So I guess I will first try to flash stock recovery and after that to recover boot in magisk and see if I get any luck with ota (A/B partition method)

If not, I will flash the RUU for current version and try to take ota even if after that I will not have a boot img to patch until someone publish the zip for ota

but this will take place later on in the evening when I get back from work
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] TeHashX:
I want to boot into recovery or flash it only to backup boot.img, I will get data encrypted message when reboot to system? Firmware v1.24.401.7

Thanks
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Siminica:
Unfortunately I can confirm that flashing stock recovery and boot (latest through magisk uninstall option) did not allow me to take ota.

---------- Post added at 01:50 PM ---------- Previous post was at 01:45 PM ----------

there is a procedure in this thread or the cleanslate for u11+ thread describing how to set a pin before flash twrp in order to be sure the automatic decription is not possible - because the pin will be required and you will choose cancel

successfully used that on 1.24.400.2 flash twrp and then boot into twrp to flash cleanslate kernel
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Toxicology:
So to be clear... I never flashed custom recovery and still have stock recovery from the beginning. I only flashed patched boot.img an rooted the device. Will I be able to take the OTA? Or do I have to use RUU and start from 0?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Siminica:
I am afraid the RUU is the answer but it's only my own experience with the process which makes me say that:

I had twrp installed but it could not interact with data as it was encrypted (and preserved like this), system was kept read only in twrp - I only flashed CleanSlate through twrp.

When I tried to revert I first flashed stock recovery, so my situation was: root with magisk by patched boot img, and CleanSlate kernel installed. From this point I tried to restore boot.img through magisk (uninstall magisk option - it said successfully restored) and after that to take ota. But the process stoped at 24% like described in posts #155 - #158 from this thread and after a while booted back to old state, with ota update available notification (at least no bootloop or other troubles)

And in this point I flashed the old RUU, took OTA and started all over in order to get boot.img to patch in magisk
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Toxicology:
Do you think it's because you have custom kernel instead of stock? Guess restoring stock boot with magisk should give you stock kernel too... Or this is the problem. In another thread someone also had the 24 % Problem... While in the same thread someone else was able to take the Ota without RUU and without troubles.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Siminica:
I am not sure if stock boot means also stock kernel as I patched boot and running fine with stock kernel and also in CleanSlate it's stated you can flash kernel without root (so no need for magisk and patched boot).

But in the threads everybody talk about having stock recovery and stock boot prior to ota (some mention also RUU) and I never thought to try to flash stock kernel taken from RUU :(
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Toxicology:
Well, it was just an idea, for its maybe the only difference and maybe Ota also checks stock Kernel during flash.

Ok I'll give it a try... First restore stock boot via Magisk, then download Ota, save zip, install Ota, after reboot patching boot.img via Magisk should be the right order? Well, of course my device won't stop at 24 also!
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] newyesor:
Fixing strategies OTA:

1.) To restore OTA function fast and easy: run a RUU.

2.) If there is no RUU for your specific model, you could convert to another model which has a RUU.

3.) Then there is a third, theoretical way I have not yet tested: obtain an untouched system image that fits your FullStock (same version), flash that in fastboot (it can be a raw dump or a TWRP systemimage backup of the correct system) and then flash the corresponding FullStock again. That should, like a RUU, restore OTA functionality too.

4.) Also very simple: grab the HTC OTA file which you find in /data/data/com.htc.updater somewhere if you can download. If not, find it on XDA from someone else who got it. Then put it on your sdcard, have stock recovery flash it from SDCard (no detailed guide here but its the same since years, there are tons of guides on how to manually flash a HTC OTA out there. Use Google).

5.) Remove boot.img from my FullStock zip before you flash. Your custom ROM of choice will put a hacked kernel into your phone again anyway...

However, at time of writing this, I know [MENTION=2605798]nkk71[/MENTION] is investigating other, simpler methods to restore the correct state.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Tumpster:
Anyone able to build a guide on how to unlock/root/TWRP this phone? Seems a bit tricky with all the information passed across multiple threads. Thanks all!
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Siminica:
Hi,

2 - could be achieved without s-off? as no s-off is available for this device to my knowledge

3 - it seems to me twrp cannot work with internal because of encryption, so no backup / restore in twrp

4 - if ota is not installing from phone (with stock recovery) do you expect it to flash by booting in recovery? isn't what the phone will anyway do when installing from updates?

and the last remark - maybe you should check the profile of the person you mentioned

Best regards

---------- Post added at 04:31 PM ---------- Previous post was at 04:16 PM ----------

Hi,

1. Unlock - htcdev - you'll not find the exact device in list but U11 will do, the rest of the procedure is as described on site

2. Root - Magisk by patching boot img (procedure described in Magisk thread, also needed files are there to download) or by flashing in TWRP (with prior wiping and no reboot in between - because of force encryption - check in this thread)

3. TWRP - it doesn't really matter at this point because cannot decrypt - you flash it just to extract boot img for magisk or for flashing Magisk and to flash CleanSlate kernel if you'd want to (you can flash CleanSlate without root as it's not needed)

Best regards
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] newyesor:
[MENTION=6731778]Siminica[/MENTION]

Hi,

This method above from xda HTC U11

2.s-off only,If you want make supercid.(s-off is not support on HTC U11+)

3.Now,twrp is can not back up data but you can restore backup stock rom from twrp.(obtain an untouched system image that fits your FullStock (same version)

4. OTAs, you HAVE to make sure you haven't modified /system (and /vendor if available) in anyway and it's stock recovery.:)
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

nkk71 passed away some months ago. There was an article on the portal.

TWP
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] newyesor:
Yes,This method is come from on board xda htc u11.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] veeny101:
Do I need to backup anything before I do this?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] force70:
You would be wise to back up before flashing anything, this included.

sent from my Pixel 2 XL or Note FE
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] veeny101:
What do I need to backup if I want to return to stock for ota?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] rexx0520:
Is there any working workaround for decrypting data...?

Can't understand what "need to wipe userdata before reboot" means, if so isn't the decryption useless?

Thanks.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] force70:
Lol... whatever you dont want to lose of course.

sent from my Pixel 2 XL or Note FE
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] newyesor:
You can flash Ruu for restore stock rom and receive ota.

Twrp is 'not backup your data.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
Flashing magisk requires a decrypted partition. Kernel forces encryption, so we wipe data to get a decrypted partition for the short period of time to flash magisk. Once we reboot the storage is encrypted, but the phone is rooted. but also rooted. Hope this answers your question.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

Flashing Magisk does not require a decrypted partition. Magisk will patch the kernel so that forced encryption is disabled, but only if the device is either already unencrypted, or that option is included at flash time.

TWP
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
Yes. You are right. I wasn't precise, but who would disable force encryption unless you want to tinker with multi ROM and stuff.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

Well, since TWRP can't safely decrypt this device, running unencrypted would allow a user to freely root and flash a custom kernel without the need of setting a PIN on boot and cancelling the prompt in TWRP, etc. In other words, it would be a simpler user experience for anyone that wants to try out anything custom, including the Treble ROMs. I don't believe MultiROM is an option on this device, is it?

TWP
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
With disabled force encryption it would be something that could be done.

no-kexec hard boot patch is the masterpiece developed by XDA Recognized Developer [MENTION=2605798]nkk71[/MENTION], he is leaving a big gap. R.I.P.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

Forced encryption doesn't prevent MultiROM from working - it works on both the HTC 10 and the U11, and both force encryption. So that was never an obstacle to it being developed. But yes, he will be greatly missed :(.

TWP
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
Good morning from MEZ

Forced encryption doesn't prevent MultiROM from working, but it requires a decrypted data partition to work. So if the force encrypt flag is set to 1, storage will be encrypted on reboot; resulting in a bricked phone (worse case). You can use Magisk to prevent force encryption, but I wouldn't rely on it, since it isn't developed with multiboot in mind. Every patch you add to this frigale boot process must be longtime tested, before I'd recommend anyone trying it.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

You're right; even though TWRP and MultiROM can decrypt the device, Android stills needs to be able to for the primary ROM to boot, which on this device, is problematic. It wouldn't be a problem to run secondary ROMs while encrypted, though. You'd just never be able to boot back into the primary ROM without formatting data, which would effectively wipe out MultiROM. So the only safe way to run is just to go unencrypted, as I mentioned before.

TWP
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] digio1996:
I have a question about Magisk, i know that is a little bit OT but maybe someone can help me very quick: I can't find the OTA file of the latest HK update (1.24.400.3) but i would like to root it. Does the boot.img change for every update or can i try to use the previous boot.img to patch it through Magisk? Any other solution? If not, i will install and root through TWRP :/
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] lyfkevin:
Hi all, I just found a twrp recovery with proper data mounted in china htc forum.

I wont upload it unless have permission from developer to do so.

Check this out if interested.

https://bbs.htc.com/cn/chat.php?mod=viewthread&tid=112857
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Exelios:
Did you try it? Do you confirm it working?

Thanks
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
Wasn't aware, that such a TWRP build exists for the U11+. Thanks for sharing, did you test if decryption works?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] kuchivas:
Working for me.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
Just created a nandroid to external SD card. For those who are downloading it I leave some checksums here:

MD5: 6198c4b7cb931b1e0916d7b0aaa43cb0

SHA-1: 00347a3e20af04d59b2dd43dfa38f6e23bc52cde
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] sardroid:
Can anyone share it?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] themrmotivator:
Working here too. :good:
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] nenebear:
Thanks [MENTION=4375068]sabpprook[/MENTION] twrp-3.2.1-2-ocm.img is working for me.:):good:
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] themrmotivator:
Just restored a nandroid from SD card. Pin wasn't recognised so used the procedure from here:

https://www.howtogeek.com/240657/how-to-fix-pin-errors-after-restoring-from-twrp-android-backups/.

All good now :good:
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
That's a known TWRP bug. Good to know that we have a fully working TWRP recovery now. Thanks for confirming.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] daheufster:
Have a situation here.

my device recently returned from repairs (dropped my HTC and broke the screen :( ). after return my device was 'locked' and a 'freshly' mint device again. Now i want to install the most recent TWRP version - preferably first by boot command so i can make a clean nandroid BCK of my device - and afterwards by flashing TWRP and this is what i am facing and yes i did unlock the device at HTCDEV site.

By boot command: black screen and apparently no respond anymore on the hardware keys, but still responding by fastboot command "reboot bootloader" and while

By flash command i received an error message in the language of: cant flash a "PRODUCTION" model.

anybody ever heard of this and more important does have a solution for this problem?

awaiting any response.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] nenebear:
Reboot into download mode and flash it again.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] daheufster:
Thanks, will try this again although i think i did try this already...

[MENTION=535343]all[/MENTION], can anybody share the former twrp version so i can boot this and make a nandroid?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] nenebear:
twrp-3.2.1-2-ocm.img

https://xdaforums.com/showpost.php?p=74543656&postcount=1
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] The_Walking_Playground:
Hi,

Do you have source for this build?

TWP
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
Thanks for the fixes.
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] harry655:
A big thank you for the latest update to [MENTION=2994340]lyfkevin[/MENTION] for finding and [MENTION=4375068]sabpprook[/MENTION] for tweaking and sharing.

Like a stooge, not having backed anything up, went ahead and installed an xposed app - Android P-ify cause I'm silly - to end up with system ui not allowing screen to turn on when booted. Only way I was able to recover was after flashing twrp & accessing folders on data via same and deleting culprit app.

Thanks heaps guys!
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] poppy22:
Did anyone try to build lineageOS15.1 or omni or other ROM?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] digio1996:
Hi, big thanks for the latest TWRP... i just have a question... if i need to root with SuperSu (or Magisk zip) do i still have to wipe data with this latest TWRP?
[HTC U11+ ROMs, Kernels, Recoveries, & Other Develo] Cryptycat7:
No, that's not required. The reason to wipe userdata was to remove the encryption. That way TWRP is able to read the internal storage until you reboot. Android is forcing encryption since a few major releases, so the device will be encrypted again as soon as you reboot.

Before you flash anything I highly recommend you to take a backup using TWRP. If you run into issues you simply restore it and get back to the latest working state without any headache.