yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] Tomek33:
Hi. I know this is a thread about v20 but in my LG G4 i have found LG RCT too.

I am on V10e 5.1 android rooted by SuperSU.

Is there a way to disable it too? Or we have to edit boot.img too?

Greetings and big thanks for finding method to disable it.
[LG V20 Guides, News, & Discussion] Lgv20user:
Were you able to make a boot image for megarom 5 and supersu with werewolf kernel?

---------- Post added at 09:17 PM ---------- Previous post was at 08:22 PM ----------

i just followed your instructions and the phone would reboot into fastboot mode. I had to type "fastboot reboot" and get into twrp. Once in twrp, I tried flashing the custom ww2 boot image and same thing occured. Had to go back to twrp and flash my previous boot image. Man i really dont have much luck with this at all. haha. I seem to be the only one unable to work this out.
[LG V20 Guides, News, & Discussion] mookiexl:
I had the same problem. I had to flash the stock kernel from the 1st post
[LG V20 Guides, News, & Discussion] Lgv20user:
Flashing the stock 10k rctd worked for you? May I ask what rom and kernel you are running?
[LG V20 Guides, News, & Discussion] mookiexl:
The kernel is the 10k with rctd removed the rom is WETA. I tried the modded NST and Werewolf from the android filehost link and I couldnt get the phone to boot; only a back screen with subtle slashes after the initial LG boot logo. I had to button combo to TWRP and flash the 10k from the 1st post. Not even reflashing my original kernel would make the phone boot which was weird. I almost KDZd to stock.
[LG V20 Guides, News, & Discussion] Lgv20user:
Same thing has been happening to me. It's either done the flashing or it boots directly to fastboot. I now have my original boot image on my SD card so everytime I've been flashing and running into errors, boot in TWRP and reflash my original. I will try out the 10k file from the first post and see if that works.

Curious, does flashing the 10k remove rctd for you?
[LG V20 Guides, News, & Discussion] mookiexl:
The one from the 1st post does. When you download it you will see it in the description.
[LG V20 Guides, News, & Discussion] Lgv20user:
Can't wait to try it out. Should have just tried flashing it from the beginning. Thanks.
[LG V20 Guides, News, & Discussion] Lgv20user:
So when I initially typed in "ps | grep rctd" (prior to today) , it would display two lines with rctd in them. After running the stock 10k fix from post 1 and having my device reboot properly for once, I mistyped and the command "ps | grep rctf" came back with grep rctf.

Typing it in correctly, however, only provided 1 line with rctd. But then mistyping rctd again, it would display grep and whatever the incorrect letters were.

Very confusing. It booted without issue and since it removed at least 1 line of rctd, I'll be continuing to use my phone this way and monitor any differences.

Is there another way to confirm whether or not rctd has been removed?

Pulling up persist/rctd.cfg :

Mount option had been changed

> /system

Rooting related file had been installed

> busybox

Thank you.
[LG V20 Guides, News, & Discussion] Hybrid Divide:
Where is a version of the 10k WETA kernel? Does it have the RCT removed, and contain the bluetooth fix?

If so, link please? Thanks.
[LG V20 Guides, News, & Discussion] mookiexl:
I was referring to the kernel from the 1st post of this thread. If you read through the thread you will see that the stock kernels posted here have somehow fixed Bluetooth issues for some users
[LG V20 Guides, News, & Discussion] Lgv20user:
I would go through the thread and find each stock 10k boot image and try flashing each one. Obviously you'd want a backup of your current boot image and another user recommended an app named "partitions backup". If it doesn't work, boot into TWRP, reflash the working boot, and try again.

Or try another rom. I'm running 10k,ww kernel with megarom v5 and have no issues with Bluetooth or anything for that matter.
[LG V20 Guides, News, & Discussion] shadavis08:
Ptsssss check the first post.
[LG V20 Guides, News, & Discussion] Hybrid Divide:
Thanks for the reply, but it looks like the links in the first post haven't been updated. I flashed that one last week, and low power BT (Pebble Watch) kept disconnecting. Switching back to the WETA 10k kernel 1.2 fixes this, but the RCT is still in it. The bluetooth fix is the only mod to that kernel, it is otherwise stock.

