yashsingh1/xdaforums huggingface dataset:
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] michael.schefczyk:
Dear All,

I am this person: https://tu-dresden.de/bu/wirtschaft/lei/die-professur/beschaeftigte/schefczyk_profil?set_language=en

I am a long time user of Cyanogenmod and Lineageos and I am trying to provide safe and private smartphone use for my family and for myself. This is my only account. At home/SOHO, we have EAP-TLS wifi for many years.

What I would very much like is (a) to understand the EAP-TLS wifi issue and (b) ideally get it solved. With the device, EAP-TTLS (eduroam, with just a CA certificate) does work, not EAP-TLS, however. I have full logcat information. Key excerpts of errors include:

07-25 21:10:24.974 3057 3057 I wpa_supplicant: TLS - SSL error: error:0900006e:PEM routines:eek:PENSSL_internal:NO_START_LINE

07-25 21:10:24.974 3057 3057 I wpa_supplicant: wlan0: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 13 (TLS) selected

07-25 21:10:24.974 363 3223 I WifiHAL : Unknown EAPOL message type

07-25 21:10:24.986 363 3223 I chatty : uid=1010 wifi@1.0-servic identical 2 lines

07-25 21:10:24.995 363 3223 I WifiHAL : Unknown EAPOL message type

07-25 21:10:24.997 3057 3057 I wpa_supplicant: wlan0: CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/C=DE/ST=.../L=.../O=.../emailAddress=.../CN=...' hash=...

07-25 21:10:25.000 3057 3057 I wpa_supplicant: wlan0: CTRL-EVENT-EAP-PEER-CERT depth=0 subject='/C=DE/ST=.../L=.../O=.../emailAddress=.../CN=...' hash=...

07-25 21:10:25.027 2308 2361 I keystore: 1 0

07-25 21:10:25.052 2308 2361 W keystore: Error in finish: -1000

07-25 21:10:25.052 3057 3057 W keystore-engine: Error during sign from keystore: 1

07-25 21:10:25.052 3057 3057 I wpa_supplicant: OpenSSL: openssl_handshake - SSL_connect error:00000000:invalid library (0):eek:PENSSL_internal:invalid library (0)

This one below is from griffin, but same issue (plus one additional error) with different certificate:

07-25 18:02:22.480 27283 27283 I wpa_supplicant: TLS - SSL error: error:0900006e:PEM routines:eek:PENSSL_internal:NO_START_LINE

07-25 18:02:22.480 27283 27283 I wpa_supplicant: wlan0: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 13 (TLS) selected

07-25 18:02:22.499 27283 27283 I wpa_supplicant: wlan0: CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/C=DE/ST=.../L=.../O=.../emailAddress=.../CN=...' hash=...

07-25 18:02:22.500 27283 27283 I wpa_supplicant: wlan0: CTRL-EVENT-EAP-PEER-CERT depth=0 subject='/C=DE/ST=.../L=.../O=.../emailAddress=.../CN=...' hash=...

07-25 18:02:22.536 1992 2150 I keystore: 1 0

07-25 18:02:22.544 1992 2150 W keystore: Error in finish: -1000

07-25 18:02:22.545 27283 27283 W keystore-engine: Error during sign from keystore: 1

07-25 18:02:22.545 27283 27283 I wpa_supplicant: OpenSSL: openssl_handshake - SSL_connect error:00000000:invalid library (0):eek:PENSSL_internal:invalid library (0)

07-25 18:02:33.733 23506 23622 E WifiVendorHal: getTxPktFates(l.2219) failed {.code = ERROR_NOT_AVAILABLE, .description = }

If required, I can supply more information.

The same certificates does work flawlessly on other devices (jfltexx, h870).

Regards,

Michael Schefczyk
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] gbtechlab:
The "no start line"... Were the certs possibly changed with end of line characters (or something of that nature) in the process of moving them? Maybe an issue of file formatting?
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] michael.schefczyk:
As far as I know, the certificates are OK:

