yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wp007:
For you, [MENTION=352753]nmyron[/MENTION], and everyone who is faced with image retention / afterimages on G5: This is definitely NOT a hardware issue. It is a software issue. Just try the open source app "Night Screen" (on F-Droid as well as Play). This app works like a charme. And you even don't have to change the colors. It just lays a mask over your display and that's it. Maybe installing another than the LOS kernel might help, too. I haven't tried.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] totalnoob34:
Like, somebody at LG went "the user's been using Maps for quite some time now, I'm gonna overlay the bottom bar for ten more minutes so he'll reach his destination".

Geez, man.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Well... awesome! I have noticed on my v20 some lags when the gps kicks on, but have yet to identify where the cause is. It does get a good lock though in seconds... inside too. Glad you got that sorted out. If there is anything else you might feel beneficial for others to get into Lineage let me know.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] brainsaw:
Yeah, any news?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] waau:
Hey, is the Time of Flight/Laser autofocus sensor working on the V20? I might have found something that fixes it.

Edit:

Took a look at the V20 stock kernel source and it seems like it's using the same sensor (STMicroelectronics VL53L0)

Commit (Imported from HTC 10)

This still requires some work like dts entries, the LG stuff seems to be fine.

Things that might help

https://github.com/LineageOS/androi...ommits/lineage-15.1/drivers/input/misc/vl53L0

https://github.com/LineageOS/androi...996/commits/cm-14.1/drivers/input/misc/vl53L0

https://github.com/LineageOS/android_device_essential_mata/commit/786b44a0f2468f375d98196f4e6a862b9ed325df (Perms, selinux)

https://github.com/LineageOS/androi.../boot/dts/qcom/msm8996-camera-sensor-mot.dtsi (Motorola Z Force is also using this sensor)

VL53L0 reference

http://www.techinsights.com/about-t...f-flight-sensors-and-the-starship-enterprise/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] azizo07:
Use speedykernel for quickcharge and with given color settings, it will remove screen ghosting. It can also OC. The only downside is that bluetooth is not working.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Solado:
Edit: Never mind.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] SkippyDream:
Ext. SD Bug

Is it normal? My extsd is marked as corrupted but I'm sure it's not.

Any way to fix it?:confused:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] azizo07:
My sd card is working fine. Try it in another device.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
From Settings->Storage unmount the external SDCARD, remove the SDCARD, plug it into an USB adapter connected to a PC and run a file system check. If only the FS was damaged (not to much) than you will be able to recover, but when the is a worn-out or otherwise broken flash memory, then .... the files on the card are probably lost.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] SkippyDream:
Actually I'm sure it's not really corrupted because I run the nandriod bckp of my previous ROM before installing this one and it worked fine. You mean that the installation process may have corrupted the extsd?

EDIT:

I tried to run the SD on my pc: no errors occurred.

Maybe lineage os is not compatible with the 128gb FS?

Should I try with another SD on my lg g5?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Randomuser666:
I had to format my 64gb (Samsung) card first (in the phone). I think LOS doesn't like fat(32).

So probably you'll have to copy the files to your computer first, then format the card in the phone, and then copy them via USB back to the card.

But I'm pretty sure that twrp should be able to read the card even if formated as fat..

The 128bg should not be a problem..

Try and see what happens in the recovery before formatting..
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] walter79:
My daily build works well. no changes only lineage source synced,

http://buildyourownandroid.selfhost.eu/smartphone/daily-builds/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
According to the LOS build schedule the nightly will be build Tuesday.

I wonder whether that will happen today since the last released build dates from 2 January.

Anyone knows where to find what build failures caused the last nightly builds not to be completed/released?

As a side note:

Please vote for BUGBASH-1226 (cannot encrypt phone) [0] for which a fix is pending merge [1]

[0] https://jira.lineageos.org/browse/BUGBASH-1226

[1] https://review.lineageos.org)/197935
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] giaur:
Failed again. Shame maintainer has gone away.

BTW. encryption is not important at all. Worst thing charging is ridiculously slow. But as I said, we have no maintainer, don't waste your time with making any bug reports
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] totalnoob34:
I believe someone posted a supposedly fixed H830 build a couple days ago. I wonder if it really works.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] walter79:
http://www.st.com/en/imaging-and-photonics-solutions/vl53l0x.html

https://github.com/LineageOS/androi...ers/media/platform/msm/camera_v2/sensor/proxy

VL53L0: Measures absolute range up to 2m !!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] giaur:
We need to order issues, more important first, less important later. It takes 8 hours to full charge my h850, the only workaround is to charge in recovery mode. Who could even care encryption while charging is actually not working?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] totalnoob34:
I fully agree on that, it's why I was informing people of the 'fixed' build's existence.

