yashsingh1/xdaforums huggingface dataset:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Freak07:
[MENTION=1162986]Captain_Throwback[/MENTION]

Is there a way I can contact you personally? I need help with exfat on my htc u 11 kernel. I know you helped another dev on the htc 10 for his kernel regarding this matter.

Help would be greatly appreciated.

Thank you.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] kafisc:
Hi guys,

dumb question: Do i need to unlock the bootloader for backing up stock recovery prior to flashing TWRP?

Command: "fastboot boot twrp-3.1.1-0-ocn.img"

Thank you in advance

kafisc
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Yes.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Brds7t7:
Hi, hopefully this is the right thread to post this?

I haven't had HTC device or rooted since the M8, so I'm a little unsure on a couple of points with regard to restoring TWRP System images, encryption, etc.

I'm using the U11 on EE UK network, but this is the unlocked WWE version on firmware 1.13.401.1. I won't be rooting or modifying the Stock ROM at all. But planning to install a custom ROM later.

Here's what I have done so far:

1) Unlocked Bootloader via HTCDev

I now have a message every time I boot saying "Device can't be checked for corruption, please relock the bootloader", then I have to wait 5 seconds. I'm assuming this is a new security feature that Google introduced? This never appeared on my M8. Will this cause any future problems with HTC updates, etc?

2) Flashed latest TWRP 3.1.1-0 (I have a backup of stock recovery and RUU available).

3) In TWRP kept System READ ONLY and created a System Image & Boot backup (excluded Data) to External SD Card for later restoration and taking OTA's - also saved the backup to PC.

Device is still encrypted.

I'm still on an unrooted & untouched stock rom.

Now, do I need to Format Data? Or do I have to keep this encrypted to keep the Radio working? Does TWRP automatically decrypt to take smaller size backups?

Also, when I restore the stock System image, boot + recovery to take an OTA, does restoring it automatically return System to READ ONLY? Or is this something I have to do manually before/after I restore the System Image?

If I do decrypt the Data partition, can I then later restore my stock System Image without the Data being re-encrypted (I'm assuming this won't touch the Data partition or cause it to be encrypted again?).

Been reading a few threads but I'm still unsure on those couple of points. I don't plan on using S-Off on the phone if it does become available later. But, I'd like to make sure I'm not tripping anything that could cause OTA's to fail later on.

Apologies if it's a lot of unnecessary questions, but I've been out of the XDA and flashing game for a few years when it comes to HTC devices.

Any advice would be appreciated, many thanks.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] swagglepuff:
Does anyone have experience using mac-os to unlock and install a custom recovery?

I followed the guide on xda for installing adb and fastboot on your mac. I can execute ./adb commands all day. When I go to execute lets say ./fastboot devices, it does nothing. Is this normal for this to happen. I remember that when using pc to unlock the htc 10. You wanted to make sure that both adb devices and fastboot devices showed the same number. Is that the case when using mac-os?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] gamin92:
You need the fastboot Mac driver from HTC : goo.gl/s8a237. And don't forget to tick the USB debugging option.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
I know there were already request, but I would much appreciate if you rethink again about adding f2fs support.. I know your stance, so feel free to ignore this, just would like to explore how it acts on U11 and unfortunately I am not able to build anything by myself.

Have a great day!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Even if I was to consider it, we still don't have US Unlocked kernel source ;).
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] velimirchek:
I am out of thanks so I must thank you this way for the answer :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Brds7t7:
Would it be possible to get an answer to any of my questions I posted before? Or, should I repost it again in the Q&A section?

Only reason I posted here is because all of the questions seem specifically related to TWRP, backups, encryption. I can open another thread in Q&A if it doesn't belong here though.

Any help would be useful.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
No, it won't cause any problems.

No.

I don't know how/if being decrypted affects radio, but there's no reason to remove encryption anyway.

I'm not sure what this question even means. The only way for TWRP to access the /data partition is by decrypting it. So all TWRP backups are decrypted.

This is answered in the FAQ.

System Image and Data partition decryption are completely unrelated. Data encryption is dependent on boot.img (forced encryption).
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Brds7t7:
Many thanks Captain. It's been years since I had a HTC device or did any flashing - the encryption thing was confusing the hell out of me. I'll leave the device encrypted.

Thanks for clearing it all up!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] trigz974:
Great jobs !!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jimbob_sf:
Removed.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] trigz974:
Hello,

I try to start twrp, without having installed it with the command "fastboot boot mytwrp.img" In bootloader mode.

I get this message: Your device is corrupt. It can be trusted and not properly

Any ideas on this?

Should I unlock my bootloader?

Or just disable this security?

I wish, in the end, root my U11 without flashing the original recovery and keep the OTA.

Thank you for your help.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
You can't boot/flash TWRP without first unlocking your bootloader.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Trev186:
Been awhile since I did anything on an HTC phone.

