yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] Zacharee1:
What I'm hoping to do is basically automate the process of copying, extracting, modifying, repackaging and replacing the kernel in one click.
[LG V20 Guides, News, & Discussion] dimm0k:
I'm all out of thanks for the day, but I'll hit you up for one tomorrow lol! I'm going to hopefully use your files to "fix" the damage to /persist that was done by rctd. I'll report back if no one else does so sooner.
[LG V20 Guides, News, & Discussion] Zacharee1:
Found some handy tools: https://xdaforums.com/showthread.php?t=2319018

Just gotta figure out some shell regex and then I'll have a script people can try out before I make it an app.
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=7055541]Zacharee1[/MENTION] That is exactly what you will need. As a starting point, you may want to look at the WW 2.0 kernel, because that dev used those tools -- that is how (s)he pulled the initrd from the running kernel and then made a flashable image. You will need gunzip, gzip, and cpio as well to extract the initrd.

You are correct, a little regex, and the modification of init.lge.rc could be automated, and then package it all back up.

Good luck! Personally, I like to do things manually, but I know there are a lot of people on here that don't have the knowledge.

EDIT:

What the crap is that? If someone makes a post that is worth it, I don't think there should be a limit ... whatever. Sorry for the OT.

-- Brian
[LG V20 Guides, News, & Discussion] MDMAchine:
Here is the google drive repositories with the WW stock and custom kernels.

As I only linked to custom before :/

From post 216 @

https://xdaforums.com/showpost.php?p=72785093&postcount=216

Custom

Stock

Cant wait to see how this develops, I plan to do mine (MEGA V5 - SuperSU) tomorrow. I'll flash the 2.0 package you put together if its around...
[LG V20 Guides, News, & Discussion] Zacharee1:
I need to go to sleep. Would someone be able to build Perl for arm64? The Debian binaries don't work.
[LG V20 Guides, News, & Discussion] dimm0k:
for those wanting to unpack the boot image, here's a tool https://github.com/osm0sis/mkbootimg
[LG V20 Guides, News, & Discussion] storm68:
Thank you Brian. Appreciate it. ??
[LG V20 Guides, News, & Discussion] tylerw1369:
I flashed it and it does seem like it is a lot more fluid and snappier. Thanks so much for this and great catch. It never seeces to amaze me how smart you devs are when it comes to these phones!

I used your 10p img.
[LG V20 Guides, News, & Discussion] androiddiego:
I did this. With 1.0 turning the screen on/off lagged. So I flashed 2.0 and the second screen is gone. Went back to Kali. Thanks though.
[LG V20 Guides, News, & Discussion] MrPolite:
Fashed, plus unrelated Q

Before and after screen shots. Doesn't seem like it rctd was effecting me for some unknown reason? I'd did have some occasional lag though.

Q. I'm on your H91810P zip flashed with TWRP. Would this kernel flashed on top of one of the stock based roms like WETA be functional? I haven't had time to download and try. I don't know if I'd be wasting my time?
[LG V20 Guides, News, & Discussion] Gadianton:
Doh, I got the decrypt data TWRP bootloop deal going on with the 10p stock.
[LG V20 Guides, News, & Discussion] MrPolite:
How did it happen? Are you out of the bootloop?
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=6688635]androiddiego[/MENTION] Dunno what is up with WW 2.0, but you are correct, it breaks the second screen with this modification (or hell, it may break the second screen no matter what, but this is the first time I flashed it).

Anyway, I am not going to mess with it because I don't have time, and WW 1.0 works flawlessly for me.

-- Brian
[LG V20 Guides, News, & Discussion] Gadianton:
Not sure, but it was probably some screw up I did. I was able to install the no dm verify thing and restore my data to get it back up. Seems to be a-ok now.
[LG V20 Guides, News, & Discussion] MDMAchine:
Hmm I am curious did the 1.0 come from the stock or custom branch? As the ww thread is a bit clunky, and anything grabbed from the first post on that thread would be custom, for AOSP. Hence why my first link I posted was ww 2.0 from the custom branch. Is it possible this could be the culprit? As it seemed people flashed the original 2.0 "stock" without issue.
[LG V20 Guides, News, & Discussion] runningnak3d:
AHHHH -- that would make sense. I grabbed whatever the first link that was posted in this thread. If that was the for AOSP, then that would explain it :)

