yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wp007:
Yes, I had that before on 14.1, too. But I think this is not the problem, because sometimes the apps get the content, sometimes they don't, without asking for permission. Sometimes restarting the app helps, sometimes not, sometimes rebooting the phone. It happens with apps that were pre-installed (Music) and with apps, I installed manually (Conversations). Very strange.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shadow52:
Thanks [MENTION=5002084]interista4ei[/MENTION] and [MENTION=7767230]Nedkoff[/MENTION] for the suggestions. [MENTION=5248574]interista4e[/MENTION], grazie, I'd been reading about your misadventures earlier in the thread. Knowing that you eventually succeeded gives me some hope. As an agnostic atheist I don't share your belief in the almighty, but I hope you found your faith again ;)

I'm still trying to get this working and figure out what the heck is going on. Looks like all my issues were caused either by installing TWRP as a system app, a broken version of OpenGApps or having the SIM/SD card inserted on first boot.

[MENTION=5248574]interista4e[/MENTION] I have tried upgrading from a clean flash of 15.1 with every combination of with/without to-x86cpu.zip/gapps/magisk I can think of, always the same result.

[MENTION=7767230]Nedkoff[/MENTION] the only thing I hadn't tried yet was reverting to stock (although I had flashed what I believe are the latest modem, boot and bootloader zips for Nougat from here https://xdaforums.com/lg-g5/development/stock-h850-20v-eu-rom-flashable-zips-kdz-t3788620). I've now tried flashing the COMPLETE zip, booting to system, shutting down (without running through setup), re-flashing TWRP, formatting data, flashing 15.1 and gapps, booting to system and running through setup, rebooting to recovery, dirty flashing 16.1 and gapps, rebooting to system. Lineage starts loading, then reboots to recovery as always.

I seem be able to flash and configure 15.1 consistently now (my earlier issues there were more likely to do with trying different gapps versions and the mind fog of tiredness after endless rounds of flashing). Whatever I do I can't seem to get back into 16 though, either upgrading from 15.1 or clean flashing. It always reboots to TWRP. Occasionally when I then try to wipe and start over, I will receive messages that either data or internal storage couldn't be mounted, I'm not sure if that has anything to do with the issues I'm experiencing. Rebooting to recovery and trying to wipe again always succeeds without error.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nedkoff:
Before installation of 15.1 you must format data
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shadow52:
Yup, that's a in my instructions for upgrading from stock and earlier reply to you.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shadow52:
Collecting logs at boot

I was thinking I could try to get a logcat of the failing boot as described here https://gist.github.com/varhub/7b9555cdd1e5ad785ffde2300fcfd0bd

I've restored a nandroid backup of a flash to 15.1 with gapps and 16 dirty flashed over the top with gapps. However when I try to carry out the steps to adb mount the partitions with the phone in TWRP recovery connected to my PC, I get this:

> adb shell mount system
> adb shell mount data
mount: mounting /dev/block/sda17 on /data failed: Device or resource busy

Anyone know how to get this working? Or any other way to grab a boot log?

UPDATE: See x86cpu's instructions here https://xdaforums.com/showpost.php?p=78207002&postcount=3
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] testerac:
Stock-To-LOS16 Upgrade Thoughts

If I may give my thoughts; I recall having an issue with zips, and also found one KDZ which simply didn't allow for boot. My way around all the hassle was to stick to KDZs only as that seemed to simplify. My suggestion would be:

Revert to stock unless you have more time to experiment and perhaps learn/ conquer this issue. Unless you're working on getting us all treble support (I wish) I'd definitely suggest reverting to stock.

Now I also found a distinction between two "stock" ROMs listed within the help forums for The G5, and one KDZ simply didn't work. I don't have time to find the forum but I will include a pic to show you which file names I've saved that worked in the past. There is also the lg-firmwares(.com) site which hosts kdz files. I see your links point to the EU version so there's hope that my thoughts will apply to you as I have successfully taken a LG G5 H850 from stock to x86-cpu's latest ROM. Holding thumbs!

There is also the LineageOS notes and procedure to consider from here: https://wiki.lineageos.org/devices/h850
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shadow52:
Thanks for the advice. To clarify - did you mean give up and use stock Oreo for the time being (while the ROM is progressed from beta state) or try reverting to stock Nougat flashed as a kdz to more completely "restore" the phone before trying again?

Both have crossed my mind - I really shouldn't be spending so much time on this at the moment given other commitments :rolleyes: What's frustrating is that the performance of this ROM was perfect following the first dirty flash over my existing 14.1 install (after flashing 15.1) barring the battery drain. I fully expected to have issues with that first flash - what's really taken me by surprise is to have issues with a clean flash when a dirty flash succeeded (for the most part).

