Rooting the G8s - Guide

Search This thread

hej2010

Member
Nov 8, 2011
44
38
Gothenburg
I got root and Magisk working on my G8s (LM-G810EAW)!!

The patched boot image I used for my German (NEU) G8s can be downloaded from (check your Android security patch date in the phone system settings and choose the corresponding version):
Version v10n: here (2019) or
Version v10p: here (January 2020 security patch) or
Version v10q: here (March 2020 security patch)
Version v10r: here (May 2020 security patch)
(then start on step 11)
If you have the same model (AND version!) you can use that, otherwise follow the steps below:

Guide:
0. Unlock the bootloader (https://developer.lge.com/resource/mobile/RetrieveBootloader.dev).
1. Go to https://lg-firmwares.com/lg-lmg810eaw-firmwares/#tab=firmwares and sort by date (newest first).
2. Download the kdz for your region (I chose NEU).
3. Download https://github.com/steadfasterX/kdztools (and install python 3.8 if you don't have it, and add it to your PATH variable).
4. Put the .kdz file in the same directory as the tools.
5. Open a command prompt and run "python .\unkdz.py -f .\YOURFILE.kdz -x". This will create a .dz file using the .kdz file.
6. The newly created .dz file is located in the "/kdzextracted" folder. Move it to the parent folder ("kdztools-master").
7. Run "python .\undz.py -f .\YOURNEWFILE.dz -s". This will make everything into .image files.
8. The output files are in the "/dzextracted" folder.
9. Find the "boot_a.image" file and copy it to your phone's internal storage with e.g. a USB cable.
10. Install the Magisk Manager app (https://github.com/topjohnwu/Magisk/releases).
11. Open the app and click Install -> Install -> Select and Patch a File. Choose the boot.image file. Magisk will then patch it and output a patched image file.
12. Copy the patched image (magisk_patched.img) file to your computer.
13. Put the file in the same directory as adb and fastboot.
14. Enable USB debugging in Android settings and then boot into fastboot with ".\adb.exe reboot bootloader".
15. When the phone is in fastboot, run ".\fastboot.exe flash boot .\magisk_patched.img".
16. Restart (".\fastboot reboot") and run the Magisk manager app and you should have root :)

17. If you do this process for new updates, remember to unhide the Magisk manager app before updating!
Otherwise, after updating: (If you have a hidden Magisk manager app (repackaged) then you need to uninstall it and reinstall the original version, otherwise it won't detect that you have root!)

Stock boot image:
v10p: here
v10q: here
v10r: here

Android 10 kdz: https://drive.google.com/file/d/1JaIOh96P0ptW2wMGcEamy4pgEAAoxUjw/view?usp=sharing

Edit 2020-03-19: Added patched boot image for January security patch
Edit 2020-06-10: To install OTA updates, you need to use LG Bridge on your computer!
Edit 2020-06-10: Added patched boot image for March security patch
Edit 2020-06-13: Added patched boot image for May security patch
Edit 2020-06-15: Added stock boot images
Edit 2020-09-11: Added .kdz for Android 10 update
 

Attachments

  • Screenshot_20200201-215944.png
    Screenshot_20200201-215944.png
    153.8 KB · Views: 3,179
  • Screenshot_20200201-215953.png
    Screenshot_20200201-215953.png
    162.6 KB · Views: 3,145
Last edited:

Frau Son

Senior Member
Dec 11, 2017
105
34
Kiel
Okay well, your image doesn't work for me (carrier-free German G8S, tells me it can't flash boot with unlocked bootloader which apparantly means the file itself doesn't work) and trying to unpack KDZs (whichever I try) result in weird python errors I can't get behind and no one had similar problems (on Windows, at least - so SALT is not an option for me right now as it is a Linux only app)
sigh

EDIT:
Found the solution!
You wrote down the wrong command to flash the img.
the correct one would be "fastboot flash boot_a FILENAME.img"
only stumbled over this after realizing that the boot image you pulled was called "boot_a" and fastboot tried to flash it onto "boota" with the normal "boot" command
3 hours wasted but at least I have root now!
 
Last edited:

hej2010

Member
Nov 8, 2011
44
38
Gothenburg
Okay well, your image doesn't work for me (carrier-free German G8S, tells me it can't flash boot with unlocked bootloader which apparantly means the file itself doesn't work) and trying to unpack KDZs (whichever I try) result in weird python errors I can't get behind and no one had similar problems (on Windows, at least - so SALT is not an option for me right now as it is a Linux only app)
sigh

EDIT:
Found the solution!
You wrote down the wrong command to flash the img.
the correct one would be "fastboot flash boot_a FILENAME.img"
only stumbled over this after realizing that the boot image you pulled was called "boot_a" and fastboot tried to flash it onto "boota" with the normal "boot" command
3 hours wasted but at least I have root now!

That's weird, writing "boot" worked for me, it said it flashed "boot_a" automatically
 
  • Like
Reactions: Bunsenbrenner

Bunsenbrenner

Senior Member
Jan 11, 2016
146
34
Black-Forest-79
B]EDIT:[/B]
Found the solution!
You wrote down the wrong command to flash the img.
the correct one would be "fastboot flash boot_a FILENAME.img"
only stumbled over this after realizing that the boot image you pulled was called "boot_a" and fastboot tried to flash it onto "boota" with the normal "boot" command
3 hours wasted but at least I have root now!

has worked very well for me according to instructions 5min , it is helpful to know the commands or to get an ADB command list if you do not know ;)

