yashsingh1/xdaforums huggingface dataset:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] sun_is_shinning:
how did you manage to install this kernel?! i mean, how to disable encription and make it to work?! i have flashed the Oreo kernel but get a black screen after boot and keep doing this, i entered fastboot now and flash twrp melina but, BUT my backup only shows system partition to restore and not the boot and etc, maybe i need to reflash all! damn

did you make it to work without flash everything again?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Format data and you're good to go
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xdzeus:
the h870 do not work boot loop gives you black screen when it reboots after the lg logo tried to fomat data but still the same ist there any way to solve this problem or we neet to wait fo a fix ?? flased the kdz oreo back becouse forgot to make a boot backup
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
If you had Magisk installed do the following after having formatted data:

Flash kernel, reboot recovery flash magisk and boot normally
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xdzeus:
so in this way the kernel should work???
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] musiejj:
For me it wasn't booting up yesterday, so I flashed boot.img from stock, and it worked, and I ll try now one more time, cuz I've got magisk installed

Edit

I can confirm that it worked, if you flash magisk again, if you don't have signal just reboot couple of times. It's faster than stock, once I've got lag, when screen was turned off, I wasn't able to unlock phone
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xdzeus:
i can confirm it too works only after fashing magisk ill test it this weekend
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
For those having problems with their kernel, please note the following:

All versions of TWRP have a strange issue on our devices where sometimes (seems more promiment in my releases tho), when you flash a emmc (like boot, recovery, etc), it doesn't actually stick until reboot.

What this means is, if you flash a rom (with boot.img), then flash melina, then flash magicks, you just flashed boot.img 3 times, and it gets messy. The surefire way to do it is as follows:

Boot Recovery

Install ROM

Reboot recovery

Install Melina

Reboot recovery

Install Magisk

Reboot system (or reboot recovery again if you have more things to do against boot.img)

Both Magisks and Melina read back the boot.img partition, and in doing so, if you have not rebooted, sometimes returns a mix of both the new and old boot.img.

Basically, don't flash boot.img more than once per TWRP session. Simply use TWRP's "reboot recovery" option each time you flash boot.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ZinX09:
Going to try this out again , a few minutes ago it didn't boot probably because flashed magisk first

---------- Post added at 09:56 PM ---------- Previous post was at 09:19 PM ----------

Hi, can someone tell how to confirm Melina is installed? It still says 3.18.71

Thanks in advance
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
LG hides the advanced kernel version, you can get a tool like Kernel Adiutor, choose "device", then at the bottom it will have the full kernel string, which should start with "Linux version 3.18.71-melina".
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ZinX09:
Yes, i can see that it's installed now. Thank you!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] sun_is_shinning:
so, i didnt manage to install this again.

now, i setting up the phone again, what i have done:

1. flash Oreo ROM.

2. push Melina TWRP via fastboot and reboot the phone into recovery.

3. install SuperSU.

REBOOTED

4. setting up the phone (settings, debloat, etc etc)

REBOOTED AGAIN.

Now i have a question: now what order i need to flash the kernel? all the steps so i can go easy and dont mess again with all phone because is boring as f**k to reset it and setting all again.

Can anyone provide the magisk link to this phone?

If i install kernel i need to do a wipe of what and when?

i am not noob but is my first time flashing Magisk wich i never used since i always use SuperSU.

thanks in advance...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Magisk: https://files.persona.cc/zefie/files/cell/LGUS997/extra/

Order:

Melina

reboot recovery

Magisk

probably wipe data if installing magisk and you already installed supersu
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] QQboss:
I am getting staright to fastboot every time I try to boot since flashing the kernel on stock ROM. Any ideas or remedy? H870.

edit: reflashing magisk did the trick
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
rel_o2 out (still no fix for drivedroid. technically it works, but LG is hijacking the USB so damn fast...)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ZinX09:
When a flash the new kernel over the old one, do I need to reflash magisk?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
No, you shouldn't have to.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ZinX09:
Hmm, bootloop on when updating to rel_o2, couldn't even boot to recovery to restore boot. When I press yes to enter recovery, the screen just goes black and just restarts again.

I'm flashing stock with LG bridge.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Unfortunately it's needed, otherwise the phone won't boot.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xdzeus:
I can confirm that it works with the magisk trick
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ZinX09:
Ok I'll try this now
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] darek1995:
Awesome work again, my G6 is a beast again, no heating issues, no thermal throttling! THANKS!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mprovi_15:
I've problems with the kernel and Ok google voice control. When I enable the function of recognizing my voice and then restart the app after a few minutes the function autodisables itself. It happened a few versions back, I think it was rel 6 but in nr2 it was solved. Now in oreo2 happens again, and it's a bit frustrating sometimes to be unable to use ok google. I'm sure it's the kernel beacuse in completely stock didn't happen.

