yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] hk133hk:
Haha, success to s-off but failed to boot into the ROM, stuck on the LineageOS starting animation. Maybe I did something wrong when flashing TW firmware, it shows "failed to mount '/carrier' (invalid argument)" when I wipe the cache and system partition in TWRP.

Trying for an hour, I decided to give up and go back to TW firmware for now, try to figure out what is wrong first.

-----------

Update:

Rest for few hours and go back to this work, I figure out I should flash the radio.img which should get it from htc 10 au RUU package before flashing ROM, thanks "ojejoe" for the RUU package posted in #23 of this post: https://xdaforums.com/t/guide-htc-10-au-japan-carrier-variant.3493716/page-2

Now I am able to flash this LineageOS ROM and get into start page, after a few checking process I would report again and tell you guys what is not working here.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] siuishere:
Hello @raul16

I am reporting frequents restart while the phone is charging, using lineage-18.1-20220312-UNOFFICIAL-pme.zip. What do you need to analyze this issue? Am I the only one?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] michael_ger:
I am using the same version, but no restarts during charging
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
never happen here. this might be either faulty charger/cable or phone hw issue.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Cicada_3301:
@raul16 please check out this github repo

GitHub - crpalmer/proprietary_vendor_htc

Contribute to crpalmer/proprietary_vendor_htc development by creating an account on GitHub.

github.com

https://github.com/crpalmer/android_kernel_htc_msm8996

GitHub - crpalmer/htc_pme_system_properties

Contribute to crpalmer/htc_pme_system_properties development by creating an account on GitHub.

github.com

GitHub - crpalmer/android_device_htc_pme: CyanogenMod device tree for HTC 10

CyanogenMod device tree for HTC 10. Contribute to crpalmer/android_device_htc_pme development by creating an account on GitHub.

github.com

GitHub - crpalmer/android_vendor_htc_pme: Vendor blobs for HTC 10

Vendor blobs for HTC 10. Contribute to crpalmer/android_vendor_htc_pme development by creating an account on GitHub.

github.com
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
old and useless. not even used by lineage team when pme was an official supported device.

cm13 is marshmallow / android 6.0 while current repo for pme uses initial code from latest htc oreo aka Lineage OS 15.1
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Cicada_3301:
I'm quite unsure about the usage of system properties repo, It might be related to VoLTE problem
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
it might, but all those are related to pre-Oreo blobs and firmware that are used now.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Meshok:
Hi raul16,

Every time an app (like Music app or a browser) starts playing a sound, I've got 'AudioFx has stopped' crash popup. I've enabled 'Always show crash dialog' in Android Settings.

Are you able to reproduce it as well?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
no, never seen such.

after some testing i was able to replicate your issue. it happens only if you clean install 20220312 version.

looks like one of asb march patches by LOS impacted AudioFX app (NPR).

when you do an upgrade install over previous version - 20220213 - this did not occur. (my case)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
new build available lineage-18.1-20220416-UNOFFICIAL-pme.zip

April 2022 Security patch

los: Bump Security String to 2022-04-05

pme: enable ZRAM

pme: update Adreno OpenGL drivers to version V0490.0

pme: update vulkan drivers to version 1.1.128

new: SafetyNet pass
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Lex_Michdeandroid:
Is there a reason I can't use OpenGApps from their website? https://opengapps.org/

Or are the other GApps mentioned in the first post the same?

-edit- I've been out of the loop for a while, so pardon my stupid question, but can I upgrade from Lineage 14 (my device is on 14.1) or do I still have to go back to stock? Not sure what version is Oreo, might be I'm not yet set up right for an upgrade... Thanks!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
LineageOS recommends to use MTG for Android R/S. I prefer NikGapps core (minimal). You can try/use what version you like as long as it works OK.

Lineage 14.1 = Nougat (android 7.1); you must flash latest Oreo stock HTC RUU for your model to get latest blobs for FW as required to boot ok on LOS 18.1 / 19.1
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Lex_Michdeandroid:
This 'latest Oreo stock HTC RUU' is that a .zip that I should flash before I install the rom?

-edit- I just see you also have a 19.1 ROM, awesome, I'll try that one after I get this Oreo thing fixed.

-edit2- I found a helpful video to help me understand this RUU

And I found this thread https://xdaforums.com/t/stock-guides-and-stock-backups-recovery-ota-ruu.3359297/ with files. Still working on it.

