www.chinaphonearena.com

Full Version: root lg k8
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
OS Android v6.0 (Marshmallow)
Chipset Mediatek MT6735
CPU Quad-core 1.3 GHz Cortex-A53
GPU Mali-T720
1.5GB of RAM
8GB ROM

Rooting the k8 is rather difficult since it's using "lz4" compression for the partition images not the usual "gzip" method.
Systemless supersu is still unable to patch lz4 boot images so we need to have a little trick. Not to mention porting a working TWRP is also a pian in the aß...

Steps:

1. Download all necessary stuff

2. Prepare your ADB

3. Unlock your bootloader (all your data will be lost!!!)

4. Boot to TWRP (you have to stay in TWRP during the whole process!!!)

5. Backup your boot.img

6. Tweak your boot.img with Carliv Image Kitchen

7. Flash the tweaked boot.img in TWRP

8. Install SuperSU

9. Backup boot.img again

10. Tweak boot.img in Carliv

11. Flash boot.img in TWRP

12. Restart (this will take a bit longer and also expect bootloop a few times)


1.
LG mobile driver v4.1.1. (find attached - "LGMobileDriver_WHQL_Ver_4.1.1.exe", or find it on lg's website)
15 sec. ADB installer: [Only registered and activated users can see links Click here to register] you may need to install android SDK: [Only registered and activated users can see links Click here to register] (only command line tool - bottom of the page)
Carliv image kitchen: [Only registered and activated users can see links Click here to register] (i used version 1.1 but i guess later ones works as well)
Latest SuperSu: [Only registered and activated users can see links Click here to register] (i used v2.78SR1)
TWRP (find attached - lgk8twrp.img)
Files for tweaking boot image (find attached - "gz_ramdisk_compress.zip" and "lz4_ramdisk_compress.zip")

2.
On your phone go to "settings" - "about phone" - tap "build number" 5-10 times so you enable developer options, in developer options enable "usb debugging" and "oem unlock"
Install LG mobile driver
Install 15 sec. ADB intaller 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"
in the command window type
"adb devices"
it will start adb services and will print a line like "...lgk350..."
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
now reboot to fastboot mode:
"adb reboot bootloader"
your phone should go blank and only print fastboot mode on the bottom of the screen
check your fastboot connection:
"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
you may try to install android SDK 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

3.
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!!!
however your phone shell restart just fine (there will be some message during boot up that your system is vulnerable from now on)

4.
Copy "lgk8twrp.img" to the folder of ADB (where you opened the cmd window)
You need a microSD in your phone!!!
Get back to fastboot again and boot to TWRP - type in cmd:
"fastboot boot lgk8twrp.img"
you can ignore the first message to decprypt data - just hit cancel
and also you can keep system read only on the next page
(well..., thats the way i did this)

5.
Mount sd card
Go to Backup and choose boot partition only (untick the others)
There will be a backup on your sd card in the TWRP and some date related folder, called "boot.emmc.win"

You can eather restart to system in TWRP and keep sd card in the phone or unmount!!! the sd card stay in TWRP and Use a MicroSD card reader on your PC

6.
Unzip Carliv Image Kitchen and paste your backup file ("boot.emmc.win") to "boot-resources" folder in Carliv
Rename "boot.emmc.win" to "boot_lz4_0.img" (watch out for the extension)
Start Carliv.bat type "B" and hit enter
Find the above file (bootlz4_0.img) and type its number (probably its "1") and hit enter
Now chose "unpack image" ("1") - the image will be unpacked in folder "bootlz4_0"
- do not close Carliv!

Change the "boot.img-ramdisk-compress" in the above folder to the file found in "gz_ramdisk_compress.zip"
Now in Carliv chose "repack image" ("2") - this will make your boot image SuperSu compatible Smiling
You will find your new boot image in the "output" folder, there will be some date related ending of the file just rename the whole file to "bootgz_0.img"
Put this file and "SuperSu.vxx.zip"!!! on the sd card

7.
In TWRP go to "install" and chose "image" - find the "bootgz_0.img" and install it to the "boot" partition

From now on you must not leave TWRP!!!
From now on you must not leave TWRP!!!
From now on you must not leave TWRP!!!
You can easily make a brick of your beloved LG... since its not gonna boot up normally until we finish

8.
Install SuperSU (you have to change back from installing image to zip) - do not restart or bootup
in case anything goes wrong you can still restore your boot image from earlier backup
but if supersu installs succesfully then go on Smiling your almost ready ;)

9.
Back up boot image again, go back (use back button) to initial TWRP page and unmount externalSD inside Mount
do not leave TWRP!!! take the sd card out (if you forgot the cable in the phone and you didn't remove the back panel you can do that now - no worries)

10.
Just as before copy and rename the new boot image into carlivs boot-resources folder (let it be "bootgz_1.img")
unpack this boot image exchange the "boot.img-ramdisk-compress" to the one found in "lz4_ramdisk_compress.zip" - watch out this is another zip not the one in step 6!
Repack and rename to "bootlz4_1.img" - now your boot image is lz4 compressed again so your phone can use it
Put this image file on your sd and put the sd back to your phone

11.
Mount ext.SD in TWRP go to install change, to image and find your new boot image ("bootlz4_1.img") on your sd and let it go onto your boot partition

12.
Restart to system... be patient... might take a while...


In case you find supersu in your appdrower you are good to go Smiling

Your data will stay untouched with this process (still encrypted) so if you want your data decprypted you have to clear data and cache before installing supersu
The TWRP is pretty much mixed from others and not fully functional!

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

Credits:
Cleopatra for her TWRP porting ideas ([Only registered and activated users can see links Click here to register])
Chainfire from XDA for SuperSU

The attached file (which is too big to upload here):
[Only registered and activated users can see links Click here to register]
I've been working on this daybyday hoursandhours for more than a month... so if it works and you feel like donating i'd appreciate some tax for my service ;)