EDIT: It's the fast charging that was fixed, I didn't mention it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
Previous posting of yours make clear that fast charging is very important to you. That might be true for others as well, but for many it certainly isn't. There is no absolute severity when it comes down to issues like these. Issues that may severely hamper using the phone for one can be utterly irrelevant for others. My need for encryption probably is of the same kind: important to some, but not to others.

Personally, and I hope you take this to hart, If I were the maintainer, the dander and anger that emerges from your comments would really discourage me (piss me off) and cause that I would loose the appetite to work on the project. We are not entitled to make any claims ! Please, don't be insulted by this, it just a respectful and open remark.

This is FOSS and ultimately, if you really urgently need a certain feature, it's up to yourself to make that happen. Either do it yourself and contribute or pay someone to do it.

Regards,

Paul

---------- Post added at 11:16 PM ---------- Previous post was at 11:12 PM ----------

A new nightly build has just been completed !
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] giaur:
Fast charging is not important for me. But, working charging is important. 8 hours to charge means charging not working. I hope you can understand that.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
Yes, it's not hard to understand that such long charging times are troublesome. But ... for me charging times are about 4 hours (max) and it seems that most users do not have to cope with very slow charging either. So, could it be that your charger or phone is the culprit ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] goast:
Or we could all just stay on stock since none of us including myself can't and aren't doing anything about said issues except complain. I bought the unlocked version thinking support would exist, it doesn't. I looked around decided to stay stock until I switch phones. Life goes on guys.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] brainsaw:
Whoever made the new build possible: Thank you!

And if QC is working again, it would be awesome.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
That statement is just wrong - it is a well known fact that charging isn't working as intended and that the charging current is locked to around 350 mah.

That's on ALL roms based on LOS and has been since about August with the last good build being from 2017-07-18, it has nothing to do with the charger or cable since it works just fine if you reboot to recovery and charge it there. It started happening at the same time LOS made some kernel changes.

The issue has been posted at https://jira.lineageos.org/browse/REGRESSION-1000 and users in pretty much all rom threads have complained about it. So I would say that most users HAVE the issue, not sure why a few say they don't.

I don't use my phone that much so I just charge it daily to avoid the issue - but that in turn is supposed to be bad for my battery. No idea how yours can charge in 4 hours unless a) you use less than half the battery or b) you're on a older build :confused:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] giaur:
I don't think so. I exactly remember latest working nightly (August 2017). If I revert to latest working (or revert kernel only), charging is fine again.

4 hours for you... from 5 to 100%?

---------- Post added at 10:56 AM ---------- Previous post was at 10:50 AM ----------

This could be right reason. Maybe those who keep saying they does not have issues have broken battery (capacity is lower than it should be), for example, old battery. So it will charge faster with such low current, but also it will discharge faster.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
To put things straight:

I did *never* wrote or suggested that fast-charging would be working, only that normal charging suffices for me and takes a lot less than 8 hours. Charging times like 8 hours are understandably undesired and obstructive to reliable usage of the phone. So please do not frame the discussion otherwise.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
Yep. But it is not often that the battery level runs that low, normally it is about 40 to 50% (10+ usage hours left) when charging starts during the night.

Battery life of my H850 with daily usage (several calls, some listening to internet radio and a few hours of reading, GSM reception not to good) between 24 and 36 hours. Actually the battery its condition is not perfect, because the phone will fairly quickly shut down when reaching something like 10%, i.e. the automatic power save mode doesn't endure long. That may many reasons, sub-optimal battery condition being one of them, but also wrong thresholds or level readings may cause this.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Mojo Dodo:
Hi [MENTION=4618911]rfrazier[/MENTION] , some time ago you mentioned how you build your own LineageOS ROM in order to be able to use UnifiedNLP.

Recently you mentioned the gps.conf that you were using (which actually turned out to work out of the box with a current LineageOS, if I got it right?):

Well, does this mean, one still has to build an own LineageOS ROM, as you described it earlier, to be able to use UnifiedNLP?

I have the problem that "UnifiedNlp is registered in the system" isn't checked (also after rebooting).

I have the LG G5 H850 with LineageOS 14.1-20180102-NIGHTLY-h850 (didn't flash Google Apps) and UnifiedNlp (no GAPPS) Version 1.6.8.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] loretta1980:
Hi,

i just downloaded lineage-14.1-20180123-nightly-h850-signed.zip via the integrated update function. i pressed update and the H850 rebooted to TWRP 3.2.1.0 where i had to install it manually. after succesful installation and swipe dalvik, the phone dont reboot to system , but every time to recovery.

tried to install lineage-14.1-20180102-nightly-h850-signed.zip again, but it still restarts to recovery. does somebody know how i get back to system? i dont want to do a full wipe again.

Thanks
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] azizo07:
Using twrp terminal:

dd if=/dev/Zero of=/dev/block/platform/msm_sdcc.1/by-name/fota

Manually download rom and flash it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] LittlePlumb:
Actually it suffices to reboot into twrp manually. I believe it's the autoreboot into recovery that messes things up.

(I download via the updater but reboot and flash manually)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Randomuser666:
The typical twrp loop, happens always when you do not install SU immediately after the update.

The solution is posted numerous times in the forum.. You will find it easily.

A full wipe won't help (as far as I remember)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
gps.conf works out of the box. That is for onboard gps. To use UnifiedNlp for network location, you still have to make it a privileged app by getting it into /system/priv-app, either by self-building, or copying on each new update. You also have to change the build.prop so that it doesn't use qualcomm nlp (either change build.prop, or make a /data/local.prop with "persist.gps.qc_nlp_in_use=0").

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Mojo Dodo:
Hey Bob, thanks a lot for your response!

Alright, but that sounds a bit different from the changes you described earlier:

Could you briefly sum up the steps that are needed to get it working? Thanks in advance!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] waau:
Hello, I've managed to port LG's QuickCharge implementation on a CAF based kernel, expect it to hit the development section soon.

Until then I've attached a relatively stable build for the H850. I've also slightly lowered the panel voltage to reduce image retention.

Source: https://github.com/waau/platform_kernel_typhon_caf
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Can you post the last known good kernel?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Randomuser666:
Awesome,

I can confirm it works just fine.

Many thanks!

Do we have to re install the kernel after each LOS update?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] LittlePlumb:
Appreciate the effort. For me however I boot into the system, get maybe one/two minutes before the device reboots and gets into some kind of bootloop.

H850
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] waau:
Yep

That's strange, are you on the latest bootloader/modem firmware (20s)? Any special stuff like f2fs?

E: Also check the kernel zip MD5

7A7C8506A993A696CA346ED494AB1B6A
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] LittlePlumb:
It's been a while but no f2fs. Did flash light patch but I'll check with modem/bootloader 20s.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nimueh:
Thank you :)

Does this work only on LOS or on other LOS-based roms like RR as well?

And could others that tried it please report back if it works or not? So far I only see 1 "yay" and 1 "nay" :laugh:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] waau:
Try a clean flash. I'm currently building a clean Lineage kernel without any changes besides the QC ones for both the H830 and H850 anyway in case a clean flash doesn't do the job.

Should work on any Lineage based ROM.

Edit: Added the standard Lineage kernel for the H850 with the QC changes

Edit2: Temporarily pulled it

Edit3: Making a separate thread since I don't want to clog the discussion here

Source: https://github.com/waau/android_kernel_lge_msm8996
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] brainsaw:
Btw: latest official H850 build 20180123: QC does not work. Did not clean flash though
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] stefanmewa:
I can confirm - Clean install of newest build + this kernel - I don't have "quick charge" text while charging, BUT it seems normal charging is working perfectly :) Thanks a lot!

Huge improvement, even up to 2300mA.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] SkippyDream:
I was running Lineage OS (2018-01-02) when I got an update notification (version 2018-01-23).

I tapped on "Flash" and it automatically rebooted into recovery (twrp-3.2.1-0).

Something went wrong, so I had to manually select the zip file from the lineageos_update directory (/data/lineageos_update).

The flashing process ended without any errors, but when it automatically rebooted it couldn't load boot: it rebooted into recovery.

I manually selected "Reboot into system" from the main menu, but it booted into recovery again.

Firstly I wiped everything from TWRP, flashed back the 2018-01-02 version: recovery again.

Then I decided to restore my previous complete nandroid backup (Fulmics Rom, Stock based) but I got a bootloop.

I tried to full wipe the device using LGUP Store (version 1.14.3) combined with Uppercut (version 1.0.0.0) and the proper DLL extracted by the KDZ using a tool called LGFirmwareExtract-1.2.6.1, but the REFURBISH option gives me that error:

https://imgur.com/a/7RRFb

so that the only thing I've been able to do was choose the UPGRADE function in LGUP, but bootloop didn't solved and twrp recovery have been replaced with the stock one.

The KDZ files I tried to flash were:

H85020s_00_OPEN_EU_OP_1114.kdz

H85020a_00_OPEN_EU_OP_1030.kdz

H85010C_00_OPEN_EU_OP_0415.kdz

Can somebody please help me?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rflores:
Try this;

https://xdaforums.com/lg-g5/how-to/bring-lg-g5-to-life-download-mode-lgup-t3565508
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] giaur:
Excellent. It works indeed. Shame on official maintainer.

---------- Post added at 11:51 PM ---------- Previous post was at 11:27 PM ----------