I will grab 2.0 for stock so I KNOW I have 2.0 for stock, and try again.

-- Brian
[LG V20 Guides, News, & Discussion] dimm0k:
did you freeze a bunch of LG apps before flashing? I wonder if that might be the reason... another posted something similar here. can you also check/post the contents of /persist/rct.cfg and /persist/rct?

unfortunately I can't answer the question of WETA... I've never used anything outside of stock
[LG V20 Guides, News, & Discussion] MDMAchine:
Haha ? I kinda figured that was the case. I posted later the custom and stock links, but I know how easy it is to miss a later post in all the action. I do it all the time!!! Anyhow here's the updated post from page 7. - https://xdaforums.com/showpost.php?p=73530776&postcount=65
[LG V20 Guides, News, & Discussion] MDMAchine:
For the record here is my unflashed system. Megarom v5, SuperSU and WW kernel (1.0) included with installer. I didn't install any LG app, and just tmo visual voicemail. Obviously no comparison as I haven't flashed anything yet. Uptime about 23 hours.
[LG V20 Guides, News, & Discussion] KUSOsan:
Flashed your fixed 10k kernel and these are the new updated results if you are interested.
[LG V20 Guides, News, & Discussion] storm68:
I saw the same as your first pic. Where it says text editor on top. But mine has yesterday's date. Not today. I bet that if you reboot again tomorrow and check that file again yesterday's date will still be there. Now the question is,,, can we remove this file? ?
[LG V20 Guides, News, & Discussion] storm68:
Well? A.....ma.....zing!! I need to learn to build a ROM. My phone with fde and this and other awesome mods is running like a no last iPhone but faster. (Sorry about saying the I word, lol) I would call it the lava ROM. Smooth and sizzles... ???

I would love to share my setup.. ?????
[LG V20 Guides, News, & Discussion] dimm0k:
could be quite possible that because you have MetroPCS that it didn't have any interest in you after. I noticed something similar in my US996 variant
[LG V20 Guides, News, & Discussion] androiddiego:
I went and flashed 1.0 again (the edited version from [MENTION=3167089]runningnak3d[/MENTION] )and things seemed to run better this time.

Then I flashed 2.0 stock version of WW and all is well.

Thanks guys.
[LG V20 Guides, News, & Discussion] mingkee:
Done.

Flash as boot in TWRP and installed Magisk again.
[LG V20 Guides, News, & Discussion] MDMAchine:
So I also flashed the 1.0 via adb, per runningnak3d

Then the WW stock 2.0. Things seem all good.

When i execute:

ps | grep rctd

I get 1 line (in termux):

0 0:00 grep rctd

rct.cfg and rct both are the same as in my other post @ https://xdaforums.com/showpost.php?p=73539550&postcount=80 Still says OFFICIAL and @B.
[LG V20 Guides, News, & Discussion] Bubba Fett:
Quick question on the process. I flash the file in Post 1 via odin, then flash my kernel, finally SuperSU. Is that correct? Im using a 918 on 10k. Doesn't surprise me about the spying, and I don't care for it. Great job everyone involved!
[LG V20 Guides, News, & Discussion] storm68:
Odin? Um how?
[LG V20 Guides, News, & Discussion] androiddiego:
HeHe.

---------- Post added at 09:36 PM ---------- Previous post was at 09:25 PM ----------

Flash the kernel, then Su or Magisk. Talking about Werewolf Kernel.

From my previous post:

"I went and flashed 1.0 again (the edited version from [MENTION=3167089]runningnak3d[/MENTION] - look for his link in this thread*) and things seemed to run better this time." This eliminates the rctd.

