yashsingh1/xdaforums huggingface dataset:
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tomascus:
HOW TO REPORT AN ISSUE

Firstly, try a clean flash with the data partition wiped to see if the issue still persists, if it does then continue below.

Checklist of information that should be provided:

Detailed description of the issue faced

Clear steps taken to reproduce the issue

The build which the issue has occured in

Last build where the issue didn't occur (if applicable)

Logs taken SHOWING the issue occurring (if applicable)

Expected behaviour (if applicable/not obvious)

Phone variant or CID

Any other important information which may assist in fixing the issue

HOW TO TAKE A LOGCAT:

The most important thing is to make sure only mostly relevant information is in the logcat.

1. Open a console/command prompt window

2. Input command: "adb logcat -c"

3. Input command to start logging: "adb logcat"

4. IMMEDIATELY reproduce the issue as soon as the command in Step 3 is inputted e.g make a call, play a song, click on a toggle which causes a crash

5. Stop the logcat as soon as the issue has run it's course e.g after an error message has appeared, or after something has crashed

6. Upload the log somewhere

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

AN EXAMPLE:

Hi, I have been experiencing an issue in calls where the other party can hear an echo of their own voice, this occurs in both earpiece and speaker mode. VOIP does not seem to be affected by this problem.

The issue can be replicated by simply making a call in the Dialer.

This issue has only started to occur on build X, but did not happen on older build Y. I have attempted to do a clean flash but the problem still persists.

My phone's CID is HTC__9999, if it's relevant.

I have attached the logcat below I've captured the instant I made a call, please have a look.

.....
.....
02-06 23:06:33.548 937 1016 D voice : voice_start_usecase: enter usecase:voicemmode1-call
02-06 23:06:33.548 937 1016 D audio_hw_primary: select_devices for use case (voicemmode1-call)
02-06 23:06:33.548 937 1016 D audio_hw_primary: select_devices: out_snd_device(15: earpiece-voice) in_snd_device(98: voice-dmic-ef)
02-06 23:06:33.548 937 1016 I msm8974_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 36 device (earpiece-voice)
02-06 23:06:33.548 937 1016 D msm8974_platform: platform_split_snd_device: snd_device(15) num devices(1) new_snd_devices(0)
02-06 23:06:33.548 937 1016 I msm8974_platform: platform_check_and_set_codec_backend_cfg: new_snd_devices[0] is 15
02-06 23:06:33.548 937 1016 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 36 device (earpiece-voice)
....
....
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tomascus:
HOW TO BUILD LINEAGE OS 16.0 FROM MY REPOS

A brief guide. Much of the information here has been directly taken from the lineageOS wiki. See https://wiki.lineageos.org for more information.

Brief requirements

- At least 16 GB of RAM

- Storage with over 100 GB of free space (SSD highly recommended)

- Working brain

1. Get Linux

- Download and install a Linux distribution, Ubuntu is one that's easy to work with so I recommend that

2. Set up build environment

- Follow the steps up to and including the "Initialize the LineageOS source repository" section here: https://wiki.lineageos.org/devices/dumpling/build (Yes, it says OnePlus)

3. Add my custom manifest

- Sync my development repos by adding the following in {LineageFolderHere}/.repo/local_manifests/mymanifest.xml (create the folders if they don't exist)

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="tomascus/android_device_htc_ocn" path="device/htc/ocn" remote="github" revision="development" />
<project name="tomascus/android_kernel_htc_msm8998" path="kernel/htc/msm8998" remote="github" revision="development" />
<project name="tomascus/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="lineage-16.0"/>
<project name="LineageOS/android_packages_resources_devicesettings" path="packages/resources/devicesettings" remote="github" />
</manifest>

4. Sync LineageOS sources

- From the main LineageOS folder, run:

repo sync -c --no-clone-bundle

- Wait for it to sync, it may take a few hours depending on your internet connection

5. Build the ROM

- Have a look at the section "Turn on caching to speed up build" at https://wiki.lineageos.org/devices/dumpling/build

- Run the commands to get variables and everything together to ready to build:

. build/envsetup.sh
lunch lineage_ocn-userdebug

To commerce building, run:

mka bacon

- Wait for it to build, output will be located at out/target/product/ocn/lineage-xxxxxx.zip

5. Doing incremental builds afterwards

- If drastic changes are made such as with vendor blobs, a full clean and full rebuild is recommended. A full clean can be done by running:

make clobber

- Otherwise, a installclean may suffice. run:

make installclean

- Then build with "mka bacon" as usual (Step 5)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] miffymiffy:
Legend, Gonna jump on this now!

