[Galaxy Ace S5830 General] Ace King 34:
Hey Ace Users,

I am going to provide you all the guide to create your own CWM Flashable zip file.

The Best Part of this guide is that you wont need your computer to create the CWM Flashable zip file as this guide will teach you all how to create the CWM Flashable Zip file with the help of the Root Explorer App.

The things you will need for this guide are:-

1.Root Explorer App.

2.Your Ace.

3.A little patience.

So without much ado,Lets start the guide.

STEPS:-

1.Download and install the Root Explorer App.

2.Open the Root Explorer App and Navigate to the Root of your SD Card.

3.Create a Folder and name it whatever you like or whatever name you want to give to your Zip File(I will be reffering to the folder as "Main Folder" throughout this guide)

4.In the Main Folder,you will need to have Two Sub-Folders which are as "META-INF" And "system".

5.The META-INF Folder consists of various files and they should be untouched(The only file in the META-INF folder which we are going to edit is the updater-script).

6.The system folder which you put in the Main Folder contains the apps or various other mods which you want to apply to your ace.

Steps on How to Edit the updater-script:-

1.Go to the META-INF Sub-Folder in the Main Folder.

2.open the com folder which you will find in the META-INF Sub-Folder.

3.Then you will see google folder as soon as you enter "com" folder,enter the google folder,now you will see "android" folder,open it.

4.In the android folder,you wll see two files named as update-binary and updater-script.

5.Open the updater-script file by selecting it.

6.You will see various options.

7.Select the Text Editor option and then the updater-script will open in the text editor.

8.Now we need to type some code so as to have the following functions.

Editing the updater-script:-

So once the updater-script is opened in the text editor,you will need to type some code so as to have the following functions.

CODE:-

Case 1:-

To Display the information of the particular Mod when you select to flash it in CWM Recovery(It is the display you see when you flash a particular Flashable zip file. For Example:- if you are flashing beats mod then when you select to flash the zip file and when the flashing starts you see some infomation like "Beats For Ace" and when the flashing is over you can see that the display shows flashing is done and it tells to reboot phone and stuff)

CODE:-

ui_print("The Text you want to display");

For Example if you want to display "beats Mod for Ace" then you must enter the code as ui_print("Beats Mod for Ace");

NOTE:-

semi-colon and the double quotes in the above code are to be put as they are compulsary to execute the code.

Case 2:-

If You want the updater-script to mount the /system partition,then the code is:-

CODE:-

run_program("/sbin/busybox", "mount", "/system");

NOTE:-

semi-colon and double quotes are compulsary.

Case 3:-

Now we need to put the apps in the /system partition and for that we need to type the code as:-

CODE:-

package_extract_dir("system", "/system");

NOTE:-

semi-colon and double quotes are compulsary.

Case 4:-

After typing the mount /system code you will also need to unmount the /system partition and to unmount the /system partition the code is:-

CODE:-

run_program("/sbin/busybox", "unmount", "/system");

NOTE:-

Semi-colon and double quotes are compulsary.

Special Case:-

After each case we need to have a special code.

At the start of updating the updater-script,we mostly write the introduction of the mod/script etc. in the ui_print.

so before you add the name & info of the mod in the ui_print you need to write show_progress(0.500000, 0);

and after writing the name/info of the mod,you will be mostly writing the code to mount the system partition,so after writing the code to mount the system partition,you need to write show_progress(0.500000, 20)

Now once you are done writing the code to mount the system partition the next thing you will be doing is extracting the package from the system partition by writing the code for extracting the system partition contents,so after you are done writing the code for extracting the system partition contents,you need to write show_progress(0.500000, 40)

Now after this,you will be writing the code to unmount the system partition so after writing that code you need to write show_progress(0.500000, 60)

After finishing writing the code to unmount the system partition,

you will add some more lines in the ui_print as for example Done flashing mod,so after writing that lines in the ui_print you will need to write show_progress(0.500000, 80)

After that you will probably write some more lines in the ui_print to notify the user to reboot his/her phone so after you write that code you will need to write show_progress(1.000000, 0)

Basically the show_progress command indicates the progress of the installation of the mod.

Sample of the whole updater-script codes in short:-

ui_print("Battery Mod For SGA");

ui_print("|-----by XYZ-----|");

ui_print("10% starting installation");

show_progress(0.500000, 0);

ui_print("20% mounting /system");

run_program("/sbin/busybox", "mount", "/system");

show_progress(0.500000, 20);

ui_print("40% Extracting Files");

package_extract_dir("system", "/system");

show_progress(0.500000, 40);

ui_print("60% unmounting /system");

run_program("/sbin/busybox", "unmount", "/system");

show_progress(0.500000, 60);

ui_print("|---Mod Flashed Successfully---|");

show_progress(0.500000, 80);

show_progress(1.000000, 0);

ui_print("Please Reboot Your Phone");

If you don't understand the show_progress procedure then check this link:-

http://rootzwiki.com/topic/6761-show...me-flashables/

NOTE FOR CM7 USERS:-

IF THE ABOVE CODE FOR MOUNTING AND UNMOUNTING THE /SYSTEM PARTITION DOESNT WORK FOR YOU,THEN YOU CAN MANUALLY MOUNT /SYSTEM BEFORE FLASHING AND THEN MANUALLY UMMOUNT IT(IF YOU WANT TO) AFTER FLASHIMG.

NOTE:-

AFTER SAVING THE CHANGES DONE TO THE updater-script,A FILE WILL BE CREATED AS "updater-script.bak".DELETE "updater-script.bak" file.

Okay so we are almost done.

Now some information about the system Sub-folder in the Main Folder.

The system Sub-folder contains another Sub-folder(s) like:-

For example if you want to add an app's apk file then the system sub-folder will contain "app" sub-folder and that app folder contains the apk file(s) that you want to put in the system partition of the ROM.

If you want to Put Framework Mods then the system sub-folder will contain "framework" sub-folder and the "framework" sub-folder wil contain the framework Mod(mostly the Framework mods are in Framework-res.apk file.)

If you want to put libs then the subfolder in the system subfolder will be "lib" and it will contain the libs.

If you want to put bin files then the subfolder in the system subfolder will be "bin" and it will contain the bin files.

If you want to add scripts then the subfolder in the system subfolder will be "etc" subfolder and in that "etc" subfolder there will be another subfolder as "init.d" and in the init.d subfolder there you can put the scripts.

After doing all that(i.e editing the updater-script and putting the files in the subfolders in the system subfolder) go back to the directory where you created the Main Folder and in Root explorer long press the Main Folder and you will get various options.

scroll down and select "zip this folder" and after the folder is zipped you can go to /SD Card/speed software/zip and find the flashable zip there.

Here ends my guide

Download Links:-

Sample file dl link

Screenshots of guide