You link to the TWRP device tree for HTC U11

The only download link is a zip

I assume I need to manually rename this to a .img and flash it or am I missing another link?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] purple patch:
https://twrp.me/devices/htcu11.html? or https://dl.twrp.me/ocn/
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
You missed the link right under the word "Download" that says "Latest Official versions"
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Newt:
Thanks for this! ?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jhill110:
extractTarFork() process ended with ERROR: 255

Anyone familiar with how to fix this. I get it when trying to restore the data partition.

Or

Restoring any nandroid backup it halts during the data restore with that message.

I've done complete wipes with and without format data.... RUU'd and started from scratch still the same.

Google and XDA searches have yielded no solutions.

Any thoughts?

US unlocked 1.16.617.6
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] nkk71:
What's the exact file size in bytes of data.ext4.win001?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jhill110:
This (screen grab) is just a data partition backup.

I've tried to restore just data from full nandroids and I get the same issue. The data files in the full backups are about the same size.

Like I mentioned, When I try to restore any backup data restore fails...
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] nkk71:
So:

No recovery log (check the OP)

That's a screenshot

I don't see the size in bytes

One more try:

You see that 1.70MB file called recovery.log in your backup folder, compress and upload it somewhere, then I can identify whether it's the leaked strings problem or not.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] jhill110:
Hope this helps.

Thanks for your help and patience.

It's wierd. Been working fine for a couple of months.

Thanks again
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] nkk71:
That backup logs looks fine, are you saying that

particular

backup cannot be restored? If so, please upload a recovery.log after attempting to restore it.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] PieceKeepr:
Just curious what a ballpark backup time should be. I understand it varies depending on how many apps are installed and what all you are backing up but it seems to take a LONG time to do a backup. I am backing up system, data and boot and total backup size shows 8625mb. It takes around 45 minutes to run the backup. On previous phones it never took that long so I'm just wandering if this is what others are seeing or do I possibly have a problem?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] miffymiffy:
Way too long . Mine takes Bout 3 mins
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] PieceKeepr:
That's what I was thinking. It actually took an hour and 8 minutes. Now the question is why.

Out of curiosity, what is your backup size and what backup settings do you use?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] mrlakadaddy:
Sd card speed maybe.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] PieceKeepr:
It's a SanDisk Ultra card but I have an extra one so I'll test the card theory tomorrow.

Update: It was the card. I've never had one that "slowed down" before but I tested with an older spare and it was faster. Bought a new card and the backup was around 4.5 minutes.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] akenis:
Doing a backup of system and data. System went fine, but it stalled at backing up system....stuck at 92%. Eventually hit cancel button. Still locked. Could this be a result of selecting encryption? What's key combo to reboot? Wishing I could pull the battery!!!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] akenis:
Next question: Using TWRP file manager, I tried to copy my TWRP backup from internal storage to ext SD card: Operation fail, error 1. Any ideas?

Edit: it looks like the files actually got copied to Ext SD.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Don't use encryption on your backups. Key combo to reboot is to hold Power + Volume Down.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Next time just backup to external SD.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] goodman_east:
Thank you for your excellent twrp recovery.

I met an error 255 when restored my data backup with twrp recovery 3.1.1.-0 as shown in picure. I don't know if it is a bug, so I upload the log.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
[MENTION=2605798]nkk71[/MENTION]
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] nkk71:
In the backup folder there's a copy of the recovery.log that was made during the backup. Can you compress and upload that so I confirm it's the "leaked string" problem.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] goodman_east:
here it is. thanks for your help.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] nkk71:
Yep, that's the "leaked strings" problem, your data.ext4.win001 through data.ext4.win005 have corruptions in there.

The issue was/is being discussed here and two guys made a "cleaner" one by BuildingAtom here and the other by venerjoel99 here

I'd recommend you make a copy of your files, and try those programs (I haven't taken a look at either to be able to give you any recommendation), the alternative is to use a hex editor and manually remove the leaked strings.

The leaked strings would be:

I:Closing tar\n
storing xattr user.default\n
storing xattr user.inode_cache\n
storing xattr user.inode_code_cache\n

where \n would translate into 0x0A in hex

So it would look something like this or this, etc

You would need to remove exactly those strings (including the ending 0x0A) nothing more!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] goodman_east:
Thank you.

So this is a bug of TWRP recovery?

I will wait for a new twrp recovery buid without this bug for U11
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] nkk71:
Yes it's a bug, but only affecting a very few number of backups (device irrelevant), the fix has already been merged, but you'll need to wait for a rebuild.

The fix will not however make it possible to restore these *corrupt* backups, but the above "Cleaners" might.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Boskoel03:
[MENTION=1162986]Captain_Throwback[/MENTION] is there any.chance that u can make flashable image recovery zip? I hope to get s off,and flash recovery cause do not have computer at this time? Thanks
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] ziand:
Hi

