(OPTIONAL)FLASHING STOCK RECOVERY -- FLASH THIS IF YOU WANT TO GET YOUR WARRANTY BACK
[1] Download Stock_recovery_S5830_ingbrzy.zip
[2] Copy the downloaded file to (the root-directory of) your sd-card or /sdcard.
[3] Power off your phone (using Power button).
[4] Boot up your galaxy ace to recovery mode (Press Home + Power Button).
[5] Select Install Zip From SD Card option.
[6] Choose the file (named : Stock_recovery_S5830_ingbrzy.zip) you downloaded earlier.)
[7] Wait until finished then reboot your device.
NOTE: USE VOLUME UP - DOWN TO MOVE THE SELECTION THEN HOME BUTTON TO SELECT.

OR

FLASHING STOCK ROM / FIRMWARE VIA ODIN
[1] Turn off your phone
[2] Remove your SIM Card and SD Card
[3] Extract previously downloaded firmware (You can download it here SGA FIRMWARES
[4] Open ODIN 4.38 on your PC , DOWNLOAD ODIN + OPS HERE
[5] Select from extracted archive: OPS-OPS, Boot-APBOOT, Phone-MODEM, PDA-CODE, CSC-CSC (leave EFS and One Package empty)
[5.1] Select OPS then tick One Package , Press On package button and select the downloaded firmware. <<-----Do this if you download a one package firmware
[6] Connect your phone via USB into PC
[7] When the screen is turned on hold POWER+VOLUME DOWN+HOME and wait until the phone enters the Download Mode
[8] If ODIN detected and recognized your phone should light up the first square to the left side
[9] Press "Start" button and wait, the process should take ~5 minutes
[10] If all goes well your phone should reboot automatically
[11] Square should change the color to blue and display "PASS" it means that flashing process was successful and we have the newest firmware
[12] Disconnect your phone
[13] Turn off your phone
[14] Insert your SIM Card and SD Card again
[15] Turn on your phone
[16] If you get boot loop just boot to CWM and do wipes