yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
I don't believe I was complaining... I was asking if it was 10d or 10j.... You ok? That's a rather long response on my comment for no reason but thanks for the info... Deeply appreciate your efforts. Feel the love?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Sorry if I came off a little harsh. I may have misunderstood the tone due to the textual nature.

Anyway, small update. Getting really close to getting 10j stock kernel to compile. It seems that most of the issues are just small typos, like an extra tab space here, or one tab space missing there. Probably little baby traps that devs put in their source to try and dissuade people from trying lol. Currently got A through O drivers down. Now stuck on the /drivers/power folder. Something to do with the quick charge driver just wont compile. It is very strange (see next post for details). If you are a kernel dev, or know a kernel dev, take a look or get them to take a look please. Thanks.

Still, good news, getting very close! Camera updates and vpn updates seem to be compiling fine, which is the biggest thing I'm assuming.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Please help :( These lines, and source files are nealry identical across kernels, and I've tried merging changes, tried using previously-compiled .c files, tried changing defconfig options (which shouldnt be an issue as it compiles on every other kernel with the exact same structure and strings), always gives this :
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] aaronfrickinaustin:
So, I just re installed the rom after a wipe issue, installed the alternate kernel, moved the files to /data and did the 755 permissions, and i'm getting cts profile error in safetynet helper

Any help here?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Are you sure you put both files in /data/, ran rootswitch and disabled root, and reboot? after that reboot, you should be able to toggle root at any point.

Or just wait for v6.0... I'm getting a bit farther each day in fixing LGs 10j source.

Lemme know how it goes with SN.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lgkahn:
for the 2nd time my phone downloaded and installed the update.zip during the night causing a bootloop to recovery. you have to restore then do the 2 screen reset data, then restore again. I have all the ota stuff frozen. anyone know what i can do to avoid this again.. thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zacharee1:
Turn off auto updates in DevOps.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] aaronfrickinaustin:
Still didn't work, I guess I'll just wait for v6.0
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lgkahn:
it is turned off .. i double checked after this happened last time a week ago.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
Unfortunately Automatic Updates only stops the new 7.0 seamless updates with our dual /system partition layout.

I would suggest editing the model of your build.prop, like for the Assistant/Pixel XL mod. That should stop the download from trying to run.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Yea. I'll have updates killed off in v6
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
And you are positive you are using the modified v5.5 kernel? Not the one in the OP, it is lost somewhere in the thread. I had added the patch in the other device kernels, and since I build for H918 first, I didn't have the patch yet.

Although I don't believe it to be the issue (CTS is bootloader/kernel, not root), can you verify that SELinux is Enforcing, and not Permissive when you try SN? The command would be su then getenforce in a terminal emulator, or

adb shell

su

getenforce

in ADB
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lgkahn:
not sure what these steps do, but no i am NOT using the 5.5 kernel but the 5.1 kernel. 5.5 causus the last two cpus to always be 100% on my phone. and i did do a clean install.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Ok, then SN will never pass.

You should've mentioned that. You instead said you were on the alternate kernel. I don't have an alternate kernel, so I thought you meant the updated + patched 5.5. Furthermore, I removed the links for 5.1. I guess I will remove them from mega as well.

New rule. If anyone needs any assistance from me, it must be on this ROM with this kernel, with the latest update. Thanks everyone.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] netgar:
Tilde, just wanna let you know I moved from 5.5 to 5.1 same reasons. Last 2 cores 100% all the time.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lgkahn:
Not sure what you mean, I think u have me confused with someone else. I didn't say I was on any kernel

I just said it had taken the upgrade by itself and asked how to stop it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] aaronfrickinaustin:
I'm using the kernel in the thread somewhere, selinux is enforcing
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Whoops yea quoted the wrong person
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lgkahn:
Trying my own method to stop the update. Put my own.copy of update.zip in the cache directory. (A copied and renamed .pdf) and removed all write permissions.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
So on top of the .c files in the kernel having "typos" (more like traps from devs so that it won't compile), some of the Makefiles were also botched.

So I started over from scratch with this new knowledge. I am determined to get this source working.

For a couple reason, mainly that it would be a pure system kernel, with nothing broken such as wifi calling and/or other things that some people report.

Also, it has camera and vpn fixes.

Finally, I just want to be able to say that I fixed it lol.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] DarkestSpawn:
Always a good feeling =) Great job on all your work Tilde
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] netgar:
How is bluetooth Tilde? Working?

