yashsingh1/xdaforums huggingface dataset:
[HTC U11+ Guides, News, & Discussion] Pineapplemilk:
I flashed 2.15.709.1 Pie Ruu before install the "Phh AOSP Android 10"

(Havoc based on Phh)

TWRP Version : 190501

And it still can't encrypt data :(
[HTC U11+ Guides, News, & Discussion] james35022000:
Oh TWRP can't decrypt data is normal.

The thing you can do is to prevent system from encrypting data.

This thread:

https://xdaforums.com/android/software/universal-dm-verity-forceencrypt-t3817389

Just wipe data in TWRP and flash the zip file upon

---------------------------------------------------------------------

And wait, I see XDDD

I flashed Phh AOSP before, the camera don't work neither.

You can find the issue on the Phh's github, it seems never work and no fix for our device.

So....please use Havoc OS
[HTC U11+ Guides, News, & Discussion] Pineapplemilk:
Thank you for this information :good:

---------------------------------------------------------------------

Really strange.....

Thank you for the information again~

Does Havoc os running smooth on U11+?

Phh AOSP has some bugs but it's smooth tho.
[HTC U11+ Guides, News, & Discussion] Shrenade514:
It runs smooth for me, but for the first week I kept crashing at the lock screen randomly and had to do a reset. Sometimes a normal reset would just bootloop or crash on the lockscreen again. So I had to specifically go into download mode -> bootloader mode -> recovery mode (TWRP) -> "reboot to system" which would let me get past the lockscreen without crashing.

The battery life and thermal performance is MUCH better, it's too early for me to say but I think it's pretty close to Oreo battery life and heat management might be EVEN BETTER.

I still think that HTC Oreo was smoother, but most phones weren't as smooth as the U11+ on Oreo.

The camera performance is definitely worse though, that could just be because we're forced to use the GCam port instead of the stock HTC app but it's inconsistent with lighting and sometimes crushes black levels on people's faces too much. If I find improved settings or a better GCam port then I'll link it here for you guys to use :)

I'm pretty sure that TWRP not being able to decrypt data is a bug with that specific version of TWRP, but I don't think there's another TWRP image that will work on the U11+ so we have to deal with it.

---------- Post added at 07:24 PM ---------- Previous post was at 07:12 PM ----------

How do you do step 1? I couldn't find any information about where to find the HavocOS Keystore or what it is? I assume it's an app to resign APKs for HavocOS?

Thanks for helping an ignorant person like me :p
[HTC U11+ Guides, News, & Discussion] james35022000:
Sorry I'm the new here so I can't paste any link and file.

Havoc keystore is at Havoc-OS github "android_build" repo /target/product/security

We need platform.x509.pem and platform.pk8

Sign it

java -jar signapk.jar platform.x509.pem platform.pk8 unsigned.apk new.apk

signapk.jar can be found at other github projects, just google it.
[HTC U11+ Guides, News, & Discussion] Shrenade514:
Ok so after some more thought I realised that since the Vendor image is the same as before, the camera performance shouldn't have changed compared to the stock HTC ROM? Let me know if I'm wrong, I'm new to Treble GSI custom ROMs.

I tested the latest GCam 7.3 ports from the most popular GCam Developers and I found that the best port for the U11+ is "BSG's 7.3 v0f" which can be found here: https://www.celsoazevedo.com/files/android/google-camera/dev-bsg/

Performance is the best of any GCam port I've tested, image processing seems to work perfectly (unlike most ports), no hot pixels, accurate colour reproduction, all modes work perfectly including the front and rear cameras.

I haven't tried his 7.4 port yet, but I can't imagine it being much better than his last 7.3 build. I'll probably test it later.

These are the settings you should enable to get the best image quality: http://imgur.com/a/5kMSO0M

I wouldn't bother enabling Pixel AWB, it just seems to correct lighting of the scene (usually by making it blue or cool in temperature) rather than represent the actual lighting.

Let me know how you find it :)

---------- Post added at 08:40 PM ---------- Previous post was at 08:38 PM ----------

I'm actually shocked, the camera performance using this GCam port is as good as stock as far as I can see.
[HTC U11+ Guides, News, & Discussion] hayame:
Thanks for the guide, the only thing I'm kinda stuck on is the "resize file system", I don't see that option on twrp (version 3.3.1-0). I'm not using any gapps so it isn't an issue, but I'm still curious as to how to actually resize partitions without doing it manually.

It does run well too.

