yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T Questions & Answers] kaeptn1:
Hello,

I have always been on root but somehow something changed.

Since I tried to flash the newest stable stock (5.0.1), nothing works anymore.

No matter if I flash dm-verity disabler, supersu or magisk, dm-verity gets triggered everytime and my phone just says "decryption unsuccessfull" and won't boot.

I've tried everything to fix this, including: different versions of supersu/magisk, reflashing TWRP recovery, even going completely back to stock, locking the bootloader and everything.

Also I read somewhere that you can flash dm-verity disabler and wipe data to completely remove the encryption, but TWRP showed an error message, something like "failed to wipe, cannot mount /data".

In the end I got stuck with no ROM and I couldn't even access stock recovery anymore because it had the weird password bug, so I had to use the unbrick tool to get it working again.

Can someone tell me what I'm doing wrong?

I have always been on root since the early Nexus 5 days, but now I feel really stupid because I must be missing something obvious, so thank you in advance for any help.

Cheers
[OnePlus 3T Questions & Answers] bLoodYHandZ04:
What rom are you trying to install and what magisk version are you trying to flash over your preferred rom?
[OnePlus 3T Questions & Answers] lordcheeto03:
If by chance you are trying to flash OpenBeta 21, I have yet to avoid my data getting encrpyted when trying to flash. And personally, I must have been doing something incorrect ever since I got the phone, because almost every time I've flashed a stock OxygenOS ROM I have triggered encrpytion. In my situation it never seemed to matter if I flashed Magisk, SuperSU, a custom kernel, or even just a modified boot.img along with the disable encryption file... I don't know the steps you're taking, but what I do is this: once I get the "Encryption Unsuccessful" message when trying to boot, I just reboot to fastboot and type "fastboot format userdata". And since flashing stock OxygenOS usually overwrites TWRP with the stock recovery despite my best efforts to avoid it, I tend to go ahead and flash TWRP while I'm booted into fastboot. After, I boot into TWRP; at which point encryption has been removed, yet the total amount of storage available to me is less than 30GB (I have the 128GB model.) You have to go to Wipe, then hit the button on the bottom-right, "Format." Type "yes" in the box and format data. That restores my device back to 111GB free of 113GB. I then transfer over and flash Magisk and whatever other mods I wanted. After that my device is no longer encrypted and works just how I want it to. Hope that helps with your issue.
[OnePlus 3T Questions & Answers] kaeptn1:
The newest stock ROM, so this/.

Magisk is also just the newest version (15.3).

When I tried to do that, it just told me "cannot mount /data" and wipe failed...
[OnePlus 3T Questions & Answers] BillGoss:
If you're not using Blu Spark 8.61 TWRP, then I suggest you install it and try again.

If all else fails, do as [MENTION=4800484]lordcheeto03[/MENTION] suggested and format userdata in fastboot - but note that this will completely wipe your data, including internal storage. Then install TWRP, then flash 5.0.1 and anything else you want.
[OnePlus 3T Questions & Answers] lordcheeto03:
If you're getting the encryption unsuccessful error, I don't think you format data in that manner, you gotta use fastboot and fastboot format userdata to remove encryption THEN boot into TWRP to do that.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
THANKS:​

shminer: For his repository

eoghan2t7: For his repository

Mentalmuso: For his repository

savoca: For the invaluable KCAL

USA-RedDragon: For his repository

nathanchance: For his pre-merged sources

TheCrazyLex: And developers of AOSPA, grabbed lots from there

emdroidle: For his work with rooting, and kernel patches

eng.stk: For his blu_active governor, and inspiration

frap129: For his Maple scheduler, and repository

alucard_24: For his governor, and G5 repository

franciscofranco: For his many kernel patches

Lord Boeffla: For his Wakelock Blocker etc

sultanxda: For his many kernel patches

warBeard_actual: For his VM tweaks

neobuddy89: State notifier etc

arter97: Adreno idler etc

flar2: Adreno boost etc

And other's I probably forgot

