yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] EtherealRemnant:
Hmmm... I don't think this ROM likes my 10. I flashed stock US unlocked Oreo RUU, followed all instructions, got first boot to come up and did the first time set up, rebooted the phone. It started to load and then rebooted, started to load and rebooted a second time, and its now been sitting on the boot screen for over half an hour. I'll leave it there to see if it eventually finishes up but oof. I didn't install Magisk or Gapps because I don't want them.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] lotem1995:
I just flashed this rom according to the instructions (I used fagyi L18.0 build) and it seems that it doesn't recognize the sim card (worked fine on fagyi's builds). Any suggestions?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
This is a bug in this ROM, as well as fagyi's. The only workaround for now is to reboot the phone. Sometimes you have to reboot more than once.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] lotem1995:
well...that didn't work...moved back to crDroid... if needed, I can flash this rom again and send needed logs/required info about my device. Thanks for giving life to my 5 years old smartphone!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] krpovmu:
Hi @raul16 I rooted my HTC 10 and the phone is S-OFF and unlock, when I tried to install your image or any other image the phone is in soft bootloop even though I can enter to bootloader and TWMP without problem but when I install any other images the phone never start, can you help me?

Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
I can see that your firmware version is 2.42.651.6 which means its Nougat [Android 7]. You must be on 3.xx.xxx.x Oreo firmware [Android 8]. Then you can flash this ROM or any other ...

read this thread as same issue have been solved and solutions provided.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] krpovmu:
I tried the steps on #161 but the phone shows
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
steps are good, the image is not for your CID / MID (phone model) so you have to search for your model the correct RUU. several links were also provided where you can look.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
Judging from your firmware version OS-2.42.651.6, I beleive your phone model is Sprint HTC 10. So you need to flash Sprint's firmware. Here is the thread link for updating Sprint HTC 10:

https://xdaforums.com/t/ruu-firmwar...nt-htc-10-3-18-651-3-updated-4-17-18.3379257/

Let me just make it simple for you. Download the core firmware zip (110 MB size) from the following link:

2PS6IMG_Sprint_3.18.651.3_signed_firmware.zip | by OMJ for HTC 10

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com

Flash this by SD card method (rename zip to 2PS6IMG.zip, copy to SD card, put in phone and boot to Download Mode).

When it succeeds, download the complete firmware (2 GB size) from the following link:

2PS6IMG_3.18.651.3_RUU.zip | by OMJ for HTC 10

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com

Flash this complete firmware with SD card method too.

Once it is done, and your phone boots up Adrdoid 8, you are good to go. Now you can proceed with the procedure of flashing custom ROM (unlocking bootloader if needed, flashing TWRP, etc. etc.).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
new build available lineage-18.1-20210814-UNOFFICIAL-pme.zip

log:

August 2021 Security patch

los: upgrade A11 from r39 to r40 build RQ3A.210805.001.A1

pme: device & kernel code fixes & optimizations

pme: update blobs for media/display/graphics
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
Thank you very much for your amazing work. I really appreciate it.

There are a few bugs in this build (20210814) as well as previous build (20210712).

1. Sometimes when I reboot, auto-rotate doesn't work. I have to reboot again in order to make it work. Sometimes, I have to reboot a number of times to get it working. This is just like the cellular network bug. I play racing games so I rely on auto-rotate.

2. The audio effects have the same bug. I have to reboot to get them working.

3. With this latest build (20210814), another bug is that audio is not routed to headphones, even though the headphones icon shows in the status bar. This wasn't in the previous build (20210712)

4. I had one random reboot with the latest build once so far, so I guess this bug is back again. It was fixed in the previous couple of builds though.

With all these bugs, I have to reboot a huge number of times in order to get everything working properly.

So far, the build (20210622) is the best with none of the above bugs.

P.S. I have the phone rooted with Magisk. I flash the ROM, GApps (basic) and Addons, and do the initial setup. Then I reboot and root with Magisk. This is what I have been doing all along with previous builds and have had no such bugs. I hope this info helps.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
thank you.

I've just (re)tested all your mentioned issues on my htc 10 and could not replicate none of them (1-3) and 4 did not happened since 0712. I'm using it as my primary phone currently.

i use NikGapps core 0718 + addons [YT & Music vanced, Maps], rooted with Magisk 23.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
Alright. What is your firmware version? Since I'm S-Off with SuperCID, I can flash any firmware. I will try the same firmware version as yours and see if there are still bugs.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
OS 3.16.401.2
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] krpovmu:
Thanks @shadabkiani and @raul16 everything worked as your said, But after installed the image Phone is asking for a password that I never set, any ideas? Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
data partition is encrypted by the oreo RUU and to get access you have to format it in TWRP. only wipe does not get rid of encryption !