But I will say that project treble makes me not fear about getting a phone with a little to no community behind it (or even official support for that matter)
[HTC U11+ Guides, News, & Discussion] james35022000:
Before resizing file system, you should mount System in TWRP and you will see the option
[HTC U11+ Guides, News, & Discussion] hayame:
That worked. Idk what it is with twrp for my first few installations but it was suuuuuuuper buggy, it wasn't until 2-3 tries did I get everything working properly lol.
[HTC U11+ Guides, News, & Discussion] usmantahir:
Guys, any update on BT call audio fix?
[HTC U11+ Guides, News, & Discussion] jakeuj:
I upgrade Havoc to 3.8, then keep going in circles at boot time.

----Soloved----

1. Format data to remove data encryption in TWRP

2. Wipe all

3.Reboot to download mode to reflash the recovery img file.

4.Flash Havoc 3.8

5.Flash PhhMagisk

6.I am not select that install TWRP into os, choose install TWRP later.

7.Resize file system (NOT wipe system)

8.Restart

9.Done
[HTC U11+ Guides, News, & Discussion] drstoms:
This tutorial is a waste of precious time. I did everything according to the step-by-step guide with the files attached to the download. After flash magisk phh, the system will be unmounted and the wipe resize section cannot be mounted back, even if I did it 10 times, the repair with the syatem also does not work, so without installed partition htc will not run on havoc rom.Do not mislead people if you are not sure if it works on htc u11 plus devices
[HTC U11+ Guides, News, & Discussion] jakeuj:
I just use this one day, but it kept crashing randomly,too.

Can it become better for one week later?

Maybe new system need update a lot of service cuse crash.

After all service update and set done, it get better.
[HTC U11+ Guides, News, & Discussion] soya0883:
Can anyone guide me on the first step? how actually should i do it? I am new to this thing, thanks in advance
[HTC U11+ Guides, News, & Discussion] abuqueque:
hi bro, I am currently on havoc os 3.5 and its fine but just a lil bit buggy. may I know how is 3.8 doing? is it fine or any issue u encounter so far? thanks
[HTC U11+ Guides, News, & Discussion] Shrenade514:
It worked fine for me, I flashed Havoc OS and Magisk straight after I think?

I couldn't resize system but I think the fix is in this thread somewhere. It didn't matter for me.

There is no misleading, many people have a working HavocOS on the U11+.

---------- Post added at 10:28 PM ---------- Previous post was at 10:23 PM ----------

Yes it got better for me, now I don't see lockscreen crashes until every 1 or 2 months.

When you get a bootloop you have to go into TWRP and reboot to System, which will fix the bootloop. But after this it is likely you will get a lockscreen crash. Maybe not straight away, but after you lock your phone again, next time it will be frozen on the lockscreen.

My advice is to leave it locked with screen off for a few minutes. This will let the device 'settle' and next time you try to unlock it won't crash.

I am using HavocOS 3.7

---------- Post added at 10:31 PM ---------- Previous post was at 10:28 PM ----------

I am using HavocOS 3.7 and it is bug free.

After fresh install the first few weeks it would crash at the lockscreen and then bootloop. I found out that going into TWRP and booting to System would fix the bootloop. I also have tips to get past lockscreen crash bug in the reply above.

But after 1 month I don't see bootloops or lockscreen crashes, only very rarely.
[HTC U11+ Guides, News, & Discussion] bennyb0y:
This is the one thing stopping me from attempting to update my HTC U11+ to Android 10.

Must have BT Audio.

I use my BT headset a lot and also love the HTC "squeeze" EdgeSense feature.
[HTC U11+ Guides, News, & Discussion] Raydavis1:
HTC u11 + reset verify pin

I reset my HTC u11+ now it asking for verify pin which I don't have before it can boot. Any help please
[HTC U11+ Guides, News, & Discussion] zerored:
must base on android 9?
[HTC U11+ Guides, News, & Discussion] Technoschnitzel:
Hey guys,

this one is also not working for me. I had a faulty Android 9 before (huge delays during wakeup) and after several unlucky flashing attempts I stumbled upon this one here. All works as described, RUU boot.img and system.img flash without any problems, recovery also, just when it comes to resizing the /system partition I don't get any error.

Flashing the 2Q4DIMG.zip generated by the RUU decryption tool didn't work out for me BTW for some reason:

12 RU_ZIP_ERROR
12 RU_ZIP_ERROR
FAIL12 RU_ZIP_ERROR

Is this because I'm still on S-ON?

After rebooting I keep getting the "HTC -powered by Android" logo, and nothing happens.

