Download Advan S5 official stock firmware from the link here, and follow the provided flashing instructions to learn how to flash the stock rom.
If you notice that any of the links provided below is broken or doesn’t work, please post in comments section so we fix and update it ASAP.
Download Options
File Name: Advan_S5_G95C_BCM21664_20130718_OTA_4.2.zip
Size: 479 MB
Firmware – Download
How to flash
Download firmware file and copy to the root of your phone’s internal storage. Reboot to recovery and flash.