Previous Versions:​

Features:

1.2 Nougat

Linux 3.18.93

KCAL - Screen panel control

Alucard, and blue_active (by eng.stk) Governors

Integrated Virtual Memory tweaks (war_mod) and Blu_active settings into ramdisk

Many work-queues converted to *system_power_efficient_wq*

Patches from CAF mostly, to various subsystems

Support for UAC2 external DAC

Boeffla Wakelock Blocker

Maple I/O scheduler

Adrenoboost

On/Off Fsync

Adreno Idler

WireGuard

1.5.5 Nougat

Linux 3.18.97

KCAL - Screen panel control

blu_active (by eng.stk) cpu governor

Integrated blu_active settings into ramdisk

Many threads converted to *system_power_efficient_wq*

Toggle USB2 900mA Fast-Charge

Support for UAC2 external DAC

Various patches and fixes

Maple I/O scheduler

Toggle Fsync on/off

Adreno Boost

Adreno Idler

WireGuard

Download:

AndroidFileHost

Download:

AndroidFileHost (BETA)

Anyone is free to include it in their ROM as they like

Compiled with GCC 9.1.1

[2.2] Features:

Linux 3.18.140

SultanXDA's CPU Boost

KCAL - Screen panel control

Backported kernel improvements

Toggle USB2 900mA Fast-Charge

Boeffla Dynamic Sync Control

Boeffla Wake-Lock Blocker

Various patches and fixes

RCTD/Triton disabled

Maple I/O scheduler

DriveDroid support

Modules disabled

WireGuard

K-Lapse

Download:

Oreo G6 Folder

The (AnyKernel2) flashable zip will flash kernel as well as /system/lib/modules. If you want to go back you should backup modules as well

Sources:

https://github.com/stendro/msm8996_lge_kernel

LGH830SV_LGH830TN_Android_Oreo_v30c.zip - From http://opensource.lge.com
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Questions

Q: Will this work on newer bootloaders?

A: It should. The kernel is based on the most recent of LG sources.

Q: What control app do you suggest using?

A: I suggest using SmartPack, or EX Kernel Manager.

Q: Where can I donate? I want to donate!!

A: I don't accept donations because of two reasons. One: I don't really need it. Two: I like the idea of this being totally free, it adds to the enjoyability of the kernel.

Q: I'm having some problems with kernel not working or booting?

A: Make sure you have a recent bootloader. My kernel works on new firmware, not exactly sure how far back the compatibility goes.

Q: I flashed this zip in recovery, but it didn't seem to work, I'm still on my old kernel. What can I do?

A: With AnyKernel you shouldn't need to re-flash ROOT after flashing kernel (if already installed, if not, do it before flashing kernel). SuperSu has been known to revert the kernel install if you do so.

Q: OK so I just rooted my phone and installed this, and OMGOSH! so excited, now what do I do - do I tweake-dy freak out huh huh? How do I do it??

A: Put simply, don't do anything. I don't know how things where in the past, but now you don't need to do anything. Not with this kernel anyhow. Such thing are better discussed in a separate thread anyway.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Legoduck:
Great kernel, thank you
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] pjdick:
First off, thanks for creating another kernel. Second, thanks for adding the Wakelock Blocker. I have had issues with this phone from day 1 with wlan_rx_wake wakelocks.

Finally a question. I am using EX Kernel Manager, but I can't seem to find anywhere to control screen color (KCAL - Screen panel control). Am I missing something, or do I need to do something different?

Thanks again.

EDIT: I forgot to mention that I am on US997, in case that makes any difference...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
I don't have KCAL support EXKM H870
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Ah, dang it. There was some mess when I ported my kernel from G5/V20 so that option got lost.

I will re-upload soon.

[MENTION=660415]pjdick[/MENTION] [MENTION=5520227]kojak1989[/MENTION]

