PIN to wipe seems suspicious. How about a PIN where it login to a patriotic profile and phone looks like normal android.
I had this on a Xiaomi, maybe 10 years ago? Very cool feature! I hope they still do it. I think the wipe feature is also very cool, but not used in this way.
Impossible to implement securely, so they chose not to