Hope that makes more sense of what I was looking for. :)
[LG V20 Guides, News, & Discussion] ttabbal:
https://xdaforums.com/showpost.php?p=73643246&postcount=151
[LG V20 Guides, News, & Discussion] Zacharee1:
Join the Telegram thread I made for this: https://t.me/joinchat/EkE57g6dCLopBy8xVQRT9w

There's an APK pinned where you can auto patch and flash from your phone.
[LG V20 Guides, News, & Discussion] Hybrid Divide:
Somehow, I totally missed that. Thank you very much! :D
[LG V20 Guides, News, & Discussion] MDMAchine:
Strange, I kept my information exactly how I was able to do it. Granted the way I was doing it was a non-streamlined haha. I am glad you were able to get it working from the 1st post though. After the rtcd was patched (removed) on mine, I am pretty much able to flash any kernel I want (as long as its not overwriting the patch). As I am currently on nethunter-h918-1.2 (doing TTL mods) with rtcd removed. And for the record I have had the device up for a week+ at a time with no issues or slowdown. Been busy with life and work, but hopefully this patch gets (or has gotten) integrated officially with rom/kernel authors... And for other LG devices that are showing rtcd lag. :)
[LG V20 Guides, News, & Discussion] shadavis08:
https://labs.xda-developers.com/store/app/com.zacharee1.rctdremoverforlg
[LG V20 Guides, News, & Discussion] cityneversleepz:
Thanks. Worked exactly and verified too on Sprint v20 classic rom.
[LG V20 Guides, News, & Discussion] serpent android:
Bro. I have na lg v10 T mobile running nougat. I want to root it and install custom rom. Ive searched many threads but without any success. Can u help? :confused:
[LG V20 Guides, News, & Discussion] Lgv20user:
Due to some unforseen circumstances, I had to do a clean install of dimmoks h91810q room and everything is running well now. Stock rom, stock kernel. Getting great battery with akt profiles installed. Smooth as butter
[LG V20 Guides, News, & Discussion] Zacharee1:
You probably haven't had any success because this is the V20 forum. Find the V10 forum, and create a new thread in the Q&A section. It's best not to ask questions in unrelated threads, since you're very unlikely to get an answer.
[LG V20 Guides, News, & Discussion] veryjo:
Rctd lg g5

Hello I use an LG G5.

I think I have the rctd-problem.

Is there a solution for the G5?
[LG V20 Guides, News, & Discussion] KUSOsan:
You can try using the removal tool that #Zacharee1 created. Not sure if it'll work on G5 but it worked flawlessly on my V20

https://xdaforums.com/v20/how-to/rctd-remover-script-feedback-t3675968/page11
[LG V20 Guides, News, & Discussion] Braaainz:
I posted a thread on the G3, looks like they have it too. Makes me wonder if that is why my G3 had battery suck and slow downs
[LG V20 Guides, News, & Discussion] DrPhant0m:
I've got a US996 (unlocked), running on Verizon. I've unlocked the bootloader, and I'm running with Magisk root on an otherwise stock 10h install. I just found this thread today, after living in relative peace with my phone lately. I do notice some lagginess and slowdown on occasion, but I wouldn't be so bold as to say it's because of RCTD. Normally I reboot and forget about it. Is there a way to determine if I should run the mod? I'd rather leave well enough alone (I had a hell of a time getting Magisk to install after having corrupted some things with a beta TWRP), but I'd definitely be willing and able to run the mod and reinstall magisk if it'll fix my occasional lag and stop any "root spying" on my phone.

On that note... what exactly is being spied upon, anyway? Should I run this mod just to further obscure my use or root? Is the RCTD information used against me in any way?

