-
Any custom recovery (easy method)
-
Qfil (harder method)
If you don't have LineageOS installed, use method 2
By holding the volume up + power buttons while the phone is powered off
- Select Apply update > Apply from ADB.
- Download magisk.apk and rename it to magisk.zip
- Use the adb sideload command to install Magisk. Replace
path\to\magisk.zip
with the actual path of magisk.zip.
adb sideload path\to\magisk.zip
- Reboot back to Android after it has finished flashing.
- Find the Magisk app and open it. Let it update if it asks you to update.
- Once you are able to open Magisk, open it and let it finish the set up. It should reboot after a few seconds.
Use this method if the first one does not work
- Open Qfil.
- In "Select Build Type", select flat build.
- In "Select programmer", select the downloaded firehose.
- In "Configuration", make sure the "Device Type" is set to UFS.
- Open Device Manager on your PC
- With the phone turned off, hold volume down + power.
- After the LG logo appears, while still holding volume down + power, start rapidly pressing the volume up button.
- Keep doing this until you hear a USB connection sound on your PC, or when Qualcomm HS-USB QDLoader 9008 appears in the Ports (COM & LPT) category of Device Manager.
- If the device is called QUSB_BULK_CID or has a
⚠️ yellow warning triangle / question mark, and is located in any other category (for example Other devices), you need to install EDL drivers first. - To install EDL drivers, extract the contents of QUD.zip somewhere, right click on QUSB_BULK_CID, click on Update driver and Browse my computer for drivers, then find and select the QUD folder.
- In Qfil, make sure the correct port is selected. If it says
No Port Available
, select the Qualcomm HS-USB QDLoader 9008 port. - At the top, select "Tools" > "Partition manager", and click Ok.
- If you see a Download Fail:Sahara Fail error, make sure your cable stays connected and reboot to EDL again by holding volume down + power, then start rapidly pressing the volume up button once the LG logo appears.
- Once you're back in EDL, try opening the Partition manager again.
- If it still fails, try to repeat the last step a few times. You can also try rebooting your phone and PC.
- In the Partition manager, right click on boot_a > Manage Partition Data and press Read Data.
- Navigate to
C:\Users\YOURNAME\AppData\Roaming\Qualcomm\QFIL\COMPORT_#\
and rename the backed up partition to boot.img (make sure it changes the extension).
- Hold volume down + power until it shows the LG logo, then release the buttons.
- Copy the boot backup to your phone.
- Download and install Magisk, then open it.
- Press Install > Patch a file and select the boot image.
- Once it's done, copy the patched boot image to your PC and reboot back into EDL.
- Return to Qfil and open the Partition manager.
- In the Partition manager, right click on boot_a > Manage Partition Data and press Load Image.
- Select and flash the patched boot.img file.
- Do the same thing for boot_b.
- Hold volume down + power until it shows the LG logo, then release the buttons.