[Lenovo K5 Note ROMs, Kernels, Recoveries, & Other ] Shubham1815:
ROOT Vibe K5 Note LP or MM​

/*
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired.

* Please do some research if you have any concerns about features included in the products you find here before flashing it!

* YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.

* Your warranty will be void if you tamper with any part of your device/software.

* Same statement for XDA.
*/

Finally I got the method to root Lenovo Vibe K5 Note/A7020a48. If you are the one who is tired of searching how to root your device then you are at right place

But before we get started here are the things that you need (only for marshmallow user, lollipop user need only 1 thing which is given in method section)

Requirements​

1. Your Device (of course)

2. Your Current Stock Rom's Firmware(You can easily get it in firmwarefile.com)

3. A Working PC (first check whether you can successfully connect your device to your pc or not)

4. ADB and Fastboot Tools

5. A working Brain

BONUS:-You can use this method to root any (5.1+) device (if it has general unlocking system, This method is supported by 95% devices).

Now It's Time To Rock

METHOD for Lollipop users​

Download and install kingroot, open it and follow the tutorial given in that app

METHOD for Marshmallow Users​

1. Make complete backup of your data, Everything except ext. storage of your device will be erased.

Now Follow the steps from 2 to 11 to unlock bootloader (you can skip it if you already unlocked it)

2. Go to your phone settings>About phone, tap on build no. 7 times and then go back you will see a new { } developer option just above the about phone option

3. Go to developer option and enable OEM unlocking and USB Debugging

4. Connect your device to your pc and install adb and fastboot tool system wide

5. Open command prompt or power shell

Note- Windows 10 users have to write .\ as prefix before every command.

6. Type

adb devices

You will see a prompt on device, just click on always allow this computer and press ok or allow whatever given there. You will see your a long set of random Numbers and letters after that if its written device then your phone is successfully connected to your pc.

7. After that type

adb reboot bootloader

Your phone will reboot into bootloader mode

8.Type

fastboot getvar all

There you see at last some lines which tells you about your bootloader status if you see Unlocked = no then your bootloader is locked and if it says Unlocked = yes then it is unlocked and if it is unlocked then you can stop here

Now for those who has a locked bootloader

9. Type

fastboot oem unlock

(In some devices which is shipped with android 6.0 or higher you may have to write fastboot flash unlock don't write this command for your Vibe K5 note/A7020a48)

10. Most Important step Type

fastboot format userdata

. If you skip this you may get bootloop (I skipped that and got bootloop)

11. Type again

fastboot getvar all

Now you will see Unlocked=yes and Congrats!!! you has unlocked your phone's bootloader

12. Disconnect your device and press and hold power button until it reboots

Now follow the steps to root your device

13. Now from your stock firmware file extract boot.img which is given in the folder named firmware and copy it any where in your device

14. Install magisk manager from here -> Official website

15. After opening the app you'll see it is written that Magisk not installed click on the install button and select patch boot.img option,

16. Now select your boot.img file which you have extracted from your firmware file. After selection it will start to patch that boot.img and store patched_boot.img file in download folder of your device internal storage, copy that file at any folder in your pc (not in desktop)

17. Now go to the folder where you copied that patched_boot.img file and press right click on your mouse while holding shift button of your keyboard (Shift + Right click in simple words) and you will see an additional option of open command window/powershell here click on that and connect your device with your pc.

18. Before getting started with commands follow step 2 and 3 again

19. Repeat step 6 and 7

20. After going into bootloader mode Type

fastboot flash boot patched_boot.img

(in this code boot is partition and patched_boot.img is file name which you are going to flash).

21. Disconnect your phone ,press and hold powerkey until it reboots

Congrats Device ROOTED!!!​