[LG K10 Guides, News, & Discussion] gottlasz:
This guide is supposed to help you root your lg k8 (2016) or k10 (2016) device (i guess any models with and unlockable bootloader and working TWRP).

Not for the 2017 models!

Why "friendly" root? Go see my old guide how unfriendly the method used to be:

https://xdaforums.com/lg-k10/how-to/twrp-root-lg-k8-k350n-t3475807

Guys with latest (2017 febr. 1) security patch read this before you proceed:

https://xdaforums.com/showpost.php?p=71469157&postcount=183

https://xdaforums.com/showpost.php?p=72414225&postcount=250

Short version:

1. unlock bootloader (read step 2.1 if there is no device corrupt message during every boot up after unlocking bootloader!!!)

2. boot into TWRP (i tested with 3.0.0 twrp and above, never tested below)

3.1 install rce_univ.zip (download from this thread: https://xdaforums.com/apps/supersu/ramdisk-compression-exchanger-t3533327, but follow instructions here!)

3.2 install supersu

3.3 install rce_univ.zip again

reboot

Long version:

The links written with italic fonts are video guides (please excuse me for the quality they were made by my mobile phone)

1. unlock bootloader

- in settings/about phone/software info tap on build number about 10 times so you unlcok developer options

- in settings/developer options tick on "oem unlock" and "usb debugging" and untick "verify apps over usb"

- in settings/security tick on "unknown sources" and untick "verify apps"

video guide for above steps: Link Removed by Moderator

- make sure you installed all the drivers for your mobile from lg's site (LGMobileDriver_WHQL_Ver_4.1.1.exe and also lg bridge) - Link Removed by Moderator

- set up adb/fasboot using 15 seconds adb installer: https://xdaforums.com/showthread.php?t=2588979 - Link Removed by Moderator

- go to the folder it's installed (in my case it's C:/adb - adb.exe and fastboot.exe supposed to be there) hold shift and right click "open cmd here" - Link Removed by Moderator

- in the command window type "adb devices"

it will start adb services and will print a line like "...lgk350... or ...lgk420... lgk430, etc"

if you can't find your device there check device manager or google how to work things out

normally in device manager you should find "LGE Mobile USB Serial Port" under Ports - Link Removed by Moderator

- now reboot to fastboot mode typing the command: "adb reboot bootloader"

your phone should go blank and only print fastboot mode on the bottom of the screen

- check your fastboot connection: type: "fastboot devices"

same as before (in my case it was writing some unrecognizable letters - probably wrong coding) if you see nothing then check device manager -Link Removed by Moderator

you may try to install android SDK (command line tool is enough - https://developer.android.com/studio/index.html - bottom of the page Link Removed by Moderator) if the connection is not working - however there must be a way to make it work (i had a hard time in device manager - i changed each driver a million times until it worked)

in device manager you should find "android bootloader interface" in my case its under "samsung android phone" i don't know why but it works

- In case you have a working adb and fastboot connection type (if you lost connection you have to get to fastboot again: "adb reboot bootloader"):

"fastboot oem unlock" - the phone will ask you if you really mean it, using the volume and the on/off buttons (twice) you can accept

you will lose all your data!!! and most likely lose warranty as well!!! Link Removed by Moderator

however your phone shell restart just fine (you have to manually restart it by taking out the battery or boot into twrp and reboot from there. There should be some message during boot up that your system is vulnerable from now on.

- after reboot you may want to check if your bootloader is really unlocked: get back to fastboot and type "fastboot getvar all" and find the line which sais if your bootloader is unlocked (if it's not you may repeat the process)Link Removed by Moderator

set up developer settings again:

- in settings/about phone/software info tap on build number about 10 times so you unlcok developer options

- in settings/developer options tick on "oem unlock" and "usb debugging" and untick "verify apps over usb"

- in settings/security tick on "unknown sources" and untick "verify apps"

Link Removed by Moderator

- !!!if there is no device corrupt message during every boot up then you need an additional step i'll describe at step 2.1!!! - Link Removed by Moderator

2. find a working TWRP for your device (i collect them in the first comment below - https://xdaforums.com/showpost.php?p=70375626&postcount=2):

- put the recovery image (e.g "k8twrp.img") into your ADB folder (like c:\adb - where you opened command promt earlier)

- Get back to fastboot again and boot to TWRP - type in cmd: "fastboot boot k8twrp.img" (or whatever your TWRP image's filename is)

- if its not booting into TWRP normally try another TWRP (comment #2)

- on the first screen of the TWRP it's asking for password to decrypt data - just hit cancel

- if you have the device corrupt message during every boot up you can skip the next step (go straight to step 3.)

2.1. in case you have no device corrupt message during every boot up follow the next steps

- on the keep system read only? screen of the TWRP let it allow modifications (swipe!)

- reboot to System

- Link Removed by Moderator

you must see the device corrupt message during boot up -> you are ready to go for a root

- try to reboot the device if the device corrupt message is still there during boot up (Link Removed by Moderator). If it's not there you may repeat the process or check my old guide for troubleshooting.

3. the rooting part -Link Removed by Moderator[/I]

(you can read my old guide why we need to tweak the boot image before installing SuperSU - if you are interested)

- download the ramdisk compression exchanger: https://xdaforums.com/apps/supersu/ramdisk-compression-exchanger-t3533327 (we need this because SuperSU can only work with gzip compressed ramdisks while we have lz4 compressed ones)

- download latest SuperSU TWRP flashable version: https://xdaforums.com/apps/supersu/stable-2016-09-01supersu-v2-78-release-t3452703

- put this (rce_univ.zip) and latest SuperSU (i used v2.79) on your sd card (you need external sd because the internal sd is encrypted in TWRP)

- reboot your device into TWRP (through adb and fastboot as before)

- cancel decrypt data

- don't swipe on system modifying screen just click on "keep read only"

- go to backup, backup your boot image (tick only boot partition /untick the rest/ and select storage as micro sd card) in case anything goes wrong during the rest of the process you can always restore it

- go to install

- select storage and chose micro sd card

- install rce_univ.zip (it will recompress your ramdisk to gzip - so SuperSU can tweak it)

- when it's finished don't wipe or don't reboot! Go back (hit back button button) and install SuperSUxxx.zip

- go back again (without restart or wipe) and install rce.zip again (this will recompress your ramdisk to lz4)

- now you can reboot to system (without any wipe) - it will bootloop a few times, be patient!

If something goes wrong check my old guide for deeper understanding and troubleshooting!

If you have any problem with installing rce_univ.zip please post comments to it's thread:

https://xdaforums.com/apps/supersu/ramdisk-compression-exchanger-t3533327

Comments in this thread shell be only TWRP related or deeply device specific.

No promises... and no responsibility i take... !!!