I'm finding this difficult to put aside having come close. That and that booting to stock during all this testing reminded me what a travesty LG's take on Android is and why I was so pleased to migrate away from it initially.

Your screenshot shows a stock Oreo ROM - did you manage to upgrade to 16.0 from stock Oreo without a downgrade to Nougat first? Presumably via 15.1?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] testerac:
To answer your question: The Rom (this one by x86cpu) is working absolutely perfectly for me. We benefit from LineageOS & latest Android security updates as well as ability to choose Google Apps (or not).

To clarify: The KDZ files as I understand them are like super-zips and they will flash the entire Rom and all partitions for you - this has the benefit of a lesser probability of a mistake so I'd grab the appropriate and latest Rom from lg-firmwares.com and flash away. From there, direct your attention to this Rom by x86cpu. I presume that your bootloader is unlocked as you're able to flash, so install the latest TWRP for your device from twrp.me and then reboot directly back into twrp to flash x86cpu's rom and then Google Apps from https://opengapps.org .

That's my advice and thoughts however it does worry me that you've been flashing partitions etc. My guess and hope is that the KDZ file will fix and basically level out anything you've changed or tweaked and balance the ROM state back to stable and "default". Holding thumbs!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shadow52:
Thanks for the clarification. If I could ask for one more bit of advice - when flashing the KDZs:

I assume the latest Nougat kdz would be the one to use, not Oreo? 20v?

I've never completely reverted to stock with a kdz- do you do this using LGUP/Uppercut? I downloaded these from Autoprime's share some time ago to have them handy but have never used them.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] testerac:
If the last official LG base was Nougat (Android 7 / 7.1) then yeah go with that from lg-firmwares.com .

Then let the rom settle and test that all works fine: e.g. connect with wi-fi and also test sim, camera, sign in to google account. I'm being pedantic here for your sake as this isn't a prerequisite yet a nice-to-know that all went well. What may occur is that the phone will then offer the Oreo (Android 8) update by itself. Failing which, repeat the update/upgrade as you did with the KDZ rom flash. It may be nice to do a factory reset as well to test and also flesh out all data before proceeding, post your tests of success.

Two URLs to read up on flashing:

- https://xdaforums.com/lg-g5/how-to/info-autos-g5-thread-t3350648

- https://lg-firmwares.com/how-to-flash/

Take your time and digest the info and enjoy the process as its fun (well, I found it fun). Also familiarize yourself with that LineageOS link I posted above about the process to install and note the guides, as well as the download mode key sequence for flashing KDZs. Then go ahead and enjoy the process of upgrades and tests once you're familiar with the processes and procedures, and if you like - come join us in using x86cpu's latest rom when you're ready. Funny enough I ordered a new battery and slapped on a new screen protector today, in fact. Obviously I'm happy in invest in the device using the latest Android Pie LineageOS rom by x86cpu as all is working going rather swimmingly :D
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shadow52:
I used Autoprime's Uppercut (ignoring MalwareBytes and Windows Defender's warnings about Trojans) to try and refurbish to 20v. Received a message that refurbish isn't supported with this ROM, I tried upgrade instead, this failed partway through.

Following Autoprime's advice I repeated with 20a. Still got a message that refurbish not supported, but upgrade worked. I let the upgrade complete, then unplugged and used the hardware keys to factory reset. Then used uppercut again to upgrade to 20v, this time it completed without error. I repeated the factory reset using hardware keys.

Now when trying to boot the phone get's stuck at the LG logo with LED flashing blue. It gets worryingly hot - I seem to recall warnings that the G5, like the G4, doesn't react well to excessive heat and that this can cause a hardware failure, so I stuck the phone in the fridge while giving it time to complete the boot. After more than half an hour it was still stuck at the logo and very hot, so I battery pulled. I repeated the flash of 20v without performing a factory reset, same result so I battery pulled again and left it there.

Any ideas what I might have done wrong?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Ismrocks1234:
bro whats ur device model no and what is the problem u r getting...

i will help u resolve it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shadow52:
Thanks - H850 EU with bootloader unlocked. The problem is the phone fails to boot after Nougat stock restore (upgrade) using UPPERCUT, just stays stuck at the LG logo.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Ismrocks1234:
ok and whats the problem that u r facing
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shadow52:
I edited when I realised I'd left that a bit short ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Ismrocks1234:
ok bro give ur fb or instagram id. it hard to reply on xda forum..
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] testerac:
1. Which ROMS did you attempt to flash (links)?

2. Have you tried going back to the Nougat stock and doing a factory reset from within: Android > Settings > Factory Reset-something-of-that-nature ... ?

---------- Post added at 03:22 PM ---------- Previous post was at 02:36 PM ----------

