When customizing a ROM, decisions have to be made. One of the more interesting decisions to make is whether or not to odex. In odexing, an ODEX file is created and located next to its respective APK, allowing the relevant information to be quickly loaded into the Dalvik VM. The downside to this is that the ability to theme that application is greatly reduced. While the system APKs are odexed by default from the factory, other applications are not. For those not interested in theming and who want to odex a single, specific file, the process can be daunting.
Thanks to XDA Forum Member alkhafaf, developers can now odex with ease thanks to his Auto Odexer Script. Using it is simple. Extract the downloaded file to a folder then:
1. First put the original odex and apk (or jar) file in the “original” folder.
2. Put your modded deodexed apk (or jar) file in the “mod” folder
3. If you modified any file in the (res) folder of the deodexed apk (or jar) or u made any editing to xml files then drag
these files from the deodexed apk (or jar) and drop them in the original apk (or jar) (if u made changes to xml files, then drag the resources.arsc to the original apk (or jar) file). Use 7zip for this operation.
4. Connect your phone with usb and make sure adb is working. ( and don’t forget to check the USB Debugging in the settings of your device).
5. It is better that you boot in recovery mod, specially when odexing framework files.
6. Now run the script, choose the one for apk or for the jar, according to file you want to odex.
7. after the script opens, write the name of the apk (or jar) file without the .apk (or .jar)
The process is very easy and intuitive for the end-user. So those of you looking to do some odexing, head on over to the original thread and give this bad boy a spin._________
Join us for xda:devcon 2014. For a limited time, XDA Portal readers get 20% off registration!