For the rest of the kernel optimizations all are awesome and you have done a great work [MENTION=759634]zefie[/MENTION].

Thank you.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zaphod-159:
When I look at my kernel version it simply says "3.18.71", does this mean the kernel is flashed properly?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] micgeb:
Only a few postings before the question has already been answered. Actually, on page 24
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] moomoon03:
[MENTION=759634]zefie[/MENTION]

After few days of test all ils working very smooth on my h870 rooted stock oreo with your o2 melina kernel!

I'm using zzmoove governor and everything is very fast!

All is smoother than on my fulmics4.2 nougat and i keep hope you make an o3 version

Edit: i'm also using my mod thermal-engine-8996.conf very good with throttling
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] darek1995:
Hi mate, can u share your thermal config with me? :D
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] moomoon03:
Look at one of my thread there you will find the link of my topic with my thermal file

https://xdaforums.com/lg-g6/how-to/setup-to-lg-g6-faster-heavy-game-smooth-t3763385
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] darek1995:
Okay, i give a thumbs up! :)

Now the PUBG runs as on an OnePlus 6.

The ex kernel manager inbuilt temp overlay is shows 70°C for the CPU.

Now I'm curious to "basic" usage for battery life with these settings.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] moomoon03:
I'm glad you appreciate my personal tweaks?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Is it safe? I noticed this phone gets hot enough on its own.

If so, anything I can do kernel side to help, or to make your tweaks default?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] moomoon03:
Here is my ex kernel screenshot
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
Speaking of phone temperature: do you plan to include voltage control on your kernel? I know it can bev somewhat dangerous to play with it, bit I think it's worth to try. And I'm not really sure if undervolting too much can be that dangerous. The worst thing that could happen would be a forced reboot, wouldn't it?

I have played with voltages on all my previous phones and all I had was less heating and slightly better battery life (once I found stable values, usually -75mV or so)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
It could possibly freeze into a cpu locked state. Depending on how the bootloader handles the Power+VolDown for 6 second override, it could also prevent that, forcing you to wait until the battery depletes to reboot.

I'm not sure the gains are worth the risks.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] darek1995:
After one day, my phone is definitely much smoother at animations, scrolling, and on gaming with your kernel tweaks.

The micro-lags are almost gone forever.

The cpu ex kernel manager temp overlay shows invalid values I think. When I woke up, it showed 50°C, but the phone was actually cold.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] moomoon03:
That soound good! Happy il helped
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
The values are correct. 50° is the temperature of the cpu, which is a little part of the device and you won't feel it with your hand. And don't worry too much if you see something above 60 or 70 (for a few seconds), this is normal during heavy tasks. This phone also dispel heat efficiently; it cools down to 50° in seconds.

Compared to my old galaxy note 4 (which was a toaster) this phone is usually 15-20°C cooler.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] darek1995:
Okay, i tested some other apps which shows the cpu temp, and the highest was 42°C after 30m of PUBG mobile with HD graphics, and on high frame rate.

And the phone isn't burning my hand. :)

I think LG stock thermal config is just sucks..
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] moomoon03:
That's right!??
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
I'd better say it's too conservative. Here is my experience. App is called "cpu throttling test"

On stock file the cpu ramps down a bit at the beginning, but after some minutes of cpu temp higher than ~65°C, it gets stuck at low frequencies despite cpu temp went quickly cooler, to ~50°. So I think its goal is to only let cpu temp go higher than 70°C for a minute or to at most. And ideally keep it at 55-60°.

So the phone is cooler, but performance may suffer a bit.

On modded file, performance is much more stable and doesn't suffer a lot. But heating was highly increased. Keeping cpu temp at more than 70°C for five minutes resulted in a really hot phone, with battery reaching 42 (on stock it reached 37).

Test for yourselves and decide. I think that for now I will stay in stock since I prefer to care about mobile lifespan than performance. But it will also depend on usage. This app emulates a really extreme usage and maybe this won't happen in every usage

Edited: I'm using xda app and I don't know how to edit the post to add one more screenshot with cpu temp using modded file ( it was 42°C)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] moomoon03:
Here is my screenshot with o2 kernel on stock oreo with my mod file
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
But was this with normal usage or after testing throttling with the app I named?

Also, I forgot to say that I'm still on Nougat
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] moomoon03:
I play game and i have no issues
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xmxm:
"Unsupported device" error

