Factory Reset Protection (FRP)
==============================
https://www.fonepaw.com/android-lock/enable-bypass-factory-reset-protection.html
https://www.samsung.com/nz/support/mobile-devices/what-is-google-frp/
Factory Reset Protection (FRP), also known as Google account verification, is a feature added to Android device since Android Lollipop.
Most stock Android models are equipped with this feature.
FRP is designed to make sure that no one can easily wipe out the data and factory reset your phone if the phone is lost or stolen.
FRP is automatically enabled once you have added a Google account to your phone.
To disable FRP, you just have to remove Google account from your phone:
Settings > Accounts > Google
Once you enable FRP on your phone, when you or others try to set up the phone after factory reset in recovery mode, the phone will require you to verify your account.
You must enter Google username and password to access the phone.
Factory Reset: Settings > General Management > Reset > Factory Data Reset, the FRP Lock will be enabled.
To conclude, before you send your phone to the next user, you should first remove Google accountfrom your phone to disable FRP, then you wipe out all data in your phone.
In this way, the next user can set up the phone without stopping by FRP.
Tip:
to avoid the trouble of FRP, you should not factory reset your phone in 24 hours after you have recently changed the Google password associated to your phone.
Due to security reason, Android wouldn't allow you to set up your phone with a Google password that is newly reset within 24 hours.