This protection helps the owner in case a thief or a hacker tries to gain access to the phone.
He put an APK on the OTG drive that does nothing but open up the tweaks.
To finally bypass the reset protection, you just factory reset from the options rather than from recovery.
After that, the phone will be a clean slate.
source: www.techworm.net