yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
i charge it with it's original charger; usually it shows some % + and after some time it stalls (indicator) but continue to charge; i leave it charging and after some time it recovers the indicator and start showing from 80% (aprox) onward up to full charge; another indicator that it is fully charged is the charging led (green) that goes off when charging is complete;

you can also check it using adb shell dumpsys battery using your computer; new full battery would be 3000mA capacity but now (+6 years) will report full at ~2600mA if you have a good one...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
I tried now Magisk v23.0, but still having reboot problems with this version.

Then uninstalled Magisk, and reboot problems are gone.

So, now it's up to me, if I go with Magisk now or without - having reboot or battery level problems :)

In the end both of them are annoying - hopefully they will be fixed soon.

What about rooting with SuperSU? Would it work?

Or anything we could provide for Magisk developers, to fix boot problem here with pme?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
next try with new logs
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
Maybe hotspot issue is not a Lineage problem at all. Tested with my company mobile S10 with Android 12 few days ago, and here it is also not working (car is not using internet connection from connected mobile phone). Maybe a setting issue, but could not imagine which one.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
Hi,

have new issues with build 20220507. Do you also have them?

#1: Spotify

Spotify app (8.7.34.1312) is not working anymore. My library is empty and also the public playlists from Spotify itself are empty. When I open a suggested playlist for me, it says that it is empty together with a "Start" button.

-> It was already working with the same LineageOS build

-> On other mobile phones with same Spotify version it is working

=> please see Logcat_Spotify.txt

#2: AudiFX

When I open AudioFX app, nothing is shown.

Some exceptions found in logcat afterwards.

=> please see Logcat_AudioFX.txt

E AndroidRuntime: FATAL EXCEPTION: main​

E AndroidRuntime: Process: org.lineageos.audiofx, PID: 3157​

E AndroidRuntime: java.lang.RuntimeException: Unable to start service org.lineageos.audiofx.service.AudioFxService@ff71cef with Intent { act=android.media.action.CLOSE_AUDIO_EFFECT_CONTROL_SESSION cmp=org.lineageos.audiofx/.service.AudioFxService (has extras) }: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.lineageos.audiofx.service.SessionManager.removeSession(lineageos.media.AudioSessionInfo)' on a null object reference​

...​

and

E AudioFxService: Failed to initialize defaults!​

E AudioFxService: java.lang.RuntimeException: Cannot initialize effect engine for type: 0634f220-ddd4-11db-a0fc-0002a5d5c51b Error: -3​

E AudioFxService: at android.media.audiofx.AudioEffect.<init>(AudioEffect.java:521)​

...​

Thanks regards,

Chris
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
on AudioFX issue please see post #376
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
you mean, flashing the same version again?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
on Feb 22 build the AudioFX app is OK. the issues started with Mar 22 onward only if you flash it clean.

if you update on top of Feb 22 no issue. so you can try flashing Feb - check all OK and then update to current version (flash on top).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
Updated to lineage-18.1-20220213-UNOFFICIAL-pme.zip

- AudioFX working again

- also Spotify OK -> playlists not empty anymore and in Spotify settings my profile name was shown with real name

Now back to lineage-18.1-20220507-UNOFFICIAL-pme.zip

- AudioFX is still OK

- Spotify again NOK -> playlists empty, and in setting profile shown with kryptic name
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
as expected. did you reinstall spotify after updates or clear app data/cache after going back to may build ?

as long as the profile (user) is not correct all lists should be empty...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
Yes, tried both of them after going back to build from May, but did not work on my side.

Spotify only working up to build from March, starting with April it is broken.

Also reboot problems with March build are less than compared to May build.

Will stay with March build + Magisk for now.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
OK.

from log provided on Spotify the NPR is due to a call in libc (!)

if you can check same but on latest LOS 19.1 (clean install) might help to narrow down the core issue
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
Updated to latest LOS 19.1.

AudioFX and Spotify are working out of the box.

I think I will stay on 19.1 now, and will also check my other issues from 18.1
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
Good.

FYI - it is fixed on 18.1 as well now - will upload new build once June security patch published for Lineage.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
new build lineage-18.1-20220610-UNOFFICIAL-pme.zip

June 2022 Security patch

fix audio apps (AudioFX, Spotify)

remove kernel deprecated/ unused drivers
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
new build lineage-18.1-20220712-UNOFFICIAL-pme.zip

July 2022 Security patch

pme: increase ZRAM to 2GB
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] siuishere:
Hi @raul16 , just to say thanks and report that SafetyNet fail in this build. Is this correct or did I install it wrong?