"Then I flashed 2.0 stock version of WW and all is well." This updates the kernel but without the rctd issue. The link is also in this thread.

I'm on OvrDrive`s stock based rom 10j.

Edit: I was using the Kali kernel, mainly because of Kcal support. It was very smooth. Tilde`s also supported it but was bugy.

Werewolf 2.0 stock is running great on OvrDrive`s 5.4 rom. Very fast and now with [MENTION=3167089]runningnak3d[/MENTION] 's patched WW kernel, extra smooth. The rctd issue was cumulative in that over time between reboots, it was eating up battery/memory.
[LG V20 Guides, News, & Discussion] MDMAchine:
Yup, I was making a post as well, so for ease of formating it with some links here ya go.

confirm working on; 918, 10k MegaRom V5:

I kept SuperSU on my microsd card.

First I got, then flashed VIA adb the Werewolf V1.0 Kernel from THIS POST. I didn't bother to see if it was indeed flash-able in TWRP.

After that is done, I reboot TWRP back into recovery again.

Then I flashed Werewolf V2.0 STOCK kernel, from the official location HERE.

---Since the updated V2.0 kernel "pulls" from the first, the RTCD modifications from the altered V1.0 carry through.

Then for good measure (not sure I need to on WW kernel?), I flash SuperSU again, while still in TWRP.

Reboot and check it out.

Now your approach there, if you wanted to utilize the modified stock kernels on the first post, you would flash the appropriate one in TWRP, then flash SuperSU. Reboot, n call it a day.

If you flash any other kernel and its not "pulling" then its overwriting, and it probably will overwrite the RTCD modifications. So until the kernel devs update to include this modification, most will probably do just that.
[LG V20 Guides, News, & Discussion] Bubba Fett:
The file in the OP is an img.bin. I thought that was more of an odin(sorry, I realize my mistake), Lgup type file. That is kinda funny. I used to like Samsung!
[LG V20 Guides, News, & Discussion] storm68:
Lol. Brought back memories.
[LG V20 Guides, News, & Discussion] shadavis08:
Hey storm do we have a working with no issues with this rctd yet ? I read through but wasn't clear if it was without issues or not ? Also wasn't sure how I should load the kernels since they didn't download in zip form..
[LG V20 Guides, News, & Discussion] storm68:
Yeah there's no issues. Flash as image. Choose boot. You'll see what I mean. If it's an img file.
[LG V20 Guides, News, & Discussion] shadavis08:
Are you using it? How's performance afterwards? Do I need to reflash magisk when flashing this image as well?
[LG V20 Guides, News, & Discussion] shadavis08:
So I downloaded the 10k kernel and it downloads as a IMG.bin whatever kind of file that is I don't know?
[LG V20 Guides, News, & Discussion] storm68:
Yes I'm using it. Yes you will have to flash root of choice again. Maybe not on 10k kernel though. Try and find out.
[LG V20 Guides, News, & Discussion] dimm0k:
.bin is the same as .omg, just go into TWRP and choose the Install option. after that choose the image button... the Install option let's you flash .zip files or install images, which .bin/.img is. install to the boot position of course

you definitely want to flash root again if you install the stock kernels listed in the first post. in fact I would flash it regardless just to be safe especially if you're on 10k or 10p
[LG V20 Guides, News, & Discussion] shadavis08:
I can't see it in TWRP is what is happening
[LG V20 Guides, News, & Discussion] Gadianton:
There is a little toggle in the lower left irrc that switches between zip or img. You need it in image. Also make sure you have the correct storage location, internal / SD card.
[LG V20 Guides, News, & Discussion] shadavis08:
I know how to use TWRP and I know the image/zip toggle. And I used the toggle and I know where the file is located. None of these are my issue . The file wasn't uploaded as a IMG file because it has .bin on the end and my phone is looking for an image file . I also downloaded the 10p img and it saved as an img file just fine . So I'm not sure what's happening.
[LG V20 Guides, News, & Discussion] runningnak3d:
Just rename the file and get rid of the .bin

