I was looking at the system/app folder on a stock 2.1 rom and noticed there were some files with an .odex extension. The files with the .odex extension seemed to mirror to some degree the files with an .apk extension.
My question is: how does an odex file differ from an apk file?
Related
I'm sure most of you know that optimization using dexopt wrapper creates an odex file but removes the classes.dex file in the apk. My question is, how do you remove that .odex file and change it back to a classes.dex file? I'm wondering because once I have a classes.dex file I'm going to disassemble it with baksmali see what I can do and figure out. Any help is appreciated, thanks.
alritewhadeva said:
I'm sure most of you know that optimization using dexopt wrapper creates an odex file but removes the classes.dex file in the apk. My question is, how do you remove that .odex file and change it back to a classes.dex file? I'm wondering because once I have a classes.dex file I'm going to disassemble it with baksmali see what I can do and figure out. Any help is appreciated, thanks.
Click to expand...
Click to collapse
dexopt-wrapper does not remove the dex file from the apk, unless we do it different ways, i run dexopt-wrapper ***.apk ***.odex from adb. how do you do it? and anyway, if you used dexopt-wrapper, just get the rom you flashed before doing dexopt-wrapper and you should have the full apks already in there
I'm trying to get a classes.dex file from the Phone.apk from hero builds .As you can see in my signature I'm working on porting the HTC Dialer to cupcake builds. The Phone.apk included in JaCHero2.63 just doesn't have the .dex file ,but it has the .odex file. All apks in that build that are optimized with odex do NOT have a classes.dex file in the original apk file. I'm wondering if it's possible to merge the .odex and the .apk so i can get a workable classes.dex file.
im having troule installin apps from my sd..i download the app from xda..it comes in a zip..do i extract the files to appmanger or how do i find the apk file?? confused..
Unzip it. APK should be in there
Sometimes people will also just change the extension from .apk to .zip so you may just have to change the file extension.
OK- so i extract this framework-res.apk file in the rom, and i change a few of the icons, and now clearly it's time to save the changes in the framework-re.apk form, but HOW?!?!?!
and that..............^ is the question. how to compress an extracted apk file back?
Use 7-zip or WinRAR.
krystalho said:
Use 7-zip or WinRAR.
Click to expand...
Click to collapse
how am i supposed to do that? there's no compress to apk options, or should i first compress to zip then rename the format to .apk?
I am trying to create a reboot option for my galaxy tablet. I am in the proccess of using smali/baksmali to edit some files...the problem is when I adb pull the framework jar there is no classes file in the zip. The only thing in there is the META-INF obviously and a file called preloaded classes...this is considered just a file, not a class file. Should I not have a .class file?
EDIT-------------------------------------------------
I looked, what I mean is that there is no classes.dex file
Thanks
Found the problem. I am using a stock rom that hasn't been deodexed. I had to use baksmali to deodex the framework.odex file. Of course if you do this you have to have the right bootclasses in the folder or the file will not decompile right, and from what I have read you need that to happen in order to compile it back into a odex file. I should deodex the whole rom, but I am still new at this and don't want to create a boot loop
-Peace
Hello,
I have a quick question: should I remove an .odex file after uninstalling its application ?
For example, I recently uninstalled Aurora.apk via Titanium Backup, should I remove Aurora.odex file as well ?
Regards,
michael.
maypex said:
Hello,
I have a quick question: should I remove an .odex file after uninstalling its application ?
For example, I recently uninstalled Aurora.apk via Titanium Backup, should I remove Aurora.odex file as well ?
Regards,
michael.
Click to expand...
Click to collapse
Yes, once the application .apk is removed, you can remove it's .odex files too. They are of no use without it's .apk file.
Where can i find the .odex file in the file managers?
Where can i find the .odex file in the file managers?
i removed an app and was trying to install an updated one, but its not letting me to install. so if i remove the odex file from the system, it'll let me to install it>
user apps wont have a .odex file. if its a system app and you are running an odexed rom then you will find those files in system/app
Can i remove all .odex file in system/app
i deodexed system/app and framework using kitchen and flashed in cwm still .odex file present in system/app
sorry for bad english
sidrock622 said:
Can i remove all .odex file in system/app
i deodexed system/app and framework using kitchen and flashed in cwm still .odex file present in system/app
sorry for bad english
Click to expand...
Click to collapse
What's API when you deodexed? .odex should be gone after deodexing. Try deodexing again, Set API=10 before deodex both apps & fm
Sent from my GT540 using Tapatalk 2
Blake Blader said:
What's API when you deodexed? .odex should be gone after deodexing. Try deodexing again, Set API=10 before deodex both apps & fm
Sent from my GT540 using Tapatalk 2
Click to expand...
Click to collapse
API 16 i used jellybean 4.1
edited