yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
It looks like my problem in building the ROM was due to a borked update of Debian, which resulted in losing a symbolic link to python.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] diedmatrix:
I did clean flash (formating and wiping unoffical 16.0) and ended up with the camera/flash crash >-< Then i followed the post 136 "chain-flashing" and now it works - little bit annoying but ok.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
It looks like it might be the end of the road for Lineage OS G5/V20 support. I suspect that I'll do personal builds until it fails to build, then get a different phone. Fairphone, probably.

https://review.lineageos.org/c/LineageOS/hudson/+/286688

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Shame if it is, let's hope it's not, it's come a long way over the last few months. Even the freezings ceased in the last few builds and in general it has become significantly more stable. I don't have any of the camera or bluetooth issues mentioned in the commit, if everyone would follow post 136 when installing, then others may have less of these bugs.

The only bugs I have is chrome sometimes freezes when scrolling, which depending on the cause may be fixed in chrome 86. It reminds me of the WhatsApp video bug, in that if you select recents and then back to chrome, it unfreezes, a known problem with one plus phones too.

Edit: hasn't happened in last few builds

Sometimes the phone will inexplicably reboot, but this occurs infrequently.

Edit: Hasn't happened in last few builds.

If I open a folder on the home screen and quickly press the home button two or more times, trebuchet will crash every time and the last app will be shown sometimes. If you can't reproduce this bug then maybe it's because I had enabled double tap and long press home screen button options before disabling them both or its only on the h830.

RAM is dropping below 600Mb, and sometimes as low as 450mb causing the os to stall.

Call volume on speaker is high, when you turn it right downs it's quiter but still loud.

When playing media, volume of speaker periodically increases and decreases. Could be hardware fault too.

Had a few freezes while charging on last couple of builds, wondering if it may have something to do with my battery or a faulty bottom chin.

No freezing 0826 or 0902

Freezing on 0909, 0916, 0923, 0930

Edit:. It seems that after clearing cache & art/ Delvik cache partitions via twrp after flashing an update eliminates the freezing. You may receive a couple of freezes before it clears.

A final bug is the OTA updater downloads fail, obviously this would be irrelevant should they pull support. I don't have access to a comp atm otherwise I would try to capture and upload logs for these bugs to gitlab.

Edit: Disabling selinux fixes this issue.

Whether it goes or not, a big shout-out to all those that contributed :good:. Let's hope unofficial soldiers on.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Well, [MENTION=2881807]x86cpu[/MENTION] (and [MENTION=5848265]npjohnson[/MENTION]) made much more of an effort than LGE. They have my thanks. :)

In any case, it is may be possible to continue with 17.1 for some time, if you are willing to do your own builds. I'm still doing monthly personal builds (14.1) for chagallwifi (Samsung Tab S) to keep up with the security updates.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Well, the commit for abandoning V20/G5 was abandoned. That's interesting. And good news (I think).

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Yes.. Due to this:

https://review.lineageos.org/#/c/286741

Which hopefully will fix the ongoing problem once and for all.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] diedmatrix:
Which is now (regarding latest change log) part of the lineage-17.1-20200920-nightly-h850-signed.zip?

But which "ongoing problem" are you refering to?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
All the missing sensors issues. Camera/Bluetooth, etc... Sensor issue with selinux, the need to use permissive....
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] diedmatrix:
Just installed the latest update and now NO camera (stock and open camera) is working.

Open Camera is saying: failed to open camera. camera may be i use by another application? ID.0

Stock Camera is just closing when trying to open

This is really frustrating....

EDIT: Ok just did another restart and now its working again.

How i did the update before that:

updated manually via twrp and cleaned dalvik/cache right afterwards, then rebooted.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Kloosek:
After updating, the phone would not turn on. Even installing an earlier build didn't help. I had to do a clean install.

Wysłane z mojego LG-H850 przy użyciu Tapatalka
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
I presume this would be possible with selinux mode changer too

https://github.com/MrBIMC/SELinuxModeChanger/releases

So for those with bluetooth, camera, sensor etc. issues.

Flashing 17.1 directly from stock requires selinux to be set to disabled/ permissive to resolve.

And

Flashing 15-16-17 from stock presumably resolves these bugs without the need to toggle selinux.

Setting selinux to permissive does fix the OTA updater bug.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gkg2k:
I've just installed the latest official LOS 17.1 on my new (yes, incredible) H850 following the 15->16->17 procedure.