thank you
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
Safety Net is just fine here. Validated with YASNAC.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
Hi,

any updates/progress with battery charging indicator issue?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] siuishere:
Thanks @raul16 , my bad. Always mixed up Safynet and SESlinux, dunno why
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
new build lineage-18.1-20220805-UNOFFICIAL-pme.zip

August 2022 Security patch
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
last build for Android 11 [discontinued] lineage-18.1-20220910-UNOFFICIAL-pme.zip

September 2022 Security patch
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] amal vajdan:
Thank you for all the support brother <3 appreciate it
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] HTC-Padex:
Thank you for this great work!

After some years I'm back here in this forum again.

I've bought a really cheap HTC 10 with bad battery to test a backup before wipe it and set it to default preferences, but then I saw this option to upgrade Android from 8.0 to 11 or higher! Cool idea.

Why I would reset my HTC 10?

I had a small optical/graphical bug in the German App eBay-Kleinanzeigen (some lines were dissapearing while you scrolls up and down, it was really annoying!) and first I thought of a configuration problem of old HTC files and Android 8 and google Chrome that engine makes the graphic, isn't it?

But although a new installed and clean startup of Android 8 has this bug on the HTC 10, so I decided to test this ROM!

Most of the August-Security-Version works fine (the september file was down in that night).

My little questions:

Is it possible to get back the old HTC camera app to work on Android 11? Installed version uses mostly to dark display brightness control and I can't set an individual ISO.

What about the Boom-Sound enhancements?

A little problem I found in battery recognition. In system tray an over the app "AccuBattery Pro", often the actual percentage hangs while HTC is pluged in (charge mode). At the moment I charged via USB analyzer from 1% near to 85 % (1350 mAh), but it shows only 7 %
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] AlinTecsan:
it is normal the phone to shut down improperly or drains the battery very high?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] HTC-Padex:
No, the battery drain is as usual. I haven't recognized improperly shutdowns. Only a hanging battery indicator while charging
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
No - all stock Oreo HTC apps relies on sense framework which is not available on LineageOS (AOSP).

you can use apps like GCAM, Wavelet or Viper to same or even better outcome.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] HEARTLESS ROMEO:
I installed this rom in my htc 10 and now i want to change bt i can't go to recovery now. Can someone help me?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
You are in LOS 18.1 recovery actually !

when you have done initial setup you have checked Update Recovery with System and that was overwritten TWRP as recovery with Lineage Recovery...

Now you have to re-flash TWRP image using PC via ADB into the recovery partition. to do that you have to activate debug ADB on your htc 10.

after flash OK you have to boot to recovery - either via ADB or using keys ( vol down + power )
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Marvin288:
Hi raul16! Thanks for your work on supporting rare device.

Can you tell what's the difference between your 18.1 and fagui's?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
thanks ;)

different options & configs for device / kernel.

see post #31 for details.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] lpedia:
Hi, @raul16.

First, thanks for the smooth clean build! (y)

A battery example [Edit: with 20210405 build]: in the 22 hours since last boot, with airplane mode on, bluetooth off, and the device locked for almost all of the time, charge has dropped from 63% to 32%. DevCheck says it's spent 98% of the time in deep sleep. Battery manager is on. No apps used any significant power in that time.

Does the battery % bug mean the reported level is significantly less than it really is?

This device's battery performance always seemed poor even with the HTC ROM, and I never did track down a cause. I don't think it's any worse with LOS. It'd be funny if it just hasn't been able to detect the charge correctly all along ...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
Hi ! Thanks'

your findings are correct and i could not, yet, figure it out why accurate data from soc on battery are not showing. should be related with the healthd getting data from BatteryManager.

if you check battery status with 'adb shell dumpsys battery' and do the math on 'Charge counter' value versus battery capacity you will notice differences that in some cases are+15% (!)

even more the diff % grow as battery is discharging. so it is still WIP.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
new update available: lineage-18.1-20210430-UNOFFICIAL-pme.zip with improved battery performance.

for links & changelog see posts #1 & #2; update via recovery;

important notice for update from my previous version:

if Magisk is installed first must uninstall Magisk and only after uninstall complete should flash the new rom update ! no need to uninstall NikGapps;

do wipe cache / dalvik then boot to system to complete the upgrade;

this update upgrades Android 11 from r32 to r34 (!) so first boot will take longer.

reinstall Magisk via recovery (+ modules used if any) if needed.

Enjoy ;) !
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kiwidudeNZ:
Thanks for the update to improve battery. has the HD audio codecs been implemented yet?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
on device no changes on audio since forked.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] siuishere:
Hello @raul16 , I flashed this version from a clean install, and my phone dont recognize the sim card :( Do not know what to do
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
need a log to comment on what might be the issue...

works fine on mine - VF LTE ok !
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] lpedia:
Thanks for the new build, @raul16!