Something else you could try is to reflash the Android Nougat ROM - either using the one you just tried and let it boot into Android and do a few tests and the download and use LG Bridge (firmware update software) straight from LG Support found at lg.com and attempt to update to their official Android 8.0 .

If the ROM you used didn't allow for the phone to boot up, then head on over to lg-firmwares.com (as I mentioned before, above) and flash the latest Android Nougat from there with autoprime's uppercut. Then boot in and test and if all well do the factory reset and re-test, and then follow the same procedure only using the the lg-firmwares.com latest and last Andorid 8.0 ROM. Thumbs held.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shadow52:
H85020V and H85020A, both from lg-firmwares.com

https://downloads.lg-firmwares.com/...ca935b41217728/H85020v_00_OPEN_EU_OP_0323.kdz

https://downloads.lg-firmwares.com/...481a661a70e770/H85020a_00_OPEN_EU_OP_1030.kdz

Trouble is I can't get the phone to boot now. Do you know of any stock Nougat ROM that supports the "Refurbish" option in UPPERCUT?

The H85020V version I used is the latest Nougat version on lg-firmwares.com.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shadow52:
Neither of the Nougat ROMs booted, so I decided to try the very latest Oreo, H85030F. After upgrading to that with UPPERCUT from H85020A that actually boots. First it booted to a message saying I'd entered an invalid decryption key and would need to wipe - I wanted to wipe anyway, so I let it do this. Then it rebooted successfully to the Oreo setup screen (although there was a message about invalid NTCODE [,]).

I didn't bother running through setup, I just flashed TWRP, formatted data and tried a clean flash of 16.0 out of blind optimism/desperation (I know the Oreo bootloader isn't advised but I've seen others report success so what the hell, this phone definitely doesn't seem to like Nougat atm). 16.0 Still boots to recovery.

It's weird that I'm now getting messages about encryption. I noticed flashing Magisk there was a message about encryption being set there too. Will have to read up on it as I really don't want anything encrypted on this phone ever.

Still inclined to think there's something I've messed up on one of the partitions not touched by TWRP (misc, fota) given the issues booting to stock Nougat as well as 16.0. I'll try running through setup in stock oreo, then reset factory.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] SaidJan:
[MENTION=2881807]x86cpu[/MENTION]

Do you want the syslog for this bug: screen freeze about 10 to 30 seconds after unlocking phone.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
Did you install Magisk before rebooting to Oreo? If you do the first without installing Magisk, the internal memory gets encrypted.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Put up a link to it, I wouldn't mind taking a look.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] SaidJan:
I've send you in PM.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] totalnoob34:
Do you mind sending it to me as well?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shadow52:
Storage corrupted

Looks like storage is getting corrupted following a clean flash/boot of 16.1. When I go to wipe in TWRP after the failed boot the last message I see is "Unable to mount storage". If I format data and reboot recovery, the wipe goes completes normally. Any ideas what could be causing that? I did format data before the clean flash so the clean install of lineage shouldn't be trying to encrypt it.

Thanks for the earlier suggestions all, I'm still working my way through them after a bit of a break.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
lineage-16.0-2019111[12]-X86CPU

lineage-16.0-2019111[12]-X86CPU

November security update.

The h830/h850 is listed as 2019112 due to builds crossing a day boundary.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Arda Süzen:
Always on display is working now, thank you for builds.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
I can look, see: https://xdaforums.com/showpost.php?p=78207002&postcount=3 for getting a logcat/dmesg. It is a v20/16.0 post, but same thing for G5. You'll want to be sure you can either su/magisk, or get adb root and paste the commands in. Then in TWRP you can get the files out.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shadow52:
Thanks - your instructions were a lot more straight-forward than others I've seen! Took me a while to re-flash 15.1 a couple of times and get the permissions sorted for Magisk before the upgrade, but got it working. Grep'd for errors and there are a lot in there. My impression is still it mostly relates to devices/HAL (there seem to be a lot relating to the camera) but it mostly goes over my head...

I've just PM'd you a link to the logs.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Thanks, [MENTION=2881807]x86cpu[/MENTION]. It now builds.

I had a bit of a problem, which I've not yet dealt with. I've been using Harry Youd's Midnight Snack Build Script to automate building and signing images. The names of the files in /out/target/product/h850/obj/PACKAGING/target_files_intermediates have changed, which broke the signing parts of the scripts. So, I had to do things more manually. (Very boring, so I'll change the scripts later.) Other than that, all went as expected.

I haven't installed it yet. I need to make sure that everything is backed up first.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] TacoShow:
OP, you are a god doing godly work. I haven't flashed yet, but I will soon.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] golan101:
Lg already abandoned this device, most of the roms are not updated, and you just keep this device alive,

Thank you so much man,

I'm currently on your los 15.1 and I'm going to flash this soon enough,

Again, can't thank you enough man...