You can flash recovery without PC. Just pack 2PZCIMG.zip with 2 files:

- android-info.txt (from your current OTA firmware)

- recovery.img (twrp-3.1.1-0-ocn recovery)

Flash this 2PZCIMG.zip as like as RUU with SD-card method.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Boskoel03:
Thanks.will try that when i do s off :good:

And if cap does not provide flashable zip :fingers-crossed:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
You don't need S-OFF to do that (it's not available at this time anyway), and I will not be providing any flashable zip, ever.

But you do need a PC to unlock your bootloader, which would likely be required for S-OFF anyway (if it ever becomes available), so I guess you're stuck until you can get access to a PC.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Boskoel03:
Thank u.very much for explanation,and maybe u just got here,s off is available few hours back ;):good:

https://xdaforums.com/u11/how-to/s-off-word-t3662712
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Yup just woke up. That's great news :).

Still won't be making a zip, though ;)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Boskoel03:
Maybe u are just grungy when get out of bed,first coffee​,then few bites and then u are good to goo :silly::laugh:;)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
I'm never grungy.

And I don't drink coffee.

I only came to the thread because I had a mention in my notifications from XDA Labs. I actually rarely follow stuff on XDA anymore. And I might not even S-OFF with Sunshine, though I suppose it would making installing an OTA a bit easier with TWRP installed.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Boskoel03:
Yup all clear now... Thanks for ur time non grungy man :good: ;)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] PieceKeepr:
I've noticed that when I do a restore some apps will ask for certain permissions again. I don't recall this happening on any of my previous phones and I'm curious if anyone else is seeing it. For example, after a restore Root Explorer and Quick Pic both had all of the proper app settings but if I tried to move or delete a pic or file with either app they would ask for SD write permission. Is this normal or is something not getting backed up properly?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] donmarkoni:
It is not normal. I have noticed Opera loosing data, but I rarely restore, twice since I got U11 three months ago. That's why I use Titanium Backup, just in case, cause TWRP has become a little... moody, non-restoring SMS on 10 and now this. [MENTION=2605798]nkk71[/MENTION], help? :D
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] gscarborough:
return to stock confusion

I was reading in the faq #7 to restore stock using the backup system image. do I restore using twrp or using fastboot cmd? sorry if making this more difficult
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Captain_Throwback:
Typically you restore it the same way you backed it up. But technically it doesn't matter how you do it. The result is the same.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] gscarborough:
Thank you just wanted to make sure
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] paborges:
Hi everyone.

I am on a htc u11 full stock and magisk v13. Just took OTA with the magisk on btw.

I have some questions about twrp though.

So after unlocking the bootloader I booted twrp without flashing and made the untouched system image backup as explained in FAQ.

After I flashed TWRP and kept read only. Made a nandroid after a couple weeks.

To take the OTA I then wiped system, data and dalvik cache and cache. Restored the system image backup and tryed to reboot. To my surprise, twrp warned me no OS was installed?? Findind it most strange I rebooted anyway and OS loaded without any problems. So why the sarning appeared? Also, was the wiping necessary? Or when I restore twrp does all necessary wiping by itself?

Later on in another oportunity I tryed to restore my nandroid. Obviously I failed, since it was mounted read only. So if I want to restore a nandroid from now on what are my options. If I uncheck the read only at the mount, will it change the system and prevent new OTAs? If that is true, the system image backup restores the untouched system anyway? If I boot twrp from adb, so not flashing it, can it be used to read and write and hence, restore the nandroid, without preventing new OTAs?

Thanks in advance.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] nkk71:
oh my :eek:

Okay, so here goes again:

If your system was always read only, then there is no need to restore anything. When you only use systemless mods, those wont affect your system partition, and you can directly take OTA.

Why:confused:

The whole point of OTA, is to update without wiping everything

For the OTA to apply successfully you need stock system (never mounted read write) and stock recovery

When you wiped system and restored System Image, TWRP didn't properly recalculate the size of the system partition, which is used to identify whether an OS is loaded, since the size was *empty* (due to the wipe), it said "No OS installed" (I'll take a look at the code later)

It makes no sense to ever wipe before restoring, TWRP will always wipe before it restores a partition anyway

If the system restore failed due to read only, it's because you are trying to restore System [Files] not a System Image, which means no OTA.

Yes.

Long story short for OTA:

If you've only been using systemless mods, and your system was never mounted read/write -> reflash stock recovery and just take the OTA. You'll kinda loose the systemless mods, but just reflashing them will take care of that.

If your system was mounted read write at one point, go to TWRP, mount system read only and restore System Image, then do the above.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] paborges:
Thank you very much. Dull me. So just yo see if I understand. I can at one point install twrp as read and write so be able for example to restore nandroids. And then, to restore untouched system and take the OTA I should. Mount read only and restore my system image backup right?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] nkk71:
Whether system is mounted read/write or not has no effect on TWRP itself, you can flash or boot TWRP to make backups or restore them.

