Here in this guide, we will help you to flash the magisk to root Lenovo K5 Pro. Read our step by step guide properly!
Who doesn’t want to get the most of his Android device..?! Getting the superuser access through root and to be able to control various aspects like clock, access to cache etc. are few of the various possibilities that we can explore. When we mention root access, this means we need to perform a certain modification that will root our phone and we will have access to the root directory of our device. In this post, we will show you how to root Lenovo K5 Pro.
We will use the Magisk by patching the stock boot image and flash that to your boot partition. All you need to do is download the patched image file from Magisk Manager and flash it.
Mostly uninitiated people compare rooting with hacking which is not correct. The purpose in both contexts is quite different. Hacking is more like breaking into someone’s else system illegally, whereas rooting is mostly done by the owner of an Android device to gain superuser advantages of the device.
Steps To Root Lenovo K5 Pro Using Magisk
Remember,
- After Rooting, it may void the warranty of your phone.
- Rooting will block the OTA updates
Before moving on to the flashing steps, you need to follow a few,
Pre-Requisites
- Make sure to have enough battery charge on your phone to avoid interruption during the patch installation.
- Before performing any modification take backup of your device data.
- This image file is strictly for Lenovo K5 Pro only. Do not use it on any other OnePlus or other Android devices.
- You need PC/Laptop with a micro USB cable to connect.
- Make sure that you download all the required files on your PC/Laptop
Required Downloads:
- Download ADB and Fastboot files. (Windows/MAC)
- Download and Install Lenovo USB Drivers.
- Download Latest Lenovo K5 Pro Stock ROM
- Download and Install QPST Flash tool on your PC
Disclaimer: We are at GetDroidTips will not be responsible for any bricking/damage to your phone while/after installing this ROM.
How to Extract and Patch Boot.image using Magisk?
- First of all, download and extract the ROM to your PC.
- Attach your device via USB cable and copy only the boot.img file from the extracted folder to your device storage
- Launch Magisk Manager. When a popup appears asking to install Magisk, select INSTALL and choose install again.
- Tap on “Patch Boot Image File”.
- Navigate to internal storage and select your phone’s boot image that you transferred earlier.
- Wait for a couple of seconds. Magisk will start patching the boot image.
- Once the boot image has been patched, copy the “patched_boot.img” from the internal storage and replace it in the same extracted folder on your PC.
Now you can follow the second step to flash the patched boot image file.
How To Install the Patched Boot Image on Lenovo K5 Pro
- Install the QPST package on your PC and run QFIL. Select Flat build, then navigate the programmer path to your ROM folder. Select the prog_emmc_ufs_firehose_Sdm660_ddr.elf as your programmer path. Next, load XMLs RawProgram0.xml and patch0.xml.
- Let’s begin by booting our phone into emergency download mode.
- To boot into emergency download mode, you need to press and hold Shift Key and Right Click button on the mouse in the empty space. You will see the below dialog box popping up.
- Click on Open Powershell Window or Command window here. Basically, the command prompt opens up upon clicking.
- Type the adb command to boot your phone into emergency download mode
- adb reboot edl
- QFIL should go from ‘No Port’ to ‘Qualcomm HS-USB QDLoader 9008’.
- Immediately after you see this pop-up, select ‘Download’. This will completely reset your device.
- If flashing was successful, wait a bit then boot your device. You should see a little warning complaining that the software has been altered. Wait a little bit more. You can install magisk manager at this point if it didn’t show up after the flash. Reboot the device again.
- That’s it! You should have a rooted device now.
So, that’s it. Now that you have rooted your Lenovo K5 Pro, you can try this out. If you have any queries regarding this, do let us know.
If you are using any new version of ROM, then you can just download the Stock firmware and then create the boot patched image via Magisk. Here is this guideline on how to Create Patched Stock Boot Image using Magisk.