Thanks
[LG V20 Guides, News, & Discussion] dimm0k:
honestly, I don't know much about RCTD to answer all the questions, but I know for a fact that on the T-Mobile H918, RCTD is triggered in such a way that over time you're either forced to reboot or live in misery and then the cycle continues. This does not seem to be the case with the US996 unlocked, from the limited testing I did. The H918 is my daily driver so it was more noticeable on that device. You can tell RCTD is hurting you if you open up termux (or your favorite terminal app) and then run 'ps | grep sh' to see if the number of 'sh' processes keep increasing.
[LG V20 Guides, News, & Discussion] shadavis08:
It tells T-Mobile that you are rooted is all I'm aware of. But i cant confirm that
[LG V20 Guides, News, & Discussion] dimm0k:
actually T-Mobile has their own crap they use to check for root... if you look for the package com.tmobile.pr.adapt that's the crapware they use. not sure why it doesn't go crazy with Magisk, but when I had SuperSU on the LGV10 that thing would constantly ask for root if you don't deny or approve it. Best thing to do is freeze it or remove it
[LG V20 Guides, News, & Discussion] Walter.White:
Also I think there is some other spyware that T-Mo has on H918. CarrierIQ maybe? :confused:

I haven't quite figured out yet where the hell it is but I have "GPS-SPIRENT-2" and "GPS-SPRINT-1" wakelocks that keep my Android System/Phone awake for 10+ hrs.

Regardless if GPS is On or Off, WiFi is On or Off etc. No matter what I do that wakelock is there. Even in safe mode.

I'm here scratching my head. :confused:

[MENTION=2933708]storm68[/MENTION] [MENTION=5687667]dimm0k[/MENTION] [MENTION=7055541]Zacharee1[/MENTION] or anyone else for that matter, Do you guys know what hack could be going on?
[LG V20 Guides, News, & Discussion] cityneversleepz:
Try this from the playstore. I saw it in xda news. It's pretty aggressive.
[LG V20 Guides, News, & Discussion] Walter.White:
That blocks it. I wanna know where it is coming from.
[LG V20 Guides, News, & Discussion] cityneversleepz:
Got it. Let us know when you figure it out.
[LG V20 Guides, News, & Discussion] dimm0k:
have you tried using Better Battery Stats? that may give more details on troublesome wakelocks
[LG V20 Guides, News, & Discussion] KUSOsan:
You tried this app?

https://play.google.com/store/apps/details?id=com.uzumapps.wakelockdetector
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
Hello I'm new to the lg v20, I have the h918 one could anyone tell me what version of nougat can be rooted ?
[LG V20 Guides, News, & Discussion] Zacharee1:
Stop spamming irrelevant posts please.
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
Sorry I just didn't know which one to put it on .

---------- Post added at 01:56 PM ---------- Previous post was at 01:56 PM ----------

You know the high nouget version that can be rooted ?
[LG V20 Guides, News, & Discussion] androiddiego:
10j.

