Furthermore, it has also moved a step ahead and has firmly established itself as a successful player in custom development. Various online forums are already buzzing with tons of mods and custom binaries. And in this guide, we will be focusing on the most important tweak- the ability to gain administrative privileges. This is usually carried out via two different methods- flashing the Magisk App via TWRP or extracting the boot. img from KDZ/DZ firmware, then patching it via Magisk and flashing it via Fastboot Commands. But with this device, we will be opting for an alternate route. First off, we will load the firehose firmware file in the QPST tool. After this, we will be making a backup of the boot partition file, for both the A and B slots. Then this file will be patched via Magisk and finally flashed via the QPST Tool. So without further ado, let’s get started with the guide to root the LG G8/G8s/G8x devices via Magisk, QPST Tool, and the Firehose file.
How to Root G8/G8s/G8x via Magisk, QPST, and Firehose file
The below instructions are listed under separate sections for ease of understanding. Make sure to follow in the exact same sequence as mentioned below. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.
Install Android SDK
First and foremost, you will have to install the Android SDK Platform Tools on your PC. This is the official ADB and Fastboot binary provided by Google and is the only recommended one. So download it and then extract it to any convenient location on your PC. Doing so will give you the platform-tools folder, which will be used throughout this guide.
Enable USB Debugging and OEM Unlocking
To begin with, you will have to enable USB Debugging and OEM Unlocking on your device. The former will make your device recognizable by the PC in ADB mode. This will then allow you to boot your device to Fastboot Mode. On the other hand, OEM Unlocking is required to carry out the bootloader unlocking process. So head over to Settings > About Phone > Tap on Build Number 7 times > Go back to Settings > System > Advanced > Developer Options > Enable USB Debugging and OEM Unlocking.
Unlock Bootloader on LG G8/G8s/G8x
Next up, you will have to unlock the bootloader on your device. Do keep in mind that doing so will wipe off all the data and might also make the device’s warranty null and void. If that’s well and good, then please refer to our guide to Unlock Bootloader on LG G8, G8s, and G8x.
Download the Required Files
Here are all the files that you would be needing to root your LG G8/G8s/G8x devices:
Firehose file: This is the firmware file that is will give us the boot_a and boot_b BIN files. Download: prog_ufs_firehose_sm8150_lge.elf. [Credits: XDA Member Seasee606] QPST Tool: This tool will be used to extract the boot_a and boot_b BIN files from the firehose file. later on, we will again use this tool to flash the Magisk patched boot files. Download: QPST_Tool_2.7.496.rar. Likewise, you will also have to install its associated driver file- Download: QPST_QFIL_QUD.WIN.1.1_Installer-10037.3_Setup.zip.Magisk App: This will be used to patch the stock boot_a and boot_b BIN files. [Beginning with v22, Magisk Installer ZIP and Magisk Manager are bundled into a single package named Magisk App]. Download: Magisk App.Qualcomm USB Drivers: The rooting process requires you to boot your device to Emergency Download Mode. For that, you will need to have the Qualcomm USB drivers so that your PC is able to identify the device in this EDL mode. Download: Qualcomm HS-USB QDLoader 9008 Drivers.
That’s it. These were all the requirements. You may now proceed ahead with the steps to root the LG G8/G8s/G8x devices via Magisk, QPST Tool, and the Firehose file.
Boot LG G8/G8s/G8x to EDL Mode
Backup LG G8/G8s/G8x Boot.bin Files via QPST
Check Current Active Slot
Next up, you will have to check your device’s current active slot. We would then patch and flash the boot_a.bin or boot_b.bin file accordingly [corresponding to your current slot].
Patch Boot.Bin File via Magisk
We will now patch the stock boot file via Magisk and then flash it to root your LG G8/G8s/G8x devices. Follow along:
Flash Magisk Patched Boot.img via QPST Tool
So this was all from this guide on how to root LG G8/G8s/G8x devices via Magisk, QPST Tool, and the Programmable UFS Firehose file. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.