The worst that happens is that it isn't a kernel, or it is a corrupt kernel, and your phone doesn't boot. In that case, flash something else. :)
[LG V20 Guides, News, & Discussion] Lgv20user:
Thanks to all those who have caught this spying hack and all those who have created a way to disable it.

Quick question though, I am not a well versed man in rooted devices but I am currently rooted on megarom 3.4 nss 6.5, and h91810j.

Everything works well but I have noticed the lag. How would I go about deleting the rctd app? I've read and reread the ops instructions but I am not running werewolf kernel or the newer software versions. Please advise! I would love to have my device running smoothly again! Thanks in advance.
[LG V20 Guides, News, & Discussion] shadavis08:
Umm I'm not an idiot. Thanks good day.
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=8014736]Lgv20user[/MENTION] If you want to use the exact kernel you are running now, you will need to dump it, extract the initrd, edit init.lge.rc, and then pack it all back up.

If this is something you would like to do yourself, I am willing to type up the instructions in another thread (that would technically be off-topic for this thread). Otherwise, I am willing to make the change for you -- I just need your kernel:

adb reboot recovery

adb pull /dev/block/bootdevice/by-name/boot boot.img

Zip up the boot.img and upload it somewhere.
[LG V20 Guides, News, & Discussion] MDMAchine:
Little FYI. I was on werewolf 2.0. I am moving in a few days and since I need to use my phone as primary internet for a month or so, I flashed over to Kali nethunter kernel to do some TTL iptable stuff. ;)

Anyhow, I ran the "ps | grep rctd" and still empty. I I am guessing I'm still good and it pulled through.

Set CPU work queues on awake for power saving and set tcp congestion to Westwood. Everything seems nice n stable. ;)
[LG V20 Guides, News, & Discussion] Mervingio:
Maybe someone can do it this with this Kernels too:

https://xdaforums.com/v20/development/h819-nrd90m-modded-stock-rom-t3503658

https://xdaforums.com/v20/development/kernel-kali-nethunter-lg-v20-t3504210

Problem is right now i`m on 10d build but 10k kernels has the transition problem on 10d too

(when you stay connected to WiFi then change to data and make calls can`t hear nothing until reboot the phone

---------- Post added at 03:33 PM ---------- Previous post was at 03:32 PM ----------

this TTL iptable stuff works for you?
[LG V20 Guides, News, & Discussion] MDMAchine:
Actually all information I got was from a thread a few months back that you were posting in I beleive.

(On NetHunter Kernel)

When I just execute:

su
iptables -t mangle -A POSTROUTING -j TTL --ttl-set 64

Alone, I get reported that "Current TTL for all packets = 64" but it didn't work.

So I checked out the TTLMaster @ This Post.

In options, I set "Value of TTL" section to 64.

I let it run, I saw it toasted several commands, the one above included. I plan to record it and write them all down at some point (busy packing up my house lol).

For the sake of security, I have no idea where this app came from or if it has any other nefarious or otherwise things its doing. I did block it with AFWall+... I also disabled "stop list" which I assume is a hosts patcher.

Anyways rebooted, it set its little script and Wi-Fi and USB are working great! Pretty straight forward, if you got any questions PM me or post on the other thread so this one doesn't get offtopic... :)
[LG V20 Guides, News, & Discussion] KUSOsan:
Yes I had to get rid of the .bin extension for mine to flash in case you haven't tried it yet or for future reference.
[LG V20 Guides, News, & Discussion] shadavis08:
I don't know how to edit it or change the name . I can not do it on my phone with any of my apps I've tried. I don't have a computer ! :good:
[LG V20 Guides, News, & Discussion] KUSOsan:
You need a file manager or explorer that is capable. LG has a stock one but not sure if it can change file extensions. I used solid explorer which has a free trial or you can use root explorer or es file.
[LG V20 Guides, News, & Discussion] storm68:
I use FX file explorer. Best one for me.

---------- Post added at 11:38 PM ---------- Previous post was at 11:37 PM ----------