- They are straigt out of pfsense

- They are multiple years old (but not expired) and the did work on other devices + they do work on other devices now

- The very certificate files can be install on a windows PC without complaints

- As the format is .p12 one cannot inspect them with a text editor, but things like adding or removing a private key password with openssl do work

- The error does occur regardless of the certificate being installed from a .p12 file straigt out of pfsense (i.e., without private key password) or after adding a private key password

I rather fear that some package might not have been compiled with some attribute or some module is missing in the kernel. Is that seen to be likely?
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] gbtechlab:
What size key bit? Found this (has some of the same components of your problem): https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907888

Maybe try making a new one? I use pfsense as well and have 2048 bit keys, though for other things like OpenVPN.

I can also try creating a cert like you have and attempting on my device tomorrow. End of day here....
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] :
Plans to fix sd card write permission

Are there any plans to allow apps to write to external sd cards?
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] michael.schefczyk:
All my CAs and certs have 2048 bit keys. For lineageos purposes, I use two CAs: One for Active Sync/Exchange and Chromium client certs and another one for wifi EAP TLS. What puzzles me is that all Active Sync/Exchange and Chromium client certs work on all devices.

At the same time, the findings for the wifi EAP TLS certificates are mixed: All such certificates work on some devices (e.g., oneplus3). None of these certificates work on other devices (e.g., kiwi, griffin, bardockpro). The failing wifi certificates can be installed, but then one cannot connect generating the errors quoted above. In some situations (but not all the time & I am unable to identify causes), the wifi certificates vanish from the android key store thereafter.

Therefore, I suspect, that this will have to do with software versions, and kernel attributes rather than the certificates themselves.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] gbtechlab:
How about file permissions? All users can read?
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] Adai0:
Did you also have an SD card as internal storage?

---------- Post added at 09:40 PM ---------- Previous post was at 09:30 PM ----------

Hey. Thank's for that information. I didn't try sideloading yet. I will try when I find some time.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] michael.schefczyk:
Based on adb shell and ls -l, all files I write to sdcard are owned root:sdcard_rw with permissions 660. This seems to be fine for flashing and installing certiifcates. Non-wifi client certificates stay permanently. Wifi certificates install but may not work and may vanish. Should I change permissions? If so, I can try by the end of next week as my two kiwis will be away from the EAP-TLS wifi network until then.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] methuselah:
Is overheating is still there for you? Everyone has this issue
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] michael.schefczyk:
I did not notice anything in terms of overheating. Idle device has 33 degrees. Peak temperatures to not normally seem to exceed 45 degrees and they decrease shortly when load reduces.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] mr.o.shirzad:
I have a problem with games like clash of clans and heyday and some others in this rom, they are so laggy and brick the device and its not responding anymore so i should hold power button to restart the device.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] CaptainNemo80:
My Honor 5X is laggy since box opening 15 months ago... Fortunetaly, Lineageos give a little bit of fresh air but this device haven't got future.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] methuselah:
What you mean by lag? There isn't much to notice as far as 2gb ram goes? It really depends on what you install over phone. The phone has 64 bit binaries which I suppose make it a bit slow compared to Moto X-Play while it works as it had 32 bit support. But that's just a theory. Out of box if you are using apps like memory hog messenger like apps, then definitely Facebook and messenger kind of apps are worst battery hogs.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] CaptainNemo80:
Well, my wife have got a Honor 5C, and if we need to check something on web during a movie, don't ask me to open Chrome and do the search because movie will be finished before i find the answer to the original search :D (browse Xda Forums with Chrome will freeze my phone for example).

I haven't got games (lol 2min to launch Candy Crush... i made a test :D ), i have only some Google Apps ( Agenda, Gmail, Messages, Play Music, Chrome), Nova Launcher, Facebook and IFTTT. Compare to my last Nexus 4 (with 2 Gb Ram too and with same apps (and more !)), it was disappointing 2 hours after my purchase...

