If you are done messing around with rooting your LG G5 or if it’s just acting up frankly, you can unroot the LG G5 pretty easily and get it back to completely stock.
We’ll be using LG’s own flashing tool and their stock firmware files, each is specific to each version of the G5. You simply flash it on to the phone using the tool, and viola, phone boots back up and is the way you got it out of the box. Here’s how to unroot the G5.
Now, if you want to get rid of the message when you boot up saying the software cannot be checked for corruption (which means you unlocked the bootloader), you can relock the bootloader.
Boom, back to stock and you can sell it, send it in for warranty, or just start over and reroot the thing. Hope that helps some of you and please let me know in the comments below!