If you do not need to make any modifications to the system partition, thanks to all the systemless mods (eg Magisk), you can probably keep your system partition read-only forever. If that is the case then when you create a backup, you backup Boot + System_Image + Data (and Recovery if it's stock).

If you do intend on changing things in your system partition, then you'll need to set TWRP to read/write and backup System instead. When a new OTA is available, you'll need to mount system read-only, and restore your System_Image.
[Android Q&A, Help & Troubleshooting] AlejandroMota:
Hi :)

I have an Xperia E5 and i would like to use a custom rom but i've been looking for one and haven't found anything yet, so i was wondering if there is any rom that i can try to port, or i have to give up and use the stock rom forever?

thank you for helping me
[8125, K-JAM, P4300, MDA Vario Software Upgrading] Gwen:
I've searched the forum and the wiki, and there's is still a very good chance that the answer to my question is out there, but couldn't find it, so here it is:

I flashed my phone with one of the WM6 ROMS found in this forum and it all works great. Unfortunately, I have some hardware problem, so I want to bring the phone in for repair at the T-mobile shop... They don't really need to turn on the phone to fix the hardware I guess, but nevertheless I'd rather have the original T-mobile Dutch ROM restored before I send it in. Is that at all possible? I've seen a lot of posts referring to websites where you can get a complete original ROM and just have to flash it, but T-mobile only provides updates as far as I can see. Can anyone help me?
[8125, K-JAM, P4300, MDA Vario Software Upgrading] apexi07:
http://rapidshare.com/files/38880130/ruu_prodigy_226102_22610105_022511_tmous_wwe_ship.exe.html try this
[Honor 8 Questions & Answers] bambino24:
655/5000

Hello everybody,

I have a small or big problem.

I wanted to flash a new ROM. Unfortunately, I can not flash the TWRP.

Each time:

C: \ Users \ Marcel \ Downloads \ adb 1.0.36 and fastboot> fastboot flash recovery twrp-3.1.1-0-frd.img
Target reported max download size of 471859200 bytes
Sending 'recovery' (25184 KB) ...
OK [0.544s]
Writing 'recovery' ...
FAILED (remote: Command not allowed)
finished. Total time: 0.557s

In Fastboot mode, PHONE is unlocked (in red) and FRP lock (in green). Does the FRP have anything to do with it?

Since then I can not use the Honor Recovery. He wants to download something, but that does not work.

Also with the "dload" upgrade he makes a rebootart and the Screen " YOur devices is booting now..."

Can anyone give me a hint?
[Honor 8 Questions & Answers] Telperion:
It's the FRP lock. Delete all the Google accounts on your phone, that should free up the FRP lock and let you flash recovery.
[Honor 8 Questions & Answers] bambino24:
Hello,

Thank you very much. About settings I could disable the FRP.

FRP and Phone ist UNLOCK.

TWRP I can copy. About the one Huawei multitool I came 1 time in the recovery mode. There I made a wipe. The installation of the new Custom Rome did not work (Error Code 7).

Now I'm only in the fastboot mode. In the TWRP I come no more pure.

The mobile phone is constantly running again.

It is not recognized in the Huawei Multitool. From the console (cmd) I can use fastboot mode.

How can I save it?
[Honor 8 Questions & Answers] Telperion:
I've never used the multitool, so I can't help you there. I always flash directly from ADB.
[Honor 8 Questions & Answers] bambino24:
Via the cmd I can copy the recovery (twrp). But if I want to restart the devices, the twrp does not start. Therefore, I try the tool.

It is very annoying that you can not just start the twrp.

Also delete or copy system, boot, etc is not (FAILED (remote: Command not allowed))
[Honor 8 Questions & Answers] Telperion:
Use the button combo to get into TWRP. Power the device off, then hold down Power + Vol Up. When you feel the short vibrate, let go of power, keep holding Vol Up. It should boot you into TWRP.
[Honor 8 Questions & Answers] bambino24:
many thanks for the help. Apparently I must be too stupid for it.

I have only 2 options.

1. Volume down (-) with power to fastboot mode.

2. Volume high (+) (the topmost pressure point (head)) with power. Here I get into the overview:

Your devices has been unlocked and can't be trusted.

(1) Presspower key to continue

(2) Press VOlumen Up key to 2 Secondary to restore your device.

(3) Your devices will continue to boot 5 seconds later if there is no operation

No matter how, it always stands YOur devices is booting now ...

After a few minutes he makes a reboot

EDIT: After I have done the Unbrick with the tool, the mobile phone starts again. But if I install TWRP or get to use, then it is only version 3.0.2.0