yashsingh1/xdaforums huggingface dataset:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] montechristos1:
Unable to install GAPPS

I managed to install lineage-15.1-20180629-UNOFFICIAL-h870.zip and it woks well so far.

I am failing to install open_gapps-arm64-8.1-nano-20180704.zip

Is there a previous version I should try?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Alpha-Retard:
What error are you getting?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] julian__b:
I also installed it today and I had no problems.

On the official LineageOS 14.1, I always had to reboot the recovery between flashing the ROM and the GApps, so naturally, I did it for this ROM as well. Maybe this will fix you problem?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] anxname:
Is the microphone Problem already solved in the H870 if calling though Speaker?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kriniot6495:
It works. If you move your phone sometimes it doesn't.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] montechristos1:
Thanks! It worked like this.

Did a clean install of all 3 zips and I am fully operational now! :good:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kriniot6495:
Does someone know if/when this will be become the official LOS 15.1 for H870?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] V0idst4r:
x86cpu back at it again, building for my device :D

(also you should get with the times, I'm sure the builds would be much faster on an x64 cpu lol)

What does it matter if it's official?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] BigBrad75:
x64 or it didn't happen =P
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kriniot6495:
It is just a curiosity.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
When i took the alias of x86cpu, 64-bit wasn't even thought of. Took it in college when I was nicked named cpu for getting my labs done before class and getting an A in every CS class. Most programming was on 8086 systems. cpu was to popular to take so I had to improvise. I was using it before Google was even around.

Official status... soon.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Manya3084:
Any chance of a new build this week if the official builds miss this Tuesdays deadline? Noticed a heap of kernal commits overnight.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Most likely, yes, just been a busy last couple weeks.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Manya3084:
All good. No rush, current build for the US997 has been running flawlessly.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
lineage-15.1-20180712-UNOFFICIAL

lineage-15.1-20180712-UNOFFICIAL

WARNING: You must flash the to-x86cpu.zip before flashing this zip.

Finally, new builds going up. However, this one has a big twist to it. I've started signing my own keys. So you will need to flash the to-x86cpu.zip first. If you do not, you will end up back into TWRP as the keys won't match anymore.

IF you are encrypted, since TWRP cannot decrypt your /data yet, you must get the migration.sh, push it to your phone, run it with x86cpu option:

adb push migration.sh /data/local/tmp
adb root
adb shell sh /data/local/tmp/migration.sh x86cpu

If should report it updated the keys, and now reboot and flash immediately. IF you forget, you must flash an older one (so keep your old copy), and do this, or you'll have to wipe data.

Some EAS energy changes in the kernel.

Updated to LineageOS sources (July security added.)

An attempt to get Ok Google working (not fully sure).
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ralaud:
[MENTION=2881807]x86cpu[/MENTION]

These are true and funny disclaimer :D

Just wanted to thank you, I appreciate your work.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] bitnerd:
If you can't decrypt /data then how would you be able to update your lineageos install?

Btw, what version of TWRP do you recommend for this ROM?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Only TWRP cannot. You can still update by putting the .zip in an external sd card.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] batpoil:
[MENTION=2881807]x86cpu[/MENTION]

Thanks very much for this.

Can you tell me if encryption works on this update? I am running your previous one and it always hanged the moment I tried to encrypt it. I am running a US997 with Nougat bootloader on TWRP Melina 3.2.1.

Thanks a lot and if I am doing something wrong please let me know! Your work is appreciated.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
I run the same and am encrypted without problems. Granted, TWRP cannot decrypt it yet though. It was working since the first one I put out.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] batpoil:
Thank you very much for your reply. The problem I seem to have is that, if I flash the Nougat bootloader, I have fingerprints working but no Encryption. If I don't, I have the opposite. Could you just clarify if the following is ok?

1) Boot TWRP

2) Wipe format everything.

3) Flash Nougat bootloader (US997_17A_(TWRP)_bootloader_only) Wipe cache-dalvik

4) Flash to-x86cpu Wipe cache-dalvik

5) Flash Lineage 20180712 Wipe cache-dalvik.

I don't use Gapps so just reboot.

Maybe there's something in there that you will see I do wrong?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
If it's a clean flash, then the to-x86cpu.zip is not needed. It should not matter, but could you try gapps? What you did should be ok.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] santoshsk2:
Dolby Atmos Mod:

Has anyone successfully installed the Dolby Atmos Mod on this ROM. It keeps force closing on me.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] droidsometimes:
Greetings,

I wonder... is it okay to update to H87020b before flashing latest 15.1 unofficial?