Thx for your hard work. Waiting patiently...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Dont know yet. Should be just as good as unrooted people with 10j update. The kernel will not compile until all the code is cleaned up. Once its done i can flash and test. But since its just little traps set by the lg devs, there should be no issue.

I say traps because techincally the code is fine, but there are like typos here and there that just dont make sense. I know for sure this did not compile for lg. So they either released a rough draft, or intentionally added the small typos throughout the source to deter custom kernel creation.

Challenge accepted... Kek

When i finish i will release the stock (fixed) source so others can play with it. Ill also put out a stock kernel (eww). But the modded kernel is what will be included in v6.

Soon ©

Also, i am considering making the ROM more lean. Which would remove a few things, and possibly ViPER. ViPER can just easily be flashed if you want it. Im going to try and work with [MENTION=5264701]lordodin912[/MENTION] since he got sound control working at the kernel level, he has also done awesome additions to his kernel on the g5; many of which are things ive been wanting to do just never got around to it... Hes kinda inspiring me from all the work he is doing. Idk just thinking "out loud".
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] netgar:
Thx for an update...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lordodin912:
To be fair, sound control was copied from [MENTION=4527059]CrazyGamerGR[/MENTION] s kernel source. Not trying to take any credit, ha. :silly:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] aaronfrickinaustin:
okay, so i'm not sure where i went wrong, if anyone wants to help

clean flashed the rom, 5.5, then installed the updated kernel for root switch, booted up, moved the files to /data, set permissions, rebooted, opened root switch and checked stop su daemons, rebooted, turned off root in root switch, and i'm getting cts profile match false in safetynet helper
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] charlie.s:
Delete

---------- Post added at 04:38 PM ---------- Previous post was at 04:34 PM ----------

I went through the identical process yesterday with the same negative results.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
**** this 10j ****ty source bull****..................

looks like im making big strides finally in the compile... good news
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Is there anyone on a 10j ROM that could flash a test kernel?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
I'll test on my ROM. Just PM me the details.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] kelvin216:
Test

Hey [MENTION=1325580]Tilde88[/MENTION] i can test as well. Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Thanks. Just a few more tidbits to update, and then I'll PM you. It is stock 10j with fixed source files.

[MENTION=1702421]kelvin216[/MENTION] are you on a 10j ROM? I'm sure the kernel will work on other builds, but for testing purposes, I want it to be on 10j.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] kelvin216:
10J

Yes im on a 10J rom, running NATF Megarom
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Also, [MENTION=320479]NotATreoFan[/MENTION]

I'm on the final compile now, so itll be fairly soon. Go ahead and backup /boot in TWRP just in case. I still have to disable encrypt-enforcing and all the other usual.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Hello! [MENTION=320479]NotATreoFan[/MENTION] [MENTION=1702421]kelvin216[/MENTION]

Let me knoow how it goes on 10j. Thanks!

https://mega.nz/#!CMMWhIAA!cfy_BESi_4rDa7fEpyn8bHCxJPrpVPfZRrXD7cGImd4

(This is just a stock 10j kernel. I fixed it up and built from source. So now I can make a modded 10j rom and kernel ;) ).

(Heads up, it deletes your current /system/lib/modules and puts the new ones. backup yours if you like, or you can reflash original ROM.zip)

Boots for me on my 5.5 ROM. FINALLY!!!!!!!!!!!! I WIN, LGE lol
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
I take it this is the kernel end of things?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
Backing up and flashing now.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
[MENTION=1325580]Tilde88[/MENTION]

Booted up without error here! Most excellent news!!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
This is just a stock 10j kernel. I fixed it up and built from source. So now I can make a modded 10j rom and kernel ;).

Next week though. Break time for me.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] kelvin216:
Works

Booted up fine for me and fast charging is showing as well, great job, will put it thru testing on Madden mobile and Dawn of Titans game, and other things i do with phone, thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lgkahn:
Is the rom going to have the new modem as well,
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
Firmware is rarely included with a ROM. If the flash goes wrong, you'd have a pretty dead phone.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lgkahn:
I have this file has anyone tried it with 10d

http://mail.lgk.com/h918-10j_modem.zip

