Factory data reset
*#*#7780#*#*
This code can be used for a factory data reset. It’ll remove the following things:
Google account settings stored in your phone
System and application data and settings
Downloaded applications
It will NOT remove:
Current system software and bundled application
SD card files e.g. photos, music files, etc.
Note: Once you give this code, you will get a prompt screen asking you to click on the “Reset phone” button, giving you the chance to cancel your operation.