Whenever I am trying to flash it on US997, I am getting "Unsupported device". I've used your LG-US997 20A ROM, but I've flashed Magisk 16.4 before flashing this kernel - could this be the reason for this error message? If not, what could be wrong?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Did you accidentally download the h870 version (of my kernel, or the copy of TWRP you are using)?

AFAIK H870 TWRP will run on US997 because the differences are in things we dont use in TWRP (like wifi, etc).

However, if you have a h870 twrp, it won't accept files targeted for us997.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] BigBrad75:
Are you using TWRP 3.1.1? If so you might need to change to the New TWRP 3.2.1 for Oreo that [MENTION=759634]zefie[/MENTION] made for us. I had a very similar issue because i had installed the official (?) TWRP 3.1.1 after first getting the OTA to Oreo in an attempt to mount the Data partition (FAIL!) But anyways it apparently was the h870 version, and of course me being on us997 threw a mismatch when trying to install kernels or whatnot...

(BTW thanks again to Zefie for sharing your amazing work with us all! :good:)

---------- Post added at 08:34 AM ---------- Previous post was at 08:30 AM ----------

Yea lol, what she said... ! (My bad, I didn't mean to answer the same question with basically the same exact answer, I hadn't seen that you had already replied)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Just be warned there is a bug with restoring backups currently affecting my TWRP, and I don't have an eta for a fix. Otherwise the TWRP is fully functional. :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] BigBrad75:
Hey [MENTION=759634]zefie[/MENTION] i know it's late but I wanted to asked you real quick, any Idea why my time is still incorrect in twrp? I know it's a twrp bug and not a Melina bug, but I remember reading a while back that you had fixed it...? For some reason mine has never displayed the correct time, and I have done 100% clean installs from the ground up... I can't figure it out, so I figured I'd see if you had any useful info on the matter? Thanks again
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Correct time is still finicky due to how Qualcomm does it. Basically it will only be correct if you reboot straight to recovery from a stock ROM. Any other way (shutting down, fastboot first, rebooting recovery, non-stock rom, etc), may be correct or may not be.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] cieekepo:
Does it work with T mobile G6 (H872)?

If not, do you have a plan to make this kernel for it?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mprovi_15:
Could you post your config and mod file? I mean the configuration of EX kernel of zzmoove gobernor
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xmxm:
Thank you both [MENTION=759634]zefie[/MENTION] and [MENTION=5265670]BigBrad75[/MENTION], I've used correct US997 version, but of course, I've forgotten that I was using TWRP 3.1.1 because I had backup/restore problems with 3.2.1. After switching to 3.2.1 it all went fine.

I wonder if it is worth to put TWRP 3.2.1 as pre-requisite for flashing this kernel on the first page.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Mikes:
This issue is probably not related to Kernel or TWRP but I thought I mention it here. Every day or two I'm losing a root on Oreo but when I reboot root is back. I tried re-flashing a couple of times but it didn't help in the end.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ZinX09:
It must be magisk not the kernel because I've used RR, asop extended and stock lg and it happened to me loads of times. Re-flashing does the trick for me.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mprovi_15:
Try a clear installation of kdz, (flash the kdz with download mode but wiping /system, dalvik cache, cache and data) and then root again, this should clean previous root fails or something.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Mikes:
That's what I did, a couple of times at least. System reboot is fixing it for about day or two so it's not very troublesome.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
There is an issue plaguing most, if not all available TWRP (for lucye) regarding backups, or specifically, restoring them. It is a dynamic issue (meaning it happens at different times for different people), so its hard for me to track down at the moment.

As I said in the TWRP thread, I had a backup that restored once (and only once) on 3.1.1, but wouldn't restore a second time, and never restored on Melina TWRP.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbogre:
Thank you for the awesome kernel! I just downloaded it for my H870! Can someone tell me what settings shall i change with kernel audiutor? I prefer battery life over performance
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
Should be asking this in the kernel thread really?

Also if your after battery life, select that option in auditor.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
recommended config is in op for optimal battery life, though it involves downgrading to Nougat.

Its just logical that an OS newer than the device will drain battery faster and be a bit slower (eg like when you upgrade a Windows 7 PC to Windows 10).

I got some impressive results with the config in OP, so if battery life is more important than the latest and greatest OS, check it out.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ianruto:
Help! After flashing the melina kernel on my h870 ive been unable to install apk (error apk is corrupt) or run some preexisting apps.

