Here's how to root the Pixel 3 running on official and stock Android 10 release, step by step :
(not tested on Pixel 3 XL but it might work the same, just use the right firmware for your device)
What do you need :
> Pixel 3 phone with Android 10
> Unlocked bootloader on your Pixel device
> Latest ADB and FASTBOOT tools on your computer
1 )
Download the latest Android 10 factory image for your device ("Blueline" is the regular Pixel 3) :
Link >
Android 10 factory image
2 ) Extract the "boot.img" file on your phone
3 )
Download latest Magisk Manager application on your phone and install it :
Link >
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
4 )Press on the
Install Magisk button (the one on the top, not the Magisk Manager), then
Install > Select and Patch a File and now
select the Boot.img file you extracted earlier. When the process is done, just put the patched boot.img file on your computer
in the same folder as your ADB and FASTBOOT tools, the file's name is
magisk_patched
5 ) Enable adb debugging on your Pixel phone and connect it to your computer via USB.
Open a command prompt on your computer and migrate to the folder where the ADB and Fastboot tools are located.
(for exemple, for me it's :
cd C:\\adb).
7 ) Reboot your phone to fastboot by typing
adb reboot bootloader
8 ) Flash the Boot.img you just patched with magisk by typing
fastboot flash boot magisk_patched.img
9 ) When i'ts done, reboot by typing
fastboot reboot
10 ) Open your Magisk Manager app and chek if everything is good, and it should be ! You can now install Adaway after you enable Systemless root in the Magisk settings and rebooting your phone.
Note that this guide is actually for using adaway. I don't know if it will work for any other root related feature on your phone.