But I believe you can roll back from 10k.
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
I am on 10p though
[LG V20 Guides, News, & Discussion] stanleyopar2000:
You're f**ked then
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
Word tell me about it ?
[LG V20 Guides, News, & Discussion] PaulaTheKoala:
Didn't want to try out the automated tool because I'm still on 10j not sure if restoring a TWRP backup would actually work (Haven't tested, I even asked on the forums and no one responded...), for now I setup a tasker task that runs on boot, It's set to remove the RCTD binary and kill all RCTD processes, seems to work but I'm not sure if there are any unforseen issues of having a service that keeps trying to launch a non-existent binary.
[LG V20 Guides, News, & Discussion] androiddiego:
Just flash one of the "fixed" kernels. No need for tasker.
[LG V20 Guides, News, & Discussion] shadavis08:
https://labs.xda-developers.com/store/app/com.zacharee1.rctdremoverforlg

This removable tool works on any stock based kernel it just remove a few lines of code pertaining to the Spyware. It won't hurt anything. If the lines are not there it does nothing.

---------- Post added at 01:12 PM ---------- Previous post was at 01:09 PM ----------

:cowboy:
[LG V20 Guides, News, & Discussion] alarry:
Try the RCTD remover on XDA Labs as shadavis08 mentioned... can confirm working fine on 10j. Just need root.
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
Does this app still work ? I'm on v20 h91810u superv20 rom 7.1 nouget
[LG V20 Guides, News, & Discussion] androiddiego:
What kernel are you using? RCTD is probably already removed.
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
Mk2000 kernel
[LG V20 Guides, News, & Discussion] KUSOsan:
Mk2000 already has it removed
[LG V20 Guides, News, & Discussion] xXCoolGuYXx:
Thanks bro
[LG V20 Guides, News, & Discussion] VelosterM14:
It looks like the stock boot images in the OP are no longer available to download from google drive, I'm getting a 404 error on them. Anyone have some working links for the H918 10P one?

I was going to try the rctd remover APK zacharee1 put together but that also requires AIK to be installed and I can't seem to find good, clear, idiot-proof instructions for installing AIK.

EDIT: Nevermind, found what I needed reading the RCTD Remover Script and App thread and specifically this post. As it says, it will install AIK for you at that prompt to allow it to reboot to do so.

Thanks Zacharee1
[LG V20 Guides, News, & Discussion] lamepsycho:
Ok I got the app and patched the image with RCTD and Triton Checked while leaving CCMD unchecked as there is a warning and I don't know what ccmd actually is ....... any idea? Now the app shows the status of RCTD and Triton not running while CCMD is still there as I don't know if I have to remove it as well
[LG V20 Guides, News, & Discussion] KUSOsan:
Wait so if it comes back after a reboot what good would editing the lines and then rebooting do? Or am I misunderstanding something?
[LG V20 Guides, News, & Discussion] Nukewire:
I'm having the same issues... Cant seem to prevent the file from being edited again.
[LG V20 Guides, News, & Discussion] runningnak3d:
Interesting. I just checked, and you are correct -- the init file was restored. Now I have to figure out what else I did, because while the init file is back, rctd is most definitely gone (well, not a running process).

-- Brian
[LG V20 Guides, News, & Discussion] storm68:
What do you use to see processes running?
[LG V20 Guides, News, & Discussion] runningnak3d:
I use Termux. Open it (or any terminal), and type su -- you have to be root to see the process, then ps | grep rctd

-- Brian
[LG V20 Guides, News, & Discussion] androiddiego:
I just edited init.lge.rc, robooted and the #'s I put in front of each line are still there.

I adb'd with su and the command ps | grep sh showed a lot of less 'sh' processes than before.

Of course I'll have to let the phone sit for a while and see if more show up.
[LG V20 Guides, News, & Discussion] runningnak3d:
Do you have rctd running? ps | grep rctd

Also, what kernel are you running?

-- Brian
[LG V20 Guides, News, & Discussion] dimm0k:
so what I'm learning is that init.lge.rc is actually inside boot/ramdisk.img and that is what is loaded on boot so changes shouldn't stick as a result...
[LG V20 Guides, News, & Discussion] androiddiego:
Kali Kernel

Just checked again. The #'s are gone. So it appeared to stick after reboot, but now it is gone.

Running Kali kernel on H918
[LG V20 Guides, News, & Discussion] Nukewire:
Something interesting I found in the service menu ( *#546368#*918# for t-mobile ) was under "SVC Menu" there is an "LG RCT" option. If you click it you can see a setting called "LG RCT Check" and it says "Enabled" but there doesn't seem to be a way to disable it...
[LG V20 Guides, News, & Discussion] androiddiego:
I did the same thing.

From what I can gather, most people are concerned with resetting RCT after returning to stock for warranty purposes. But if this checker is also causing battery drain and lagginess, then it would be worth figuring out how to disable it.
[LG V20 Guides, News, & Discussion] askermk2000:
Try running as... root (ah the irony)

adb shell

su

am start -a android.intent.action.MAIN -n com.lge.hiddenmenu/com.lge.hiddenmenu.HiddenMenu

May not make a difference, but worth a try.
[LG V20 Guides, News, & Discussion] Nukewire:
Sadly it did not make a difference.

What I'm thinking we're going to have to do is dump out boot.img extract the ramdisk, make changes to the files we are referencing then repack the boot.img and flash it.
[LG V20 Guides, News, & Discussion] Zacharee1:
I'm going to take a look at the HiddenMenu source and see if there's anything of interest there. If that status indicator in the service menu isn't just checking to see if RCTD is running, maybe I can find something useful.

I hope we can avoid the boot.img repack, since that will effectively limit us to one kernel, unless someone wants to repackage every stock kernel out there.
[LG V20 Guides, News, & Discussion] dimm0k:
I'm actually working on that now... I'll post back after dinner as I believe I have all the pieces together.
[LG V20 Guides, News, & Discussion] runningnak3d:
Here is the Werewolf kernel with rctd disabled: link

This is NOT a flahable zip. I did this quick and dirty. You need to flash this with adb:

* adb reboot recovery

* adb push boot_no_rctd.img /sdcard

* adb shell

* cd /sdcard

* dd if=boot_no_rctd.img of=/dev/block/bootdevice/by-name/boot

Reboot and enjoy a faster phone....

Notice the hash tags, and no rctd running. I flashed a fresh clean system to make sure that nothing else that I had done was preventing it from starting. If someone would like me to do the stock kernel, or some other kernel, please post a link.

elsa:/ # cat init.lge.rc | grep rctd
#service rctd /sbin/rctd
# seclabel u:r:rctd:s0
elsa:/ # ps | grep rctd
1|elsa:/ #

If you would like to do this yourself, let me know and I will type it up, but I am not going to waste my time since it is quite a bit to type up if no one is interested.
[LG V20 Guides, News, & Discussion] Mervingio:
Nice but damn no have PC near [emoji33] [emoji33]
[LG V20 Guides, News, & Discussion] runningnak3d:
You don't need a PC. Download it, and unzip it to your /sdcard (or someplace that TWRP can see). Reboot to TWRP, and you can use the TWRP shell to do the same thing....

-- Brian
[LG V20 Guides, News, & Discussion] Mervingio:
Mmmmmmmmmm but TWRP can flash images too......
[LG V20 Guides, News, & Discussion] runningnak3d:
Can it flash boot? I dunno because I always do things the manual way :)

If someone posts a zip, I extract it to find out what it in it, and just flash with adb...

If so -- awesome!

-- Brian
[LG V20 Guides, News, & Discussion] storm68:
Looks like we are now going to look for this major find in updates of roms and/or kernels. Great job guys. ??? This is huge!
[LG V20 Guides, News, & Discussion] Zacharee1:
Yup, you can flash images to boot with TWRP.
[LG V20 Guides, News, & Discussion] storm68:
Can you try adding to this one? It's the only costume kernel that works with 10p...
[LG V20 Guides, News, & Discussion] Nukewire:
Great job!

What version are you running and what device?
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=2933708]storm68[/MENTION] Here you go: link.