You just bricked your phone. Don't use Lineage Updater on G5. Never. Remember it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
What commits got it working? If you can identify those I can help get them into Lineage properly. The kernel is the same for the G5/G6/V20 devices (I have a V20 device). If course it'd be nice to have it working in Lineage, but having your Kernel to fix it is helpful too. Thanks.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] waau:
I reverted Rashed's power changes and ported the whole power driver from stock so there aren't any besides the main one. Before porting the drivers from stock there were problems with the charging controller, cable detection and the charging scenario but I didn't debug them because I didn't have time to. Yep they are mostly are the same but I think the merges from the stock G6 kernel broke them 181342, 181479, can't really know for certain but I will take a look.

While it's broken on the G5/V20 the G6 users report that quick charge is working for them https://xdaforums.com/showpost.php?p=74787335&postcount=486.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Well if we can identify just the g5 changes to get in that would help. The v20 isn't horrible at charging. My ampre shows similar to the 1800 max and does charge. It appears could be fast, but does not say it. I notice the lower my battery, the higher the amps charging. So we can't break the other devices fixing the g5, but if you have anything in git be that can help narrow down those changes. Thanks.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] waau:
I will let you know as soon as I fix it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Mojo Dodo:
I'm a bit surprised that the microG/unifiedNlp is discussed so little here. Are most of you guys using the GAPPS, so that you don't need unifiedNlp registered into the system?

This seems to be a general problem with Android 7/LineageOS 14.1. I followed a guide (on simsingh.com -> how-to-use-microg-on-lineageos-without-xposed-to-replace-google-play-servicessignature-spoofing/ - I can't post external links here, yet), allowing signature spoofing on LOS using "tingle", but I got an error message of the python script.

There is a fork called "LineageOS for microG" which provides all the ROMs with the patched signature spoofing and pre-installed microG: lineage.microg.org. I downloaded the build for the G5 H850 and it works OOTB. However, my doubts concerning the security reasons remain, although on their FAQ they claim it not really making the device very vulnerable.

[MENTION=4618911]rfrazier[/MENTION], the way you get unifiedNLP working sound a bit different!? How do you get the app to work as a privileged app without signature spoofing?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
Does that mean that you will post a pull request against https://github.com/LineageOS/android_device_lge_msm8996-common ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] waau:
Yes, once I make a patch clean enough so it doesn't break charging for other devices. Made some changes to a stock Lineage kernel but it's not quite ready yet.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
Please, do not get personal.

This is FOSS and you are not entitled to anything whatsoever from whoever.

Developers like Rashed contribute without any financial rewards in their own spare time ...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Sorry about not replying earlier. No need to spoof signatures. That's only needed to replace Google's Play Services (e.g., to verify user for some bought apps). I don't use it.

What you need to do is include unifiedNlp (without GAPPS) and disable the Qualcomms Nlp service. I haven't tested all permutations of files, and some of my changes are to get rid of cruft, but I think that all that is essential is the following.

*****

/vendor/lge/msm8996-common/proprietary/priv-app/

Make directory NetworkLocation, put (f-droid's ? UnifiedNlp.apk (no GAPPS) in there with the name NetworkLocation.apk

*****

/vendor/lge/msm8996-common/Android.mk

Put the following section in, giving the properties of the NetworkLocation package.

include $(CLEAR_VARS)
LOCAL_MODULE := NetworkLocation
LOCAL_MODULE_OWNER := lge
LOCAL_SRC_FILES := proprietary/priv-app/NetworkLocation/NetworkLocation.apk
LOCAL_CERTIFICATE := PRESIGNED
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := APPS
LOCAL_DEX_PREOPT := false
LOCAL_MODULE_SUFFIX := .apk
LOCAL_PRIVILEGED_MODULE := true
include $(BUILD_PREBUILT)

(I just took another entry as a sample. It might be that one can change the LOCAL_MODULE_OWNER to something else.)

*****

/vendor/lge/msm8996-common/msm8996-common-vendor.mk

In the PRODUCT_PACKAGES += \ section put

NetworkLocation \

(Unless at the end, then adjust as needed)

This (I believe) picks up the package for installation.

*****

/data/local.prop

Create file with "persist.gps.qc_nlp_in_use=0", hence disabling Qualcomm's service.

*****

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] chaostimmy:
Anyone else with Bluetooth audio problems on latest build ?? :(
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
I have odd issues with connecting to Bluetooth headphones sometimes, as its likely to be kernel related, its unlikely anything will be done to fix it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] chaostimmy:
I have installed the older version 20180102 and i have no problems anymore.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
I'm going retract that, connecting is retaining the connection is OK, its the play button, it won't work until I push play on the music player, once.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EvilHowl:
Hi, G6 dev here. Quickcharge works on G6, it probably uses a different power module to provide charging to G6. It's weird, but it works even better than on stock I think.

I managed to get it working on Android 8.0, but still not on 8.1.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
This may have been fixed in today's new build.