Follow this easy steps
1. Download and install magisk manager apk latest from here (official thread)
2.Download patched boot.img for may security patch frm here
Download patched boot.img for june (8.1) security patch frm here
Download patched boot.img for july (8.1) security patch frm here
3. Extract patched_boot.img.zip
4. Copy patched_boot.img in fastboot folder.
5. Enable developer option in ur device and enable oem unlocking in developer option.
6. Turn off ur phone.
7. Now press and hold voume down+power button.
8. Now connect your device with PC in fastboot mode
9. Type command
fastboot oem unlock
fastboot boot patched_boot.img
HIT THANKS button if your phone rooted.
USE THIS GUIDE WHEN OTA ARRIVES