as he described and named it worked well:good:
 
Last edited:

Frau Son

Senior Member
Dec 11, 2017
105
34
Kiel
Code:
Microsoft Windows [Version 10.0.17763.864]
(c) 2018 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\Marie>cd C:\Program Files (x86)\Minimal ADB and Fastboot

C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot bootloader
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash boot magisk_patched.img
target reported max download size of 805306368 bytes
sending 'boota' (25340 KB)...
OKAY [  0.546s]
writing 'boota'...
FAILED (remote: Cannot flash this partition in unlocked state)
finished. total time: 0.554s

*shrug*
tried it with another ABD/Fastboot version too and still the same
I've rooted several phones from different brands over the last... I don't know, 5 years... and fastboot has never betrayed me like that before
LG seems to hate me though - particularly when it comes to rooting/flashing -, so maybe it's just my personal bad luck again :rolleyes:
 
Last edited:

antintin

Senior Member
Sep 11, 2019
595
142
LG V40
LG G8

culmencasa

Member
Mar 6, 2013
14
0
i have a question, the first step, "Unlock Bootloader“, how could it be done?
the website says,
==========================================================
Supported Devices
The following devices support unlocking the bootloader:



• LG V50: LMV500EM for the European market

• LG V40: LMV405EBW for the European market

• LG G7: LMG710EM for the European market

• LG V30: H930 and H930G for the European market

• LG G6: US997.USA for the U.S. open market

• LG G6: H870 for the European market

• LG V20: US996.USA for the U.S. open market

• LG V10: H960A for the European market and Android M (Except France)

• LG G5 SE: H840 for the European market

• LG G5: RS988.USA for the U.S. open market

• LG G5: H850 for the European market

• LG G4: H815 for the European market



Unlocking the Bootloader is only supported on selected devices.

==========================================================

there is no LG G8 or LG G8s
 

hej2010

Member
Nov 8, 2011
44
38
Gothenburg
i have a question, the first step, "Unlock Bootloader“, how could it be done?
the website says,
==========================================================
...

there is no LG G8 or LG G8s

Yes I know. I tried to unlock the bootloader the day before, but it didn't work so I emailed them and asked when the G8s would be unlockable.
I got an answer saying that
it will not be activated in the near future

The day after I tried again and it worked, even though the G8s isn't on the list :) No idea why
 
  • Like
Reactions: culmencasa

Bunsenbrenner

Senior Member
Jan 11, 2016
146
34
Black-Forest-79
Even better because i can set the kernel :D

