From what I found deodexing is deleteing an .apk's corresponding .odex file so it doesn't load during the boot process. So if I run the Auto Deodexer and Debloater ONE-CLICK tool by das7982, by phone will be deodexed. But I wanted to edit the .bat file to exclude some apps. There are some mods that say they require your phone to be deodexed. If I edit the tool to keep some apps, should I still delete the odex file?
Spaded21 said:
From what I found deodexing is deleteing an .apk's corresponding .odex file so it doesn't load during the boot process. So if I run the Auto Deodexer and Debloater ONE-CLICK tool by das7982, by phone will be deodexed. But I wanted to edit the .bat file to exclude some apps. There are some mods that say they require your phone to be deodexed. If I edit the tool to keep some apps, should I still delete the odex file?
Click to expand...
Click to collapse
yes you can run a ROM that has for example, everything DE-ODEXed except for a few ODEXed .apks, but you need to keep the .odex and .apk for the .ODEX files for the .apks that you kept ODEX.
only once the .apk is deodexed should/can you remove the .odex from the corresponding .apk,
when you deodex "APK have all their application packages put back together in one place, allowing for easy modification such as theming." so it doesn't delete the .odex it packs them into the .apk
Ok so I want to install the mod to remove the location/GPS icon from the status bar. It says my phone has to be deoxed. How would I go about JUST deodexing my phone?
Related
I'm searching for a simple way how can I deodex any rom. My idea is to rename the *.odex file to classes.dex and put it into the apk/jar archive using a simple archive manager. Will this work? I don't like any scripts to do that, will make it manual before flashing the rom. And need I to sign the apk/jar files (I think the normal apk files need that, but what witch the framework? Need it too to be resigned?).
no use xultimate
Sent from my GT-S5830 using xda premium
sometimes scripts is better to make your life easier
btw try dsixda android kitchen. its my favorite tool/script to deodex
Hmm ok will try first the dsixda android kitchen, I see it has version for Linux. But I will understand how this script works?
EDIT
Ok, now I see, it uses baksmali and samli to deodex. Thanks to all, will test it tomorrow.
Ok, after using the dsixda android kitchen and deodexing the framework (and SystemUI.apk, not more) and flashing the ROM I got an bootloop (wipe doesn't help). Her is my logcat http://pastebin.com/DtfChnPp , can some help, what did I wrong? I have only after deodexing apply the volume mod and the Pdroid patch, I am working on this rom http://forum.xda-developers.com/showthread.php?t=1360889
try this
download xultimate, theres a thread about it somewhere. unzip it and connect your phone with the rom thats .odex http://forum.xda-developers.com/show....php?t=1360889
next
once connected click on opition 5 which will pull all the apps and framework files from your phone and will deodex all the files and store them in the folder called "done_app" and "done_framework" may take up to 15mins
next
change the folder names of the done folders to "app" and "framework" and have both folders and the rom.zip that you installed pre at hand, in your case
http://forum.xda-developers.com/show....php?t=1360889
Then open the rom.zip up with 7zip and then click on system folder and drop "app" and "framework" folders into the rom.zip so your swaping the the folders with the .odex files for the deoxed ones you just did. put it on sd-card. wipe, mount system and data and install.
correct me if im wrong.
hope this works.
Hallo guys, I trying deodex my rom a week but it did not work as well. Successful only half the rom. Please help me, I have tried many ways to including XUltimate exactly.
Rom here: http://www.mediafire.com/?qj9hllq7cp6uuqj
Sorry for ugly english
What is your phone?
If is an Motorola, here is the tutorial:
Deodexing Explained + How To
So you want to theme… but you keep hearing about all this deodexing stuff… so whats that all about?
Stock android implements an odex file structure; for every (well…most) system app(s) (.apk file) and framework files (.jar) there is a corresponding .odex file, so for example you have;
/system/app/Phone.apk
/system/app/Phone.odex
/system/framework/com.motorola.android.mediasync.jar
/system/framework/com.motorola.android.mediasync.odex
What do the .odex files do?
All of your apps on your device are packaged as .apk files; these files are compiled from google source code and can interchangeably be viewed/thought of as a compressed folder (like a .zip or a .rar); and all of your framework components (well most…) are packaged as .jar files which literally stands for Java Archive (so again this can be compared to a .zip or a .rar).
When the android OS want’s to run your apps or utilize its framework components, it has to parse (read/interpret) the compressed data held within your .apk and/or.jar files. What the odex file structure aims to do, is to expedited this process by utilizing another file (.odex file) to compliment every.apk file (and .jar file); the odex file, includes the most critical data in an uncompressed format so the android os can quickly interpret that important information before parsing through the rest of the data held within the compressed .apk files (and .jar files). So subsequently, in an .odex file structure the .apk & .jar files don’t include all of the applications/framework-components data; Essentially, two files are acting as one; for your apps there are .apk files + their corresponding .odex file and for your framework components there are .jar files + their corresponding .odex file. This works nicely as an optimized file structure, except in the circumstance when the user want’s to theme; theming requires a modification to your .apks; the image files (.pngs) held within the pngs are replaced with different ones. However it is impossible to theme an application if it exists as two files. So that is why it is said you need to be DeOdexed in order to theme; DeOdexing is the process of re-bundling that uncompressed critical data (.odex files) back into your compressed .apk (& .jar) files, so that now all of the data is included in the .apk files necessary to run your applications without the presence of .odex files; in addition all the data is now included within the .jar files necessary to utilize your framework components without .odex files. In a DeOdexed file structure, there are no odex files present.
What are the benefit’s of DeOdexing?
Simple. To be able to theme a stock ROM.
Deodexing doesn’t speed your phone up or do anything of the sort.
It is simply something that is necessary to be able to theme a stock ROM.
How do you DeOdex?
One way you can deodex is to use the application xUltimate which actually rebundles that information for you. Another way, is to use a pre-made DeOdexer Update.zip; this zip already has all the repackaged fully compressed .apk files and utilizes code in the update script to delete all of the odex files present. So essentially all it’s doing is overwriting all your old semi data inclusive .apk files with fully inclusive ones and then deleting the (now) superfluous .odex files. This is the easiest way to do it, since all the work is already done for you. Just flash it in clockwork as you would for any theme:
Download it
Place it on your sdcard
Open Droid X Bootstrap
Hit Bootstrap Recover > Ok > Reboot Recovery
Navigate to ‘Install zip from sdcard’ with volume keys and select with camera button
Navigate to ‘Choose zip from sdcard’ and select
Navigate to the directory containing the above deodexer zip
Select it > Yes
Wait for it to do its thing > reboot system
You are now deodexed.
How can you check to see if you DeOdexed successfully?
Open a file explorer (like Root Explorer or Astro)
Navigate to the directory /system/app
Check for the presence of .odex files
Navigate to the directory /system/framework
Check for the presence of .odex files
If there are no odex files present then you are deodexed!
Now you can theme!
Will DeOdexing slow you down?
Technically it should, but in actuality its really quite negligible to notice, however… In my opinion, it’s rather silly to DeOdex and stay on stock ROM; you should just make the switch to a custom ROM. Why? Because custom ROMs are already deodexed and they zipalign your apps on boot; zipaliging is the process of reorganizing the manner in which the .apk is packaged to optimized it for being parsed faster by the android OS, it is comparable if not better than the odex file structure, so you get the best of both worlds; a themed ROM and the speed of an optimized file structure. That is why Stock is lame and custom ROMS pwn (IMO of course…)
I'm trying to reinstall some deleted apps to my Verizon GS4. I downloaded the big zip file with all the stock apk's but am confused now since there's also a ".odex" file for most of the ".apk" files. Do I need to install both the apk and odex? If so, how?
TMack1962 said:
I'm trying to reinstall some deleted apps to my Verizon GS4. I downloaded the big zip file with all the stock apk's but am confused now since there's also a ".odex" file for most of the ".apk" files. Do I need to install both the apk and odex? If so, how?
Click to expand...
Click to collapse
You need the odex files.
They go in /system/app just like the apk files.
tech_head said:
You need the odex files.
They go in /system/app just like the apk files.
Click to expand...
Click to collapse
Thanks. The next question is about how I'm installing the apps. Typically, I've just downloaded an apk to the phone, clicked on it and pressed "install". If I do that, then what do I do with the .odex? Do I manually copy/paste it into the app folder?
Also, with some of the apk's, i get a "application won't install" message. Any ideas why? These apk's are all from a huge master apk download of all stock Verizon GS4 apk's.
Hi, Deodexing an Odexed App is very simple. There are many tools for deodexing like the Famous Ultimate Deodexer . How about Odexing back an App without its original odex file? How could we odex it? Here's what I did to get all our problem solved:
1.) First of all, explore your Apk file using WinRar or 7zip, search for its classes.dex file. When you see one, proceed to the other step. When there's no classes.dex in your .apk file, I'm sorry, that App cannot be odexed.
2.) The next step is to extract the classes.dex file from that Apk by dragging it out. Then rename it to ["Appname".odex](Make sure you name Appname.odex the same as your Package Name.
Ex. CHATOn_MARKET.odex--->CHATOn_MARKET.apk
3.)Download Deodexer-Odexer-Tool_v1.00. I can't share the link. Just google it
4.) Extract the downloaded files. Pull framework dependencies. (I feel lazy about this common sense needed
5.) Move the .apk and .odex file you've just made in the "put-file-here" folder of Deodexer-Odexer-Tool_v1.00. Copy again the .apk file to the "finish" folder and rename it to "Deodexed_Appname.apk".
6.) Open "Deodexer-Odexer-Tool.bat" now deodex your apk file. Its just simple, read and understand the onscreen instructions.
7.) Last Step: Push your .apk file to your phone.
Hope I helped you.
For odexing apps i recommend Lucky Patcher, is the only app that actually odex my apps
Hello All,
I am trying to add/edit xml files found inside "assets", "vendor" directories of an APK included in system.img (priv-app directory) of a ROM.
The APK is available at
system/priv-app/CarrierConfig/CarrierConfig.apk
system/priv-app/CarrierConfig/oat/arm64/CarrierConfig.odex
system/priv-app/CarrierConfig/oat/arm64/CarrierConfig.vdex
I have used apk tool to decompile and re-compile the apk. I also zipaligned, signed with my own key. I copied the file to priv-app directory in the phone and restarted the phone. This did not work. I did have 644 permission for apk file after replacing. Also, I did clear the dalvik cache and cache after APK replacement.
1. Do I need to change the odex or vdex files? I did not touch them since my changes were in xml files.
2. Should I sign with originally signed signature?
3. I could not see the odex and vdex file in the priv-app directory in the phone after the ROM install(when I tried to replace the APK). Why is that?
4. Should I build a rom zip file to flash(along with existing odex and vdex files) as opposed to replacing the APK in the device?
Any help?
http://www.w3.org/2001/XMLSchema
I was looking into this as well. Everything I read said you have to be registered as carrier to make modifications to carrier config.apk , unfortunately:-/ Let me know if you did find a solution, though.