Got a dual Sim so I'll let you know.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] rajackar:
Thanks a lot man. As the ROM scene is very quiet for our device this is extremely welcome! Can't wait to try this out.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tomascus:
Can you guys using the dual sim variant try this build:

https://mega.nz/#!5FFBhCgZ!BR1ktarVFa3EkdRQ62HYe0ND1NFnspqMIPPrPGS2KVg
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] rajackar:
Can't flash my phone right now as I need it but will try later.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] miffymiffy:
Exact same mate.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tomascus:
Slim boots though Yea?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] ValKyre:
1 issues bro...

.

when touch screen. all big cores and all min cores always run at 1056mhz & 1036mhz.... help u can fix it bro.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tomascus:
It's not an issue. The PowerHAL boosts the CPU frequency on interaction to prevent dropped frames/stutter. You can see the same behaviour on stock if I recall correctly.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] rajackar:
Is it better to hold off dual SIM testing for now?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] miffymiffy:
Yeah, slim runs great. It booted into rom once but instantly displays power off and reboots to twrp. Still not able to adb
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tomascus:
Yeah, gonna have to hold off testing until I have a better idea what's going on next month :(
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] miffymiffy:
So, i got it to boot. I flashed slim, let it set up. Then went back to los and it boots..

Seems as soon as my USB is unplugged, it shuts off and goes to recovery. I cant get a log of the error for obvious reasons. I can try something like syslog.

Now it doesnt let me boot! Frustrating.

On a positive note, it was working really well whilst plugged in
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] MadMungo:
Will try this in a day or two. currently running Slim 9.0 Alpha 6 on dual sim phone. Only problem is low call volume using bluetooth devices.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] MadMungo:
Well I am back from testing on dual sim device.

Unfortunately I experianced the same as [MENTION=472058]miffymiffy[/MENTION], It boots to setup screen but instantly shuts down and reboots into recovery. Happens after a clean install and when installing over Slim 9 Alpha 6. Tried it with the single and dual sim versions
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] rajackar:
I couldn't resist and did a test too.

Exact same result. Slim is working ok.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tomascus:
Can you guys please flash the following ROM and get me a logcat from the point the phone starts booting up til the til it reaches the setup (lineage) window

Also, does it detect SIM card?

https://mega.nz/#!Vc1lVIQZ!aWuJobQ8EL2kYQ6UA9_PtEzB967Za3HapjVlkNN1WXU
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] rajackar:
Sure! I'll give it a go.

Let me do a nandroid and try it. Do you prefer dirty or clean flash?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] _lx:
Works!

Thank you [MENTION=4675360]tomascus[/MENTION] (and [MENTION=4350964]Flinny[/MENTION]) for providing a fresh and working LOS upgrade for ocn! :victory:

After reading about the struggles with TWRP, I flashed it to 3.2.3.0 effortlessly.

After flashing LOS & OpenGAPPS, I had to wipe the externalSD partition though - but that was okay, as it may happen to be done for every major update.

I found the first setup somewhat behaving unintuitively then:

It somehow started twice or so - all while I was still entering my SIM PIN :confused:

Having survived this slight mess, it's working flawlessly atm! Even bluetooth and device encryption!

I really like the redesigned functionality of Pie.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] RandomPooka:
The TWRP struggles only come into play if you dug through the device settings after install and tell the OS to encrypt your data. It will be fine if you run unencrypted, and many of us don't have apps that demand encryption. It won't be a problem for us.