With magisk everything runs without problems root and System works fine. No problems even bluetooth runs excellent :good:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    I got root and Magisk working on my G8s (LM-G810EAW)!!

    The patched boot image I used for my German (NEU) G8s can be downloaded from (check your Android security patch date in the phone system settings and choose the corresponding version):
    Version v10n: here (2019) or
    Version v10p: here (January 2020 security patch) or
    Version v10q: here (March 2020 security patch)
    Version v10r: here (May 2020 security patch)
    (then start on step 11)
    If you have the same model (AND version!) you can use that, otherwise follow the steps below:

    Guide:
    0. Unlock the bootloader (https://developer.lge.com/resource/mobile/RetrieveBootloader.dev).
    1. Go to https://lg-firmwares.com/lg-lmg810eaw-firmwares/#tab=firmwares and sort by date (newest first).
    2. Download the kdz for your region (I chose NEU).
    3. Download https://github.com/steadfasterX/kdztools (and install python 3.8 if you don't have it, and add it to your PATH variable).
    4. Put the .kdz file in the same directory as the tools.
    5. Open a command prompt and run "python .\unkdz.py -f .\YOURFILE.kdz -x". This will create a .dz file using the .kdz file.
    6. The newly created .dz file is located in the "/kdzextracted" folder. Move it to the parent folder ("kdztools-master").
    7. Run "python .\undz.py -f .\YOURNEWFILE.dz -s". This will make everything into .image files.
    8. The output files are in the "/dzextracted" folder.
    9. Find the "boot_a.image" file and copy it to your phone's internal storage with e.g. a USB cable.
    10. Install the Magisk Manager app (https://github.com/topjohnwu/Magisk/releases).
    11. Open the app and click Install -> Install -> Select and Patch a File. Choose the boot.image file. Magisk will then patch it and output a patched image file.
    12. Copy the patched image (magisk_patched.img) file to your computer.
    13. Put the file in the same directory as adb and fastboot.
    14. Enable USB debugging in Android settings and then boot into fastboot with ".\adb.exe reboot bootloader".
    15. When the phone is in fastboot, run ".\fastboot.exe flash boot .\magisk_patched.img".
    16. Restart (".\fastboot reboot") and run the Magisk manager app and you should have root :)

    17. If you do this process for new updates, remember to unhide the Magisk manager app before updating!
    Otherwise, after updating: (If you have a hidden Magisk manager app (repackaged) then you need to uninstall it and reinstall the original version, otherwise it won't detect that you have root!)

    Stock boot image:
    v10p: here
    v10q: here
    v10r: here

    Android 10 kdz: https://drive.google.com/file/d/1JaIOh96P0ptW2wMGcEamy4pgEAAoxUjw/view?usp=sharing

    Edit 2020-03-19: Added patched boot image for January security patch
    Edit 2020-06-10: To install OTA updates, you need to use LG Bridge on your computer!
    Edit 2020-06-10: Added patched boot image for March security patch
    Edit 2020-06-13: Added patched boot image for May security patch
    Edit 2020-06-15: Added stock boot images
    Edit 2020-09-11: Added .kdz for Android 10 update
    3
    January security patch boot image

    can someone upload the bootloader file for magisk to the rooting for January patch? for DEC,NEU

    i always get errors with python when unpacking the dz file on windows
    :rolleyes:

    Thank you!
    Is this tutorial up to date or has anything changed since you made it?
    I only just bought the G8s (german version) and want to make sure everything is in order, so I don't brick it (on the first attempt). ^^

    Thanks again!

    I'm facing the exact same Problem. That's sad as I bought this phone only few days ago when I read root was available :(
    My G8s is on 1. january patch. Is it safe to use your provided Magisk boot.img? I'm a little worried because of the guys here mentioning bootloops/bricks

    I just updated the post with the patched boot image for the January security patch :)
    3
    If i use the v10p magiskpatched img on the first thread on my g8s that also have v10p need other ? I think that not need python? Right?
    No, simply flash it with fastboot.
    If someone need this, here the patched boot image for v10q:
    https://drive.google.com/open?id=1lb8JEyTac9mhDFNE7VfmYEUtdma1yWlM
    3
    Here you have patched boot_a.image from/for firmware G810EAW20j_00_OPEN_EU_DS_OP_0216. I used Magisk v 22.0 (22000) for patchimg. For update to newer firmware I used LG Bridge.