Keep up the good work!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] JqlLHv5Kk:
Been waiting a long time for this. Thanks for all your hard work dude!! So far the ROM is ALMOST as smooth as butter. The only bug I've encountered is sometimes the screen won't respond after waking up (can't unlock or reboot). A quick battery pull solves the problem though. Other than that I'm loving it so far!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nedkoff:
Without enabled developer options, there is no problem with the fingerprint.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Scostam:
Disabled them, problem still there
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nedkoff:
Do hard reset and after that don't enable them

Again mine device is h850
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] dimon222:
[MENTION=2881807]x86cpu[/MENTION]

Google seem to show messages about Google+ shutdown now in these links, any clue what was there on these posts about Developer Options? (in first thread's message under "PSA by CM")
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Scostam:
Still nothing

---------- Post added at 01:32 PM ---------- Previous post was at 01:31 PM ----------

Next build will probably solve it tho
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nedkoff:
And magisk cause fingerprint problem
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] hightech316:
Thank you for building v16 for our beloved g5 !

:good::highfive:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Sdobron:
It doesn't. I never installed magisk once and had the fingerprint issue.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nedkoff:
On the first install I have problem whit camera. I installed this rom directly from stock oreo and whatever I do there was no camera. Then decade to install 15.1 first then "to ×86 CPU" and after that I do dirty flash to 16. After couple flashes I realized that developer options and magisk break something in the rom
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Google or google assistant as default app as I only have none or google in the menu option, setting google in my case doesnt work????
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] mie_ayam:
Thanks i will try it now.

---------- Post added at 01:49 AM ---------- Previous post was at 01:45 AM ----------

Include KCAL? My h830 screen burn in.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
You can't from an Oreo booystack. It needs to be nougat, also from stock you need to wipe data first. No need for the to-x86cpu.zip.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
kcal support is in the kernel. You must have a kernel tweaker to adjust though
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] djskribbles:
x86cpu answered your question. But since Oreo/15.1 I believe, there is a built in color adjustment in the livedisplay settings. The main cause for image retention on our device seems to be the blue channel in RGB being too high. Lowering it will not only make the colors /greyscale look more natural, but it usually fixes the image retention issues. I'm doing just that and I don't have any IR issues. These are the settings I'm using: R-100, G-93, B-87.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] djskribbles:
Anyone else getting sms really late? I got a text at 5:30PM and the notification just popped up at around 9:50PM lol.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] O6E1N7WvBV:
battery life is quite poor for me. i lose 10% in an hour even with sleep on. the biggest kernel wakelock for me according to BBS is video2. not sure what is causing this because battery usage isn't recording any app activity.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] no_means_no:
Tried to flash this over last version (28.10.), but it always booted very long and then back to twrp. Flashed version from 28.10. over and lost a lot of data (basic settings).

Had to switch back to an older backup.

Anyone else with problems like this?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shadow52:
It sounds similar to my issue, in the long boot and TWRP bootloop. Was it roughly 25 minutes, while the phone became very warm?

However my issue does not appear to be with a particular build, but rather a result of successive flashes. I was initially able to flash 13.9. Now 13.9, 28.10 and 12.11 all result in a TWRP bootloop.

Is your device H850?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
I sent a PM as to what [MENTION=534608]shadow52[/MENTION] problem was. I'll indicate here though too. Bad opengapps. Get an be updated one. They messed up.

Fixed: https://gitlab.opengapps.org/opengapps/all/commit/66ea7a3282ae364ae454ff7f955c6aebb545464d

11-12 01:39:14.142 13892 13892 W PackageManager: Privileged permission android.permission.WRITE_SECURE_SETTINGS for package com.google.android.dialer - not in privapp-permissions whitelist[

Not sure if [MENTION=4551503]no_means_no[/MENTION] is the same issue or not.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] no_means_no:
Jup. It is

Gesendet von meinem SM-T813 mit Tapatalk

---------- Post added at 02:28 PM ---------- Previous post was at 02:27 PM ----------

Is it possible to dirty flash both, newest lineageos and newer opengeapps?

Gesendet von meinem SM-T813 mit Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
My steps for flashing:

Boot TWRP

Wipe Advanced, ONLY system

Install Lineage

Install Gapps (newer is fine)

Install Magisk (any modules are still there).

Wipe cache/dalvik

Boot.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] no_means_no:
... but wiping system means I'm gonna lose all apps...? Doesn't it?

Gesendet von meinem SM-T813 mit Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Check logcat for something like this:

11-12 01:39:14.142 13892 13892 W PackageManager: Privileged permission android.permission.WRITE_SECURE_SETTINGS for package com.google.android.dialer - not in privapp-permissions whitelist

After about 10 min. of those errors, it'll boot to TWRP. Go to an earlier gapps then even if the latest is doing it.