reboot to recovery. do a factory reset and do format /data partition. reboot to system and you should be able to do the initial LOS 18.1 setup.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
Install TWRP, do Factory Reset. Then Format Data, the option wheere you have to type "yes" to confirm. Reboot recovery, and then wipe /dalvik /system /data /cache. Then you can install custom ROM.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] brickhayabusa:
vulkan working on latest build?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] garoand_ran:
Where is the detail about Known Issues?

I can't find it on this thread
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
The issues aren't very critical, but they are these:

1. Battery percentage indicator displays less than actual capacity. When you plug in your charger, the percent doesn't go up by more than 3-4% so it seems the charging is stuck, but the phone is actually charging. The workaround for this bug is posted in post #76

2. Reboot takes long time sometimes. It keeps rebooting sometimes maybe even 3 or 4 times before finally booting up.

3. For some, after a reboot, SIM network asks for unlock code, you don't get any signals. The fix is to just reboot the phone. Sometimes, you might have to reboot 3 or 4 times.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] garoand_ran:
How about this?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
Yes, these too. They are present in every single custom ROM of HTC 10.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] garoand_ran:
Yeah, I want to know the detail about those issues.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
Well, what else do you wanna know? Apart from the fact that these bugs are there, I can't tell you anything more about them. And consideing the fact that they are present in every ROM of HTC 10, the hope of getting them fixed is pretty slim I would say. Let's see what the developer @raul16 has to say about it.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] garoand_ran:
Which issues caused those IMS - VOLTE and SeLinux permissive as a bug?

I just got HTC 10 recently then gonna flash the OS either stock or this ROM
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] lpedia:
You will have to flash the latest stock OS before you try this custom ROM, in any case, as specified in the first post of this thread: "2. before installing make sure you are running the latest stock Oreo from the latest HTC Sense."

So I suggest that you flash the stock ROM immediately. Use the device with that ROM for a while to become familiar with it. Check for the issues that are said to be present in all ROMs for this device. Then, when you flash the custom ROM, you will know whether it has introduced new bugs (or fixed any, for that matter).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] brickhayabusa:
Have all of those issues too
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
Yes
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ondrasouk:
issue 1 Is now less severe for me. The battery percentage over time goes up and the reported battery percentage is always lower than actual.

issue 2 has maybe something to do with Magisk or GApps, because when i was testing latest build, my phone had no problem booting up on the first try.

issue 3 is bug, that i have never encountered. I have no PIN set on SIM. Sometimes after random reboot the phone is in airplane mode, but after toggling it off everything work normally.

I have encountered one more issue. Sometimes my HTC 10 is stuck at loading splash screen. I have once saw the exact moments before that happens. The screen blinks and after few minutes the phone lits again with the loading splash. I waited one day and nothing happened, the splash screen was still moving and the phone was still running hot (it was connected to charger).

I have installed build 20210712, NikGApps basic, Magisk and I am using data recovery through seedvault backups (with OAndBackupX for selected apss that report, that cannot be backed. I only do backup of apps that are not system.)

PS: sorry for my bad english.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
new build available lineage-18.1-20210912-UNOFFICIAL-pme.zip

log:

September 2021 Security patch

los: upgrade A11 from r40 to r43 build RQ3A.210905.001

pme: device sensors, init code fixes & optimizations

pme: kernel BFQ I/O scheduler & other code fixes
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
Thanks for the update.

But the reboot loop issue is still there. And my phone panic rebooted as well 3 or 4 times since I installed the build less than 12 hours ago. All happened while performing normal activities, not the heavy ones. Like opening file explorer, etc. In previous build, it only happened when doing heavy tasks like opening Aspahlt 9, or doing mukltitasking in apps. Also, that was fixed by running my phone in 720p resolution insted of default 1440p. However, in this build, even 720p resolution doesn't seem to reduce stress.

The following logs have been attached:

adb shell su -c "cat /sys/fs/pstore/console-ramoops" > console-ramoops.log

adb shell su -c "cat /sys/fs/pstore/dmesg-ramoops-0" > dmesg-ramoops-0.log

adb shell su -c "cat /sys/fs/pstore/dmesg-ramoops-1" > dmesg-ramoops-1.log

adb shell su -c "cat /sys/fs/pstore/pmsg-ramoops-0" > pmsg-ramoops-0.log
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
could not replicate your issues. no crash / reboot in daily usage - I've started using 0912 as main phone on 13/09 (!)