I would be very glad if anybody could help me! (:

Here's what my phone outputs when in download mode:

*** UNLOCKED ***
*** PRODUCTION ***
htc_ocmdugl PVT S-ON
LK-1.0.0.0000
RADIO-8998-200321-1907151259
OpenDSP-UNKNOWN
OS-2.19.401.2
Jul 22 2019, 22:32:17(1088049)

best wishes,

Nico
[HTC U11+ Guides, News, & Discussion] danyb.90:
Hi, I have some questions:

- is there any way to make my wired earphones work? I use them a lot and would love to be able to use them.

- I tried using htc_audio_bt_fix.rar following the directions to fix the bt audio problem, but it doesn't work. Can this be fixed?
[HTC U11+ Guides, News, & Discussion] Shrenade514:
No fix for wired earphones, I don't think we will ever get a fix.

Have you tried disabling call audio in the bluetooth device settings? The rar fix works fine for me
[HTC U11+ Guides, News, & Discussion] Shrenade514:
I never had to touch S-ON when flashing HavocOS, my phone still has S-ON.

Did you fix the problem?
[HTC U11+ Guides, News, & Discussion] Shrenade514:
Hey guys,

I am thinking of trying out HavocOS 4.1 soon (Android 11 GSI), I will let you know my findings.

Havoc-OS Announcements

Havoc-OS v4.1 Official Update Date: 08-02-2021 Device: Generic System Image (GSI) Maintainer: xEugW Download Link: https://bit.ly/34E6Pyg

t.me

Anushek Prasal in Havoc-OS GSI

Havoc-OS v4.1 Official Update Date: 08-02-2021 Device: Generic System Image (GSI) Maintainer: xEugW Download Link: https://bit.ly/34E6Pyg

t.me

"Havoc-OS v4.1 Official Update

Date: 08-02-2021

Device: Generic System Image (GSI)

Maintainer: xEugW

Download Link: https://bit.ly/34E6Pyg"

My worries are:

1. Will stock HTC kernel work with Android 11 GSI?

2. Will BT and call audio fix work with Android 11? (I do not think it will, but I will try anyway)
[HTC U11+ Guides, News, & Discussion] quattro527:
Does anyone have a link to a SIGNED version of the EdgeSense APK? Having issues with either Java or the signapk.jar file that keeps giving me errors using the 2 keys provided from the Havoc repository.

I am either not looking at the right place or missing something--but if Havoc can provide the keys to sign the APK, why not just provide one that's already been vetted/tested for the ROM for the U11 (though I understand these are universal GSI images).

Anyone?
[HTC U11+ Guides, News, & Discussion] Shrenade514:
So after all my testing with Android 11 GSIs I decided that none were stable or functional enough to use.

I settle with the last HavocOS build (3.12) and it seems to work fine so far. I also don't get the lockscreen or bootloop bug that I had on 3.7, great.

I also needed to flash Magisk, because this will allow us to get root privileges and let us replace the audio configuration files in /root/vender/etc/ to fix in-call audio and bluetooth media audio. Magisk will also let us bypass SafetyNet, which I will explain below.

I also used a newer version of phh-magisk, v21.0 (21000) - https://github.com/Magisk-Phh/Releases

However, due to updates to SafetyNet with newer security patches, the new GSI will fail the SafetyNet ctsProfile check...

I solved this by installing these two Magisk modules (as well as the Systemless Hosts module):

MagiskHide Props Config (v5.4.0-v118) - https://xdaforums.com/t/module-magiskhide-props-config-safetynet-prop-edits-and-more-v5-4-0.3789228/

The props config module can be installed directly from Magisk, after installing the Systemless Hosts module and MagiskHide, and rebooting.

Then to run the configurator I installed "Termux" (see Google Play store) and ran the command "sudo props". The first time you try to run the command it will prompt you to install a package, to let you use the "sudo" command (make sure you do this).

For the device fingerprint configuration I tried to use the original "HTC U11 plus" information stored in "/root/vendor/build.prop", but it doesn't trick/pass the ctsProfile check on this GSI. Even changing the timing of the boot script to be early, default or late had no effect (incl. the patch date script).

So the solution to this was spoofing the device fingerprint to a Google Pixel 2XL on Android 10 (with script timing setting at Default/Default or Default/Late). I didn't try the HTC U11, U12+ or Exodus 1 fingerprints, but apparently they should also work.

Universal SafetyNet Fix (v1.1.1) - https://xdaforums.com/t/magisk-module-universal-safetynet-fix-1-1-0.4217823/

For installing the Universal SafetyNet Fix, I had to download from their github page and install the module manually in Magisk Manager (DO NOT FLASH THIS .ZIP IN TWRP).

Along with these, I used Solid Explorer Premium with root access and followed the instructions from earlier in this thread/post to fix the in-call and BT audio.

I also edited "/root/system/build.prop" and changed some values to be the same as found in "/root/vendor/build.prop":

ro.build.ab_update=false

ro.product.model=HTC U11 plus

ro.product.brand=htc

ro.product.name=ocmdugl_00401

ro.product.device=htc_ocmdugl

I don't think changing these values have any other effects, but I changed them so that in the Software Information menu in Settings, it would say "HTC U11 plus" instead of the GSI name. I also think this will show up on my microsoft and google account devices as "HTC U11 plus" now as well? I will need to test and see...

I do not recommend changing any other values in the /system/build.prop, because it might interfere with the MagiskHide Props Config module/script.
[HTC U11+ Guides, News, & Discussion] Shrenade514:
Screenshots:

Note: The settings menu will say August 2020 security patch, but that is part of the Pixel 2XL fingerprint spoofing! The actual security patch is December 2020 and it said that before doing the fingerprint spoof...

I did all this work to stay up to date with newer security patches. I have learnt a lot in the process about Android/GSIs/etc, if you have any problems then reply to this thread and I will try to help :)
[HTC U11+ Guides, News, & Discussion] Shrenade514:
This morning I tried installing this Magisk module to enable the aptx and aptx-hd bluetooth codecs on Android 10 ROMs/GSIs: https://xdaforums.com/t/module-aptx-hd-for-android-10-probably-9-and-8-aswell.4081693/