The startup thing happens for me, too. It stops restarting the setup app eventually, and then I can finish setup. Didn't seem 9 have any negative effect after the setup completed, though.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tomascus:
Yea, trying to figure out why it does that....

EDIT: it's coming from the kernel, will fix next release
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Hentioe:
There are two minor problems:

1. After the reboot, the Gboard input has no sound of keypress.

2. The flashlight (notification drawer icon) can not be turned on occasionally.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] InsaneNexuS:
Awesome! Can't wait ;)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Lody_B:
Hello there,

I read in this tread about TWRP issues in combination with a encrypted phone.

Now I've got both(TWRP and encryption). How can I decrypt my phone and set it up to use this rom?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tomascus:
1. Backup all data (including internal sdcard)

2. Full format in TWRP

3. Flash ROM
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] RandomPooka:
You can't just wipe /data either.

You need to format data using the option on the right in the wipe menu.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] rajackar:
Adding one more thing on encryption. You can encrypt the phone after flashing the ROM but the current twrp will not let you decrypt your data partition. This will make flashing anything else a bit more difficult as you can't use the data partition the store the thing you want to flash. USB otg should work. Maybe external SD (haven't tried that).

If you have a pc using ADB sideload works too, this is how I flashed the latest update and magisk.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] xujiao001:
hi, would you plz repair the update-script ，the flashing verify can not pass, thanks.

updater error 7:this package is for htc_ocn,htc_ocnuhl,htc_ocnwhl,htc_ocndugl; this device is htc_ocndtwl.

and hope the network setup is global when first start the rom so that everyone could find the signal in different SIM card.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tomascus:
Are you using the correct ROM? Because I don't see any issue with the update-script.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tomascus:
Hi all, a new update is out.

I won't be releasing another update until I can get either of the two main issues (USB dongle and Encryption) sorted. I've spent a lot time trying to figure out the issue with Encryption but I've been quite unsuccessful, it will be fixed in the future though.

Anyway, to summarise some of the changes, the most notable include:

Update proprietary blobs with stock 2.42.617.1, bringing vendor security patch level to 2018-11-01. Need to double check if I broke dual SIM or not

Haptic feedback can now be controlled for squeeze gestures and screen gestures separately. It also won't vibrate on screen gesture detected if none has been configured.

Autobrightness calibration has been tweaked to be less biased towards higher values. The values we used were straight from stock but seem too overly aggressive for use here. Additionally, autobrightness now reacts quicker to changes in ambient brightness levels. These values are personally fine for me, but feedback would still be appreciated.

The autobrightness calibration changes can be represented visually in a graph:

'Full' changelog:

- Blobs: Update proprietary blobs with stock 2.42.617.1, bringing vendor security patch level to 2018-11-01
- Gestures: seperate haptic feedback control for screen gestures and squeeze gestures
- Kernel: disable a lot of debugging options
- Kernel: remove force vibration on screen gesture detected
- Kernel: use CONFIG_HZ=300
- Overlay: reduce auto brightness response time
- Overlay: tweak auto brightness values to be less biased towards higher values (See: [url=https://drive.google.com/file/d/118JR8o5mQVRllbzqJs95XWMEOI3yfLoA/view?usp=sharing]This graph[/url])
- Revert "ocn: update gps from LA.UM.6.4.r1-11500-8x98.0" as it was causing GNSS to crash
- Update bthost_ipc with LA.UM.6.4.r1-11500-8x98.0
- Uprev health to 2.0
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Petert87:
Just installed this ROM yesterday. Thank you so much!

Just one question. Is the lockscreen a little different from Pixel of Android one? There are no shortcuts from assistent or camera on the lock screen. And the clock is bold instead of plain. Is there a way to edit?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] xujiao001:
so sorry, I get the wrong point, flash the old old old 15.1 version. and now thats the new lineage 16.0 and the new wrong code as the pic
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] rajackar:
When it comes to encryption, the issue I reported on is purely twrp related.