Just wiped my H870 (has been running 14.1 official for a while) and went back to stock temporarily - currently on H87020a.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] EmilioDallaTorre:
I'm not trying to annoy everyone again, but I have that annoying question to do...

What are the steps needed to have it official?

I'd like to update from my official 7.1.2...

I swear that I'm sorry to ask this question.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
If you are on LineageOS official 14.1.... then.. flash to-x86cpu.zip, the UNOFFICIAL zip. gapps . magisk, etc. the to-x86cpu.zip is not needed for updates.

If you are on stock, it's a full wipe, then flash. to-x86cpu.zip is not needed.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] EmilioDallaTorre:
Yes, I know it...

My question was all around that OFFICIAL denomination (which I know it doesn't make the difference).
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Sorry,... i read that as coming from official.

https://github.com/LineageOS/charter/blob/master/device-support-requirements.md

That's about it. The g6 follows all of this. There are some minor things to try to adjust and get taken care of, but pretty much there.

It would be nice to have Oreo blobs, but unsure if we have that done before official. I know the g6 has them, however the g5/v20 also share most everything the g6 does too. Those to devices are not yet available. It would be extremely difficult to split the g6, then merge it back with the g5/v20 later.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] EmilioDallaTorre:
Oreo blobs?

Do you mean binary blobs?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Yes... (i also accidentally posted g5... hard to keep track of 3 devices sometimes).

The blobs area mostly cameta libraries and interfaces
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] EmilioDallaTorre:
May this or this for dual-camera help?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] droidsometimes:
Well, looks like updating was nor a good idea.

Now TWRP (latest official) won't stick.

Flashed it twice - shows the TWRP splash screen, then reboots. :/

Or would I need some other TWRP for Oreo anyway?

*wanders off to do some research*

Edit: XDA Labs screwed up
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] EmilioDallaTorre:
Have to say that on my Zenfone, different bootloader was meaning different TWRP...

A bootloader is something deeper than a kernel, it's hard to think that TWRP is gonna work...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
lineage-15.1-20180720-UNOFFICIAL

lineage-15.1-20180720-UNOFFICIAL

New update.

Synced to latest sources.

Testing putting back the stock LG thermal.

Added msm_irqbalance to help balance irqs during sleep.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Manya3084:
So far seems to be running fine.

I noticed you have your own twrp as well (for the us997).

Just thought I'd say it's working fine but there seems to be a mouse cursor stuck in the middle of the screen.

Cheers
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
yes i know. that twrp works with lineage encryption. i borrowed the device tree from the v20 twrp, so not sure why there is a mouse cursor there.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] droidsometimes:
Turns out that neither TWRP 3.2.2 nor 3.2.1 works with stock Oreo firmware.

Tried H87020a and H87020b firmware but phone always reboots after TWRP splash screen.

So, you guys out there with working 15.1-unofficial, are you using Nougat firmware (baseband etc.)?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Yes. Otherwise fingerprints won't work either.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] droidsometimes:
Okay, reverted to H87011i Nougat stock firmware, and successfully flashed 20180720-UNOFFICIAL+addonsu+opengapps-pico with latest official TWRP, which is also working again.

No stuck mouse cursor here btw.

But another thing I noticed: the name/label of the external sd card is shown as 'G'.. but it really is 'G6'.

Anyways, test driving that build now, thank you x86cpu for providing it! :good: :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] EmilioDallaTorre:
Can you please tell me how you solved with TWRP not sticking with Oreo bootloader?

EDIT: I got the problem solved by using Melina TWRP.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] droidsometimes:
I couldn't solve it with Oreo (see first sentence of the post you quoted) - so I downgraded to stock Nougat firmware.

In my case: H87011i_00_OPEN_EU_OP_0108.kdz

(of course that will wipe the phone - just saying)

Edit: wtf XDA Labs why do you keep adding a new post of mine to this one?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
I had that issue for only exfat cards, my fat32 displayed properly.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] aNGERY:
I'm currently on Nate's build, and it runs great, but the battery life is poor, and the phone gets hot.

I was curious what kind of battery life you guys were experiencing with this particular build?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] droidsometimes:
20180720-UNOFFICIAL, issues encountered so far:

- charging rate drops to ~0.8 A when screen is on, goes back to ~1.8 A when screen is off (LG 5V charger)

- fingerprint unlock is slow, takes about 1-2 seconds most of the time. seemed to be faster though once doze/deep sleep has kicked in.

Update: Hmm, difficult to see a pattern here, but it seems to happen mostly when no app is in the foreground, so wake to home screen. Vibrates immediately after touching the sensor, but then takes its time to actually wake up.

- BetterBatteryStats (XDA edition) didn't show CPU states - fixed by rebooting

