Hello everyone,
These are the steps i used to root my LG G3 running official marshmallow. I rooted my LG G3 d851 and d850 by this method and i am sure that this will work on most variant (Not sure about Sprint or korean edition but you can give it a try).
So let's begin. Make sure that "USB debugging is on" for your device and drivers for that are also installed
Download drivers Steps (Please do in sequence to avoid problem)
1: Download the official king root apk from here.
Download2: Also download correct twrp for your device
Download twrp3: Now root your device
a: Install kingroot apk. b: Connect to internet and run the kingroot application
c: Let the application do it work by clicking on root now.
(It can display cannot root your device sometime but forget it. After process is complete the device would be rooted temporary)
4: As device is rooted temporary so don't restart it.
5: Make sure adb is setup properly on your pc if not then follow the guide
Guide6: Now copy your download twrp recovery (of step 2) to your device and name it twrp (With extension it would be twrp.img).
7: Connect your device to pc (If it is not) in usb debugging mode.
Run "minimal adb and fastboot" (of step 5). Now type commands
This will show you device if driver are installed properly.
Now type
Allow supersu permission from your device. (# will appear in minimal adb window)
Now type
Code:
dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
exit
exit
TWRP recovery will now be installed on your device. To boot into recovery type.
Code:
adb reboot recovery
If you did everything good then recovery will start. If you had anything else then ask in comments.
Hit thanks if this helped you :)