yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] karma0321:
Tried this new build, H850, clean install still goes with no working camera and frozen compass. Went to the 15.1 -> 16 path and now everything is working fine :)

Just a question, is there a way to use the grandangle with the built in camera?

Thanks a lot [MENTION=2881807]x86cpu[/MENTION]!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EtenNewbie:
Build issues - missing blobs

Hi,

I have been attempting to build and am getting errors due to missing blobs. I have downloaded the latest zip and gone through the usual Extracting Blobs procedure.

Most files are there but within the output there are several missing files:

!! vendor/lib/libsdm-disp-apis.so: file not found in source
!! vendor/lib64/libsdm-disp-apis.so: file not found in source
!! vendor/lib/com.quicinc.cne.server@1.0.so: file not found in source
!! vendor/lib/com.quicinc.cne.server@2.0.so: file not found in source
!! vendor/lib/libtime_genoff.so: file not found in source
!! etc/permissions/vzw_sso_permissions.xml: file not found in source
!! priv-app/HotwordEnrollmentOKGoogleWCD9335/HotwordEnrollmentOKGoogleWCD9335.apk: file not found in source
!! priv-app/HotwordEnrollmentTGoogleWCD9335/HotwordEnrollmentTGoogleWCD9335.apk: file not found in source
!! priv-app/HotwordEnrollmentXGoogleWCD9335/HotwordEnrollmentXGoogleWCD9335.apk: file not found in source

The build is failing due to these files not being present.

Does anyone know where I can get hold of these ?

Cheers
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Jolt151:
Did you try TheMuppets's proprietary_vendor_lge repo?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Or mine
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Jolt151:
Aren't your changes merged into TheMuppets? Or do you have additional ones?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Most are, but I wait to ensure things are working before I put a pull request otherwise I miss things like the g5 camera issue that I forgot about. The fix is in mine but not Muppets yet.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EtenNewbie:
roomservice.xml

I have found the repo on github, is it added like this:

<project name="x86cpu/proprietary_vendor_lge" path="tree/lineage-16.0/h850" remote="github" />

?

Could you please sure your roomservice.xml so I don't miss anything else ?

Thanks
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
I think that you want more than just h850. At the least you also need msm8996-common and g5-common. Here's my entry.

<project name="x86cpu/proprietary_vendor_lge" path="vendor/lge" remote="github" revision="lineage-16.0" />

Of course, this pulls more than you need.

In any case, my build yesterday failed to boot. I haven't figured out why yet. It may be that there are some changes that aren't yet public at all.

Best wishes,

Bob

PS I did a quick "dirty" build this morning. The ROM booted fine. It doesn't contain the July security patches, so those aren't public yet.

RLF
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] SaidJan:
That's funny that LG G2 has Pie officially supported by LOS now, and G5 has been removed totally from LOS supported device (now even 15.1)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] SrZambie:
Tried the latest build yesterday on my H830 with Oreo bootloader and it's great so far but I've noticed some bugs.

Clean flashing has camera and rotation not working but dirty flash over 15.1 works.

Brightness slider is a bit off, I have to nearly max the slider just to have a visible screen in a lit area.

Battery gets warm when plugged in and fully charged, my battery is around 40C just from doing some light activities.

CPU clocks high on the current governor, I watch a YouTube video and the clocks are maxed out making a noticable battery drain, changing the governor to interactive fixed this.

Changing the display size in settings can make the recents button stop working. I had to restart the System UI and it goes back to the old recents layout then switches to the new layout.

It great work so far and hope to see an official release in the future.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Dlions:
I clean flashed too (on H830) both camera and auto rotations work well, but i have nougat bootloader

yes the brightness is a bit off
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] cajunzman:
Could we update the PSA links from CM as G+ is dead
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wp007:
Coming from LOS 14.1 official is it possible to first dirty-flash LOS 15 (incl. to-x86cpu.zip) and then dirty-flash LOS 16?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Sdobron:
CM is also dead
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] cajunzman:
Yea I know just wanted to know what information was stated in those post cause I tried to flash and it broke saying e:/ error loading legacy something and everytime I got completion status [ ] aroma gapps also errors out after selection just force quits when it actually goes to install.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bjnews:
Tried the latest build yesterday on my H830

it's great so far, heat reduce a lot, but I've noticed my H830 cannot sync time with my wifi router, before it can synctime with mobile network and WiFi, no matter public or private.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] golan101:
Is it safe to flash the latest update? Do all 3 cameras work?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nedkoff:
It is safe, all cameras work with GCam port
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] mahayam:
First of all, thanks for continuing to work on this lame device.

I wiped everything (really, everything, including data and internal storage).

