How to unroot and reset a pixel 3a XL to factory settings?

Search This thread

dr0832

Senior Member
Dec 22, 2007
52
0
I am trying to unroot my Pixel 3a XL and reset to the factory settings and lock the boot loader so I can trade in my phone. It is currently on Android 10 Build QQ1A.191205.011 so I am wondering do I need to download the newest stock file for Android 10?

Also, it was rooted with Magisk a number of years ago. I don't know a whole lot about this whole process, so was hoping someone could point me in the right direction. Can I just uninstall Magisk from inside the app to remove root?

I have seen some guides but they are generally older and I am not really sure which files I need to download.

So far I have the:
Newest platform tools
(Downloaded from Google’s Factory Images page) bonito-sp2a.220505.006-factory-5adf2317.zip