Keywords:
TWRP Lg K8 K350n root supersu
Hello guys very first royal Guide
I followed all sections
And end makes the device non-stop loop
(2016-10-09, 16:21)eeeeyal Wrote: [ -> ]Hello guys very first royal Guide
I followed all sections
And end makes the device non-stop loop

Make a hard reset and try again. Before you restart at the final step make a recovery log and send it and also send your boot images (all the three) you make during the process. Let me see if i could help. The method proves to be working as you can see on xda.
Anyways, are you sure SuperSU installed totally? In that case only the last few steps could be faulty and the steps before has to work otherwise SuperSU couldn't intall... Also make sure you restart (or exit to main menu in) Carliv Image Kitchen between step 6 and step 10. You can also check if in the final boot image's "boot.img-ramdisk-compress" file there is "lz4" not "gz" (open as text). Or another mistake could be using the same "boot.emmc.win" file at step 10 as in step 6 which you should not...
Regards,
Thanks a lot friend

1 I wrote KDZ full device model K350n

2. Then I switched opened Tirminl with the following command adb reboot bootloader

3. fastboot oem unlock

4. fastboot boot twrpk8.img

5. lit TWRP and then clicked on the cancellation of the KIP

6. I hit signaled mount sdcard and I chose the external drive

7. I went back to the main screen pressed the backup signaled only boot

8. I got a memory card to your computer copied the file boot.emmc.win meantime the name to boot_lz4_0.img
I copied the folder boot-resources and pressed unpack

9. I changed the file boot.img-ramdisk-compress from gz_ramdisk_compress.zip
And pressed repack

10. I copied from the output folder bootgz_0.img file into memory Hcrtiz

11. I put the phone card and wrote bootgz_0.img then wrote supersu.zip came with

12. I did a backup to boot again I copied the file to the memory card in the folder TWRP after I deleted the old backup meantime the name from boot.emmc.win to bootgz_1.img

13. I bootgz_1 folder and copied the file boot.img-ramdisk-compress from the lz4_ramdisk_compress.zip clicked the folder again and then repack output file is copied from the memory card bootlz4_1.img

14 Again I install button and chose the bootlz4_1.img

15. Now I went and did turning off button reboot system

The device makes a loop
(2016-10-10, 02:21)eeeeyal Wrote: [ -> ]Thanks a lot friend

1 I wrote KDZ full device model K350n
...
15. Now I went and did turning off button reboot system

The device makes a loop

Well, thanks for the full description.
It seems you are good at least until the TWRP (because the backup works) so the problem must be later. I'm gonna need that recovery.log file you can make in TWRP Advanced menu, make it rigth before the final reset to system. Also if you could upload those boot images somewhere and share it with me could help.
Anyways at the end it makes a loop two or three times before it boots up normally!
PS:
You don't need to flash kdz every time. You can just make a hard reset if you turn off your phone, then hold down the Volume Down and Power button together until the LG logo appears on the screen. When the LG logo is displayed, let go of the Power key, keep pressing the Volume Down and then press once more the Power button. After that you should see the factory reset menu on your screen.
[Only registered and activated users can see links Click here to register][/quote]
I did alld the steps but my phone now is keep restarting that LG logo. And thats all. I tried to hard reset but nothing he`s not reseting, still reboots every time.

Sorry for my bad english. Help.
(2016-10-10, 03:43)eeeeyal Wrote: [Only registered and activated users can see links Click here to register]
[/quote]

Is your phone a k10? And what TWRP is this? It's not the one i shared. Of course if your phone is a k10 maybe you can use other TWRP. I'll ask the guy on xda who managed to do the root on his k10 using my guide what TWRP he used. I'll also take a deeper look at your log file tomorrow. Don't worry, it's gonna work ;)
My device is LG-K350n K8 is what is listed in the title
(2016-10-10, 04:54)eeeeyal Wrote: [Only registered and activated users can see links Click here to register] - twrplgk8.img)

(2016-10-10, 04:41)mazarobokaka Wrote: [Only registered and activated users can see links Click here to register]

Connect the phone to usb during holding the volume + button until there are small letters on the buttom of the screen saying "download mode". Wait until lg bridge recocnizes the phone and in the sowftware update tab click on "update error recovery"

You guys should use the TWRP from the OP (under attached files), Do not use the TWRP from the earlier thread!

(2016-10-10, 04:54)eeeeyal Wrote: [Only registered and activated users can see links Click here to register])
didn't you? That might not work, i never tested with SuperSU...
Pages: 1 2 3 4