The issue can be circumvented by flashing using ADB sideload.

On another note. Do you think is is possible to port the HTC camera from the stock rom?

I'm using the gcam now and while photo quality is generally good the audio quality for filming was very bad in a loud environment. The HTC camera works a lot better. Obviously not a very high priority but it would be a nice to have if it's possible. I tried getting the APK and installing that but it wasn't that simple as the camera refused to launch.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] InsaneNexuS:
Just dirty flashed latest version. No issues so far on my dual sim variant :) Only thing I noticed is the double tap to wake doesn't give haptic feedback. Atleast the other haptic feedback bug is fixed now! Amazing work Tomascus!! Keep it up! :D
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tomascus:
How can you be so sure the issue is TWRP related? When I try encrypt and read logs, it appears to use SoftwareWrappedKeymaster1Device from Google to encrypt instead of whatever Qualcomm thing it's meant to use. I'm not sure that's correct behaviour from devices that shipped without Pie, but i'm sure it's incorrect behaviour for devices that do ship with Pie. I would need another device to double check or get someone to post logs of them encrypting their devices.

Here's HTC Camera for you, need magisk too: https://www.androidfilehost.com/?fid=11410963190603900883

None of the camera audio features are present, possibly because of missing HTC framework etc.

I swear it worked last time I tried it, hopefully I didn't do another derp :silly:

Can you try flash the latest TWRP? https://twrp.me/htc/htcu11.html
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] miffymiffy:
If there is one thing I can ask, is it possible to dim the backlit buttons? At night, they are blinding.

Edit: Sorry, dunno how I missed that!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] rajackar:
Well, I'm not 100% sure as I don't have the insight that you have. I concluded this from a thread on the pixel that had the exact same issue and this was fixed with a specific TWRP update that is only available for those devices. This is of course far from a final conclusion. ADB sideload is ok as a workaround for now.

Cool! I'll give that a try. Thanks.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] nioonline:
All working fine here(latest build clean flashed)

confirmed bug : when i disable squeeze gestures and haptic feedback of screen off gestures phone freezes after some seconds.

please do confirm. (apart from that excellent work)

Thank you very much
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] biker57:
[MENTION=4675360]tomascus[/MENTION] I've been following the thread for a while and want to confirm something now that I'm getting close to pulling the trigger and flashing your rom. Since there continues to be questions about encryption I believe from what I've read all will be good as long as I format data in TWRP prior to flashing the rom/gapps/magisk.....am I correct?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] rajackar:
Just updated and it's all working perfectly!
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] RandomPooka:
That is correct. It doesn't become an issue if you have an unencrypted data partition, and formatting data leaves it unencrypted. Unless you manually encrypt after that in the security settings page, this will be a complete non-issue

---------- Post added at 04:32 PM ---------- Previous post was at 04:25 PM ----------

Can confirm the software vs hardware key issues. I'm not familiar enough with encryption and the code in android to know how to get the OS to encrypt using a hardware key. Even if we could, our hardware key might still be the wrong key to use, since the U11 doesn't have a stock Pie ROM. There's enough different wrong combinations that it's hard to troubleshoot. Even if we had it encrypting with hardware based keys, would it be able to be decrypted by twrp, that's looking for the Pie stuff and not Oreo keys? Don't know.

Was testing some very not released twrp builds (so nobody needs to bother asking for them), and it's gone nowhere so far.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] InsaneNexuS:
Is there a way to make the HTC camera able to save to sdcard? Everytime you choose sdcard it just keeps saying "no sdcard found". The snap camera however does work fine with sdcard selected as storage.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] RandomPooka:
New hotness from Captain Throwback..

TWRP with working decryption for lineage and for stock oreo.

https://drive.google.com/open?id=1vpkG_PuO1exx_CaMAQh3Hp8CKPt6NRtv
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tomascus:
Wowwwwww and I spent hours trying to figure out what the issue was in the ROM..