Edit: Re-Uploaded
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
From where can I download custom gov profiles and KCAL too for EXKM ? Because I don't have them when I install EXKM.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] pjdick:
THANK YOU! I have color control now in EXKM. Will continue testing this out, but so far it has been great.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] motshek:
what settings do you recommend for the highest performance?

Wysłane z mojego LG-H870 przy użyciu Tapatalka
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
No need to change any settings. You'd be hard pressed to get more performance as it is, except perhaps you could get ~5% more performance with about a 50% hit to battery life. Not something anyone would want to do.

Well, that's for CPU anyway. If you want more GPU performance there is AdrenoBoost for that. Don't ask me about settings for that etc, I'm not a pro mobile-gamer...

Internet is the wellspring of information right at your fingertips, don't make people reiterate what's already been written down countless times.

It's not like a custom kernel is a new concept...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] marietto79:
[MENTION=6814590]askermk2000[/MENTION]

First of all many thanks for your work the kernel is fantastic.

Sorry for my noob question. i can't find the Adrenoboost governor for GPU in Kernel Adiutor Mod.

Can someone help me? or i did something wrong?

thanks
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] russtyd:
Does this remove rctd? If not, can this be added in future release please? :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
[MENTION=3399132]marietto79[/MENTION]

adrenoboost is

not

a governor. If you don't see it maybe KA doesn't support it, but I think it does. Oh, and you need to be using the default adreno-tz governor for boost and idler functions.

[MENTION=3787108]russtyd[/MENTION]

that is removed yes.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Andolss:
I get very much stuttering in Golf Clash, what settings should i use to get smooth framerates in games?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
That's probably because of adreno-idler. You must tweak the settings as to not down-throttle the frequency too much.

Could also be because of the "initial powerlevel" setting, which is at 133Mhz at default I guess. Try and set that at 200Mhz and search for adreno-idler in google and learn which settings to adjust there.

Edit: or you could disable adreno idler altogether. Maybe even try to enable adrenoboost but that's probably not necessary though.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xdzeus:
Can i use this kernel on custom roms like flumics
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Yes, it works on fulmics.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xdzeus:
How do i go back stock original kernel after flashing it, and how is the performance on the flumics 3.5?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] motshek:
Flash stock kernel...

Wysłane z mojego LG-H870 przy użyciu Tapatalka
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xdzeus:
Yes sure the fact is that i cant find it ,but that isn't a problem i found a solution i'll do the kernel backup in twrp
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
This is a kernel we're talking about here. Modifying system config files is something quite different.

And especially on a device like the G6 with embedded battery; I'm not going release a public kernel which likely kill their non-replaceable battery much faster.

Like I said, nothing to do here. The app in question only shows what is system default. It doesn't enable anything.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] fusk:
Just asking, because increasing the thermal throttle limit ~10° could allow you to run the cores at a lower, but more stable freq. Which would require less power but equal the same or better performance. In turn, increasing the battery life.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] paul_zm:
How to use your configurations , I am using k kernel , changed the frepquencies , nothing others ,

It's common for battery .
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
It's a good idea to underclock the SD820 a little, like ~1800Mhz (~1900 for sd821pro).

Increasing thermal limit is redundant in this context. Simply underclock, and you'll have the same result.

As I understand, thermal throttling will rarely step in at this UC. You'll have better sustained performance, and better efficiency.

I've been thinking about making it default/hardcoded - but I guess it's easy enough for ppl to adjust max frequency themselves.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] fusk:
No, it won't work. Throttle limit is too low. For it to work you need to increase the limit ~10°, otherwise it'll still throttle too quickly at a lower freq. I'm not entirely sure what the default throttle limit is, or how to read it. But i think it starts throttling already around 42°.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Ok, so say you're right - you need to increase throttle temperature to stop throttling.

You do know that doing so will increase temperature right?

Those who like to experiment with these things can do so, it's not something to be distributed to all users indiscriminately.

Also I'm not even sure I can control that parameter from the kernel if I wanted to. As you should know there is a conf-file on

system partition which sets these parameters, and they probably override kernel settings.