It seems everything works fine except Bluetooth calls. Bluetooth works but I cannot hear anything on my Plantronics headset as soon as the phone call starts. Does it happen to you, as well? Should I install the Unofficial builds instead? Unfortunately the Bluetooth calls problem is a show-stopper for me :(

Thanks for your help!

Gianluca
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
I'm not sure if Bluetooth calling was fixed in the h850, it would appear not and is still a work in progress. Although it sounds like it's already enabled, check in the settings for your Bluetooth device that calls are enabled, you could toggle it off and on too but I doubt this will make much of a difference. Also goto settings, privacy, trust and let us know what it says under selinux, enabled/ disabled??

As I don't have an h850, I can't play around with this.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gkg2k:
Hi Pedro, Selinux says ENABLED here. Does it affect BT-calls? Should I try to disable it?

Thanks!

Gianluca
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
I doubt it, it's most likely a kernel issue, but you can always try with the following app:

https://github.com/MrBIMC/SELinuxModeChanger/releases
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Aethera:
I followed #136 exactly and there have been multiple issues and it has gotten worse. Since several weeks the phone crashes. Battery performance is horrible - installed a brand new high capacity battery and it only lasts about 25 minutes before the phone dies. Used battery calibration apps with no effect.

Also bluetooth calling issue was never fixed and gave up on trying to use bluetooth calling.

Phone is also randomly crashing. Often crashes when attempting to take photo. Am getting ready to go back to stock because the problems are so bad.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
In the "Trust" display section, I have the following (local build).

SELinux: Enforcing

Android security patches: up to date

Encryption: Enabled

Even with encryption, OTA update (local server) works fine. However, I am using LineageOS recovery.

Everything else I use is working well. No crashes or freezes. BT itself works fine (speakers, keyboard, earphones), but haven't tried to make calls with it lately.. Don't use video, but still photography is okay.

It appears that I have a functional, everything (I use) working, no suprises, perhaps even boring, phone. Yipee!

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gkg2k:
I suggest to go back to stock and re-do the procedure. I've just begun with lineage-17.1-20200920-nightly-h850-signed.zip folowing the path of post 136 and I must say the G5 works fine, BUT the BT-calls problem is really serious. The SELinux Permissive/Enforced switch doesn't change the BT-calls situation.

However I'm coming from the LG H815 G4 with unofficial Lineage OS 16.0 ( https://xdaforums.com/g4/development/rom-lineageos-16-0-t3929082 ) and the maintainer steadfasterX ( https://xdaforums.com/member.php?u=5545101 )

did find a solution to the BT-calls problem that afflicted the G4 long time ago

. Would it be possible to get in touch with him?

Thanks,

Gianluca
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
With so many issues, could be hardware. If you do flash back to stock, you may want to skip 15/16 and clean flash the latest nightly, report back with the results. All those bugs we had before may be fixed in the latest build.

Some of those high capacity batteries are just poor quality or faulty 2800mah's. Post 136 for some recommended ones. Use accubattery to measure it's actual capacity.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Out of curiosity, I tried calling with BT earphones. Both incoming and outgoing worked well.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gkg2k:
Latest official 17.1 release? What brand and model of BT earphones? Is it possible to know the BT transmission protocol used by your earphones?

A glimpse of light!

Thank you very much!

Gianluca
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
I have a H850, and I'm using a 17.1 self build from 19 Sep. It is pretty close to stock and none of my changes have anything to do with BT. My changes are related to location services, etc. I do not have GAPPs installed. Stock dialer. The headphones are no-name BT neckbands with mmcx connectors and Tennmak earbuds. The neckband looks similar to the Tennmak Run pro MMCX Bluetooth Neckband. The protocol for audio is "HD audio AAC". (I'm just using whatever protocol was automagically selected).

I sometimes wonder how many problems are caused by installing GAPPs. ;)

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Most likely it is a protocol support issue, so changing your headphone may solve it, just unsure which protocols it supports.