Is there source code available somewhere? Also, mind if I post this up in OP?
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Mikee4fun:
I flashed this last night and it is the best working pie ROM available. I have run into a couple small bugs. When the phone is connected to the computer for file transfer intermittently reboot. The phone also rebooted on its own but it was restoring my apps on first setup . The stock text messaging app chronically popped up multiple notifications until I forced closed it. To solve that issue I simply removed it via team win recovery project and I didn't need that messed up teeth have anyways because I use Android messages. I get a chronic I sim1 is HD compatible message which cannot be hidden.

VoLTE works for me but no Wi-Fi calling.

The default Google dialer cannot be updated through the play store and even with magisk Google dialer framework. You have to sideload the updated app.

When scrolling through the feed on the Google app it closes and doesn't give a FC notice.

The battery life doesn't seem to fantastic but I'm going to let things settle down for a couple of days.

Everything else is working very well.

[MENTION=4675360]tomascus[/MENTION] good job man everything's working pretty. do you think you can implement in the future with edge sense screen off and screenshot?

Cheers
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] RandomPooka:
Go for it. He tried to post it on the TWRP thread's download tab, but couldn't. So, I was asked to spread it around here, and at the Slim and TWRP threads.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tomascus:
- "Random reboots"

- Never experienced, but gonna need logs from /sys/fs/pstore/ next time this occurs to investigate the issue​

- "stock text messaging app chronically popped up multiple notifications until I forced closed it."

- Probably an app bug(?), I don't have control over these things :silly:​

- "chronic I sim1 is HD compatible message"

- Working as intended, the message can be removed in /system/priv-app/ims/ims.apk by decompiling and removing whatever displays it​

- "The default Google dialer cannot be updated through the play store and even with magisk Google dialer framework"

- The default dialer has a different package name from the actual google dialer, so i'm assuming it's not exactly the same and hence why it's not able to be updated​

- "When scrolling through the feed on the Google app it closes and doesn't give a FC notice."

- Need logs showing crash otherwise I can't do anything​

- "The battery life doesn't seem to fantastic but I'm going to let things settle down for a couple of days."

- See how it goes :good:​

Probably, just decompile the apk and reverse engineer from there
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] Mikee4fun:
[MENTION=4675360]tomascus[/MENTION] I'll see if I can get you logs from adb shell later tonight. ?

Update*** A reboot fixed the Google app from closing on its own.

Cheers
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] rajackar:
Wow! This is great news!

Thanks for taking this up.

It's great to see the community on the U11 come to life around this rom :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] tomascus:
I had a much better time back when we were developing Cyanogenmod on our Xperia Z3. There was around four of us working together and sharing ideas, it was much more relaxing than now. It's much more challenging working on a device like this with less help and can even be frustrating at times, but everything will be fixed............ eventually. (Thank goodness Flinny is also here to help out).

Anyway, the issue with the Type-C to 3.5mm audio jack is partially solved. You can insert and disconnect the audio jack as many times as you want without it getting stuck. The issue now is that it refuses to route audio to the earphones, which i'll be looking at in the upcoming days.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] lightcao:
https://github.com/CaptainThrowback/android_device_htc_ocn/tree/android-9.0

This looks like the repo for it.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] RandomPooka:
I didn't do the work. I was just testing as Captain Throwback attempted to get it working. My knowledge of encryption ends at how to spell it.

---------- Post added at 10:32 AM ---------- Previous post was at 10:30 AM ----------

I believe so, yes.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] rajackar:
I can imagine.

I wish I had more knowledge around this but I can do little more than test.

But do know your work is greatly appreciated and valued :)
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] HapRow:
I can't use LTE,i mean it can't Auto became LTE,only choice LTE only, LTE work.
[HTC U11  ROMs, Kernels, Recoveries, & Other Develo] InsaneNexuS:
New changelog? Damn can't wait for 20th of January :D Keep it up [MENTION=4675360]tomascus[/MENTION] !!