I made hundred and hundred wipe, backup, restore Stock rom, restore old Lineage version, tried differents new version of Lineage, and yes of course, between stock rom and Lineage, Lineage was superior !

Actually Lineageos 16 (and his daily updates) was cool, but sometimes it's laggy/freeze the phone, sometimes it's smooth.... and (no link with fantastic work of Lineageos team), but i just want to use daily my phone... no wipe/reset/resinstall/reconfigure apps every day to hope a better experience.

Maybe my phone have got a hardware issue, but how explain and prove it factually to a vendor in a shop... I don't want to lose one hour with a guy, send the phone in after-sales service and have got an answer two weeks after : Sorry we don't see anything in particular...

New phone was bought last week... Honor...Never again !
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] Travisholt92:
The lag is likely caused by running out of RAM, this is the ONLY 64bit device with 2 GB of ram that I've seen that doesn't utilize either swap or zram for caching some of the data stored in RAM to the internal storage. I'll be making a boot.img (kernel/ramdisk) tonight to test to see if implementing one of these helps with "random" lag spikes.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] methuselah:
I would love to test it too. well let's not comment on official lineageOs thread. Michael don't like talking about this on official thread. Open another on development section or send me the link to the rest file if you want via pm
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] Travisholt92:
He doesn't like people talking about ways to improve his software in ways that can only be done by a developer in his development thread? Lol riiiiiiight. I won't share any links to any work I do (except github commits meant for him to see) within his thread but i most definitely will inform him of ways he can improve stability within his thread since XDA is the only way he can be contacted by other developers.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] methuselah:
I didn't mean that! And I am not trying to be get any of your work. I am fine without it. I was saying that if you need logs I will be fine in running anything. I never meant I want to be the first to get my hands on anything lol. often it happens he warn about a lot of things. Its your work, you are the sole owner. I hope u will sort out the bugs and push submit them to Gerrit for review. Have a great day ?
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] Travisholt92:
My testing has gone very well. I pushed quite a few commits tonight to github that improve overall usability of the device. Just to put it into context, I had 7 apps running in the background while playing a game that before would lag pretty badly even if you only had 1 app in the background. It played noticeably smoother. Feel free to PM me if you'd like to test my unofficial LOS build. I added quite a few optimizations to the overall system, camcorder, and reboot times.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] methuselah:
Glad . You did it. Pm on the way
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] gbtechlab:
I'm experiencing freeze ups / lock ups about daily now, for the last week or two. While the screen is off and not being used, something is happening. Won't unlock with fingerprint, then I try the power button but won't turn on then. I have to do a hard restart.

I updated to Aug 9 last night and it happened this morning.

The last thing I did before lock up was change to VPN always on, require all connections through VPN, then about 20 minutes later in a meeting checked that Do Not Disturb was enabled. An hour later it was locked up.

I'm not clear anymore what the best way is to troubleshoot this sort of problem. Is there a log file that captures pre-lockup?

Is it a practice to echo the log file into a different file in order to view later? What's the trick for this scenario? My most recent tombstone is July 21 so it's not ending up there.

Edit: I attached what is showing for memory use over last 24 hours, does this look normal?

Edit2: After numerous shutdowns, it looks like it was an issue with a firewall app. I reconfigured, and things are pretty snappy now.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] BadDaemon:
[MENTION=4711784]Travisholt92[/MENTION] [MENTION=4231759]methuselah[/MENTION] I never said I didn't want any actual improvements done to the device.

The only things I don't want is "xyz doesn't work properly" without logs and/or without suggestions on improvements. Which you seem to have. Or crosstalks about anything not related to LineageOS 16.0 - which, again, this doesn't seem to be.

Have seen your gh btw and will see what we can use.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] ephemunch:
I can't flash it through twrp-3.3.1-0-kiwi:

And Format Data does not work:

I don't understand it. I have 2 Honor 5X phones and on one phone everything worked.

This one device has Android 5.1.1

Buildnumber: KIW-L21C432B160

EMUI: 3.1