-edit3- My first try didn't work. The updater complained about the wrong OS? I guess that's because I'm running TWRP and Lineage 14.1. Putting back the stock stuff (recovery and rom) through fastboot?

-edit4- My version is 2.41.401.4, do I need to match up more than the 401?

-edit5- Found a matching version 2.41.401.41, only 41 instead of 4. We'll see if that's a problem, it's installing now. https://androidfilehost.com/?fid=817550096634797504

[...]

It's booting, looks like it brought the device back to stock, no more red text telling me it's tampered with. Taking it's time though...

[...]

And it booted. Looks stock, I'll see what step I'm at now.

-edit6- Alright. This stock thing gave me an OTA update, 3.16.401.2. I am going to let it do it's thing and then I guess I should be ready for 18.1/19.1.

-edit7- Of course I need Fastboot drivers because windows is a POS. Think I need to fire up the Linux...

-edit8- Switched to a Linux box, flashed twrp through Fastboot, flashed 19.1, got encryption message... Go back to recovery, wipe data/system/cache/..., flashed 19.1 again... BINGO!

Thanks!

P.S. I think the phone just died. After making a full backup with TWRP the thing doesn't respond anymore. Not even holding the power button for a minute. Looks almost like a hardware failure... That would be very coincidental... I might try some more later, but for now I'm a bit tired of dealing with it.

P.S.2 Held down the power button and the volume down button for what felt like an hour and it came back to life. I have no idea what happened here, not really a problem because it's just a device for playing with roms.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] NSH021:
tq, all done it took 30mins
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
?? 30' to take the log or to finally boot ?? if only to boot seems too long... what else did you have on your phone ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] dzejsonista:
how can i get rid of this ****ty lineage recovery? why its replacing twrp?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
when you do initial setup, at first boot, while you configure first time do not select to update lineage recovery as it will overwrite your twrp !

also you can check Developer Options > Update recovery with system... and if enabled set it to disable.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] NSH021:
for first boot it took 30 mins, and performence is better compared to last build

only thing is I feel there is more battery drain compared to last build
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bikeboy24:
Thanks for the update! I upgraded from the last version too, and it's still booting up +30 mins.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] denyo81:
Nice to see that we now have another maintainer for our pme with @raul16 in addition to @fagyi. Thanks guys you are the best. 😎👍
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] lexridge:
Just installed this on my HTC10, replacing PixelExperience. So much better! Even after a few hours battery performance seems much better now.

I noticed the Face Unlock is not to be found anywhere. Is there a reason for this?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] UnwindingThree8:
Is this build the same as the ones in the other thread made by @fagyi

I'm a bit confused. Is this the continuation of that thread or is this something else
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
LOS new SNAP camera in 18.1; features still in wip...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
no. these are my builds that i share for anyone to use if want/ like ;)

all details are in post #1 & #2
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] UnwindingThree8:
Ok, i'll try them out. Thank you for the effort
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
new update available: lineage-18.1-20210405-UNOFFICIAL-pme.zip

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 r29 to r32 (!) so first boot will take longer.

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

Enjoy ;) !
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] CAMERON1988:
Very smooth, thanks a lot for the effort, will report if I notice any bug
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
Thanks' ;) !

the only bug currently is that health hal does not report correctly the battery % (mostly while charging...) need to dig deeper
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Dukenukemx:
Can you flash this over fagyi's?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
i would recommend a clean flash
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Dukenukemx:
Ok, will do.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Dukenukemx:
Already ran into two problems with the latest version of this rom. The Wifi is extremely weak, especially the 5G. I need to give Google Play Services permission to access SMS and it won't let me. Also for some reason the rom likes to reset the screen brightness to the lowest when I reset my phone.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] kiwidudeNZ:
Hi this might sound like a silly question but here goes. the HTC 10 has always had a great camera and very good audio. with all these recent 18.1 builds the audio is actually not that good from a music audio perspective. previous android versions 9 and 10 had the proper audio codecs installed or at least visible from within the developer settings so that you could specify which ones you wanted the phone to use.

is there a way to install the proper HD audio drivers so that we can once again enjoy the great sound on this phone.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Tritonalz:
The 19.1 is not all that stable for now but meeehn is so smooth.. I am hoping a much stable version will show up soon... I have backup of but 18 and 19 and switch to and fro
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
Hello,

first of all thumbs up for this ROM. After almost 4 years on Android 8, I finally switched also to Android 11.

Currently I have these issues with lineage-18.1-20220416-UNOFFICIAL-pme.zip:

