A way to batch odex a custom rom - Galaxy S III Q&A, Help & Troubleshooting

Hi,
Would asomeone of you guys be so kind to tell me how to odex FRAMEWORK files (jars) and system apps. Especialy, do it in batch - once for all files.
Maybe some script, a working one, becouse I unsuccessfuly tried the scripts on xda for odex ICS, and i used SGS3's BOOTCLASSPATH
from init.rc
BOOTCLASSPATH /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/filterfw.jar:/system/framework/sec_edm.jar:/system/framework/seccamera.jar
Click to expand...
Click to collapse
And you maybe know if it is possible to odex custom rom files where you don't have the original odex files...
so using the odex files from stock rom (the same the custom rom is based on).
I tried it with some script and bootlooped...
What I would like to do, is to take a custom rom and odex it. As quickly as possible.
I would love using a custom rom but not losing the advantages of ODEXed rom...
I would appreciete your help.
Rgds,

Related

[Q] How to re-odex files?

I would like to add some mods to my kitchen, but keep the rom odexed. Is there a way to re-odex some of the mod files so that I can add them? Or is there a way to add deodexed files to odexed rom?
You should be able to mix odex & deodexed apks in /system/app & /data/app just not in /system/framework. Why exactly do you want to use an odex system?
Posted from my HTC Evo 4G on Tapatalk Pro!
TMartin03 said:
You should be able to mix odex & deodexed apks in /system/app & /data/app just not in /system/framework. Why exactly do you want to use an odex system?
Posted from my HTC Evo 4G on Tapatalk Pro!
Click to expand...
Click to collapse
Odex system is a bit faster and more stable.
indagroove said:
Odex system is a bit faster and more stable.
Click to expand...
Click to collapse
Just based off my observations on my own phone, stock odex rom vs. stock deodex'd rom, I feel my deodex'd rom is faster and I don't see too much a difference in stability at all. Just my opinion.
TMartin03 said:
Just based off my observations on my own phone, stock odex rom vs. stock deodex'd rom, I feel my deodex'd rom is faster and I don't see too much a difference in stability at all. Just my opinion.
Click to expand...
Click to collapse
It seems like I get more FC's in the browser with deodex, and odex definately boots faster.

[Q] what is the difference between Odex & deoDexed

I just updated my firmware to STOCK 2.2 (KA6) which I downloaded from CHAINFIRE's thread. Now I rooted my phone and its working fine for me.
Than I see another post for Deodexed KA6 from Whitehawkx. what is that. that also says original stock. am confused now.
can any one please explain me difference between both stock & Odex & deodex things.
Also how to flash this Deodexed KA6 (same as ODIn or any other method).
I was wondering the same thing....so i googled it...
Sent from my SGH-T959 using XDA App
This maybe inaccurate but I have a reasonable idea of what it is... it's just hard to explain.
If you look in the system/app and system/framework you will see the filename.apk along with it's counterpart filename.odex. With a deodexed rom it places the filename.odex and converts it to filename.dex (not odex) and places it within filename.apk. But most importantly the framework MUST support the deodexed files! If the framework is looking for filename.odex files that aren't there you will end up in a bootloop. It just won't work. But the benifits of having deodexed files is that it's easier to theme and replace. In some cases you can take a app.apk and replace it with differentappfromdifferentrom.apk. When you have a odexed rom you just can't do that.
You will notice that many themes and modifcations will not include support for odex roms so having a deodexed rom is definitly the way to go!
Some people have argued that having an odexed rom causes your device to perform better! But I have never noticed any difference personally and frankly I'm skeptical. Tasters choice.
I googled it as well. Here was one of the better hits....
http://www.addictivetips.com/mobile/what-is-odex-and-deodex-in-android-complete-guide/
Binary100100 said:
This maybe inaccurate but I have a reasonable idea of what it is... it's just hard to explain.
If you look in the system/app and system/framework you will see the filename.apk along with it's counterpart filename.odex. With a deodexed rom it places the filename.odex and converts it to filename.dex (not odex) and places it within filename.apk. But most importantly the framework MUST support the deodexed files! If the framework is looking for filename.odex files that aren't there you will end up in a bootloop. It just won't work. But the benifits of having deodexed files is that it's easier to theme and replace. In some cases you can take a app.apk and replace it with differentappfromdifferentrom.apk. When you have a odexed rom you just can't do that.
You will notice that many themes and modifcations will not include support for odex roms so having a deodexed rom is definitly the way to go!
Some people have argued that having an odexed rom causes your device to perform better! But I have never noticed any difference personally and frankly I'm skeptical. Tasters choice.
Click to expand...
Click to collapse
Good explanation, thanks.
shrapnelx said:
I googled it as well. Here was one of the better hits....
http://www.addictivetips.com/mobile/what-is-odex-and-deodex-in-android-complete-guide/
Click to expand...
Click to collapse
oooohhhhhhhhhhhh! thx now I know and knowing is half the battle GI JOE... GO COBRA!

[Q] Simple icon theming of odex'd rom

Question, If i want to just replace the icons from the system.apk's in an odex rom, do I first need to deodex the rom or can i just do the quick (and sometimes messy) route of using 7zip to replace the res folder inside the system apk's with my modified res folder?
If I need to deodex the rom first, I'm guessing it's the same procedure to deodex an i9100 rom as it is for the i9000 rom?
Thanks!
So no-one knows if the icons can be themed without deodexing it first? I'm not asking how to do it, just if it's necessary.
Sent from my GT-I9100

[Q] Deodexing and .smali files

I'm looking to edit a single .smali file in the stock ROM and have a couple of questions.
- Do I have to deodex the whole OS just to do that?
- Can I replace a single deodexed .apk file with an odexed one?
- What's the best way/tool to deodex an OS?
That's all.
bazzag said:
I'm looking to edit a single .smali file in the stock ROM and have a couple of questions.
- Do I have to deodex the whole OS just to do that?
- Can I replace a single deodexed .apk file with an odexed one?
- What's the best way/tool to deodex an OS?
That's all.
Click to expand...
Click to collapse
You have do reodex it with dexopt wrapper and sign it, see this thread there is all
http://forum.xda-developers.com/showthread.php?t=1208320

Reodex

If you deodexed your stock rom for applying various framework mods and want to Reodex and remove mods then flash the zip given and avoid reflashing your ROM. Factory resetting deodexed stock isc cause bootloop.
After reodexing you can format your phone..
http://www.mediafire.com/?2j7sbs5b668g2ce
Hey is there any way to deodexed ur rom just like this?
Sent from my WT19i using xda premium
Somyab said:
Hey is there any way to deodexed ur rom just like this?
Sent from my WT19i using xda premium
Click to expand...
Click to collapse
Flash this zip from Pranav pandey to deodex your stock rom
Anyway,,,, what are the function of odex or deodex rom?
I still dont understand about this
sent from my Black Mango
dhallbhoo said:
Anyway,,,, what are the function of odex or deodex rom?
I still dont understand about this
sent from my Black Mango
Click to expand...
Click to collapse
hmm, DEX means Dalvik executable. ODEX means Optimised DEX.
stock sony rom is odexed, it has faster app loading while booting. In "/system/framework/" there are some .odex files, when we use any tool to deodex any ROM, these .odex files are combined in the file belonging to that .odex file as for example in framework folder there are files core.jar and core.odex, when you deodex, the core.odex file is combined with the core.jar and the output is single file that is core.jar.
The benefit of deodexing is that if we want to do some changes to those framework files, we only have to make changes to one file. the drawback is that your phone will boot little bit slow.

Categories

Resources