- I noticed there was no deep sleep time listed in BBS - seems fixed by that reboot as well

- the same reboot broke auto brightness - toggling the state didn't fix it, also moving the slider while auto brightness was enabled did nothing. Brightness slider worked with auto brightness off though. Another reboot fixed it.

- the same reboot broke auto rotation - screen was stuck in portrait mode. Another reboot fixed it.

- also that reboot broke something sensor related - Barometer Reborn widget gave me a spinner instead of showing the pressure, and the sensor tab in CPU-Z was completely empty. GPS Status also showed no sensor readings. Another reboot fixed it.

- after every reboot, date is 2017-11-17, before it syncs the time from the network - so never if airplane mode is on. I don't remember that happening with 14.1.

I'm scared now! *hugs beloved G6* ;)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Emma22288:
I have deep sleep problems too. Also I have the autobrigthness and rotation problems after reboot too. The fox I found it clear chance and dalvik in recovery and not rebooting after that. Turn off the phone and than turn on. It's kinda strange.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] natemckn:
I'm also seeing deep sleep problems on 0720 build. On older builds (like your 0629 one) it would deep sleep correctly for a day or two before bugging to 307mhz at the lowest, but on 0720 it doesn't even work right for an hour after rebooting. My guess is it is related to the EAS stuff in the kernel? I may try doing a build with parts of the kernel reverted to see if I can get it working but I'm not sure when I'll have time.

Here's what I'm seeing in Battery historian: https://i.imgur.com/teU7lKY.png

On first boot, sleep works and the "CPU running" line has gaps where it deep sleeps. But then it doesn't, even with the screen off for hours, the CPU keeps running. I did a reboot later and the same thing happened, sleep works correctly for less than an hour before getting locked on.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
This is the new thermal-engine working properly. It is designed to limit charging when screen on to minimize heat. Have you tried a non-QC charger?

Deep sleep is working properly now. Unsure of the large number of people having rotation issues.

Deep sleep is working much better for the latest kernel. Before I would have almost 0, now my big cores are in deep sleep most of the time, especially with minimal use and SOT.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] natemckn:
Are you referring to an unreleased version, or this supposed to be fixed in the 0720 build? Because on 0720, I get 0 deep sleep time outside of the first hour after a reboot. Maybe something is different between v20 and g6? Because when I was running your previous builds it would deep sleep properly for a day or two before bugging (which I believe that firmware cache commit fixed), but on 0720 it stops working much faster (so I think something new broke it). I can show you more battery historian or CPU spy stats if you want. The last build I did about a month ago had the firmware cache thing cherry picked and deep sleep was working correctly for me for over a week without reboot. I don't know how to tell what is preventing it from sleeping, but something in the latest build made it worse for G6.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
0720 release. The firmware cache kernel change is already merged.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] droidsometimes:
BBS screenshot of 20180720-unofficial.

Phone's been sitting idle on the desk, airplane mode on.

The 5+ hrs of deep sleep are from right after reboot, hasn't increased since 1 1/2 days.

Wakelocks not showing anything suspicious.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] droidsometimes:
Because of XDA Labs.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
lineage-15.1-20180726-UNOFFICIAL

lineage-15.1-20180726-UNOFFICIAL

Updated sources.

There is a test script run, which should just output "Checking for vendor partition...". Currently, it is just testing things out. If you use adb shell while flashing it and tail -f /tmp/recovery.log, there is more output. There might be a real possibility of shrinking /system by 512Mg and creating a 512Mg /vendor partition.

AOD is disabled now.

The stock Thermal engine is still in place. This will limit QC to 1a, which screen it on. Non-QC appears to go higher if screen on. This is to minimize heat while using it.

Testing a kernel change to get rid of a lge_charging_wake_lock, which seemed to just creep up at times and cause Deep Sleep issues after hours/days... (Was days for me.)

Pending changes to merge: http://bit.ly/2OjU6s0

Again, this is signed with my keys, so if you have not flashed the to-x86cpu.zip, you need to flash that at least once coming from a build earlier than 0720. (There is no harm if you flash it again, but it is not needed). If you wipe data, the to-x86cpu.zip is not needed to be flashed.

You might notice a file in the g6 folder "recovery-twrp-us997-2018-07-18-3.2.2-1.img". It is a us997 TWRP recovery that works with LineageOS encryption. I may make ones for H870/H872, but have not yet.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] aNGERY:
X86, what do you think would happen if I flashed this over Nates build?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
You should be ok. His was LineageOS based too. You would need to flash the to-x86cpu.zip as my signing keys will be different. If you forget to flash the key change, don't worry, the O/S will boot up and immediately shutdown to TWRP. :D
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] aNGERY:
Thank you. Also, I'm on Zefie's oreo TWRP. Do you see that being an issue?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] hawkeyexp:
[MENTION=2881807]x86cpu[/MENTION] - can you please pimp a bit first post for starters to be sure firmware version is the correct one (it seems latest nougat is needed) and correct twrp cause to many are available on posts.