It has improved the battery performance: charged to 100%, airplane mode on, and left for a little over 12 hours, it dropped to 92%. With the previous build it dropped by ~18% over a similar period of idleness.

So - a lot better, but still not great.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] lpedia:
Oddly enough ... left alone for most of the last 22 hours or so, it has only lost another 5%. So it is certainly retaining charge a lot better than it was.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
yes. getting better in standby.

also stable - got an average of .5% /h on mine for the last 6 days used as second phone [ few calls, messages & notifications ]

and +20% battery still ...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] robnhl:
When I long press on a notification the click "Turn off notifications" the notification management dialog flashes on the screen and then immediately disappears. Logcat attached.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] robnhl:
Update: Seems to only happen on System notifications. I am able to snooze app notifications normally. Also, I can go into the System app screen and disable the notifications.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Digiboog:
same with me, I think the Kernel has compatibility problems with Sprint PME
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
only with the 210430 version have this issue ? worked OK with my previous versions ?

can you get a logcat ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Digiboog:
Yeah, previous versions worked. With fagyi's version too, mobile network disappeared once he started working on a new kernel. Sure, I'd post logs, once I'm home. Had to flash an A10 rom as I use it as my daily driver for now
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
if it worked (radio wise) with version 210405 then should work as well with last one 210430.

RIL changes (that might break Sprint) were done prior 210405 version as new radio driver kanged from Google Wahoo
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] sashoism:
@raul16 The latest build doesn't seem to be available on androidfilehost (https://androidfilehost.com/?fid=2188818919693794794), saying that there are no mirrors found. Could you reupload?

Edit: Found a mirror!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
check this link or just refresh your browser on initial posted links...

seems that AFH was having some issues but now its working (!)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
new build available lineage-18.1-20210516-UNOFFICIAL-pme.zip

log:

May 5 2021 Security patch

upgrade from A11_r34 to A11_r37 [build RQ2A.210505.003]
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] siuishere:
Great and thanks @raul16 ... I am having trouble with any LOS18 rom. I am coming from leedroid... maybe if I go back to stock

Will try later
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
thanks !

be more specific on what kind of trouble you have if you expect some support
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Digiboog:
Exactly, whenever I flashed the old kernel, brought back my network but was quiite buggy. Using my phone as a daily driver for now, so can't really get u logs, but hopefully by weekend, I'd post them
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] destroymp:
Works perfectly! It's so charmful to have a possibility to install Android 11 on my phone!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] destroymp:
Hi there! Have issues with GPS location on Google Maps, used to find my place easily on previous ROM, and get to the wanted location easily without paying for Mobile internet (setting the Way at home Wi-Fi), But now clicking on find me nothing happens, i Even removed Magisk and root access, still the same, may be there is some easy way to fix it i dont know about? Thanks in advance! For now im going to get to the place by memory and old times GPS methods like moss on the north side of the trees! =)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
i just (re)tested GPS and it works just fine. screenshot from gps test app. on wifi. should check if all permissions for location are granted.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
I was having the same issue. I flashed NikGapps' Basic version, and as you know, it doesn't include Maps with it. So I installed Maps from Play Store, and same issue. Location could not be found.

Then I found the fix. Uninstall the Maps app you downloaded from PlayStore. Instead, flash the NikGapps's Addon package for Maps. Below is the link for Addons for Android R. Browse and download the lastest addon package for Maps, and flash it in recovery.

NikGapps - Browse /Releases/Addons-R at SourceForge.net

A Custom Google Apps Package that Suits Everyone Needs!

sourceforge.net

Note: Make sure you download Maps package; not MapsGo. It should be around 40MBs. You can then update the app from PlayStore.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mfuerni:
Thanks for keeping HTC 10 alive!

Unfortunately, recent builds result in a boot loop on my device with encryption enabled.

It works flawlessly with build 20210209, but all newer builds do not work.

I did the following with all three builds (20210405, 20210430, 20210516):

Full wipe in TWRP (using advanced wipe and selecting Dalvik/ART Cache, System, Cache, Data, Internal Storage)

Format data in TWRP

Install LineageOS image in TWRP

Reboot to system and do initial setup (connecting WiFi, setup PIN)

Reboot

Enable encryption, device reboots and works.

Reboot device. It asks for decryption PIN. After entering PIN, it hangs in boot loop.

Using build 20210209, everything works. Let me know if you need additional information and how to provide that.