Since this was a flashable zip, all I did was extract it, then extract the initrd, modify, and zip it back up -- so you can flash it in TWRP just like you could with the original kernel.

[MENTION=1769281]Nukewire[/MENTION] The first link that I posted is the Albatross Werewolf kernel for the H918. I am running v10k as my base ROM.

-- Brian
[LG V20 Guides, News, & Discussion] sobriquet506:
Thank you very much for this!

I was just hoping to verify which version of the Werewolf kernel you used. (1.0 Albatross, or 2.0 Basilisk?)

Again, many thanks!

Edit - Oops, asked and answered while I was typing (thanks for that)

Any chance of getting a similar modification for 2.0 Basilisk? I noticed a considerable performance boost when I upgraded!

Many thanks, either way!
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=8458235]sobriquet506[/MENTION] There is a 2.0? I did not see it in the kernel development forum. Thanks! I don't really like compiling my own kernels unless there is something very specific that I need -- why duplicate work, there is more than enough dev work to go around :)

If any of you guys are friends with those kernel devs, you might want to let them know that they should add this. I am not much of a people person :P
[LG V20 Guides, News, & Discussion] MDMAchine:
Links to the Original WW kernels:

Custom

Stock
[LG V20 Guides, News, & Discussion] sobriquet506:
There is a 2.0! The link is buried in the original werewolf thread (p.22, I believe), but not updated in the OP.