I flashed lineage-16.0-20190702-X86CPU-h850 on an H850 device, then nanodroid-patcher, then nanodroid-microg (I don't think they're relevant

to the issue I have, but I'm mentioning just in case).

I am getting random WiFi mac addresses every time I reboot the device, although I never enabled such a feature and I can't find anything related to this in the menus anywhere.

I am also getting "unavailable" Bluetooth mac address and constant Bluetooth crashes when I try to turn it on (no Bluetooth chip detected?)

I followed autoprime's guide to fix the mac addresses in misc, but the macs in the file are correct both for WiFi and Bluetooth.

I'd appreciate a quick answer or I would have to go back to LOS 14 :(
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
If you are going from 14.1, go to 15.1 first. Ensure BT/WiFi works properly, then 16.0
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] mahayam:
I came from your 15.1, where these issues didn't exist.

I mentioned that I wiped everything completely so technically I'm not coming from 14 or 15.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Come from a 15.1 though. Set it up initially, then dirty flash to 16.0
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] optionalmgrr.la:
just asking what's the status of this getting official build status? :D
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ankerlevel:
Making my own builds has been failing lately.

Can you share your repopick list with us?

Thanks in advance!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] mahayam:
That fixed the Bluetooth (why?!), but I am still getting random MAC address for WiFi after every reboot (maybe Bluetooth as well, I didn't bother to check).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] :
MAC Randomization is a feature in Android. It is intended to stop untrusted WiFi networks tracking users via MAC address (see here:That fixed the Bluetooth (why?!), but I am still getting random MAC address for WiFi after every reboot (maybe Bluetooth as well, I didn't bother to check).[/QUOTE]<br /> <br /> MAC Randomization is a feature in Android. It is intended to stop untrusted WiFi networks tracking users via MAC address (see here:https://source.android.com/devices/tech/connect/wifi-mac-randomization"]https://source.android.com/devices/tech/connect/wifi-mac-randomization). If you go into developer settings is there an option called "Connected MAC Randomisation"?

That fixed the Bluetooth (why?!), but I am still getting random MAC address for WiFi after every reboot (maybe Bluetooth as well, I didn't bother to check).[/QUOTE]<br /> <br /> MAC Randomization is a feature in Android. It is intended to stop untrusted WiFi networks tracking users via MAC address (see here:https://source.android.com/devices/tech/connect/wifi-mac-randomization"]
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Jolt151:
The reason for random mac addresses is most probably that your misc partition is corrupted. A fix was implemented a while back for everyone who corrupted their misc partitions to give them a random mac address instead of ending up with all zeros and not working at all, so that's probably what you have.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Agghost:
USB preferences not working i can't choose anything from the options so i can't MTP my phone on my PC! Does everyone have that problem or just me? i'm on H850
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] djskribbles:
Enable developer options and there's an option to set the default USB connection mode called Default USB Configuration or something. Set it to file transfer.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Agghost:
Yes you are right thanks buddy
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] eekthecat:
First thanks for the great job, but I get strange bug with the last 15.1 for H830.

Every time when I try watch YouTube video or try it 3D games the phone restart.

YouTube app open fine, but when try start the video the phone reset.

Someone have any idea?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gallicos:
Fixing the camera?

I am also having the black camera problem since about the 25th of June build. Only the wide angle one is working.

Does anyone know the reason or have a solution without wiping and flashing? I am a developer, so I can adb.

Greets
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
greedy OOM

Quite often open apps are killed in the background (more than with 15.1 ?)

Is the out-of-memory policy not a bit to greedy ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] da-phil:
Wideangle camera not available

I just flashed lineage-16.0-20190702 on my H850 which had lineageos-14.1 installed before, doing a full wipe before (incl. data).

Apparently everything works well so far, except the wideangle camera is not available in the standard camera app, however I can choose it in the Open Camera app, how is that possible? Does anybody have an idea?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] LittlePlumb:
Hey everyone,

I am considering flashing this rom onto the lg of my girlfriend.

1. From what I have overflown so far, this rom seems daily driver material. Could anyone confirm?

2. What's the current status on the safety net check? (I believe that's what it's called - in other words, does Netflix run on this rom without magisk or any other form of root/root hide?

3. This one may be potentially off topic, but how is the GPS? If I remember correctly it was generally poor on this device (h850 in my case) and does anyone know if there is a hardware fix for the gps? There was a thread but as far as the actual cause to poor performance went was inconclusive.

4. I would be flashing from stock (device isn't even unlocked yet ?). But I would assume I can just flash 16 straight away?

Thanks in advance. ?

Regards
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Dlions:
the standard camera that comes preinstalled on LOS 16 does not support the second wide-angle camera youll have to instal a third party one eg. G Cam Open Camera
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Nope and it speeds up the devices performance o)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] da-phil:
I am pretty new to this rom too, so I can't really comment on points 1 to 3, but point 4 is something I also suffer from, I just discovered this thread:

