[Unofficial] HTC U11+ TWRP Recovery

Search This thread

sabpprook

Senior Member
Dec 8, 2011
269
368
Kaohsiung
fTrUp65.png
lmGK4U4.png


It have been about 2 years, I finally get a U11 plus to make TWRP device tree with working decrypt function.
Source: https://github.com/sabpprook/android_device_htc_ocm

Please download latest TWRP build in following link.

[Android 8.0]
twrp-3.3.1-0-ocm_171001.img
twrp-3.3.1-0-ocm_171201.img
twrp-3.3.1-0-ocm_180601.img
twrp-3.3.1-0-ocm_180901.img
twrp-3.3.1-0-ocm_181001.img
twrp-3.3.1-0-ocm_181101.img

[Android 9.0]


PS. watch out the last 6 digits at the filename, it must equal to your system's android patch level. e.g. 2017-12-01 (Dec, 2017) = 171201, otherwise TWRP will not decrypt data partition.

PS2. U11+ already get Android Pie update, but this update will break data decrypt function in TWRP recovery.

@nkk71, thanks all the works you've done for us.
 
Last edited:

aurelienlux

Member
Nov 24, 2017
8
9
Thanks for this however it doesn't seem to work for me. I've unlocked the bootloader, rebooted into bootloader mode via adb (adb reboot bootloader), tried to boot the twrp image (fastboot boot twrp-3.1.1-2_unofficial-ocm_2.img) and all I get is a black screen even though the commands seem to work at first:
fastboot boot twrp-3.1.1-2_unofficial-ocm_2.img
downloading 'boot.img'...
OKAY [ 0.894s]
booting...
OKAY [ 10.112s]
finished. total time: 11.006s

Any idea what's going on?
 

jauhien

Senior Member
Mar 25, 2006
1,192
584
Dubai
Thanks for this however it doesn't seem to work for me. I've unlocked the bootloader, rebooted into bootloader mode via adb (adb reboot bootloader), tried to boot the twrp image (fastboot boot twrp-3.1.1-2_unofficial-ocm_2.img) and all I get is a black screen even though the commands seem to work at first:


Any idea what's going on?
Did you flash the custom recovery ..?

P.S. Nothing of linked below worked out?
http://featuresunlocker.com/root-install-twrp-recovery-htc-u11/

Yet sent from my amazing silver U11
 
Last edited:

aurelienlux

Member
Nov 24, 2017
8
9
Did you flash the custom recovery ..?

P.S. Nothing of linked below worked out?

Yet sent from my amazing silver U11

I didn't flash since I wanted to test it out before using the fastboot boot command recommended in the original post. However this does not seem to work. I wanted to get twrp running so I could use magisk for root
 

aurelienlux

Member
Nov 24, 2017
8
9
Went ahead and flashed it anyway and I'm happy to report that it worked and did not brick my device. So I still don't know why it won't let me fastboot boot but at least TWRP is now installed.
 
  • Like
Reactions: jauhien

tbalden

Recognized Developer
Oct 22, 2010
9,879
16,931
Budapest
www.virtuousrom.com
Went ahead and flashed it anyway and I'm happy to report that it worked and did not brick my device. So I still don't know why it won't let me fastboot boot but at least TWRP is now installed.
Be aware that you're now lacking the ability to ota update if you cannot get ahold of a stock recovery.
That's why booting only and making a backup of stock recovery boot and full system partition, is highly recommended.
 

aurelienlux

Member
Nov 24, 2017
8
9
Be aware that you're now lacking the ability to ota update if you cannot get ahold of a stock recovery.
That's why booting only and making a backup of stock recovery boot and full system partition, is highly recommended.

I bought the right version of the stock rom I'm running from en.pars-hamrah.com. It's a slightly sketchy looking site and it cost me 9$ but it should allow me to go back to stock easily

I'll share it here if people are interested. It's version 1.05.400.13 which is the latest version for the Hong Kong version
 

Prot02018

Member
Nov 21, 2017
30
12
I bought the right version of the stock rom I'm running from en.pars-hamrah.com. It's a slightly sketchy looking site and it cost me 9$ but it should allow me to go back to stock easily

