Step 5 – On your phone, locate where you downloaded the MagiskManager and install it.
Step 6 – Once installed, open MagiskManager and then click on “Install“.
Step 7 – After you click on install, it will ask you to locate the boot image, we placed ours in /sdcard/Download. Once you select it, MagiskManager will patch this boot image.
Step 8 – Copy the patched boot image to your PC. The patched boot image would named patched_boot.img located in /sdcard/MagiskManager/
Step 9 – Connect your phone to your computer and use ADB to reboot to bootloader by issuing the following command:
adb reboot bootloader
Step 10 – Flash the patched image to your device by issuing the following two commands.
fastboot flash boot patched_boot.img fastboot reboot
That’s it! You should now have a rooted Pixel 2. You can go to MagiskManager app to verify.
To make sure you have correctly installed the above root method and it’s working, verify with Root Checker as given in the link.
Have fun playing with it! If you have any issues, please fire them up in the comments below!