If you have access to the phone but want to perform a thorough "Master Reset" to clear customization settings: : Tap the phone icon. Enter Code : Type *#*#7378423#*#* .
: The software will detect your device in "flashing mode." Follow the on-screen instructions to wipe and reinstall the software. Method 2: Reset via Service Menu (Dialer Code)
Always back up your data. Always remove your Google account before resetting to avoid FRP. And keep your battery charged above 50%.