[Galaxy Y GT-S5360 General] Deadly:
How to deodex a stock rom in easy way using DSIXDA Kitchen

SPECIAL Thanks to dsixda Recognized Developer / Retired Senior Moderator who has made an all in one ROM kitchen. So thanks to him there are many custom roms are there in xda.

Difficulty --> **** IF YOU ARE NEW TO PC & ANDROID. This is not for you. If you are good with either one then you can try this.

PREPARATIONS:I Recommend you to use linux if you have it.

Kitchen by Dsixda [KITCHEN] Android Kitchen, v0.214 [Linux / Mac / Windows]

You need to have java installed in system to use the kitchen. All the steps for how to setup in windows/linux/mac has been explained well by dsixda in thread link. So i am not going to explain it here again. I assume your kitchen is set up and you are ready to work.

Make a backup in cwm and transfer the system.rfs.tar or system.ext4.tar file and boot.img file inside /sdcard/clockworkmod/backup/"dateofbackup"/ into PC.

Now go to the "/dsixda-Android-Kitchen/" folder and you should see these in that folder:

3 files & 3 folders it should contain:

- menu(file)

- Readme(file)

- .gitignore(file)

- original_update(folder)

- tools(folder)

- scripts(folder)

For Windows users--> Now open command prompt (If you installed Cygwin, then click on the Cygwin shortcut on your desktop to start it) and make sure you get to the path of that folder.. Ex. if folder is in c:\cygwin\home\"username"\dsixda-Android-Kitchen.. Then type this in command prompt..

cd dsixda-Android-Kitchen

Note: the capital letters should be in capital only when you type it... Note: Dont use space in folder names as cygwin wont work properly with space in folder names.

Or For Linux Users--> Now open terminal(Use CTRL+ALT+T). and make sure you get to the path of that folder.. Ex. if folder is in /home/"username"/Desktop/dsixda-Android-Kitchen.. Then you will be at /home/"username"/ . So type this in terminal.

cd Desktop/dsixda-Android-Kitchen

Note: the capital letters should be in capital only when you type it.

Now find that system.rfs.tar or system.ext4.tar file and boot.img file and paste it inside original_update folder. You will also find a file "put_rom_here_" Please ignore that file. Its just to tell you he has created that file.

Ok.. Now that you are at the right path.. just type ./menu in terminal or command prompt. From now on i am just going to say type this. It means you should type that and press "enter" to execute the command. If a menu didnt appear then type

pwd

You should see in which directory you are currently in. Try to get to the folder where kitchen folder is. Or follow steps again to get to there.

Now then, you should see this menu:

============================================================
Android Kitchen 0.214 - by dsixda (xda-developers.com)
============================================================

> MAIN MENU

1 - Set up working folder from ROM
2 - Add root permissions
3 - Add BusyBox
4 - Disable boot screen sounds
5 - Zipalign all *.apk files to optimize RAM usage
6 - Change wipe status of ROM
7 - Change name of ROM
8 - Show working folder information

0 - ADVANCED OPTIONS
00 - LEGACY OPTIONS (old and rarely used)
99 - Build ROM from working folder

u - Kitchen Info/Update/Donate
x - Exit

Enter option:

Enter option: 1

Press "Enter"

[CODE}Available ROMs:

(1) system.rfs.tar

Enter selection number (default=1, cancel=0, r=refresh):1[/CODE]

It will ask you this:

The new working folder will be named WORKING_111212_132324
Change the name (y/n)? (default: n):y

Give a name if you want to identify it easily next time.. for ex. i gave this "Enter a new name (using this prefix): WORKING_DDLJ1" as it is from DDLJ1 firmware update.. you can choose not to give name.

Now it will ask this:

Would you like to view this ROM's info (y/n)? (default: y):y

Give y as yes as i gave.

It would appear like this if it is stock roms backup:

Working folder information

Android OS version : 2.3.6
Device : GT-S6102
Model : GT-S6102
ROM Name : GINGERBREAD.DDLJ1
CSC version : S6102ODDLJ1
Rooted (Superuser app + su) : NO
Rooted (unsecured boot.img) : UNKNOWN
BusyBox installed : NO
BusyBox run-parts support : UNKNOWN
Apps2SD (Apps to EXT) enabled : NO
/data/app enabled : NO
Custom boot animation allowed : NO
Nano text editor installed : NO
Bash shell support : NO
/system/framework is deodexed : NO
/system/app is deodexed : NO
radio.img found : NO
ROM will wipe all data : NO

Press Enter to continue

Now press "Enter" to continue.

Setting up working directory complete.. You can close it anytime if you want when you are at main screen just type x and press "Enter". You can open it again and continue without making the above steps again..

Enter option:0 in main menu for "Advanced options"

Enter option:11

It will show like this:

NOTE: Reversing the de-odexing process by getting back the odex
files ('re-odexing') is not supported in the kitchen and would
be impossible to implement.

----------------------------------------------------------------

Found 23 *.odex files in system/framework
Found 110 *.odex files in system/app

Enter a choice:

bb = Back up both folders (do first!)
v = Set Android OS version (Current API level = 10)

IMPORTANT: Ensure you set the correct API level

f = Deodex /system/framework
a = Deodex /system/app
b = Deodex both folders (recommended)
s = Deodex a single file
x = Exit

?

Now type bb and press enter. (For safety, backup apks.. you can skip it if you want) Press "Enter" to continue.

Now type v and

Change the current API level (y/n)? (default: n):y
Please enter the new level number (currently: 15): 10

Press "Enter to continue.

Now type b to deodex your rom. Press "Enter" when this is asked,

Enable logging to file (y/n)? (default: y):

It will take some time depending upon your computer configuration. So take a small nap ;) It takes 20 minutes in mine usually.

At the end if its successful.. you should see this:

Finished system/app

A summary of the deodexing has been logged in deodex_111212_133710.log

0 *.odex files remain in system/app
0 *.odex files remain in system/framework

Press Enter to continue

Now press "Enter" to get back to "Advanced options"

Now to make this as cwm flashable zip.. Then type 99 and press "Enter"

[CODE}Select a build option:

Number (default: 1):1

Would you like to optimize the APK files by zipaligning them (y/n)? (default: y):y

Use updater-script in ROM's ZIP file (y/n)? (default: y):y [/CODE]

Now it will show this:

An updater-script has been created under META-INF/com/google/android of
your working folder. Please review it and make any necessary changes. An
update-binary has also been added.

DO NOT delete any of the files under META-INF/com/google/android.

Proceed with the change (y/n)?

y = Proceed; updater-script and update-binary will be used in the ZIP
file; update-script will remain in working folder.
n = Cancel; updater-script and update-binary will be deleted and not
used.

? (default: y):

Now go to that "META-INF/com/google/android." folder.. And replace the "updater-script" with the file i have given in the attachment to this post. rename the "updater-script.txt" file i have given to "updater-script" and delete "update-script" file. Now after replacing the file type y in menu.

It will ask this:

It is recommended that you sign your ROM.
Sign it (y/n)? (default: y): y
The new ROM will be named GT-S6102_signed_111212_141640.zip
Change the name (y/n)? (default: n):y
and type new file name whatever you want and press enter

You will find the zip file inside OUTPUT_ZIP/"given name".zip

Now its ready to flash the zip file in CWM.

I will write about other options if any users/readers ask me to write it.. otherwise i may update it when i feel there is a need for that.

CLICK HERE TO GO TO FIRST POST