I'll share it here if people are interested. It's version 1.05.400.13 which is the latest version for the Hong Kong version

That would be fantastic and very good of you if you could share it. Many thanks!
 

nkk71

Inactive Recognized Developer / Inactive Recognize
May 26, 2010
8,743
7,571
50
Beirut
@nkk71 Any idea of decryption problem?
Seems "/firmware" not symlink and "/vendor/bin/qseecom" sepolicy not set correctly :confused:

View attachment 4342230

Looks like you're building in android 7.1 for Oreo decrypt, won't work without the needed sepolicy changes and plat/non_plat contexts, please check the current gerrit updates for the standard HTC U11:
TWRP vold_decrypt patch: https://gerrit.omnirom.org/c/26652/

EDIT2: U11 Oreo decrypt device tree changes needed for a 7.1 build: https://gerrit.twrp.me/c/2756/

If you end up with decryption successful, but it doesn't actually mount /data, then you may even need an updated kernel https://gerrit.twrp.me/c/2761/
which is what we needed. EDIT: Obviously that's a U11 kernel update not a U11+ one, so don't try to use that kernel ;)

Some things will still get changed. I also recommend you build in real DEBUG mode, the straces have much more info than a log or dmesg. by using TW_CRYPTO_SYSTEM_VOLD_DEBUG := true
 
Last edited:

aurelienlux

Member
Nov 24, 2017
8
9
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 24
    fTrUp65.png
    lmGK4U4.png


    It have been about 2 years, I finally get a U11 plus to make TWRP device tree with working decrypt function.
    Source: https://github.com/sabpprook/android_device_htc_ocm

    Please download latest TWRP build in following link.

    [Android 8.0]
    twrp-3.3.1-0-ocm_171001.img
    twrp-3.3.1-0-ocm_171201.img
    twrp-3.3.1-0-ocm_180601.img
    twrp-3.3.1-0-ocm_180901.img
    twrp-3.3.1-0-ocm_181001.img
    twrp-3.3.1-0-ocm_181101.img

    [Android 9.0]


    PS. watch out the last 6 digits at the filename, it must equal to your system's android patch level. e.g. 2017-12-01 (Dec, 2017) = 171201, otherwise TWRP will not decrypt data partition.

    PS2. U11+ already get Android Pie update, but this update will break data decrypt function in TWRP recovery.

    @nkk71, thanks all the works you've done for us.
    9
    @kuchivas

    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
    8
    Seriously?

    I really don't understand your problem, what's so difficult of looking in the General or Q&A forum on "How to root your device", and if there is no such thread you can create one.
    You can even get people's attention by using mentions.
    I never said anything about doing it by yourself :rolleyes:

    And thanks to your "compliment", I won't bother you folks anymore (so feel free to continue here), I have better things to do than waste my time with this.
    @nkk71: forgive the newbie....:D He does not know your contributions to XDA. Please don't let a single person's post determine your path. You are bigger than that man!
    7
    Understood, and I thank you a lot for your effort. I'll try by myself about magisk installation without bothering this thread with non-developer's questions. Let's hope in the future to see here the main (and more open minded) HTC developers

    Seriously?

    I really don't understand your problem, what's so difficult of looking in the General or Q&A forum on "How to root your device", and if there is no such thread you can create one.
    You can even get people's attention by using mentions.
    I never said anything about doing it by yourself :rolleyes:

    And thanks to your "compliment", I won't bother you folks anymore (so feel free to continue here), I have better things to do than waste my time with this.
    7
    No offence guys, I'm just a casual visitor here, but
    1. Isn't this supposed to be a development thread
    2. About TWRP in particular
    3. So I fail to see the point of all the random questions in here, like
      • where do I get stock recovery X
      • how do I root this device
      • where can I find OTA
      • how do I patch boot.img

    Shouldn't these questions go to Q&A and guides to General :confused:

    That way people actually following development of
    [Unofficial] HTC U11+ TWRP Recovery​
    can stay focused on it.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone