Most probably this will only work in rooted phones.
And in rooted phones, via recovery, you can whatever with Avast AntiTheft.
Shortly, Android operational system cannot provide hard reset protection.
But maybe I’m wrong. I’m not an expert on Android.