Can you please PM me on what it actually does? I tried pm'ing you but kept saying failed.
[LG V20 Guides, News, & Discussion] dimm0k:
interesting, how are you downloading the kernel to your phone? I double checked and it's named as .img on Google Drive and downloading through Chrome on my phone downloads it as a .img file.

I'm guessing megarom 3.4 has it's own customized kernel and not stock... if it is stock I could put up a 10j stock kernel modified if needed... otherwise rely on some volunteers here or point your ROM developer here

Solid Explorer does renaming fine
[LG V20 Guides, News, & Discussion] shadavis08:
Well I have ES file explorer and don't know how to edit with it lol . And I'm downloading using Mozilla Firefox. But when I download the 10p it stays an IMG. And no .bin is added . So I don't know.
[LG V20 Guides, News, & Discussion] james_pnut:
Could some edit this boot.img for me with the right edits.

http://cloud.degoo.com/NFFv/CQDtZCO41F
[LG V20 Guides, News, & Discussion] KUSOsan:
Should only just need to rename the file and remove the .bin then save. That's all I did but I haven't used WAS in years
[LG V20 Guides, News, & Discussion] shadavis08:
Are these stock kernels or did pull them from weta or another rom and alter them?
[LG V20 Guides, News, & Discussion] dimm0k:
these are stock kernels... I don't really play around with non stock ROMs
[LG V20 Guides, News, & Discussion] pbedard:
Ls997 has it too running majisk and classic rom with balsik 2.0
[LG V20 Guides, News, & Discussion] Zacharee1:
Guys sorry about that offer for an app and then basically abandoning it. Had the SAT and then some other fun stuff. I think I'll try to just make a Linux script (Windows 10 users can use WSL) that modifies your boot image for you.
[LG V20 Guides, News, & Discussion] Lgv20user:
Is there anyway someone, who is well versed in all this, could post a step by step process for a diy? I'm not Linux or android literate and don't really know where to start. I just want my $600 phone (pre-ordered) to operate as such. Thanks again.

Edit: I tried pulling boot.img, as another user had suggested, but instead of pulling the image or boot.img file, the adb command just listed all the different adb commands that were available to use.

---------- Post added at 12:20 AM ---------- Previous post was at 12:19 AM ----------

Would this apply for any and all users?
[LG V20 Guides, News, & Discussion] Zacharee1:
Yes.
[LG V20 Guides, News, & Discussion] james_pnut:
There is an app called partitions backup and restore that allows you to back up your boot partition.
[LG V20 Guides, News, & Discussion] Zacharee1:
Alright guys, here's a ZIP. Extract it and run the `executemod.sh` file on a Linux machine or WSL. If you have ADB installed and your phone connected, everything will be automatic. On WSL, ADB has to be over TCPIP to work. If you can't do ADB, you'll have to get the boot.img manually and put it in the same directory as the script.

https://www.androidfilehost.com/?fid=673368273298982149
[LG V20 Guides, News, & Discussion] Zacharee1:
Moved the file and fixed some things https://www.androidfilehost.com/?fid=961840155545592450
[LG V20 Guides, News, & Discussion] texasaggie1:
As ALWAYS, you are a genius OP!

I flashed the image in TWRP and re-installed magisk right after. Works like a champ!

I'm thinking about Incorporating this into my debloated rom. How would you feel about that?
[LG V20 Guides, News, & Discussion] Mervingio:
The PC I got has Win7 but can't figure how run the zip
[LG V20 Guides, News, & Discussion] Zacharee1:
You can't use Windows 7 and you can't "run" a ZIP.
[LG V20 Guides, News, & Discussion] texasaggie1:
Download the .img file to your phone. Boot into TWRP. Select install. Then select Install Image file. Flash the .img file. Install SU or Magisk. Reboot. Profit.
[LG V20 Guides, News, & Discussion] dimm0k:
sure, go ahead and incorporate. all I ask is you include a link somewhere to the original post for more information so more people are aware of this
[LG V20 Guides, News, & Discussion] Mervingio:
Yes I do this but want another Kernel