I.also.have the 10j boot loader. I.assume we will not want that!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
The 10j bootloader is perfectly safe. My device has been on it since I accepted the OTA in order to get a system dump of 10j.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BrokenWall:
Can we get a flashable zip of a modem and bootloader?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
I believe someone posted one already.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Link575:
Question, after flashing this can I replace SuperSU with MagiskSU? Has anyone tried this? I searched this thread but nothing came up so sorry if it's been asked before.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
You can use the option in SuperSU to cleanup in prep for another superuser app. Allow the phone to reboot after, and then go back into recovery and flash MagiskSU.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Link575:
Thanks, should just clean up work or do I have to remove root. I only ask because I just did this last night with my note 4 and just using clean up wouldn't root with Magisk. I had to remove root and then flash the Magisk zip. I just wasn't sure if removing root on this ROM would have any adverse effects.

Edit: sorry I guess I didn't make it clear in my first post I want to root with Magisk not just replace it as su.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
The newest version of Magisk includes MagiskSU. You can unroot with SuperSU, and then flash Magisk through TWRP to gain root back. You can safely go one boot without root, nothing will break. Just be sure to enable USB Debugging prior to unrooting, because then you can do "adb reboot recovery" instead of having to fight with the key combo to get into recovery.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
You could... But there is literally no point in doing so. Literally.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Link575:
I just asked because I tried using suhide on and my phone got stuck on tmobile splash, I had to restore my backup. If there's another way to effectively hide root while rooted with supersu I'd stick with that. I don't have a preference of one over the other.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
SUhide doesn't work on any 7.x builds with patch levels beyond November 2016.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
So don't use SUHide. You can pass safetynet 100% with instruction given in this thread ;) (See OP at the very bottom for pics)

You will need the updated 5.5 kernel, which is somewhere in the thread, not the OP (sorry). Then you get rootswitch, add the 2 .sh files to /data/ and set permissions 755 or 777 w/e. Reboot, open rootswitch, disable root. Profit. Enable root, profit. No reboot needed after set up. Also passes CTS test in Safety Net (so Android Pay and snapchat work), due to the kernel patch.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Link575:
Alright I'll try it out. Thanks!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] charlie.s:
Can anyone confirm that this procedure works correctly? I tried twice and Safety Net will not pass the CTS test.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
The proof is in the pics.

Also, bunch of other posts already confirm this. Cts is not passing because you dont have the right kernel. The 5.5 kernel in the op is not updated. Look in the thread for it.

Compatibility Test Suite (CTS) has nothing to do with root
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Link575:
Here's the updated kernel I think for anyone that doesn't want to go looking.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Working ok for you?

Im probably going to make a beta build today and run it live tomorrow. So hopefully by this weekend nss v6 will be ready (on 10j rom and kernel).

Someone mentioned new firmware. I always recommend flashing the latest modem... Unless you are unlocked and using your device on a different band than you are supposed to... But i doubt that will be a scenario with any v20.

The other thing would be the bootloader. I know that the 10j bootloader is safe thanks to NATF... But it is not usually recommended to uograde your bootloader. There is usually no need unless you are going to a new version of Android that requires it; and it will likely need an accompanying modem/radio update to go with it.

Me personally, im not going to update bootloader. I will certainly update to the latest modem/baseband/radio.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Link575:
I actually haven't been able to try it yet. Need my phone during the day and don't have time at night plus I lost my cable. I'll prob flash it this weekend if v6 isn't out yet. Thanks for all the work though.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
I'm having zero issues with the fixed source kernel you posted for 10j. Looking forward to playing around with the source myself and seeing if I can not break stuff.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
I'm running my mod kernel now rebased with 10j; pretty nice! LITTLE cpu sits at around 12% CPU usage, and big CPU sits at around 48% (is that high?).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lordodin912:
What does CPU-Z read for cpu load?

Noticed high CPU load in kernel auditor and didn't know why. (Thanks to [MENTION=6157464]onestyle007[/MENTION] for finding this) Turned out to be an issue with the app (ads or something). After uninstall and checking gpu-z all was well. He used an older version of KA and the problem wasnt there, so maybe this is the problem?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
You are right... I too have been having issues with Kernel Adiutor, but have been to lazy to do anything. Just uninstalled it. CPU-z shows the load sitting at 15-22%, gpu at 0%. It also shows real-time info on the cores; KA been bugging out with that also.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
You can also use BetterBatteryStats and check CPU. It will show you the amount of time each frequency was in use.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Oh wow, I can't believe I forgot about this app. I used to love that thing! Thanks! :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] billybong10:
Sorry if this is a stupid question...been following this thread since the beginning. Awesome work! What are the 2 .sh files and where do I get them?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] charlie.s:
I'll save you a little time -- here they are. Please let us know if you are successful. (I am not.)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Looks like I finally got the 2 big cores to stay stuck at 100% (on 5.6). Will release 5.7b tonight for you guys.

