In case you need to factory reset the C520 WiMi, perform the following sequence:
If everything went right, a message will be shown on the display and the phone will reboot.