Decrypting data partition in TWRP works on all builds, even after doing a reset during boot loop.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
thanks'

will look into user data encryption. until fix do not enable /use it .
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
permissive (selinux is still WIP)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
I have found a workaround fix for incorrect battery indicator. It needs root though.

BASIC:

When you plug in your charger, you will notice that for some time (like 2 or 3 minutes maybe), the battery indicator displays correctly, the % goes up a few points. Then it gets stuck there (however the battery is still charging). Now if you remove the charger, and then connect again, the same happens; battery % goes up, then gets stuck again after a few minutes.

SOLUTION:

With the help of AccA, we will disable charging at regular intervals. AccA is a frontend app for Acc module (Advanced Charging Controller). Don't worry, the app will install the module automatically. Download the latest app version from the following link:

Releases · MatteCarra/AccA

Acc app allows to edit acc config file and add a tile to start and stop acc deamon - MatteCarra/AccA

github.com

Install. Run. Grant root permissions. The app will automatically install ACC module. It should now display "ACC Daemon is running". Reboot the phone. After reboot, plug in the charger for like a minute, then disconnect (this is so that Acc gets some charging paramters, otherrwise your settings won't apply)

Now go to AccA app Settings, click on ACC Variant and select Master. The app will now update the backend module to the latest version. This is important.

Click the gear icon (or better create a Profile) and do the settings as follows:

Charging switch: battery/charger_control 1 0 (our HTC only supports this)

Disable 'Automatically cycle through switches'

Enable Cooldown Cycle

Start cooling down at %%: 0 (This will keep this setting on at all times)

Charge seconds: 50

Pause seconds: 10

As you have guessed now, this will make the phone charge for 50 seconds and then pause charging for 10 seconds, so on. You can keep any ratio like 45/15 or 45/10 or 40/5 or 30/20 whatever. I like 50/10 because it doesn't affect charging speed.

The other charging settings under Capacity Control (section at top) are simple to understand. You can set "Stop charging at: 100" if you wanna charge your phone to the full (I keep it 70% because its good for battery as suggested by ACC developers)

Save the settings and try charging. Hopefully your wrong battery indicator will be fixed now.

P.S. Create Profiles for different settings and try yourself. Just make sure to select charging switch "battery/charger_control 1 0" because only this works on HTC 10.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Jupp Pütta:
Is there a similar effect the other way around? I was surprised that the battery % seemed not really go down for quite some while.

But generally the build runs very smoothly on my phone. Thanks @raul16 for keeping HTC 10 alive.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
unfortunately yes :( - the displayed batt % is lower that it should be (!)

see my comments on post #46
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] shadabkiani:
The batery indicator bug in this ROM is this. Lets say your battery is at 15% and you plug in the charger. For a few minutes, the % will show correct increase. Lets say it gets to 18%. Then it will be stuck there, won't increase furthur. However, the battery will keep charging in the background if you keep the charger plugged in. If after some time you remove the charger, your baterry will actually be charged, but batery % would be stuck at 18%. You keep using your phone for some time and it will still show 18%, until the actual charge reaches down to 18%. Its just the bug that battery % doesn't go up after a few points while charging. If you reboot, however, the actual % will show then. But the workaround for this is posted above.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Jupp Pütta:
Thanks for clarifying. I wrongly assumed I started with the correct % and then wondered, that it didn’t go down. Makes better sense if the shown % are below the actual charging to begin with.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] patorm:
hello,

after installation, my htc is in bootloop. I used oreo firmware 3.16.401.2. Help me please
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
you need to provide more info to be able to help. what twrp version ? you come from what rom stock oreo 8.1 or other AOSP ? did you format (not wipe) /data partition ?

have you flash LOS18.1 only or with other GAPPS / Magisk ?

usually on A11 (LOS18.1) the first boot takes quite long.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] patorm:
My device is s-off with last Twrp. I used Stock Rom oreo 8.0.0 with firmware 3.16.401.2 .First time I formated (not wipe) / data partition + install this new rom. Result, my device bootloop.Than, I fornated (wipe system, cache.../data partition) + install this new rom . Always my device bootloop
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] svekie:
Do you have a SIM-Card in your HTC10 when booting?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] patorm:
yes i have have a SIM card in my HTC
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
as long as you came from Oreo with OS 3.16.401.2 the LOS18.1 rom should boot OK.

only /data partition should be formatted (type YES in Wipe/ Format TWRP) to get rid of HTC encryption.

wipe cache + dalvik, no need to wipe system.

does your phone show the LINEAGE boot animation or just try to boot and then restarts after some time ?