What can be the fix?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Assuming you flashed the correct kernel for the correct ROM (nr2 for nougat stock or fulmics, o2 for oreo stock), this should not happen. Are you using something like App2SD?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] motes:
Anyone uses nfc paying with this kernel in Oreo? It didn't work for me! When i put over tpy it says invalid credit card! With stock kernel and magisk works fine... [emoji848][emoji848][emoji848]??

Enviado desde mi LG-H870 mediante Tapatalk
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] darek1995:
Yes, I'm using daily.

Stock Oreo+Magisk root method, melina kernel, TWRP, no issue.

I had issue on RR 8.1 rom, the pay app (Simple Hungary) requested my account password, then totally crashed.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] motes:
It could be becouse of kernel fail?

Enviado desde mi LG-H870 mediante Tapatalk
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Grid4:
Looks awesome, Any plans for h872?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Mnky313:
Any chance you would add support for android-keyboard-gadget in the future? https://github.com/pelya/android-keyboard-gadget

Love it, but wish I could get Nethunter HID interfaces :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] RoyAndroids:
Can i install this kernell on a pure stock H870 device with a original locked bootloader?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] motes:
You need modified recovery to install this kernel, and for install a recovery you must unlock bootloader... No way...

Enviado desde mi LG-H870 mediante Tapatalk
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ianruto:
Forget it i had xposed installed and there must have been a buggy module.

Uninstalled. Everything is good now. Thanks

No App2SD in use.. And the kernel is the correct one. But still I'm having issues installing apps. This is the same apk that I used before to install ES.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
To be expected, since RR is AOSP based, not Stock.

I will look into it, I am a fan of the USB gadget system myself, so more gadgets is always nice.

I wish "Audio Source" worked right but I believe its on the ROM side (mapping audio devices) rather than the kernel side, but I could be wrong.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Not only that, there is a signature/hash system, so if you were to try to trick the device by unlocking the bootloader, flashing this kernel, then relocking, it will go into "Code RED" and refuse to even boot.

Unlocked is Code ORANGE all the time, regardless of hash/signature.

For more info:

https://source.android.com/security/verifiedboot/verified-boot
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] maxlsmurks:
Is it possible to flash normal twrp 322 in Melinas twrp 321?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Ijspegel:
Better flash it through TWRP app or in fastboot.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Mnky313:
Cool, looking forward to updates in the future!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xdzeus:
What is the best ex kernel config for the kernel o2 on h870
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Just an update, I snuck in a H872 build. Check the OP.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kizdol7901:
Hi zefie

Can I flash for stock oreo with Magisk 16.7. Melina kernel v o2 or firs v o1 after o2?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] micgeb:
You don't must flash first o1 for o2.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kizdol7901:
Thanks. I flash o2 for oreo lgg6 qthinq and after bootloop on lg g6 screen. What I did wrong?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Probably something with Magisks.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] sun_is_shinning:
so, [MENTION=8554678]zelfi[/MENTION]e, i see the first post and read you no longer have G6 and willstop to develop the Kernel for this device...

so, i am sad about that and i only want to ask you if you can change something in o2 kernel and fix the RCTD because Root Checker is saying Enabled even when flash this kernel and thats only thing i need to be fully happy with G6, since with V20b update RCTD didnt work like in V20a.

Waiting for something, thank you
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] !bigbabba:
Dont Work on H870 20b open EU Firmware
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] bou87:
yes that works
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
What doesn't? Works fine for me with correct twrp. No encryption and no data issues on twrp either.

Sent from my Nexus 6P
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] RicardoSal24:
Whoever continues this project and with the twrp, I hope voltage control is added in the kernel if its not a feature at the moment. Expect a donation from me whoever continues the build :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Brutale1090!:
Yeah voltage control would ne reeeeeeally great
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Pascoual34:
Hi,

I flashed the rom stock 20B, TWRP Version: 3.2.3, the kernel rel_o2 and magisk.

how to check that the kernel has been applied?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] paul_zm:
settings-general-about phone-softemware information

then you will see the version of kernel
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Pascoual34:
Okay, but is this Melina kernel?

Thanks in advance.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] paul_zm:
no，this is not Melina kernel
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ScottThijs:
Download an app like Kernel Adiuter, there you can find that you're using Melina Kernel
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Pascoual34:
Thank you very much; it's melina.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ScottThijs:
You're welcome
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] __WhoAmI__:
Wchich is recommend setup Kernel for Oreo stock rom ?

Wysłane z mojego LG-H870 przy użyciu Tapatalka
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Spookymyo:
How do you download the kernel? I click the hyper link and it takes me to GitHub. But there isn't any download link. How do you get the file?