I have read before that G6 possibly has a more aggressive throttling threshold than says G5 or V20. Well not really surprising

as the G6 is a glued sandwich without the ability to change battery - like I have already explained a few times now.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] fusk:
The soc's TjMax is 92°, you're completely safe even if you increase the limit by 10°. Yes it will get warmer. But lower clocks means less battery drain. I don't know how to change it, but i do know where the file is. But i don't know what the parameters are for the big/little cores.

And i don't know either if you can control it, i just mentioned it as a possible consideration for future updates. I don't know, but i think the marshal kernel has an increased limit.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
This is getting ridiculous. The SoC heats up and in turn heats up everything inside the small glued space. Get it?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] fusk:
Isn't that obvious, that heat spreads?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
[MENTION=3164359]fusk[/MENTION]

Ok, sorry if I seemed to be getting a bit annoyed.

TBH I don't quite have a handle over this thermal system. There are thermal driver in the kernel, thermal device-tree settings, thermal-conf file in android system,

and there are bcl (battery-current-limit) settings and hotplug, and so on etc...

So this, coupled with general dose of common engineering sense has been enough for me to skip over this mess. After all there must have been some intelligence

behind the current settings.

I know how to change a few things in the device-tree, but not temp threshold. There is this "qcom,limit-temp" there, but it's set at 80c, so that's definitely not right.

So I suspect it's ignored, or overridden by the userspace config (thermal-conf).
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] fusk:
I have no idea how complicated it is, so if it's too messy, just leave it as is.

Yeah, 80c sounds weird. Phone would melt.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Oreo mk2000 v2.0 BETA

^This is the link^

* Linux 3.18.129

* blu_active no longer...

* Switched to interactive, with some new patches

* Changed interactive tunables - Using scheduler prediction, and other tweaks

* Disabled modules entirely

* Security improvements

* Various stuff...

Using CAF interactive now. Will likely have to tweak the settings for better power efficiency some more.

blu_active was interactive - updated to latest Google (google made interactive), with only a few CAF patches.

This interactive (in this CAF 3.18 kernel) is a slightly earlier version (from google), but with many CAF/qualcomm patches. I've updated it some more now,

and I feel like trying this for a while. There are some areas for improvement should the switch be unsatisfactory, like upstreaming to newer CAF scheduler,

or simply disable prediction.

All modules are built-in now. Only a few where needed anyway (of those that where selected by default).

This works nicely on G5 (H850), but I'm uncertain about V20 or some models like H918 and H830. We'll see.

Kernel size has been reduced by using 'gc-sections', or link time garbage collection.

Start with fresh boot.img before flashing this. I changed something in ramdisk, and if you don't start fresh you'll have two init-files conflicting with each other.

Source: mko-v2
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] marietto79:
Start with fresh boot.img before flashing this. I changed something in ramdisk, and if you don't start fresh you'll have two init-files conflicting with each other.

Many thanks for your work, I use only your Kernel:D:

Sorry for the stupid question, how can I start from fresh boot.img?

I need the original stock boot image and flash it in Twrp?

Where i can find the boot.img zip to flash?

Thanks in advance:good::good:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ErickG233:
nice,thank you so much
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
Is this based on latest firmware? I've updated to 20g and don't know if it would be compatible
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
It is highly unlikely there would be any significant change in a regular version increment, let alone anything to break compatibility.

LG don't release kernel source regularly either so I probably will not know what minuscule kernel difference there was in a long while.

Don't know about other developers but LG simply sticks with the first Android release (and CAF tag) for any given Android version... and never

updates at all. They simply patch it up with custom LG code so it works reasonably well, and forgets about it.

Any updates after that is just few security patches here and there. Maybe a bugfix or two. At least on the kernel side.

Edit: Yes I know I wrote something in Q&A post. That's because there was something weird before with G5 and Aasgard kernel that didn't work after

a certain firmware version. But that kernel was a huge mess anyway, and recent experience has shown me that probably will not occur under normal