5.7b is all the same mods and features as 5.5, but it is based off of LG's 10j source. It also has fixes from 5.5 (lol, I hope ;) ) that were giving people 100% cpu load.

Oh, and it will have everything you need for SafetyNet included.... All scripts, patches, and the APK. Just run RootSwitch once, disable and enable root, reboot phone and GG. Switch works every time. Disabled = pass SN, enabled = fail SN but have root.

And it will work on any H918 ROM on an H918 device. I don't recommend cross-flashing to other devices, but if you want to be the first, let me know how it goes. My biggest worry on cross flash would be VoLTE, WiFi calling, and bluetooth being screwy. For the record, they all work great on 5.7b on an H918 device. I never used to use VoLTE nor WiFi calling, but on 5.5b-5.6 I enabled VoLTE and WFC; still havent turned them off, and have had no issues with any calls in 3 days.

I only reboot a few times a day, only because of stuff that I do that requires it; not because I have to or crash :)

Still going to be a while for v6, since I want to do so much with it, so this should be good for now :D

(šoon©)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Does anyone know what the binary ipacm is?? Cuz I'm going to murder it. #YOLO

Running it term shows it as stuck; and I think it is causing the 100% CPU...

Killing the PID and rerunning as oot seems like it opens ports and does other networking things. Still gonna kill it and see... Yup 100% gone now.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zacharee1:
I think that's for tethering support.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lgkahn:
Also try CPU spy it is free.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Hello. I am the 5.7b kernel.

You don't have to wipe anything for me.

I will work on any H918 ROM on as long as it is on an H918 device.

I am based off LG's 10j source. I have all the mods and features of NSS 5.5.

I bring everything you need to pass SafetyNet, and I also am patched so your bootloader nor cfw are detected. Don't use a different SU binary other than SuperSU. Don't worry, I also flash the latest SuperSU. This will not work with other SU binaries like magisk, phh, king su (I don't think at least).

To pass SafetyNet, open RootSwitch, disable root -grant root access when prompted, enable root, and reboot. Now you can enable/disable root freely (no more reboots). Disabling root allows you to pass SafetyNet 100% (including CTS). Enabling root fails SN 100% (including CTS).

Please test hotspot.

You could have flashed me by now, but instead you read all this... :D
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] billybong10:
New kernel works great! Passes all root checks. Android pay works perfectly. Thank you for your awesome work!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Thanks for the feedback.

Any issues with VoLTE, WiFi Calling, Bluetooth, or Tethering?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lgkahn:
No safety net

Is there some other driver files I need to install after flashing the kernel? I followed your steps and root checker is showing that root is working but not safety net with new kernel. Ie

[IMG="img"]http://mail.lgk.com/Screenshot_2017-02-09-23-57-32-720x1280.png[/IMG]
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] billybong10:
Tilde- I jump back and forth between your Rom and Weta's I'm currently on his Rom with your new kernel so I don't know how relevant this is to you but everything is working fine. Tethering, bluetooth working great I don't really use wifi calling or volte. I'll flash your Rom and new kernel over the weekend and let you know if I run into any trouble with those. Thanks again for the awesome work!

---------- Post added at 08:49 PM ---------- Previous post was at 08:46 PM ----------

I read somewhere that build prop changes can make you fail...I see in your screenshot that your phone is showing pixel xl. Might be your problem. Try changing it back to v20 and test it. Worth a shot.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] zplit:
What app is this?

---------- Post added at 10:20 PM ---------- Previous post was at 09:59 PM ----------

Everytime I try turn off root enable on root switcher it goes back on.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zacharee1:
[MENTION=1325580]Tilde88[/MENTION] mobile hotspot doesn't turn on. If you did nuke that IP thing, I guess it was necessary.

---------- Post added at 05:32 PM ---------- Previous post was at 05:07 PM ----------

It also broke OneDrive, SD support and USB support. Had to revert and reverse the changes made to /system/lib/modules.

But I have to say, it is amazing that you took the time and energy to repair the borked 10j kernel!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lgkahn:
App is root checker. Pro.. SD working fine for me
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] zplit:
SD?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
OneDrive is a Microsoft app, SD card works, and USB works. Do you mean USB on-the-go?

Also, no, I did not change anything to hotspot.

Sorry, but sounds like something funky with your ROM/configuration.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Payload failed means root is still detected.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zacharee1:
It's OvrDriVE's ROM, so maybe that's it lol. I don't really mind though. Thanks for the hard work!