1. Camera

The Lineage camera crashes when trying to open

2. Hotspot

When I create a hotspot and connect to it with my car infotainment system, then the internet connection from mobile phone is not used for the online features in the car like online traffic messages

3. Reboot Problems

It always needs several tries (3-4) when I reboot to system until it finally boots up in Lineage and I am able to enter the PIN

4. Display Brightness

Adaptive brightness setting often makes the display too dark.

For 1. and 2. I have a logcat.

Is there anything I could provide for 3. which would help?

BR,

Christian
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
from logs provided seems that there are some permissions missing. check them out.

besides the LOS what else did you installed - GApps (flavour) ? Magisk ? and how ?

i haven't experienced 1...3;

on 4 i see (from logs provided) that the sensors do not work properly in your case. try a new, clean install (factory reset aka format /data) and install only LOS and check all your above issues again.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Tritonalz:
Try using the Google GO edition gapps.. It makes it lot smoother.. I have been on it seems and haven't had issues of any sort
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
I already did a clean install according to instruction a few days ago (the second time), hoping to not have these issues anymore.

Additionally I have installed:

Magisk (renaming Magisk.apk to Magisk.zip and flash in recovery)

AccA as workaround for battery charging problem

NikGapps basic

The rights for the camera are all granted.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
what is the order of install and did you reboot to system between LOS and GApp install ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
As far as I remember I did no reboot to system between LOS and Gapps:

recovery -> format data -> reboot recovery -> wipe -> flash ROM -> flash GApps -> reboot system -> installed/configured some apps -> reboot recovery -> flash Magisk -> reboot system
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
in such case should work OK; try to check, as mentioned, on a new clean install with only LOS (no GApps/Magisk) if still get same errors.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
Ok, may I give it a try.

But when it would work just with a clean LOS, and afterwards (with Gapps and Magisk) again no more, what would we have gained? Because I would need Gapps and also Magisk for the battery charger workaround.

Is there a reliable way to backup the existing apps (with settings) and restore them afterwards again?

Titanium Backup comes to mind...

Or can that also have an effect that something does not work again afterwards?

Do you also backup and restore apps with settings? What can you recomment?

Thanks.

/Chris
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] lpedia:
Well, if nothing else it would provide information for @raul16 about some issues with Gapps and/or Magisk that weren't previously known.

About Gapps: which NikGapps version did you install? You have to use the SL (12L/12.1) version.

Titanium Backup would probably work, but I've never tried it and can't comment.

However, once you have LOS, the built-in SeedVault backup does a reasonable job of restoring apps and at least some settings. You have to configure it first (Settings > System > Backup > SeedVault Backup) and make sure to tell it to 'backup now' to make sure to have at least one full backup. To restore, accept the option to restore from another machine during LOS Setup on first boot.

SeedVault backups from earlier LOS versions to a newer version and back to the same version from a clean re-install have worked for me. I have not had problems with restored items not working properly, but not all settings can be saved and restored by it. That depends on the apps.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
being on LOS 18.1 should use the R (11) version of GApps.

I'm currently using NikGapps-core-arm64-11-20220421-signed.zip w/o any issues.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
one step ahead to identify the root cause of your listed issues.

if you decide to do it do not restore anything from backup and do not over customize, just check if the issues persist.

if all good redo the clean install with LOS 18.1 + GApps and test again; at this point you might need to check other version of NikGapps (like core instead of basic with the specific tag for A11 !) or with MTG (from LOS devs) also for A11 64 bit.

and so on ...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] lpedia:
Oops! I follow both the 18.1 and 19.1 threads and mistook which one I was on. 😳
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
Update:

Camera problem is fixed. It was because camera was configured to store on sd card. But sd was broken and not available.

Maybe a fallback to internal storage is missing in case of broken sd?

Hotspot is still an issue.

Reboot problems still there after clean install only with LOS. But happened just once out of several tries.

After flashing NikGapps Core, the reboot problems are back. Sometimes I have to reboot from bootloader because it doesn't start up.

Can I exchange only gapps or do I have to wipe and flash LOS and gapps again?

Or what else could help, wiping something with TWRP?

Brightness sensor is also better now.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
in case you want to switch to another flavour of GApps you must clean flash LOS + GApps again to avoid any issues.

I use Nik core and no reboot issues at all. Magisk usually generate such issues - that's why i drop using it and made SN pass by default.