dmesg-ramoops provide some insights on what happened:

Spoiler content hidden.

besides LOS i have installed NikGapps [0815] core, gmail, maps, YT, Google, Netflix. Magisk 23.0 (with hide enabled) for passing CTS. No other modules installed as no need.

what configuration do you have / use ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
My configuration is as follows:

Firmware 3.22.970.9 Japan (I recently flashed this. My original was WW though)

LineageOS 18.1 Build 20210912 (latest)

NikGApps Basic 20210815 (latest)

NikGApps Addons (GBoard Gmail Calculator Calender Maps Photos Wallpapers PlayGames)

Magisk v23.0 (latest, the one that requires flashing patched boot.img)

Advanced Charging Controller (ACC) module with app

I replace stock fonts (all Roboto ones in /system/fonts/) with Lato

I also replace bootanimation with Google Pixel's

P.S. The panic reboot/bootloop usually happens more frequently when I flash new build and set up apps and other stuff. But once the phone is all set up with apps and everything, it usually doesn't happen that much. Like I told you in the first 12 hours, when I was still installing apps and setting them, it paniced like 4 or 5 times, and often ending up in reboot loop. But now in the last 12 hours, everything seems to be OK. I am playing Asphalt 9 like usual frequently and it's all good.

Maybe I should try different firmware. The WW one that was originally there in the beginning.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
if panic / reboot happens only when you do new apps install / setup I would recommend to keep on using it (as seems stable now !) and monitor if will panic/reboot again while you use it for next few days.

PS:

our kernel for msm8996 ( 3.18.140 ) still misses some upsteam commits that other siblings (like OP3/3T or Leeco X2) have for various code bug fixes (including I/O schedulers).

once we could identify more accurate which kernel module throw these errors the fix could be found / applied ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
@raul16 Yeah, the same used to happen with previous builds too, but it becomes stable in a day or so. I have also decided to stick with 720p resoultion as the performance plus battery life show significant improvement. I also monitor RAM usuage, and it is improved with 720p.

What about your battery indication? Does your battery percentage show correctly? Or is it another bug that only I'm facing? (I use ACC module to fix it)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
battery UI displayed % is still an open issue only on charging as the values displayed seems to get stuck to a lower value after some time and does not show / read the real SOC value (!)

after charge (full or else) the UI % is aligned with the SOC value (max deviation of 2%).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
You mean when you unplug the charger, it shows correctly then?

This doesn't happen with me. It gets stuck there. When I unpug the charger,it still stays there. I keep using phone. Once the actual % gets down to the displayed stuck value, then it shows correctly, and drops down accordingly from there upon use.

To fix that, I use ACC with setting such as it charges for 50 seconds then pauses for 10 seconds. That way charging is refreshed every minute and percent goes up correctly.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
same here.

i did not install ACC as I just unplug and replug my charger when i notice the stalled value and then the % value jump to the actual correct one ;) so in the end it ends up showing 100% ...

I is more elegant with ACC but i didn't install it so that i will find some time to proper look into it and fix it !
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] KEB64:
Do we still need to uninstall magisk when flashing the latest version since the january build? I'm on that now. (01-15)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
yes
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] KEB64:
Thanks for the reply. Is it just uninstalling the apk? Assuming it is, do I need to flash the zip again after re-installing the apk? Or is there something else I need to do to get rid of the zip install?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
No. you do not need to uninstall the apk.

in recovery mode, before flashing the new version, uninstall only the magisk.zip (rename the magisk*.zip to uninstall.zip and install it), before that you should uninstall all modules you have installed.

after you install rom and boot OK you can just reinstall magisk.zip via TWRP. the apk will survive and see magisk OK so you can reinstall your modules again (if needed)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] KEB64:
Much appreciated! Thans for the detail.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] KEB64:
Works like a charm! Battery life seems improved as well. Thanks again!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bermano:
just wondering, anyone try nfc feature with this ROM?. I currently using htc10 with LOS 16. my only problem is nfc feature doesnt read a tag, but its work perfectly to transfer a file into another nfc phone via nfc beam. thingking to try different upgrade. is it rom / kernel related? :D

Thank you
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] KEB64:
I don't have any tags myself, but I do have Google Pay set up. NFC activated. Haven't tried it yet but when I do I can report back. I would think if that works then tags would work. Beaming files is different (I think). Can't hurt to make a backup of your system and give it a shot.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] KEB64:
...assuming Pie is based on the same partition scheme. I can't remember. I came from LOS 17 just fine with a clean install.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] GoodKingWenceslas:
After about 6 hours, I have managed to update my HTC 10 from Oreo 8.0.0 - thank you for the great work. In return, the least I can offer is a summary of my challenges.