https://www.ifixit.com/Answers/View/394237/GPS+Not+working+well+at+all

Apparently it's entirely caused by the hardware (antenna arrangement), not the software.

---------- Post added at 04:56 PM ---------- Previous post was at 04:52 PM ----------
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
Okay, that it can help with performance is known, but a to greedy OOM hampers performance: starting an app anew may cost more than it gains. Also one loses the prevous state that the killed app had, a (small) price, but still a cost.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
I'm aware of the pros and cons, we had it set lower before and the performance suffered hence the more aggressive management. You could try a kernel editor some of them may allow you to change the threshold o). Once it hits 500-600 performance should deteriorate, I've been averaging 700-900 (similar to 15.1) so I'm not sure what benefits if any you will experience.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] da-phil:
Volume button issues

After flashing lineage-16.0-20190702 I also noticed that my lower volume button does not work anymore and the upper one works sometimes.

It's definitely not a hardware problem, because I've measured with a multimeter, that the microswitches and the connections are good. I even bend the contacts on the motherboard slightly upwards to ensure perfect connectivity. Besides I never had any problems with my volume buttons on lineage-14.1, it must be a software issue. Anybody an idea?

Update: it actually was a hardware problem, I could fix it by making sure the contact springs have proper contact to the other half of the frame.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] da-phil:
But this already worked on lineageos-14.1, with the stock camera app, why shouldn't it work with a newer version? :confused:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] debianmain1:
Greetings... I use this as a DD, that being said....I don't know about Safety Net status (never come up for me) & I'm also not sure about the GPS..if it was poor with stock...bet is good that it will be poor with this ROM also. You CAN'T go directly from stock to this ROM--there is LOTS of info on how to do it....you need to flash 15.1 FIRST so the camera will work. Do a basic setup of 15.1 & then just dirty flash 16 on top of it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Dlions:
I know it worked on LOS 15.1 too (I Think) Lineage dropped support for the second back camera on the installed camera app dont know why TBH
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] hobbit19:
[MENTION=2881807]x86cpu[/MENTION]

Thanks for your work

pls fix IR
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] LittlePlumb:
1. I imagine I won't be needing gaps for the 15.1 flash?

2. I think they safetynet or google play protect checks if your bootloader is unlocked. Idk I will just give it a try.

thx so far
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] YossiAxda:
Hello

Any news about non-european LG G5 H850 bootloader unlocking method?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] debianmain1:
No problem with Google Play & my unlocked bootloader.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
On this build (and my own build) there is still something wrong, possibly related to "clean flash bug".

Perfd won't start - it's continuously being spammed in logs.

logcat:

06-26 20:34:37.998 W/<email omitted>( 533): perfd is not started

dmesg:

[ 123.357807] init: starting service 'vendor.perfd'...
[ 123.374774] init: Service 'vendor.perfd' (pid 2620) exited with status 0
[ 123.374825] init: Sending signal 9 to service 'vendor.perfd' (pid 2620) process group...

I don't know, but assume this won't occur if coming from LOS 15.1

There is also this:

06-26 20:35:07.996 W/libc ( 8571): invalid pthread_t (0) passed to libc

Also flooding the log. Possibly coinciding with the above.

You can see the log I posted previously ("H850-LOS16.0-debug04.zip") for the rest.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] da-phil:
I also struggled with GPS for a while and as far as I can tell it's a 100% hardware related issue.

After opening my phone recently, I also investigated the GPS problem and could bring it back to life.

Check out those threads:

* https://xdaforums.com/lg-g5/how-to/gps-issues-demystified-t3707934

* https://www.ifixit.com/Answers/View/394237/GPS+Not+working+well+at+all
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Ensure you have the latest blobs from my repo. I did fix the perfd one.

https://github.com/x86cpu/proprietary_vendor_lge/commit/0f6dce8969b262d50c10eff19eb89381dc57d6d7
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Hmm, I'm pretty sure you haven't updated your repo since I built my own rom, but that shouldn't matter because this applies to

your latest rom (20190702) as well. You didn't use this commit in 20190702 ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] no_means_no:
Thank you very much.

I'm just so frustrated about the gps issue. Hoped it was software related, updated to 16 which is running superb. But not being able to use gmaps for navigation is a pain in the bum. I don't dare to open it up and do all the work, and I don't want a phone with built-in battery....

