deactivate frp lock
Factory Reset Protection ( FRP ), is a security feature on Android devices implemented by Google in Android Version 5.1 (Lollipop) and higher. The FRP provides a built-in security feature preventing you from use the device unless you enter the correct email and password before the reset . To prevent the FRP lock all what you need to do is turn oem unlocking option on before doing factory reset. Go to b settings > about phone > build number (tap on it 7 time), in some smartphone Settings > About phone > Software info > Build number (tape on it 7 time) return to settings and you should find new options called developers options click on it go to oem unlocking option and activate it. Then you can reset your phone without getting locked.