You can use fastboot or stock recovery to format user data. In TWRP I believe the option is Wipe/Advanced/Format user data/.Why do you need "boot.img" when this phone is not being updated no more? And why do you have to format userdata on fastboot (can't do that in TWRP)?
Just encountered a problem - Safety Net won't pass on Magisk. Any thoughts how to get it to pass?
I did try those. Using those fixes, I've managed to get it to pass on Proton, Scorpion and Pixeldust, but it won't pass on AICP.
*** Disclaimer I am not responsible for any damage you made to your device You have been warned <<< WARNING >>> <<< WARNING >>> <<< WARNING >>> Please note that this is still under development, so don't install unless you want to live with some bugs