Gesendet von meinem SM-T813 mit Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
I have two g5s, and GPS was broken on both. I fixed them using folded sections of aluminum foil placed between the GPS mesh (antenna) and the little point of the connector that is supposed to engage with the mesh. The problem is the little point of the connector puts a dimple in the mesh, which prevents a good connection. After inserting the aluminum foil, all works well.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] da-phil:
Same here, I like the LG G5, although it's already old, but totally sufficient for me.

Opening up this phone is not difficult at all, because it is not glued together, that's the reason why it ranks so high at ifixit.com, that's actually how I found this phone ;)

It's worth it, give it a shot!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Ludoboii:
Sorry for the question, but I was planning on flashing LOS 14.1 on my h850, encrypting the phone, then flashing LOS 15.1 and finally 16.0 in order to have a working encrypted phone. What version of TWRP should I use in order to be able to decrypt the memory and flash .zip files? The latest from the official website, which is version 3.3.1-0, or version 3.2.3-0 from x86cpu's Google Drive?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nedkoff:
There is no need to flash 14.1 only 15.1. For TWRP I use the newest version.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
I last had a successful build on 7th July. There are some "open" commits from the 9th. I tried building with them yesterday, with no success.

Depending on which cherrypicks I include, it either doesn't build (e.g., missing dependency for 251246 / "msm8996-common: Add QCOM's WFD implementation") or doesn't boot (possible conflict betwen 250378 / "msm8996-common: Kang GPS from OnePlus3 Pie" and 250477 / "msm8996-common: Update init.qcom.rc for pie changes").

I'm probably going to leave it alone until the next security update.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Ludoboii:
Did you encrypt your phone on unofficial LOS 15.1? Can you decrypt the memory in the latest TWRP?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] karma0321:
Just found the 20190715 release.. do you have some changelog for it? Thanks!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Forgot..opps. There only thing added is WiFi direct now. I am unable to test though too see if it's working.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
[MENTION=2881807]x86cpu[/MENTION]

Just quoting myself here in case you didn't see it.

UPDATE:

Turns out none of the folders specified here:

# Create PERFD deamon related dirs
setprop ro.min_freq_0 384000
mkdir /data/misc/perfd 0755 root system
chmod 2755 /data/misc/perfd
mkdir /data/vendor/perfd 0770 root system
rm /data/vendor/perfd/default_values
chmod 2770 /data/vendor/perfd

is actually created. They don't exist.

So what I did was "adb shell", with su, I created those folders with the exact commands as above.

Then what I got was this, in logcat:

type=1400 audit(0.0:1444): avc: denied { write } for name="perfd" dev="sda17" ino=541220 scontext=u:r:perfd:s0 tcontext=u:object_r:system_data_file:s0 tclass=dir permissive=0

Perfd still not started.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Yes. This is one of those flash 15.1 first. Vendor apps (like perfd) cannot write outside /data/vendor. If you create it, you'll have to restorecon as well before it can be used too. There mpctl gets put there. I need a funny way to hexedit "/data/misc" with "/data/vendor"
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Don't know if I fully understood what you said there, but I did a "restorecon" on both '/data/misc/perfd' and '/data/misc/perfd'

and now the logspam is gone :victory: Not sure why you would need to further hexedit. I assume problem fixed.

What I'm wondering is why those folders doesn't get created by that init script in the first place. And do we really need that "data/misc/perfd" folder ? I looked at oneplus3 repo, and it only has the vendor folder.

Or maybe that's some pixel specific thing...

The only recurring things I see now in logcat is these two:

"LightsService: Light requested not available on this device."

"ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only"

Though I'm used to seeing some noise from ANDR-PERF-MPCTL in stock rom also.

EDIT: Ok, so I see now that /data/misc/perfd seems to be used but not the vendor one. I guess that's what you meant above. But then what was that data/system thing you already hexedited ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Android 9 (pie) rules changed. perfd is "vendor.perfd", which is only allowed to create/own/write to /data/vendor directories, not /data/misc. I need to figure out ho to squeeze "vendor" into the "misc" for a hexedit. Or.. drop perfd all together.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
But do we really need to use the Pixel perfd ?

Omar Avelar's kernel has it's own qcom perfd included and a few updates from joshuous (eas/boost) in the kernel.

Edit: That said, I'm all for dropping it as well. We can use a complete in-kernel solution from sultanxda. Which has input-boost, wake-boost and app/process-boost.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Dlions:
WiFi-Direct does not seem to work still cant share files. The WiFi direct option isnt on the list of options in the share menu
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Zorcnecrophades:
There is some way to increase the volume of multimedia? it sounds a little low both in speaker and with headphones and thank you very much for your work!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] soniccm:
On latest update I have sudden crashes in stock browser

In previous build I didn't have this issue...