It's working perfectly so far, I'm really happy with it! AAC is really inconsistent with it's implementation across Android, and it's quality & latency can be inconsistent across them. AptX and especially AptX-HD should be much better, and to my ear regular AptX definitely sounds better and has better latency (I'm using the SoundPeats Truedot).

I'm tempted to try installing the Magisk modules for Viper4Android or JamesDSP as well, but I'm worried it might bootloop my phone :p

Do not use this module: https://github.com/null4n/apt-x

It is not compatible with Android 10, because Aptx & AptX HD support/libs need to be implemented at a lower level and cannot just be added as libs taken from OnePlus/OxygenOS. Even if it boots it won't work properly, or best case scenario the OS will just ignore them.

Also if you see the Magisk module for doubling Qualcomm Wi-Fi/network bandwidth, don't use it! It isn't compatible with the U11+/HavocOS from what I've read.

See page 2 of this thread to see which GCam port I'm using, it's been the best that I've found so far.

Update #1:

So it seems that any sort of audio mod will break the volume controls on Havoc after the second reboot, this might be because of the audio workaround/fix we had to do to get BT audio and in-call audio working? There's also probably some weird stuff going on with the existing/old htc audio fx libraries.

The following magisk modules will all break volume control and some do not even work at all:

Ainur Narsin Mk I (you really don't want this even if it worked, it ruins the HTC speaker optimisations, makes the sound a lot less "full" and makes it more hollow sounding),

Viper4Android FX 2.7,

JamesDSP v3.3,

aptx-HD-for-Android-10.

It might be possible to get any of these to work alone or together by installing the Audio Modification Library module, but I am not willing to spend more time on this. Because of the U11+ TWRP being broken/unfinished, I can't make proper NANDROID backups, so I have to re-flash the stock Pie firmware and start from scratch every time :/

I'm also using the new Magisk (manager) all-in-one app/apk - https://github.com/topjohnwu/Magisk/releases/tag/v22.0

It seems to work fine.
[HTC U11+ Guides, News, & Discussion] Shrenade514:
Sorry for the late response, I wanted to test it out for myself first before sharing anything.

I googled the error and it was because the "sun.*" packages/classes used in the signapk.jar file/script are deprecated as of Java 9 (aka JDK 1.09) onwards - https://stackoverflow.com/questions/29692146/java-lang-noclassdeffounderror-sun-misc-base64encoder

In simple terms, you need to use Java 8 (aka JDK 1.08) to run the signapk.jar file.

Luckily I still had Ubuntu installed on my laptop, so I could install Java 8 very quickly and easily (it would've been a massive pain to do it in Windows, because it already had Java 11 installed).

I've attached the signed Edge Sense apk to this comment, as well as a .txt file which contains the terminal command needed to open the Edge Sense configuration menu!

Note that the Edge Sense v2.0 apk is for the U12+, and v1.21 is the latest version for all other HTC devices with the technology (U11, U11+, U11 Eyes, U11 Life). I tried the v2.0 apk first and it did not let me do/set everything, just the pressure level (and maybe short and long activation?), to be honest I don't really remember. Then I tried the v1.21 apk and it was exactly the same as what I remember the stock Pie rom having.

The App Systemizer magisk module also works with no problems, first I chose to install the v2.0 apk as just /system/app and later installed the v1.21 apk as /system/priv-app, both seemed to work fine. Priv-app is for OEM system apps and have A LOT more permissions and general freedom compared to just regular "system" apps. If I remember correctly, on the stock HTC Pie ROM the Edge Sense apk was stored in a folder for "priv-app", so I assume it's mean to be installed under priv-app (although I don't know if it would actually make any difference).

When Systemizing the Edge Sense apk it also told me "Failed!" at the end, along with some other error info (it also said I don't have busybox installed but I don't think it's necessary). Everything seems to work perfectly though, so we can just ignore the error messages.

TL;DR

Install "v1.21" to /system/priv-app/ and use the commands in the provided ".txt" to open the Edge Sense menu in Termux or other terminal app. Ignore the error message that says "Failed!" after Systemizing the apk.
[HTC U11+ Guides, News, & Discussion] devsk:
dood, put it all together in a ROM already...;-)

Thanks for doing this. I will play with this when I have some more time. U11+ is a great device and had 6GB of RAM like 3 years ago. Its Camera is as good as the Pixel2, which is same as Camera on Pixel 5. So, its as usable as any other flagship phone today.
[HTC U11+ Guides, News, & Discussion] quattro527:
I totally agree! I am also playing with ViperExperience 11 on my U12+, which is currently on Beta 3--and to be honest, I can probably make the U11+ a better "Daily Driver" (right now) if we can knock out all the small kinks such as BT and working sense + camera. The GSI with Havoc seems to have a lot more hidden "features" and tweaks (i.e. status bar tweaks, button configs i.e. long-hold back to Kill App, etc) than what I am seeing on Viper on my U12+ (but I also have to give credit to the devs--they are focusing on making it a stable release before they start working on tweaks, and they are awesome). I own the HTC 10, U11, U11+, and U12+, and I think what we ALL want here is a STABLE Daily Driver that utilizes the awesome camera, while most of us here can live with the little non-essential bugs/kinks and report them to the devs as needed to come up with a fix.

With that said, can SOMEBODY compile a good solid ROM of this? I think with ALL/MOST the information from this thread alone, it is possible. I was able to fix my EdgeSense (thanks @Shrenade514 for that!), installed the proper cameras, still some issues with BT, but all-in-all--this could be a good SOLID ROM if properly compiled into an Aroma installer. I am even personally willing to make some donations if needed--as I know we all have busy lives and dealing with the pandemic and most of this is just a hobby for the devs (and I think I can speak for a lot of us here). :)

HTC by far still makes some of the best phones/hardware in the Android arena--but it's just sad that the company itself is having internal issues (not to mention pressure from the Mainland Chinese manufacturers making it hard to compete and be profitable). My old HTC 10 is still running and have outlasted almost every Samsung or Chinese phone to date (if replacing the battery the HTC 10 wasn't such a pain).
[HTC U11+ Guides, News, & Discussion] quattro527:
You are right--the time it would take for me to spin up a Ubuntu (or Zorin as I'm using) VM and have everything set up (after learning all this) would probably have been faster--as almost anything <Java11 on Windows requires almost an 'act of Congress' to get around the security settings and not trigger alerts for running old Java. Since I am not as familiar with Linux for Android stuff--I ended up setting an old sandbox Windows 7 VM to get the Java 8 working, but still ended up giving up.

I just updated to Havoc 4.1, and opened a new can of worms with my BT--so I may just revert back to 3.8 for the time being.

But thanks for that mate!
[HTC U11+ Guides, News, & Discussion] Abdelkadir5:
I need update for my phone htc u11plus
[HTC U11+ Guides, News, & Discussion] Sunny515:
I have done like instruction but in Wipe -> Advance Wipe -> System section there is no Resize file System. I use twrp 190501 . Please Help !
[HTC U11+ Guides, News, & Discussion] Shrenade514:
See this https://xdaforums.com/t/how-to-install-android-10-on-htc-u11.4100409/post-83417509
[HTC U11+ Guides, News, & Discussion] kunsam:
hi folks, is there a working Android 11 ROM for HTC U11+?
[HTC U11+ Guides, News, & Discussion] Shrenade514:
You can try loading one of the Android 11 Treble GSIs, but when I first tested them none of them worked. They have been updated a lot since then, so maybe one or two will work now.

But you will still have broken USB audio, I don't know if the HTC Bluetooth audio fix for Android 9 and 10 also works for 11.
[HTC U11+ Guides, News, & Discussion] Derrick0325:
I keep getting into boot loop with either havoc 3.5 or 3.12. What's happening here?

I followed the steps. Mine is a Taiwanese version.

I'd appreciate it if someone can shed some light on this, or even better, make a ROM with these resources around.