re: hotspot - when you were on oreo stock did it worked in your intended way ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
Yes, hotspot worked with stock Oreo in the car.

SN? How to pass it by default?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
same vendor modem drivers used and no fault on mobile data. what actually does not work? do not create hotspot ? can not connect to its wifi ? or ?

SN (Safety Net) is now passing by default; can check with any SN verification app from Play. Also in Play Setings you can see that device is certified...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
I can create hotspot and connect to it with car wifi, but mobile data are not used for online features in the car.

When connecting to the hotspot e.g. with another mobile phone, then internet connection is used.

Tried also some safety net apps from play store, but my device failed the check.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
cannot replicate your car issues. once connected should work.

you can try to get log while connected to car for radio:

use adb logcat -b radio -v time -d > logcat_radio.log

SafetyNet passes with latest rom version 0416 only. what version are you on ?

(i use YASNAC for validation)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
I'm also on 0416.

With YASNAC result is also failed.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
please run: adb shell getprop > pme_prop.txt and post the file.

do you have magisk installed ? which version ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
new build available lineage-18.1-20220507-UNOFFICIAL-pme.zip

May 2022 Security patch
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
please find getprop attached from 20220416 build

I have Magisk v24.3
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
all props are ok. w/o magisk installed SN passes. need to check why installing magisk breaks SN.

meanwhile you can use Kdragon magisk module to pass.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
Reproduced hotspot issue now also with radio buffer activated in logcat reader app. Is it better, or do I have to do it again with your command given and laptop?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
Hi,

I recently had problems with my micro sd card. Every few days it was displayed as broken and was not available anymore. After exchanging with a new sd card, the phone booted better in the beginning, but now it's again as before.

Also I have a new issue. Some apps don't receive the current location, but not all.

Waze for example always receives the current location during route guidance and position is always updated.

But two weather apps dont get current location, and Google Maps is also only updated once when I open the app with current location. Afterwards when I move, the location is not updated anymore. When I close and reopen again, then I have again a new position. GPS-Fix was available -> see pme_gps.zip.

Also I had some forced reboots from time to time, sometimes just LOS reboot, sometimes complete reboot. Mostly in relation with camera or photo apps, which have access to external sd card.

Is there anything I can provide in case of a forced reboot? Dump files? or sys/fs/pstore?

Was there something useful in my last radio logcat regarding hotspot issue, or should I create a new logcat?

Thanks,

Chris
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
AFAIK SD Card on LOS (AOSP) is not very well supported. do not configure it as integrated memory but rather as external memory.

/pstore logs dmesg-ramoops / pmsg-ramoops after such reboots could help in finding the issue (kernel panic).

nothing usefull in previous logs besides it connect then disconnect on an unsupported command. could not figure out if related to the issue.

all weather apps i've tested are OK on location. GPS tested ok (using GPS Test app)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
My sd card is also configured as external memory.

GPS is also ok with GPS test app (GPS Status & Toolbox), but only Waze seems to work normally.

Google Maps only updated once when opened, other weather apps don't get location ("WarnWetter" from German weather service, and "Wetter Online Pro" from Wetter Online GmbH).

At least location was working with "Wetter Online Pro" before my last clean install.

Please find some kernel panic files attached.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
on GPS logs you send I've seen a lot of denials:

[05-13 06:30:26.429 1843:7771 W/ActivityManager] Appop Denial: Accessing service com.google.android.gms/com.google.android.location.internal.server.GoogleLocationService from pid=2674, uid=10156 requires appop COARSE_LOCATION

try the following:

adb shell pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION

adb shell pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION

and let me know if that fixes the issues with GPS; seems that the GApps misses them ...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
Hi,

yes, adb shell commands fixed the location issue with weather apps. For Google Maps I have to check later.

Is there then also a command for hotspot feature?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] raul16:
good ;) - this is not from LOS rom but from GApps build - so no way to 'fix' it in next build; so you have to run them when update/ reinstal

hotspot - not found the root cause from provided logs. so need more testing + radio log(s) while connected but no data transfer...

kernel panic - is due (from provided logs) by magisk busybox; so if do not really need root would recommend to not use it. if you must use, try earlier version (never had issues) 23.0 ! (last one with hide built in).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] bert7:
I wouldn't need it necessarily, but I use it for the battery indicator workaround from post #76.

You wrote, that you dropped Magisk. Do you have then also the issue that battery indicator is not updated when you charge? How do you know how much the battery is charged? Or is there another workaround available?