[Galaxy Ace S5830 General] null_buffer:
Greetings xda,

I wanted to COME back to complete 100% warranty from my current Custom Rom using a stock nandroid backup, after skimming the entire SGA Forum, I couldn’t find an all-in-one thread whichs contains a guide to regain 100% warranty including stock firmware, stock recovery, Unroot. I was even told that recovering to back to a stock backup is not possible if you have used an ext4 custom ROM. So I decided to handle this on my own. I hope you find this handy.

Flashing using odin might be easier but I bought my Ace from an Arabic region and i got the JPKP9 firmware. Unfortunately ,most samsung firmware websites lack the MODEM file of the firmware. So in order to address the issue I made this guide to enable people to restore their stock roms from a nandroid backup. Hence, THIS DOES NOT REQUIRE ODIN.

Table of Contents:

A). Requirements

B). Procedure

C). Tests

D). Credits

A). Requirements:

-	Samsung Galaxy Ace (GT-S5830) [rooted]

-	A stock firmware backup (you might have created this before flashing roms)

-	eu.chainfire.cfroot.ext4manager-1.apk*

-	Clockworkmod 5 *

-	Stock Recovery files *

-	Unroot.zip*

*: Inside “WarrantyRegain-UsmanJ.rar” (don’t extract the .zip files)

B). Procedure:

Step 1: Download the “

WarrantyRegain-UsmanJ.rar

” from HERE.

Step 2: Install the eu.chainfire.cfroot.ext4manager-1.apk file which you downloaded. Run the “ext4” application you installed, it might give you an error if you are not using CF-Root but don’t mind it. Scroll down and click “Convert to rfs”. Your mobile will boot into recovery, Wait for 10-20minutes as it will change the format of System, Data and Cache partition to rfs. Once over, your mobile will restart.

Step 3:Now go to Recovery and head over to “Backup and Restore” and and restore using the stock firmware backup you have. This will take approximately 3-5 minutes.One you have finished: Reboot phone. Congratulations, you have done 60% of the warranty regain process.

Step 4: Once you have restored to Stock Firmware, it is time that you now restore to Stock Recovery. Boot into Recovery again and flash the “Stock_recovery_S5830_2.3.x._by_ingbrzy.zip” you have downloaded. Once you have successfully flashed. Go to Advanced and Reboot Recovery. Now you are in the Stock Recovery.

Step 5: Now flash the Unroot.zip file you have downloaded earlier. Once you have successfully flashed, reboot.

CONGRATULATIONS NOW YOU HAVE GAINED 100% TRUE WARRANTY: Stock Recovery, Stock Firmware and Unrooted.

C). Tests

This method is tested and proved successful on the following Custom ROMS:

-	StockLite v6 by tj_droid

-	CM 7.2 RC1 by vo-1 (update 26/3/12)

-	Bound to work on most ROMs. :)

D).Credits:

-	Ingrbzy: for Stock Recovery

-	Gganon: for unroot.zip

-	Chainfire and KPK: for ext4 support app (I extracted rfsmaker.zip from it)

-	Me: For compiling this guide (Just Kidding :P)

Don’t Forget to hit the Thanks Button as this is my first MAJOR post on xda.

EDIT: All those people who saying flashing using odin in easier, then let me remind you, i bought my ace from an Arabic region and i got the JPKP9 firmware. Unfortunately ,most samsung firmware websites lack the MODEM file of the firmware. So in order to address the issue i made this guide to enable people to restore their stock roms from a nandroid backup. :)

Best,

UsmanJ