Before you perform a factory reset of your device, you should know that this will wipe all your data from it. This means that you will lose all the pictures, videos, messages so it's advised to perform a backup before you proceed further. To flash your device, open the dialer and type the following code : *3845#375#. By entering this code, you will enable Factory mode where you can choose Factory reset.**