You could also try the stock phone app and then the Google phone app from play store (or the one you didn't test earlier). When testing them, remember to select the one you're testing as your default phone app in settings/ apps, if they don't match you'll either be dialling with the incorrect dialler or app.

Although I don't believe it's a permission issue, you may want to toggle selinux when testing the phone app that you didn't test initially (enabled/ disabled).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gkg2k:
I've just switched to the Google Dialer especially because of the anti-spam service, but the BT-calls (absolutely no audio IN and OUT during call) persists.

Following Bob's hint I'll try to buy these :

Very different from my Plantronics Voyager 5200, but I need BT-calls to work.

Thanks!

Gianluca
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Post your results either way, if they work then there is AAC support on the h850, yet no A2DP/ SBC support as there is on the H830.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gkg2k:
Well, I think I have definitive results on BT calls on H850 and latest official LOS 17.1 : I tried on my CAR and I've got the same behaviour on BT calls, total silence. Either H850 LOS17.1 still misses the proper BT codecs for Phone calls (audio/music works perfectly in both Plantronics headset and car) or anything got broken during the 15->16->17.1 procedure. I may have landed on lineage-17.1-20200920-nightly-h850-signed.zip that has problems on BT calls... I don't know.

Is it possible to ask Bob to share his modified H850 nightly with me? I'm using TWRP 3.3.1-0 which was the only one I could successfully install, is that a problem?

Thanks!

Gianluca
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
I'm afraid that I don't make my builds generally available. I change them so that I use only local location services, and sign them with my own keys. In any case, I really haven't made any changes that would affect BT. Something else is going on.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gkg2k:
Oh Ok Bob, thanks.

However is your build based on lineage-17.1-20200913-nightly-h850-signed.zip or the latest lineage-17.1-20200920-nightly-h850-signed.zip ?

I'm planning to Data format (unfortunately) and install another build.

Thank you
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
No point in reverting back (or formatting data) this bt calls issue has existed right from the initial unofficial/ official builds of Los 17.1, it also use to afflict the h830 too but has since been fixed due to the fact that we have a different Bluetooth chip. I also doubt the 15, 16 17 flash made any difference either. You could go back to stock and then clean flash latest 17.1 without gapps, Magisk etc and test it and while your at it test all the other bugs too mentioned in post 136 and report back. Before doing that in the Bluetooth settings, you could try and disable phone calls, media, contact and then just reenable phone calls and try again. A combination used to work on the h830 but maybe it was to get media working, I can't remember it was so long ago.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gkg2k:
You were right. I wanted to do it and I did it : I formatted data twice, and wiped everything and re-installed the latest H850 LOS 17.1 ONLY. No Gapps, no Magisk. Result : same BT behaviour : works for music/audio and doesn't work for phone calls with my Plantronics Voyager 5200 and my Nissan car.

SBC seems the only BT codec that the system auto-selects

The only hope is Bob who can do phone calls with his BT earbuds. I'm going to buy them as the last attempt with the H850, then I'll sadly put it on sale. I will NEVER use it with stock OS.

Thank you!

Gianluca
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
The way that my local builds work isn't quite like suggested. It isn't based on one of their builds, but rather is like one of their builds but at a different time. So, I sync my source tree to the lineage one, make a few changes, then build. Mine was on 19 Sep and, apparently, the latest Official build was on 20 Sep, so they should differ only in the commits made in that 24 hour period, which were likely few in number, and my changes, which also are few in number and unrelated to BT . Indeed, one can look and see what commits were made during that time.

In the past, when making a major update (don't mind losing data), I've been inclined to take a "belts and braces" approach. I put the system image and recovery image and other stuff I want available (e.g., F-droid, Magisk, Titanium backup, and password database file) on a removeable sd card. I then enter TWRP, and do a nand backup to the sdcard. Then I maually delete system, data, cache, and davik cache. Then I format data. Then I install the system image, which is on the sd card. Then I clear cache again. Then I boot. What I aim for is to have a known baseline state, so if there is a problem, I can get a feeling for when it is introduced. Of course things are more difficult if you are also installing GAPPS, as that is a huge, complex, opaque system, and (I think) needs to be installed before the first boot

Best wishes,

Bob

.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
It only has SBC to select because your headphones only support the SBC codec. Bobs headphones only support AAC, which is a good thing because if they supported AAC/SBC/APTX they may default to SBC and be unusable should you not be able to adjust the settings. Therefore if they work on his build there should be no reason why don't won't work on yours. Your Bluetooth headphones supportable codecs can be confirmed via the apps that I recommended via PM (ignore developer options). I recommend you connect to your car BT system and use those apps to see what options you have for your car and see if you can switch to AAC or APTx etc.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gkg2k:
Congratulations for your skills and best wishes to you, too!

Thanks,

Gianluca

---------- Post added at 12:57 PM ---------- Previous post was at 12:52 PM ----------

"Bobs headphones only support AAC, which is a good thing because if they supported AAC/SBC/APTX they may default to SBC and be unusable"

That's interesting, so AAC-only headphones could force H850 to switch to the AAC codec (that should work), while SBC doesn't work. Now I can buy these BT headphones more with a light heart.

My car BT system is not configurable and surely requires the usual SBC codec...

Thanks for your help! I'll keep you posted and I'll send you some screenshots via PM of the apps you suggested.

Gianluca
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
A nice thing about using separate earbuds and cables (mmcx) is that you can always switch from BT to wired just by getting a cable (or the other way round), which is what I've done.

Best wishes,

Bob

PS It is odd. I tried to force my BT neck cable to SBC by setting SBC as the BT codec in developer options. But, it reverted to AAC. I would have sworn that a long while agao I used them with SBC and HD SBC. Admittedly, I have little understanding of the BT subsystem on Android/Lineage. I have an older SHURE BT neckcable, which I'll try later, as I think it is SBC.

RLF
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
I believe x86cpu may have disabled user adjustment of the settings via developer options a few months back or maybe it just shows SBC evrytime. When I looked up the specs for your headphones they only supports AAC.

It's best to use these apps to see what your headphones support and if possible select the codec from there. It would be good to see if an aptx supported bt headphone will work too on the h850. I'm not sure what would happen if you had a multi support codec BT headset, would it default to SBC, not work and be unadjustable etc.

https://play.google.com/store/apps/details?id=com.widget7.check.a2dp

https://play.google.com/store/apps/details?id=com.pzolee.bluetoothscanner

Shouldn't need these apps with android 11

https://www.androidpolice.com/2020/...codecs-your-bluetooth-headphones-support/?amp
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
I just tried an outgoing call with a Shure RMCE-BT1 neckband. According to the information I have, it is SBC only. Again, no problem. The sound was fine. So, I have *NO* idea of what is going on.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
They're SBC only and if thats the case it must be either something specific to his headphones (profiles etc) or something with his flash/ kernel/ baseband. Bob after coming from stock which os's have you installed and in what order were they flashed?

What comes up in the apps I mentioned when you use the headset you mentioned earlier that only supported AAC, at least for the specs on the sheet? I presume it only says AAC.

[MENTION=4855912]gkg2k[/MENTION]
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
This is a very long shot. I don't have a very good understanding of how the update/install process works. In particular, I don't know what happens to the /system and /system/vendor directories on installation, whether they are simply overwritten, or if they are formatted/wiped first. If the former, then some cruft might be left behind. This is why I make sure to delete the contents of /system using TWRP before installing something (radically) new.

Best wishes,

Bob

---------- Post added at 01:26 PM ---------- Previous post was at 01:14 PM ----------

I only had stock for one day. I used lineage, then I used Fulmic for a short while, and it has been lineage since. I think that I started with 14, but have no idea about ordering. In any case, I completely wiped the phone a number of times, including cache, davik cache, system, internal storage, and data. (Keeping recovery, misc (?), bootloader (?) and the external SD card).

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
[MENTION=4579387]pedro1977[/MENTION] suggested that I give some more information about my phone.

-- Model: LG-H850

-- I use lineageos recovery, but have been doing so for only a month or so. Before that I used TWRP. I switched when TWRP would no longer automatically install OTA updates (local server). Since I'm now using the lineageos recovery, I can now encrypt my phone and still automatically install OTA updates.

-- baseband version: 996FAAAANAZM-1.101802.1.109832.1

-- kernel version: 3.18.113.perf-g86d511f79c9

The kernel is built as a part of my ROM build, so the latter part may be different.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gkg2k:
My H850 is :

Bob's H850 is blessed!

Gianluca

---------- Post added at 09:41 PM ---------- Previous post was at 09:31 PM ----------

I'll try to install lineage-17.1-20200913-nightly-h850-signed.zip (the one before the 20200920 I landed on) in case BT calls got broken in those last 24h.

Thanks,

Gianluca
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
It appears that you have a different baseband version than bobs, you may want to check with [MENTION=2881807]x86cpu[/MENTION] to confirm you have the correct one, if not may be he can indicate how to flash the correct one.

I believe there is one for android 7 and another for android 8.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gkg2k:
Actually, my H850 came with Android Marshmallow, Android 6! And then I started the 15, 16, 17 path. It may have an old baseband, you're right Pedro.

I'm going to ask x86cpu.

Gianluca
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Arrh maybe you have to flash android 7 or 8 before you come to Los 15, I came from 7 myself so maybe it's android 7 you have to flash back to.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gkg2k:
Are we approaching to the solution of this mystery? I want to be like Bob and his H850 with BT calls!

Gianluca

---------- Post added at 12:18 AM ---------- Previous post was at 12:10 AM ----------

Hi [MENTION=2881807]x86cpu[/MENTION] , we are wondering if there's a flashable baseband for the H850 in order to update it to the latest version.

I installed LOS 15->16->17 directly from a Marshmallow 6.0.1 stock H850 and I suppose that caused my BT calls proplems.

Thanks for your help!

Gianluca
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Here is the link to your flashable modem/ baseband file as you will see the baseband version matches bobs.

https://xdaforums.com/lg-g5/development/stock-h850-20v-eu-rom-flashable-zips-kdz-t3788620/amp/

If it bootloops after a few attempts to boot, download and flash the bootloader file.from this page too.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gkg2k:
I'm going to flash it RIGHT NOW!

I've also finally flashed TWRP to 3.4.0-1 from 3.3.1-0 thanks to the TWRP app on Playstore. There was no other way to do it (it didn't flash correctly with Fastboot).

Thank you!

Gianluca
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Make sure you backup your efs and misc partitions beforehand with twrp.

You can flash the newer twrp with the older twrp.