As I said, I saw a noticeable decrease in lag, and better performance all around with the update (running MegaRom 5.0 w/ Magisk 13.3)

Edit - I type way too slow, thanks for beating me to it [MENTION=2744105]MDMAchine[/MENTION]
[LG V20 Guides, News, & Discussion] runningnak3d:
When the dev made WW 2.0, he just included the kernel, and extracts the initrd from the running kernel. To patch this to remove rctd, I am going to have to completely repackage this since we obviously don't want to pull initrd if the person hasn't already flashed the patch WW 1.0 that I posted.

That is more work than I am willing to do tonight, but I want 2.0 -- so it WILL be up tomorrow :)

EDIT: actually if you want 2.0 tonight, just flash it if you have flashed the patched 1.0. It will pull the patched initrd, and use that to build the final kernel. But I am still going to package up a standalone 2.0 so that someone can go from stock to 2.0 minus rctd without having to flash 1.0.

-- Brian
[LG V20 Guides, News, & Discussion] Ducter:
Sure
[LG V20 Guides, News, & Discussion] Nukewire:
What does the service menu say about root checker now? Does it say disabled?
[LG V20 Guides, News, & Discussion] runningnak3d:
Mine still says enabled, but I haven't deleted the files yet. I think it just checks for rct.cfg since that service menu option tells you what had changed. So if you delete /persist/rct* then it will probably say disabled.

Either way, I don't care since the phone is SO much more responsive now. :)

-- Brian
[LG V20 Guides, News, & Discussion] dimm0k:
careful on deleting the files... they might be needed according to some old posts
[LG V20 Guides, News, & Discussion] sobriquet506:
Brilliant! You are awesome for working on it (didn't realize it would be so much more involved!), hugely appreciated!
[LG V20 Guides, News, & Discussion] Zacharee1:
OK guys, it's kind of terrifying how much of a difference removing the rtcd file makes.

I'm going to see if I can make a super simple Android app to remove it dynamically, so we don't have to patch every kernel that comes along.
[LG V20 Guides, News, & Discussion] runningnak3d:
It isn't a lot of work, just need to take the 2.0 kernel, and the 1.0 initrd and stick them in the blender ... IE: some cpio ± gzip :)

But I am not in front of my PC anymore for the night.
[LG V20 Guides, News, & Discussion] dimm0k:
thanks to all you guys for helping out with this! you don't know how long I've been dealing with the performance issues caused by this!! I've updated the original post to include the stock kernels for the H918 devices using 10k and 10p, as well as US996 devices using 10h. have at it if you're on stock! glad to know I was able to contribute to this community even if it was in the smallest way...
[LG V20 Guides, News, & Discussion] Zacharee1:
I have a dumb issue but how do you either mount or extract a DD'ed boot partition img?
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=3655268]Zackar[/MENTION]ee1 rctd is launched by init, so your app would need to modify the in memory init.lge.rc, and reload the init process on every boot. I am not even sure if the init that is compiled for our phones supports a reload. On standard Linux you can send SIGHUP to init and it will reload.