CUSTC432D001

I have searched for MM-Stock Rom but nothing. Neither here on xda or OTA.

And now I have TWRP as a recovery and don't know what to do.

Edit: I have now LineageOS16 on this phone. However if I try ''format data'' through TWRP I have still:
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] methuselah:
Well, its so good to hear that. I hope i can discuss my views on unofficial findings here.

The phone isn't getting hot. There aren't any issues till now which i faced. I will insert sim and will check the overall network settings with the phone. I have used memory HOG messenger also. Used chrome, hangouts simultaneously all the time and indeed phone is working good. On official build it was getting hot. Well i will push logs once i encountered with anything with the build. I hope [MENTION=4711784]Travisholt92[/MENTION] push the changes in the ROM forward once i am done testing with everything. RAM management is also good here.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] 50UND2 3NG1N33R:
Did you flash with custom kernel?

[MENTION=4231759]methuselah[/MENTION] [MENTION=4711784]Travisholt92[/MENTION]
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] Travisholt92:
I wasn't trying to come of towards you as rude in any way. Hopefully the kernel commit and device tree commits help you out. Thank you for your work on this device. You've kept this device going pretty well over the years.

---------- Post added at 07:36 PM ---------- Previous post was at 07:29 PM ----------

I did test Hotdog kernel and it was not much better as it at the time also lacked zram changes which I believe he will be adding into the next version. I used the lineageOS kernel for my unofficial Build's kernel base and added LZ4 zram compression algorithm to it and modified the lineageOS device tree to support LZ4 zram with minimal performance loss by using only 1 compression stream. Adding zram made this device much better for daily usage. I can multitask pretty well with minimal issues. I still need to look into other kernel/ROM problems as they arise but it no longer happens for me often enough to grab logs. My next high priority issue to look into will be certain apps won't load ( specifically my banking app PNC SmartAccess). I'm going to work on helping BadDaemon and Coldhans resolve as many underlying issues as I possibly can while I'm still using this as my daily driver.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] Dro!d3r:
If it's possible please tell me is there any chance to fix this?

Also I created an issue on Gitlab

https://gitlab.com/LineageOS/issues/android/issues/1021
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] michael.schefczyk:
Try to downgrade to twrp-3.2.3-0-kiwi.img and format data from that version.

---------- Post added at 10:59 PM ---------- Previous post was at 10:41 PM ----------

My impression is that wifi 802.1x EAP TLS not working is due to a cert store issue. I find identical problems on kiwi and griffin. On the other hand, oneplus3 and (brand new official lineageos 16.0) jfltexx are able to use wifi802.1x EAP TLS without issues based on the very same certificates. The reason I suspect the cert store issue is bardockpro. That device did have the same problem one month ago, but it does work fine now. The positive change did seem to happen after this appeared under "recent changes": https://review.lineageos.org/c/LineageOS/android_system_security/+/251056 Unfortunately, I do not understand the issue in any greater depth beyond this speculative thought. Is there something which may need to be done in order to extend the same benefit to kiwi as well?
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] ephemunch:
I have done it yesterday through TWRP extended delete with checked ''data, internal card, cache, dalvik''

This worked without error.

I tried ''format data'' with the other 5X and there was the same error and through extended delete no error.

However both 5X work with LineageOS 16 even without format data, only with extended delete.

The Android 5 Honor 5X downgraded to B140 at first and after this updated through OTA to Android 6 (B350). B160 did not want OTA to Android 6. After this LineageOS 16.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] d54321:
As I Mentioned before I believe the issue will be resolved by something like this:

https://review.lineageos.org/c/Linea..._nash/+/250104