1. The instructions on posting #1 were very specific but for someone new to Android (but with decades of experience with computing), there was not enough detail so I relied on other sources. I followed posting #1 as closely as I could.

2. Some of the files needed were missing and I had to find alternate sources. The hardest file to find was probably the "HTC Driver" that worked with Windows 10. I found it here https://www.windowsdrivers.org/htc-fastboot-usb-driver-download

3. I could talk with the phone but I couldn't get into "fastboot" mode because it no longer exists. It's now called "download"

4. I could not unlock the phone because I did not have the "HTC Driver" - basically, retrieving the oem information would not work unless "HTC Driver" was installed ... however, you could put the phone into fastboot mode

5. I finally managed to install the TWRP recovery software but when I tried to reboot, the phone locked up. That's when I discovered I needed to hold down "Volume Down" and "Power". After about 10 seconds the buttons flashed and after another 5 seconds, the phone rebooted.

6. I couldn't work out how to get into recovery mode (I rebooted, selected the boot menu, boot recovery)

7. I went into wipe, wipe file data, wiped the other internal partitions.

8. I rebooted so I could copy the files to my external storage card via the phone.

9. When I went back into Restore mode, I installed LineageOS 18.1 (September Edition) and Google Apps. After I rebooted, a warning message appeared (which i didn't expect). The screen went blank and 20 minutes later, nothing happened. I tried to recover (Volume Down and Power) but this didn't work. I then realised that I had to hold the buttons down for about 20 seconds (rather than 15 seconds) and there are no flashing buttons.

10. I re-wiped everything and only installed LineageOS and rebooted and it worked fine.

11. I went back into recovery mode and installed Google Apps and rebooted and it worked fine.

As a side note, the process for unlocking the phone was a pain, but in small ways. If you didn't select using the ALT key, you'd end up with "(bootloader)" in the middle of your device information and the unlock process would not work.

But .. in spite of all of that, it worked. For a person who has almost never used Android, 6 hours is probably a reasonable expectation.

I hope the information helps someone else. Basically, follow the steps in post #1 carefully ... but if you don't understand, look at other instructions, specifically for the HTC 10.

GKW

PS Running the OS for the first time takes about 4 minutes. Running the OS with Google Apps installed takes much longer ... but you will see an animation (lines and a circle) on the screen if everything is working fine.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] KEB64:
Welcome to the world of custom ROMs. Next time should take you 30 min. to do the install.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Qaqee87:
Only android 8.0?

My HTC 10 is 7.0 now : (
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
you must upgrade it to Oreo [android 8] first. check for updates maybe you can still find the HTC servers up and able to upgrade officially !

if not, check the HTC 10 thread(s) where you should find required htc Oreo RUU for your specific CID & MID.

don't forget to do first a full backup of your system + data.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] GoodKingWenceslas:
Thanks for the welcome.

If I were to do this process again, 30 minutes sounds about right.

I have a few questions I hope someone can help me with.

#SDCard Corruption

1. For some reason, my 64gb memory card corrupted. I reformatted it and it seems ok.

Q1: Is corruptions of SDCards normal?

#Upgrading to a newer LineageOS - easiest method?

2. If I upgrade LineageOS, I assume I download the new ROM, erase the partition and re-install LineageOS. Is that right? LineageOS also asks for the backup (to restore) when it's first installed. Is that a SeedVault backup?

Q2: What's the best way to restore my data if I upgrade LineageOS?

#"Free Up Space" when I have 32gb (Internal) and 60gb (External)

I managed to install Brave Browser using Play Store. There was an update and when I tried to update, LineageOS said "Free Up Space" (despite having many gigabytes of free space) I uninstalled Brave and tried to re-install Brave. Play Store still said "Free Up Space". Brave was installed in Internal Memory.

Q3: Does anyone have any suggestions on what's happening here?

#What is Magisk?

I read the description of magisk. It talks about rooting the phone. Can someone explain in simpler terms what this tool actually does (ie. If it's not installed, I can't do XXX ... or If it is installed, you can now do XXX). I vendor unlocked my phone. I could install TWRP and LineageOS ... so in theory, I should have full control of the phone... right?

Q: Do I need Magisk?

Thank you for any help anyone can give me. Q3 is probably my biggest problem right now (ie. I can't install any additional apps). I am very comfortable wiping everything and starting again ... but if that's the suggestion, then the answer to Q2 would be appreciated.

GKW