---------- Post added at 12:11 PM ---------- Previous post was at 12:10 PM ----------

So no have any chance here..
[LG V20 Guides, News, & Discussion] texasaggie1:
The img file is another kernel, but you probably want a totally different one in my right?
[LG V20 Guides, News, & Discussion] Mervingio:
Yes Kali Net Hunter

https://xdaforums.com/v20/development/kernel-kali-nethunter-lg-v20-t3504210

updated version: build.nethunter.com/nightly

Thanks
[LG V20 Guides, News, & Discussion] texasaggie1:
Does that kernel work on 10p?

Also has the developer removed rctd?
[LG V20 Guides, News, & Discussion] Mervingio:
This is based on 10d Base and works wonders IMO.
[LG V20 Guides, News, & Discussion] shadavis08:
10d ? I don't think it'll work on 10p . I know 10n will work with 10p though.
[LG V20 Guides, News, & Discussion] texasaggie1:
This current threads project works fine on 10p I can verify.

I was asking if the kali kernel works on 10p
[LG V20 Guides, News, & Discussion] Mervingio:
Yes best Base Rom before LG decided fu**** everything.
[LG V20 Guides, News, & Discussion] shadavis08:
So does this Kali kernel work on 10p and is the rctd removed? Did didn't see a clear answer lol
[LG V20 Guides, News, & Discussion] storm68:
No. Already tried.
[LG V20 Guides, News, & Discussion] shadavis08:
I don't know man this 10 p kernel is pretty sweet
[LG V20 Guides, News, & Discussion] Zacharee1:
Do you mean a WETA 10p kernel? If so, does it work on the 10k bootloader?
[LG V20 Guides, News, & Discussion] shadavis08:
No I don't believe it does .. actually I think he said 10p is actually the same as 10n and it's completely anti rollback I wouldn't think it would work on 10k.
[LG V20 Guides, News, & Discussion] storm68:
I used 10n on 10k before. No problem. But just can't do the vice versa.
[LG V20 Guides, News, & Discussion] Zacharee1:
So @ all people using Windows 7, try Cygwin BASH and see if it works. https://www.cygwin.com/
[LG V20 Guides, News, & Discussion] Gadianton:
Where is the link to the latest Weta kernel with these changes?
[LG V20 Guides, News, & Discussion] shadavis08:
In the weta telegram thread. It's only for 10p not sure if there is one for 10k
[LG V20 Guides, News, & Discussion] Gadianton:
Ok, I will be honest, I am just too drunk tonight to figure out which file has this rctd mod fixed so instead of tempting a brick I guess I will stick with the OP's 10p stock even though I think the battery life has suffered since i flashed it.
[LG V20 Guides, News, & Discussion] ttabbal:
I made one for weta 10k.

https://drive.google.com/file/d/0By-GDnDZhKoIUEVzVEUyV2xsbFk/view?usp=drivesdk
[LG V20 Guides, News, & Discussion] texasaggie1:
To the OP... So I am running your fixed image and it runs GREAT.

I noticed something really weird tonight. I was hiding com.android.systemui from root using Magisk Hide... And I have noticed that every single time I toggle hide or unhide the system ui crashes. What the heck is that normal? Does system ui also have built in root checking?
[LG V20 Guides, News, & Discussion] shadavis08:
That's interesting. Let us know what you find out lol
[LG V20 Guides, News, & Discussion] Zacharee1:
I'm almost certain that toggling Magisk Hide for specific apps will have them force closed as part of the process, so that they're restarted.
[LG V20 Guides, News, & Discussion] ivoh95:
Thanks OP, my v20 is now usable, before it would be extremely slow. Thanks for sharing this info with us.
[LG V20 Guides, News, & Discussion] Dylanballardlgv20:
So if i run ps | grep rctp and it just gives me a new line means it taken out right or am i missing something
[LG V20 Guides, News, & Discussion] dimm0k:
you have to run that as root. if running that as root returns a new line with nothing else, then yes it is not loaded