[HTC U11+ Guides, News, & Discussion] albert0pia:
Greetings all.

Several weeks ago, I made this post seeking help with a self-created problem. I am happy to announce that the problem has been resolved with the immense help of sephstyler. He is literally my phone's messiah.

The afore-mentioned XDA member has a device identical to mine. I borrowed his and mirrored most of the data on his device by copying several partitions off his phone on to mine. I followed this guide about changing CID/MID.

I got a hold of a notepad document (you'll find it here) that lists partition information of the U11+. I wasn't sure which of my partitions were corrupt but I was certain the one containing the OS and IMEI information were messed up. My IMEI was blank. The OS version reported in fastboot was 9.99999 or something like that.

So I set out to copy these partitions and their corresponding img files in no particular order - boot, hosd, radio, modemst1, modemst2, cache, system, vendor, persist, and sdf1 (which carries CID info).

Please note that this method fixes the issue where your device is stuck on the bootloader screen with the message, "this phone has been flashed with unauthorised software and is locked....." And you will need a second device that is identical to yours (and functional too) for this process to work. I don't know if they both have to come from the same region (i.e have the same CID and MID). I guess there is no harm in trying. You couldn't possibly do more harm to your device by doing this. Or maybe you could. Either way, I will not be held responsible for any undesirable outcomes.

Steps taken:

- I installed HTC drivers on my computer, running Windows 10 64-bit. And 15-second ADB Installer. Get them both from here and here. I uninstalled HTC Sync Manager after the installation was done as I only needed the drivers.

- I flashed TWRP on the borrowed device so I could have access to adb from recovery.

- I then opened up a command prompt window on my computer, typed adb devices just to be sure that drivers were installed correctly.

The next few steps can be achieved right from within TWRP using the Terminal function. But I chose to use my computer as it'd be much quicker and I am less likely to make typos on a full-sized keyboard.

In a command prompt window, type adb shell. Hit enter.

To copy the system image, type dd if=/dev/block/sda5 of=/sdcard/system.img

For cache, type dd if=/dev/block/sdd21 of=/sdcard/cache.img

For boot, type dd if=/dev/block/sda3 of=/sdcard/boot.img

For radio, type dd if=/dev/block/sdd13 of=/sdcard/radio.img

For modemst1, type dd if=/dev/block/sde2 of=/sdcard/modemst1.img

For modemst2, type dd if=/dev/block/sde3 of=/sdcard/modemst2.img

For persist, type dd if=/dev/block/sde5 of=/sdcard/persist.img

For vendor, type dd if=/dev/block/sda6 of=/sdcard/vendor.img

For sdf1 (board_info), type dd if=/dev/block/sdf1 of=/sdcard/sdf1.img

For hosd, type dd if=/dev/block/sdd12 of=/sdcard/hosd.img

These img files would be saved to your internal storage. I then copied all files to the root folder of my faulty device's storage using Windows Explorer. System.img however refused to transfer. I got creative and used a microSD to make the transfer possible.

Now that these files were sitting comfortably on my phone, I booted to TWRP, connected it to my PC, then entered the following commands in Command Prompt via adb shell.

To copy these images to the appropriate partitions on your phone:

For board_info, type dd if=/sdcard/sdf1.img of=/dev/block/sdf1

For system, type dd if=/sdcard/system.img of=/dev/block/sda5

For cache, type dd if=/sdcard/cache.img of=/dev/block/sdd21

For boot, type dd if=/sdcard/boot.img of=/dev/block/sda3

For radio, type dd if=/sdcard/radio.img of=/dev/block/sdd13

For modemst1, type dd if=/sdcard/modemst1.img of=/dev/block/sde2

For modemst2, type dd if=/sdcard/modemst2.img of=/dev/block/sde3

For persist, type dd if=/sdcard/persist.img of=/dev/block/sde5

For vendor, type dd if=/sdcard/vendor.img of=/dev/block/sda6

For hosd, type dd if=/sdcard/hosd.img of=/dev/block/sdd12

Upon completion, press Ctrl+C or type exit to quit adb shell. Then type adb reboot to reboot your device.

If the above commands were entered correctly (and if the adb gods smile upon you), your device should be restored.

Now I know that copying all images fixed the issue. My guess is the system, boot, and radio images were the crucial ones. I am not entirely sure. But I was desperate for a positive result so I copied the ones that I deemed important.

I hope this helps someone. Cheers.

P.S: My apologies for the formatting. I am still fairly new to this. Also, I just realised I could upload these images for anyone who doesn't have access to a second device. I shall update the post with download links after the upload's completed. Sorry about the brain fart.

[EDIT] Images are up. You can find them here. These files are for the Taiwan-based HTC U11+ (CID - HTC_621)