Thx
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] aNGERY:
Thank you. Also, I'm on Zefie's oreo TWRP. Do you see that being an issue? It flashed just fine, and I booted into system. Then I had 2nd thoughts about compatibility.

Thanks for working on this, by the way. I'm hoping to get more than 22 hours of idle time now.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
It should be ok. my twrp just with if you've encrypted.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
I could sure. Do you know which one works, the last N one? i might be about to add an assert to prevent flashing too, so people don't have the problem.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] droidsometimes:
Well, for H870 (I live in EU), this is the firmware I used: H87011i_00_OPEN_EU_OP_0108.kdz

Seems to be the latest Open EU Nougat firmware, at least according to lg-firmwares.com.

(That is also the last firmware that works with latest official TWRP)

And thanks for the new build! :) Will flash it once I get home.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Thanks, with that info I'm going to try to put a flashing assert on the .zip. Which will check and if you are higher using the O firmware, it will abort. This would prevent users from flashing it. Once we get all msm8996 devices (g5/g6/v20) to O and tested, I can adjust the assert to ensure being at the O blob level.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] hawkeyexp:
[MENTION=2881807]x86cpu[/MENTION]

I use the same firmware but currently stuck on always boot to twrp. First time after reflash org firmware and installign twrp lineage build (my custom one) it booted.

At bit crazy...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] droidsometimes:
I vaguely remember having that problem when I installed TWRP/LOS for the first time on my G6.

IIRC I had to run a special 'dd' command (dangerous if you get it wrong!!) to zero out a certain area on some partition (was it 'misc'?) or something like that.

Alas, not at home atm, so no access to my collected howtos - sorry.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] aNGERY:
This build is great. Battery life is substantially better, and it's just as snappy. However, people cannot hear me on my speakerphone, but I can hear people great.

Any ideas on that?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
That would happen if you were before 0720 and flashed this latest build. The signing keys changed, so it would boot into the O/S, then boot back to TWRP.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
Ok... I've put an assert on the new ones: lineage-15.1-20180727-UNOFFICIAL

It should prevent users with O firmware flashing it, so as not to be in a semi-working state.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] droidsometimes:
20180727? Da-yum, builds faster than I can flash! :D

Flashed 20180726 (+clear cache & dalvik), and after reboot to system I had the 'no screen rotation, no auto brightness, no sensors (except thermal)' situation. :/

Also, I had the 'date/time totally off' problem, like so far after every reboot.

Another reboot fixed the glitches.

Also now, BBS won't show the Summary and Partial Wakelocks stats any more. I cleared app data, but that didn't fix it. (maybe Android battery stats got messed up because of the date jumps?)

Tried yet another reboot - that didn't fix BBS, but once again brought back the rotate/brightness/sensors problem, which was fixed again by another reboot.

I'll install BBS from the Play Store tomorrow, and see if that version behaves better.

I have a logcat from after first boot, if that helps?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
I'll take a look at the logcat to see if I can find anything why the sensors keep dying.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] droidsometimes:
Logcat attached.

Funny how at the beginning the time is in the past, then it's correct (minus DST offset), then it's in the past again.

System modifications: none except latest official addonsu and OpenGapps Pico.

About to flash 20180727 now, but 20180726 already had a healthy chunk of deep sleep during the night. :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] droidsometimes:
Well, looks like BBS XDA Edition was the reason for slow wakeup after unlock.

Froze it, installed the Play Store version, and fingerprint unlock/wakeup is fast.

If I swap it back, unlock/wakeup is slow again.

Also, the Play Store version now shows summary and partial wakelock stats.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] droidsometimes:
Sigh.

While flashing 20180727 I forgot to do the 'mv /sbin/logd /sbin/logd.old && killall logd' special move in TWRP, so lost root upon boot into LOS.

Reflashed addonsu as soon as I noticed, but now the LOS install is confused beyond repair it seems.

Constant high CPU usage (phone is always hot), can't force close apps anymore, Terminal Emulator app no longer works, and whatnot.

So, I'm gonna do a full wipe and start from scratch, once I made app backups with Titanium Backup.

Update: Forgot I had made a nandroid backup of 20180720 - successfully restored that and managed to flash 20180727, this time without losing root. :)