Download Advan S50A 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.
File Name: Advan_S50A_5.1_V01_20151124.zip
Size: 948 MB
Firmware – Download
How to flash
After downloading the Flashtool firmware, follow the instructions here to flash.