S5660DXKT8 Deodex System Files and Deodex Framework Files(Themes Developer Only)

Overview 

Yesterday when I want to make changes to the notification bar at my Samsung Galaxy Gio (GT-S5660), I am confronted with the problem that the system files and framework files is still odex type. For you who do not know what it is odex and deodex file is, the following explanations may help you understand
  • Odex
    Odex file is 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.
  • Dodex
    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. In summary, 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.
  • Advantages & 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.
Now I want to share with you deodex system files and framework files for the stock ROM S5660DXKT8 actually you can create a deodex system files and deodex framework files itself by using APKTool and Smali/Baksmali but if you don't wanna get trouble you can use mine, remember this is a raw file do you need adb tool to implement it on your smartphone. 

Download

How To Implement

  1. Download S5660DXKT8-Deodex File to your CPU, extract it you will get 2 folder system-file and framework-file
    extracted_file
  2. Copy that 2 folder into your sdcard. in the system folder there is 3 custom applications, you can remove it if you want.
    • No-Frills CPU Controller
    • TouchWiz5 Holo Launcher
    • Superuser (if you do deodex after root your device that don't remove this.)
  3. Backup your original /system/app/ and /system/framework/ folder so if a problem occurs you ca restore to your original /system/app/ and /system/framework/. follow below command :
    • adb shell
    • # su
    • # mount -o rw,remount -t yaffs2 /dev/block/mtdblock3/ /system
    • # mkdir /mnt/sdcard/original-system-file
    • # mkdir /mnt/sdcard/original-framework-file
    • # cp /system/app/* /mnt/sdcard/original-system-file/
    • # cp /system/framework/* /mnt/sdcard/original-framework-file/
    • # exit
    • # exit

    backup_command
  4. using adb shell copy it to your /system/app and /system/framework folder, follow the command below :
    • adb shell
    • # su
    • # mount -o rw,remount -t yaffs2 /dev/block/mtdblock3/ /system
    • # cp /mnt/sdcard/system-file/* /system/app/
    • # rm /system/app/*.odex
    • # chmod 644 /system/app/*
    • # cp /mnt/sdcard/framework-file/* /system/framework/
    • # rm /system/framework/*.odex
    • # chmod 644 /system/framework/*
    • # exit
    • # reboot

    restore_command
  5. Finish, now you have stock rom with deodex system files and frmework files.
S5660DXKT8 Deodex System Files and Deodex Framework Files(Themes Developer Only) | AS | 5