Should i need custom DPC app resync policies after Factory Reset
I'm developing a EMM solution to my company using Android Management API. We wanted to prevent factory reset on the company owned devices. So we configured factoryResetDisabled as true also configured enterprise account email in "frpAdminEmails" in device policy .
Factory reset protection is disabled in Settings, also when doing factory reset from boot options (Volume up/down + Power button -> Wipe/Factory reset) asking for owner email which is configured frpAdminEmails, after successfully verified the email, mobile got freshly started as new mobile. the policy is not re-sync again. So the device removed from the EMM control.
I found this article https://developers.google.com/android/work/play/emm-api/prov-devices#google_account_method. From my understanding, It says the DPC app automatically got download from Playstore after verifying the google credentials. So the downloaded DPC will handle re-sync the policy into the device. But now custom DPC is not allowed also Enterprise enrolments are not allowed.
Please advice me to resolve this issue in right way.