It comes from the fact that casting is apparently severely truncated in Pie and we have to reintroduce Qualcomm code to get it back. If this is the case Michael will say, when he gets the time.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] Travisholt92:
[MENTION=5662620]BadDaemon[/MENTION] I need to resolve a compilation error with my kernel commit. I did it too dirty (I didn't have meld installed at the time) and Jsbeyond has had issues being able to add the zram feature into his builds based on my commit. I will let you know when I get time to patch it. Hopefully I can get to it tonight.

Does anyone seem to have calling issues with Official Lineage 16.0? My unofficial builds seem to have issues with touch tones repeating themselves in calls and jittery audio in calls (could be because I used ArrowOS Vendor tree)
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] methuselah:
The only I faced yesterday I was to report it, about the audio in messenger! I can hear my own voice like routing back to me also in the headphone. It's just with messenger so far afaik. Other side can also listen me. I really don't know to find anyone on other side, when I wand to grab log for that my friend is always offline. He calls me damn when I am away from computer. I even installed magisk to grab a log. So that I can get root permissions! But that damn thing don't work.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] 50UND2 3NG1N33R:
Haven't had problems with audio. I have issues with loading memory intensive apps that requires the phone to have the screen on, especially when starting the application. If the phone screen times out and locks, the phone lags and falls into UI reboot until hard reset. But on switching to performance mode in the battery section, I can start a memory-intensive app without a problem.

but still, at this state, I can't switch between apps without lags. especially having a background process taking place, like playing music or ongoing download.

The good part is if it loads the memory intensive app, it will run it without lag or hitches. So I think if you optimize it with a zram kernel. these issues will clear out.

All in all, I like the performance. These issues aren't a deal-breaker for me since I don't use memory-intensive apps most of the time.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] BadDaemon:
[MENTION=4711784]Travisholt92[/MENTION] no need to update anything. i picked the proper patches from another device already, everything's on gerrit. testing and evaluating options at the moment.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] d54321:
It happens to me sometimes as well. In normal phone call I can hear my own voice. The other side hears me well I think. I think it has something to do with network switching from H+ to H or 2G.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] methuselah:
Okay. But I am not using any sim in this device ATM
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] Travisholt92:
That's odd, I haven't experienced this but the person I called could hear their own voice echo.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] Dro!d3r:
[/COLOR]

The link was broken.

In AOSiP wfd works fine until screen lock, there is commits by coldhans in this link:

https://review.aosiprom.com/q/wfd

I tried to build Los16 at first and then try these commits on it, but stucked at first step (after 18 hours).

To my luck, seems no one needed this feature, I hope Michael gives a tiny reaction to this :rolleyes:
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] methuselah:
Google has dropped casting feature altogether afaik in pie.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] Dro!d3r:
So why they doesn't removed that related stuffs?

<activity
android:name="Settings$WifiDisplaySettingsActivity"
android:label="@string/wifi_display_settings_title"
android:icon="@drawable/ic_cast_24dp"
android:taskAffinity="com.android.settings"
android:parentActivityName="Settings">
<intent-filter android:priority="1">
<action android:name="android.settings.CAST_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter android:priority="6">
<action android:name="com.android.settings.action.SETTINGS"/>
</intent-filter>
<meta-data android:name="com.android.settings.category"
android:value="com.android.settings.category.ia.device" />
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
android:value="com.android.settings.wfd.WifiDisplaySettings" />
</activity>
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] methuselah:
Here is your answer. It's from another device also
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] fostog:
Same here. I'm confused, if AOSiP and Arrow don't have this issue, why Lineage has it?
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] Travisholt92:
My thoughts exactly. It may a difference in the device trees. I'll look into it. Thank you for confirming the bug for me.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] gbtechlab:
I didn't have any crashes for two days after keeping battery saver on. But what you are describing I experienced too but could never figure out. Thought it was a firewall issue but the freezing when the screen was off came back the next day.
[Honor 5X ROMs, Kernels, Recoveries, & Other Develo] aminou_24:
The phone is still very very slow on average usage, I've herd about zram and improving performance but actually i didn't notice any kind of improvement. I think pie is tough for that soc. And the heat issue, the echo issue are still existing. And the benchmark tests are the worst ever comparing t Oreo or Nougat.

I hope LOS will continue to update old versions 15.1 or even 14.1.