WARINING!!!!
Flashing TWRP before doing anything, or you may lose your phone!
And NEVER flash ENTIRE SDE and SDF parititions from OTHER phone!
------------------------------------
In sdf1, there are some information after the IMEI2
After I bricked my phone, I think these information is unlock code
------------------------------------
Hello guys!
After the last time I successfully downgraded by modifying /dev/sde1, I tried to modify cid and mid in the same way. I successfully done this today, but I encountered some problems while flashing the RUU pack.
It seems that HTC has some cryptographic verifications for this, so I cannot modify everything.
The following is the method of modification. I hope people who are familiar with these can find things that I didn’t notice.
-------------------------------------
Changing mid:
1.Get image of sdf2 partition by
and then pull it to your computer by
2.Open the image file by
hex editor, find the mid of your phone. For me, it is
change it to the mid you want.
3.Push the image back to your phone by
the flash it back to the sdf2 partition by
4.Done. You can check it by
-------------------------------------
Changing cid:
1.Get image of sdf1 partition by
and then pull it to your computer by
2.Open the image file by
text editor, find the cid of your phone. For me, it is
change it to the cid you want.
3.Push the image back to your phone by
the flash it back to the sdf1 partition by
4.Done. You can check it by
(Yes, I copied the above

)
-------------------------------------
For changing version number to downgrade, here is the link:
https://forum.xda-developers.com/htc-u11/how-to/downgrade-downgrade-flashing-version-t3762172
I noticed that there is also a cid in sde1, but modifying it does not make me to pass the checking of HTC.
-------------------------------------
After I failed on flashing the other RUU pack, I restore cid, mid and version number, and I pass the checking this time, so I don't think modifying them will cause trouble.
There are many things in the extracted image, maybe some encrypted data is hidden inside.
Hope this can help you.