Most of them, minus the critical partitions listed here.
Magisk gets installed to the boot
partition, that’s not a critical partition. I wouldn’t install TWRP by the way, better just fastboot boot
it when needed, it’s really not all that useful anymore.
Well, unlocking critical partitions will wipe userdata
, so if they (whoever they are) need access to critical partitions to get to you, you would be “safe”. But since there are enough interesting partitions left, it really doesn’t make that big of a difference.