circumstances.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] fusk:
Just an update. I've been playing with the thermal.conf file a lot over the past few days trying to figure it out. Adjust settings and temperatures. And what i've learned is that, it does not work.

It seems to me like the governors do not give a poop about the thermal.conf, and they will do their own thing. So i've been using the marshall kernel for a bit, it has the elementalx governor. It's a more conservative governor than interactive, but even if you set the clocks to 1209mhz at 45° it'll still switch the big cores between 979 and 1800mhz at 50°. So that didn't make much sense.

Interactive governor will just blast the cores to the max until it hits 85° even tho the thermal config clearly states it should throttle at 38, 41 and 44°. Then in 5secs increments it'll throttle down to 1363mhz on little cores, and 1440 on big no matter what you've set in the thermal.conf file.

Elementalx will throttle to the same speed as interactive, but in each cluster the cores will alternate between the high freq and a lower freq which interactive does not do.

Interactive is a hot governor. So the best i've found so far is to set big cores to use elementalx, and little cores to use interactive. Performance is better, but not as hot as running interactive on both clusters.

What that will do is letting the little cores run at 1363 after throttle.

And big cores will continuously alternate between one core running ~979/748 and another 1440/1563 after throttle.

The only thing i've found to work, at least i think so. Is the gpu throttle steps.

Now, i havn't tested this with your kernel, yet, so i don't know if there's a difference. It's Saturday and i'm really not bothered right now.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Heh... poor you, so lost.

What makes you think about governors in this way. Why make such assumptions?

In fact governors have absolutely NOTHING to do with it. Well maybe in the case of Triton/Cancun stuff in stock kernel yes, which is

tied into interactive, and various things in the kernel.

But I don't think any custom kernel has that enabled, and it only applies to 'interactive' in that case.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] fusk:
Because that's how they behave, i don't know why. But they just seem to ignore it. But maybe it's just those two. Maybe it'll work with other governors. But at least i've found it does not with interactive or elementalx.

I don't know how governors are created or how the relation between kernel, governor and thermal config is tied together. So can only speculate.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Stone. Cold:
Quick question :)

Would it be alright if I flashed this over Melina Kernal?

Or would I need to flash stock kernel before flashing this?

Also I'm on Fulmics Rom :)

Edit: I flashed it over and I gotta say. WOW! Performance is outstanding on PubG Mobile. It usually stuttered for me here and there on Melina, but this kernel just got rid off that issue and I'm impressed! Well done [MENTION=6814590]askermk2000[/MENTION], this kernel is definitely the best I've ever tried on any device bro, keep up the good work :)

Will definitely recommend this to anyone looking for the best of the best :D
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
Lol, thanks :good:

Nice to have feedback like this, because I actually don't use my phone anymore (or at least haven't in a very long time) so I don't get to test stuff, and definitely don't do any gaming.

Mostly I just flash the kernel on my test G5 and check for usual problems like excessive power drain / weird numbers in batterystats, and then let it idle for 12h+

Though people have been saying this a lot lately, with every consecutive kernel release (in particular v2.0 beta) like; "performance is much better!" and so on...

I've been wondering about the validity of those comments. Even thinking some ppl may have been sarcastic :silly:

Anyway, seems like that's not the case :good:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Ijspegel:
Seriously i use the 20G rom with this kernel and it rocks big time. Smooth fast no stuttering. Thanx!!!#
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] fusk:
How come you don't have adreno-idler implemented?

p.s. After updating to 20g i noticed that it was exactly the same, even tho the thermal config file had been replaced by a original. Governor was still ignoring it, just doing it's own thing. But performance is good.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] russtyd:
Works fine on 20g
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AlDollaz:
I'd like to know how to do this as well.

Would a reflash of Magisk accomplish this?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Stone. Cold:
I suggest backing up the original ROM boot img in twrp, that way you can easily restore back to default kernel settings if this is what you guys are referring to as 'fresh'.

I always do this as well in case of a bootloop occuring.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AlDollaz:
Easy enough. Thanks a lot! :)