[Samsung Galaxy Ace Plus S7500] j.posarekar70:
:cowboy: First Lets know some Basic knowledge about DEODEX/ODEX...:cowboy:

:confused:What is Odex and Deodex ROM:confused:

What is an ODEX file?

In Android file system, applications come in packages with the extension .apk.

These application packages, or APKs contain certain .odex files whose supposed function is to save space.

These ‘odex’ files are actually collections of parts of an application that are optimized before booting.

Doing so speeds up the boot process, as it preloads part of an application.

On the other hand, it also makes hacking those applications difficult because a part of the coding has already been extracted to another location before execution.

What is an DEODEX file?

Deodexing is basically repackaging of these APKs in a certain way, such that they are reassembled into classes.dex files.

By doing that, all pieces of an application package are put together back in one place, thus eliminating the worry of a modified APK conflicting with some separate odexed parts.

So, Deodexed ROMs (or APKs) have all their application packages put back together in one place,

allowing for easy modification such as theming. Since no pieces of code are coming from any external location,

custom ROMs or APKs are always deodexed to ensure integrity.

How this works?

For the majority noobs amongst us, Android OS uses a Java-based virtual machine called the Dalvik Virtual Machine.

A deodexed or .dex file contains the cache used by this virtual machine (referred to as Dalvik-cache) for a program, and it is stored inside the APK.

An .odex file, on the other hand, is an optimized version of this same .

dex file that is stored next to the APK as opposed to inside it.

Android applies this technique by default to all the system applications.

When an Android-based system is booting, the davlik cache for the Davlik VM is built using these .odex files, allowing the OS to learn in advance what applications will be loaded, and thus speeds up the booting process.

By deodexing these APKs, a developer actually puts the .odex files back inside their respective APK packages.

Since all code is now contained within the APK itself, it becomes possible to modify any application package without conflicting with the operating system’s execution environment.

Advanteges & Disadvantages

The advantage of deodexing is in modification possibilities.

This is most widely used in custom ROMs and themes. A developer building a custom ROM would almost always choose to deodex the ROM package first,

since that would not only allow him to modify various APKs, but also leave room for post-install theming.

On the other hand, since the .odex files were supposed to quickly build the dalvik cache, removing them would mean longer initial boot times.

However, this is true only for the first ever boot after deodexing, since the cache would still get built over time as applications are used.

Longer boot times may only be seen again if the dalvik cache is wiped for some reason.

Note:Themes for android come in APKs too, and if you want to modify any of those, you should always choose a dedoexed custom ROM.​

Lets Start...

GUIDE TO DEODEX STOCK ROM

Java Development KIT

(Download & Setup Guide)

ANDROID SDK

xUltimateV2.3.3

(only this version is capable with samsung device)

Official Link to xUltimate : POST #5

7-Zip

(32-Bit & 64-Bit)

1.Download android-sdk & extract it.

​

2.Copy sdk folder & paste it into

C:\Program Files\Android

3.Change name from SDK to Android.sdk.

(inside folder look like this)​

4.you need to flash stock firmware first & Root your device.​

5.Connect your phone to computer.(Make sure you have select USB debugging in Settings>Applications>Development)​

6.Download & extract xUltimate zip.

​

7.Launch Main.exe(Run as administrator)

​

8.If everything goes well xUltimate should recognize the phone and make a connection.You now should see a list of options.

​

9.Select option (1) pull /system/app. Wait until it complete.​

10.Select option (2)pull /system/framework. Wait until it complete.​

11..Then select option (3) Deodex /system/app. Wait until it complete.

[If encounter any error. Find out which .odex file is it. Then remove .odex file from folder origi_app in xUltimate folder]

(i found 5 errors so i attached that app's deodex files below you just want to paste in system/app when this process complete)​

12.Then select option (4)Deodex /system/framework. Wait until it complete.​

13.DONE : your rom is now deodex. Now Exit from xUltimate​

​

Now there are 2 ways to install deodex files in device

1. from Android.SDK

From Android.SDK :

1.Put the phone in USB mass storage.

2.Go to xUltimate folder and copy "done_frame", and "done_app", and move them to the root of the sdcard.

3.Now get out from USB storage mode.

4.Go to

C:\Program Files\Android\android.sdk

& open command promote there.

5.Enter following codes.

(if you are using adb shell in su for the first time, keep phone screen on. After entering "su" code, super user request prompt in phone. Press allow )

adb shell
su
stop
mount -o rw,remount /system/ /system/
cp /sdcard/done_app/* /system/app/
rm /system/app/*.odex
cp /sdcard/done_frame/* /system/framework/
rm /system/framework/*.odex
mount -o ro,remount /system/ /system/
reboot

6.Now you have deodexed rom. ;)

​

2. from SampleDEODEX.zip file attached below.

From zip file attached

1.open zip given as archive.

(use 7.zip but DO NOT EXTRACT.)

2.go to system/app folder & paste here all your deodexed apk's

3.same for for system/framework to paste framework files.

4.done, paste it in your SD-Card & flash through CWM.

​

STILL IF YOU FACE ANY ERROR

Especially Android 4.1 + (JB) users

Try this method Updating xUltimate tool manually.

thanks to [MENTION=4719507]asm-xda[/MENTION]

4real*leb

Xeudoxus

and

asm-xda

(for finding the way to deodex rom for Jellybean User)

GALAXY Ace Plus User's : GO HERE http://xdaforums.com/showthread.php?p=43835177#post43835177​