The key to restoring the factory settings and clearing the screen lock password is to put the phone into recovery mode. If you don't know much about how a mobile phone enters the recovery mode, you can search online for ways to enter the recovery mode.
When the phone forgets the password, the steps to restore the factory settings are as follows:
1, keep the phone fully charged, and then press and hold the power button to turn it off.
2. Press and hold "Volume+"and "Power" at the same time in the power-off state, and it will automatically enter the recovery mode.
Usually, when the green robot appears, it means that it has entered the recovery mode. In recovery mode, use "Volume+"and "Volume-"to move the cursor, use "Power button" to confirm, and use "Back" hard button to return to the previous menu.
4. In the recovery interface, select "Erase data/restore factory settings", press the power button to confirm, then select "-Yes-Delete all data" and press the power button to confirm.
5. Then select the "clear cache partition" item (clear cache), press the power button to continue, then select "-Yes-clear cache" (OK to clear cache), and press the power button to confirm.
6. Finally, return to the recovery main interface, select the first item "Restart the system immediately" to restart the mobile phone, and then enter any unlock password to enter the desktop.