[Q]Noob question - does deodexed mean rooted? - T-Mobile Samsung Galaxy S II SGH-T989

Not quite sure what deodexed means.... sorry for being such a noob.

No. deodexed from my understanding means that the apks and other files are "organized" so to speak. root means that you have superuser access so you can edit and change files and storage locations you normally would nit have access to. I know this all can be a bit overwhelming to start off with! And I am by no means an expert!
Sent from my SGH-T989D using XDA App

Here you go >
http://www.addictivetips.com/mobile/what-is-odex-and-deodex-in-android-complete-guide/
Powered by the SGSII....

ThC23 said:
Here you go >
http://www.addictivetips.com/mobile/what-is-odex-and-deodex-in-android-complete-guide/
Powered by the SGSII....
Click to expand...
Click to collapse
Good post! described it better than anything I could find searching through xda! Thanks!
Sent from my SGH-T989D using XDA App

Thank you both. I appreciate the help!

deodexed: APK have all their application packages put back together in one place, allowing for easy modification such as theming.
So before themeing it is essential to take a backup.
SystemUI.apk if using deodexed rom or SystemUI.apk and SystemUI.odex if using odexed.
Odexed systems are compressed and a bit less customizable than deodexed.
Now if you wanna know that your system is deodexed or not:
If you have root access, via Root Explorer or another root worthy file manager, to /system/app you can look at the file extensions and see ".apk" and ".odex" on devices which are "odexed."

Related

What's Deodex and Odex?

I've been seeing those words a LOT in recent threads.
Any detailed explanation on them please?
[search] deodex [/search]
Berzerker said:
De-odex: Apk files have respective odexes that devs use to supposedly save space. Deodexing means you convert it back to a .dex file and put it back inside the apk. This allows you to easily replace files (not having to worry about odexes), but the main point was to deodex services.jar so that you can change all text to different colors (such as the clock color to white) and to deodex services.jar, you need to deodex everything.
Click to expand...
Click to collapse
danknee said:
[search] deodex [/search]
[/I]
Click to expand...
Click to collapse
How does it matter to regular user?
donniezazen said:
How does it matter to regular user?
Click to expand...
Click to collapse
Themes mostly.
sk63 said:
Themes mostly.
Click to expand...
Click to collapse
Thanks. Are themes available in Deodex or Odex? Sorry for noob questions.
Related question also....
- Which can live with which? (Deodexed ROM + Odexed Theme? or Odexed ROM + Deodexed Theme?)
You know, like type O is universal donor and type AB is universal recipient...do these work similar or only deodexed with deodexed...?
(where is that darn wiki??)
sablesurfer said:
Related question also....
- Which can live with which? (Deodexed ROM + Odexed Theme? or Odexed ROM + Deodexed Theme?)
You know, like type O is universal donor and type AB is universal recipient...do these work similar or only deodexed with deodexed...?
(where is that darn wiki??)
Click to expand...
Click to collapse
Dear GOD,
Please come down from heaven and explain by some magic show what the hell these deodexed and odexed means?
Thank you,
A non-believer.
donniezazen said:
Dear GOD,
Please come down from heaven and explain by some magic show what the hell these deodexed and odexed means?
Thank you,
A non-believer.
Click to expand...
Click to collapse
Deodexed ROMs have their .apk's (which are basically the application packages) repackaged in a certain way. An "odex" can be thought of as a collection of parts of applications that have been pulled out and optimized before booting. This speeds up the boot process - in a way, it preloads part of the applications - but it also makes hacking those apps difficult because part of the original code is already extracted somewhere else.
Deodexing is just a process of putting those pieces back into the original applications. It takes a while to extract those parts and build the .dex cache (aka Dalvik cache), but only because the relevant parts aren't in an easy-to-access place for the system. The advantage of this is that an app can be modified effectively and the developer doesn't have to worry about conflicts from the separate odex part of the code.
So, short version: "Deodexed" ROMs have all their apps put back together. If an app can be themed, for example, a deodexed version of that app will not get messed up when the modified .apk tries to mesh with the odex of the original un-modified .apk. Because it's not there.
If you want an aftermarket theme, you need a deodexed ROM. I'm not sure if deodexing can be done to individual apps within a non-deodexed ROM.
I think that's the general idea, anyway.
sablesurfer said:
Related question also....
- Which can live with which? (Deodexed ROM + Odexed Theme? or Odexed ROM + Deodexed Theme?)
You know, like type O is universal donor and type AB is universal recipient...do these work similar or only deodexed with deodexed...?
(where is that darn wiki??)
Click to expand...
Click to collapse
You will never find an odexed theme since the odex file would contain things that needed to be changed, thus themes are deodexed. Themes basically just replace the .apk or .jar with their version, which wouldn't work on an odexed rom.
donniezazen said:
Dear GOD,
Please come down from heaven and explain by some magic show what the hell these deodexed and odexed means?
Thank you,
A non-believer.
Click to expand...
Click to collapse
Basically, Android uses a a java based virtual machine as the bases for running programs. This virtual machine is called Dalvik. A .dex file contains the cache used by the Dalvik VM (called Dalvik-cache) for a program and is stored inside the .apk. A .odex file is an optimized version of the .dex file which gets stored next to the .apk as opposed to inside the .apk. This process is done by default to system apps. Deodexing is the process of converting the .odex files back into .dex to be stored inside the .apk so that things can be more easily modified. So a deodexed rom is one that has been through the deodexing process. Deodex can just as easily be called Unodex or any other pre-fix you wish to use.
Hopefully that cleared that up.
EDIT: Darn, beaten.
Thank you all. So...themes are deodexed. And only run on deodexed rom...got it. Meaning...I need a deodexed version of the new Froyo to keep my white Rosie. Cool.
faster3200 said:
EDIT: Darn, beaten.
Click to expand...
Click to collapse
Yeah, but you clearly know it better than I do.
if you install a de-odexed rom, will the system automatically rebuild the Dalvik cache and appropriately odex the apk's, or is this something that a dev needs to do manually beforehand? In other words, are there any disadvantages to a de-odexed rom other than an initially slower phone? will the phone eventually rebuild the cache and perform as an odexed system would?
^bump^
Same question as vinconti - will a deodexed ROM run slower than an odexed one?
Thanks
<InigoMontoya>You keep using that word. I do not think it means what you think it means.</InigoMontoya>
Thanks for the explanations, all. I just rooted my D2 but haven't done any themes yet. This helps, but only from the standpoint of I'll have to get back into flashing. I thought I left that behind when I trashed my Omnia.
I have a regular odexed ROM. I replace some of the apk+odex files by deodexed APK's, so that seems to be no problem. But I was wondering whether this would also work for jar+odex files (e.g. android.policy.jar)....
kasper_h said:
I have a regular odexed ROM. I replace some of the apk+odex files by deodexed APK's, so that seems to be no problem. But I was wondering whether this would also work for jar+odex files (e.g. android.policy.jar)....
Click to expand...
Click to collapse
If this does actually work without problems does that mean we'd only have to de-odex certain .apks rather than the whole ROM?
KrushR said:
<InigoMontoya>You keep using that word. I do not think it means what you think it means.</InigoMontoya>
Thanks for the explanations, all. I just rooted my D2 but haven't done any themes yet. This helps, but only from the standpoint of I'll have to get back into flashing. I thought I left that behind when I trashed my Omnia.
Click to expand...
Click to collapse
Thanks for the Inigo moment. You made my night.
Question to the room: Do I need this deodexing thing just to install apps and run the wifi tether (the whole reason I'm venturing into root territory to begin with)? I don't care what it looks like, I just want it to provide wifi to my soon-to-be-rooted Nook Color. Thanks in advance.
But... All I want is WiFi tethering!
lngwstx said:
Question to the room: Do I need this deodexing thing just to install apps and run the wifi tether (the whole reason I'm venturing into root territory to begin with)? I don't care what it looks like, I just want it to provide wifi to my soon-to-be-rooted Nook Color. Thanks in advance.
Click to expand...
Click to collapse
This is pretty much my question as well. This whole Odex/Deodex thing is totally frying my brain.
I'm not trying to do anything fancy, I just want to use the WiFi tether feature. Which one is good enough for just doing THAT?
keep your advice for yourself
donniezazen said:
Dear GOD,
Please come down from heaven and explain by some magic show what the hell these deodexed and odexed means?
Thank you,
A non-believer.
Click to expand...
Click to collapse
keep your advice for yourself
How to Deodex?

[Q] [HELP NEEDED] accountsandsyncsetting.odex ODEX file

All:
I've accidentally deleted accountsandsyncseetings app using Titanium backup on my Galaxy-Y. To restore it, I've copied accountsandsyncseetings.apk at /system/app folder using 'root explorer', but I'm not seeing 'Account and Sync Settings' option in Settings yet.
After looking at /system/app folder, I realized that each apk has a corresponding odex file. Do I need the ODEX file for accountsandsyncseetings? If yes, where do I get it.
Information:
Model: GalaxyY (India)
Build: 2.3.6 Touchwiz
Thanks in advance.
srathi said:
All:
I've accidentally deleted accountsandsyncseetings app using Titanium backup on my Galaxy-Y. To restore it, I've copied accountsandsyncseetings.apk at /system/app folder using 'root explorer', but I'm not seeing 'Account and Sync Settings' option in Settings yet.
After looking at /system/app folder, I realized that each apk has a corresponding odex file. Do I need the ODEX file for accountsandsyncseetings? If yes, where do I get it.
Information:
Model: GalaxyY (India)
Build: 2.3.6 Touchwiz
Thanks in advance.
Click to expand...
Click to collapse
Yu shud backup ur current rom before editing system folders... yeah yu need odex file to make it work...
Sent from my GT-S5360 using xda premium
I can send you the odex file if you can wait for maybe half an hour. The file is on my pc so yeah.
Sent from my GT-S5360 using xda premium
Thanks
Silvane said:
I can send you the odex file if you can wait for maybe half an hour. The file is on my pc so yeah.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Please send it to me whenever possible.
Do I just need to copy it in /system/app and reboot my cell? Or are there any other steps involved?
Thanks.
srathi said:
All:
I've accidentally deleted accountsandsyncseetings app using Titanium backup on my Galaxy-Y. To restore it, I've copied accountsandsyncseetings.apk at /system/app folder using 'root explorer', but I'm not seeing 'Account and Sync Settings' option in Settings yet.
After looking at /system/app folder, I realized that each apk has a corresponding odex file. Do I need the ODEX file for accountsandsyncseetings? If yes, where do I get it.
Information:
Model: GalaxyY (India)
Build: 2.3.6 Touchwiz
Thanks in advance.
Click to expand...
Click to collapse
http://www.mediafire.com/?8ehai7v696bs0e1
srathi said:
Please send it to me whenever possible.
Do I just need to copy it in /system/app and reboot my cell? Or are there any other steps involved?
Thanks.
Click to expand...
Click to collapse
Ah there, someone uploaded.
Copy to system/app, fix permissions to rw-r--r-- then reboot.
Specify
Sent from my GT-S5360 using XDA App
Specify what
Sent from my GT-S5360 using xda premium
Silvane said:
Ah there, someone uploaded.
Copy to system/app, fix permissions to rw-r--r-- then reboot.
Click to expand...
Click to collapse
Thanks a lot.
However, even after copying .apk and .odex files in system/app directory and setting up the permissions and rebooting, I still do not see 'Accounts and Sync Settings' in my Settings menu. I've downloaded the apk from a spreadsheet provided on xda-forums for Galaxy Y.
Please look at the attached screenshots and help me to get this setting back.
Thanks a lot in advance for your help.
Silvane already told. If you want too much specifics - download the odex file and copy it to your sd card. Now open root explorer and select rw mode on top. Now goto sd card and find where you kept the odex and copy it. Now go back and open system/app and paste it here. And i assume you have the apk of it already in the system/app folder. Now restart. If it does not come, make a cwm backup (you must have upto 300 mb of free space - it is advised but 200 will also do). After backup you can restore. You will get it back.
Sent from my AURORA ULTRA GT-S5360 through XDA Premium Customized by Androhacker Xavier
Try my method of backup and restore i have given above. It might work.
Sent from my AURORA ULTRA GT-S5360 through XDA Premium Customized by Androhacker Xavier
srathi said:
Thanks a lot.
However, even after copying .apk and .odex files in system/app directory and setting up the permissions and rebooting, I still do not see 'Accounts and Sync Settings' in my Settings menu. I've downloaded the apk from a spreadsheet provided on xda-forums for Galaxy Y.
Please look at the attached screenshots and help me to get this setting back.
Thanks a lot in advance for your help.
Click to expand...
Click to collapse
Looks like I need to attach JPEG screenshot. Please find them here.
And press the thanks button if it works! ( even if it dont! I have given time to this! )
Sent from my AURORA ULTRA GT-S5360 through XDA Premium Customized by Androhacker Xavier
Androhacker said:
And press the thanks button if it works! ( even if it dont! I have given time to this! )
Sent from my AURORA ULTRA GT-S5360 through XDA Premium Customized by Androhacker Xavier
Click to expand...
Click to collapse
Of course, I press the Thanks button to anyone who has helped me here. I truly appreciate it.
Androhacker said:
Silvane already told. If you want too much specifics - download the odex file and copy it to your sd card. Now open root explorer and select rw mode on top. Now goto sd card and find where you kept the odex and copy it. Now go back and open system/app and paste it here. And i assume you have the apk of it already in the system/app folder. Now restart. If it does not come, make a cwm backup (you must have upto 300 mb of free space - it is advised but 200 will also do). After backup you can restore. You will get it back.
Sent from my AURORA ULTRA GT-S5360 through XDA Premium Customized by Androhacker Xavier
Click to expand...
Click to collapse
Thanks Androhacker! I've followed all the steps mentioned above except 'cwm backup and restore'. I'm not sure what it is but I'll try to google it.
Again, thanks!
srathi said:
Thanks Androhacker! I've followed all the steps mentioned above except 'cwm backup and restore'. I'm not sure what it is but I'll try to google it.
Again, thanks!
Click to expand...
Click to collapse
It means to make a backup from clockworkmod and then restore it from the same
hell_lock said:
It means to make a backup from clockworkmod and then restore it from the same
Click to expand...
Click to collapse
Thanks. I've tried my best to google it but I can't find cwm for Galaxy Y. I don't see it in the list of supported devices on cwm website.
Please point me to the instruction page for installing cwm. I'm sorry for the barrage of questions, but I'm very much new with Android development.
Well cwm for sgy is just scattered all over the forum lol. sorry I don't have a specific link but it's easy to find. :x
Btw I think the problem is the apk. It might not be for SGY. Because that spreadsheet isn't for SGY specifically. Ask someone to upload one for you. Can't get it myself. On phone again. :x
Oh and make sure the apk is from stock, not deodexed, to anyone who wants to help and upload for him.
Sent from my GT-S5360 using xda premium
Silvane said:
Well cwm for sgy is just scattered all over the forum lol. sorry I don't have a specific link but it's easy to find. :x
Btw I think the problem is the apk. It might not be for SGY. Because that spreadsheet isn't for SGY specifically. Ask someone to upload one for you. Can't get it myself. On phone again. :x
Oh and make sure the apk is from stock, not deodexed, to anyone who wants to help and upload for him.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
You might have been right but there is no apk file given. We say that he should use only the odex not the apk.
Sent from my AURORA ULTRA GT-S5360 through XDA Premium Customized by Androhacker Xavier
srathi said:
Thanks. I've tried my best to google it but I can't find cwm for Galaxy Y. I don't see it in the list of supported devices on cwm website.
Please point me to the instruction page for installing cwm. I'm sorry for the barrage of questions, but I'm very much new with Android development.
Click to expand...
Click to collapse
go to the page of any rom... you will find the cwm at the end.. we hav a port of cwm thats y u culdnt find it

Themes for odex?

So I am actually enjoying the stock feel of my gs3. I of course have rooted, however I cannot seem to find any themes compatible with odex. Maybe I'm a noob and they just don't exist, but here's what I'm asking:
Are there any themes that work for stock odex?
If not how do I keep my current system and setup and deodex it?
Sent from my SPH-L710 using xda app-developers app
i havent seen any theme for odex yet but i recommend StrongSteve Blue Odex rom, thats what im running and its awsome...good luck hope it helps
As I understand it if you want to theme an odexed Rom you basically have to replace most of the rom and it ends up very rom specific. I don't think anyone would go through the effort. If you want to play with themes you should probably run a deodexed rom. The downside is that deodexed roms run a tiny bit slower. I doubt that is even noticeable on an SGS3.
Me, I don't care about themes and the stock rom has been awsome.
poit said:
As I understand it if you want to theme an odexed Rom you basically have to replace most of the rom and it ends up very rom specific. I don't think anyone would go through the effort. If you want to play with themes you should probably run a deodexed rom. The downside is that deodexed roms run a tiny bit slower. I doubt that is even noticeable on an SGS3.
Me, I don't care about themes and the stock rom has been awsome.
Click to expand...
Click to collapse
odex themes are too specific like mentioned above. DL a stock deodexed rom, and give one of my themes a try. JellyBomb Domination is my fav.
yoniinfante said:
i havent seen any theme for odex yet but i recommend StrongSteve Blue Odex rom, thats what im running and its awsome...good luck hope it helps
Click to expand...
Click to collapse
+10000 for StrongSteve!! :good:
Thanks for the replies. I figured there wouldn't be any odex themes I was just hoping for the best. I love the pics domination theme I just don't know if I want to run a different from on this phone yet since it runs so great right now. I flashed dozens of roms to my epic 4g so I'll probably eventually end up doing it when I get bored with what I have and some nice tweaks and mods come out.
Sent from my SPH-L710 using xda app-developers app
Do you have custom recovery? If you are up for it I can give you instructions on how to turn a theme into odex yourself. Let me know if you are game.
Sent from my SAMSUNG-SGH-I747 using xda premium
poit said:
As I understand it if you want to theme an odexed Rom you basically have to replace most of the rom and it ends up very rom specific. I don't think anyone would go through the effort. If you want to play with themes you should probably run a deodexed rom. The downside is that deodexed roms run a tiny bit slower. I doubt that is even noticeable on an SGS3.
Me, I don't care about themes and the stock rom has been awsome.
Click to expand...
Click to collapse
Umm.. Yeah.. I went through the effort.. smh
---------- Post added at 04:40 PM ---------- Previous post was at 04:39 PM ----------
crawrj said:
Do you have custom recovery? If you are up for it I can give you instructions on how to turn a theme into odex yourself. Let me know if you are game.
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
my ol buddy..
strongsteve said:
Umm.. Yeah.. I went through the effort.. smh
---------- Post added at 04:40 PM ---------- Previous post was at 04:39 PM ----------
my ol buddy..
Click to expand...
Click to collapse
Been a long time! I am starting to work my way back into things. I would like to catch up with you at some point.
crawrj said:
Do you have custom recovery? If you are up for it I can give you instructions on how to turn a theme into odex yourself. Let me know if you are game.
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
Hi craw. I do have CWM and am rooted, so if the instructions are rather simple in converting a theme into odex I'm game to try it! I would love the ICS Domination theme but I just don't think I'm ready yet to start flashing Custom Roms. Like I said I did it all the time on my GS1 Epic 4g but I actually like the way this phone is running stock I just can't stand the green and want blue!
StrongSteve I have reviewed the posts on your thread for the themed odex rom you built and if I were to start running a Custom Rom yours would be the first I would try so I thank you for your efforts.
mmayo01 said:
Hi craw. I do have CWM and am rooted, so if the instructions are rather simple in converting a theme into odex I'm game to try it! I would love the ICS Domination theme but I just don't think I'm ready yet to start flashing Custom Roms. Like I said I did it all the time on my GS1 Epic 4g but I actually like the way this phone is running stock I just can't stand the green and want blue!
StrongSteve I have reviewed the posts on your thread for the themed odex rom you built and if I were to start running a Custom Rom yours would be the first I would try so I thank you for your efforts.
Click to expand...
Click to collapse
You would definitely enjoy his rom. Very fast and snappy with no green.
Sent from my SGS3. while experiencing some Wicked Sensations.
mmayo01 said:
Hi craw. I do have CWM and am rooted, so if the instructions are rather simple in converting a theme into odex I'm game to try it! I would love the ICS Domination theme but I just don't think I'm ready yet to start flashing Custom Roms. Like I said I did it all the time on my GS1 Epic 4g but I actually like the way this phone is running stock I just can't stand the green and want blue!
StrongSteve I have reviewed the posts on your thread for the themed odex rom you built and if I were to start running a Custom Rom yours would be the first I would try so I thank you for your efforts.
Click to expand...
Click to collapse
ok just got home. If you or someone can go to the root directory of the phone and view init.rc. A few lines down you will see bootclass... copy and paste that line for me.
Sent from my SAMSUNG-SGH-I747 using xda premium
crawrj said:
ok just got home. If you or someone can go to the root directory of the phone and view init.rc. A few lines down you will see bootclass... copy and paste that line for me.
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
Can you be a little more specific. I opened init.rc in root explorer, but i couldn't find anything that was related to "bootclass"
mmayo01 said:
So I am actually enjoying the stock feel of my gs3. I of course have rooted, however I cannot seem to find any themes compatible with odex. Maybe I'm a noob and they just don't exist, but here's what I'm asking:
Are there any themes that work for stock odex?
If not how do I keep my current system and setup and deodex it?
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
there is a stick deoxed rooted flash in development... Freeza made it
Sent from my SPH-L710...if some one helps you press the thanks button
mmayo01 said:
Can you be a little more specific. I opened init.rc in root explorer, but i couldn't find anything that was related to "bootclass"
Click to expand...
Click to collapse
You are looking for this. If it is the same just let me know.
export 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
Sent from my SAMSUNG-SGH-I747 using xda premium
export 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
Sent from my SPH-L710 using xda app-developers app
mmayo01 said:
export 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
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
First of all I want to thank StrongSteve for being the one who helped me learn how to Odex way back on the olden S2 with gingerbread
OK so let's get started. I am not positive if this is necessary but I have been doing it this way since I started Odexing. If you have multiple jar files that you are going to Odex follow the bootclass order when Odexing.
Remember to make a backup first just in case.
What you need. You will need the Deodexed files that you want to Odex, custom recovery, ADB (attached if needed), an Odexed rooted Rom that you want to use your mod on, busybox and the attached dexopt-wrapper.
The below is an example. You will replace the text marked in red with the actual jar that you want to Odex.
What I do is make a folder called Odexed on the root of my internal storage
I keep the dexopt-wrapper file on the root of my internal storage
Copy the Deodexed files that you want to odex into the Odexed folder
Do a nandroid backup of your phone
Make sure you are rooted
Make sure your phone has usb debugging enabled
Attach your phone to your computer
Open a command prompt and go to the adb folder
Type adb shell
Type su (check your phone to see if it is asking for permission and allow it if so)
Enter the following commands
mount -oremount,rw /dev/block/mmcblk0p14 /system
cp /sdcard/dexopt-wrapper /system/xbin
cp /sdcard/odexed/core.jar /system/framework
dexopt-wrapper /system/framework/core.jar /system/framework/patched_core.odex /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
chmod 777 /system/framework/core.odex
chmod 777 /system/framework/patched_core.odex
busybox dd if=/system/framework/core.odex of=/system/framework/patched_core.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
cp /system/framework/patched_core.odex /sdcard/odexed/core.odex
rm /system/framework/patched_core.odex
If you are odexing other files repeat the process starting from step 14
Once all of the Jar files are done you can Odex any apk files that you have. Note: framework-res.apk was never odexed so you can just skip that file.
For apks you only need to run this command dexopt-wrapper sdcard/odexed/SystemUI.apk sdcard/odexed/SystemUI.odex replacing SystemUI with the apk name that you are Odexing
Now copy all of the files from the Odexed directory on the phone to your computer
Open each of the jar and apk files with a program like winrar and delete the classes.dex file
Copy the files back into the respective folders on the phone, apps into system/app and framework into system/framework
Alternatively you can take the original theme zip and replace the files with the ones you just created including the odex files and flash in recovery. *Probably the best way to do it
If you have any questions or issues let me know and I will try and help you out. Good luck and let us know how it goes either way.
Nice detailed write up......Than you! ^^

[ICS][MOD][CWMR]Long Press volume changes music track

So after desperatley wanting this mod to work on my captivate glide at any cost, i went after it myself. It looked easy at first but turned out to consume a lot of hours figuring out how to compile decompile and understand basics of smali.
What it does ?
As in the title, pressing the volume buttons a little longer (400 ms) will make the stock music player skip to next track (up vol) or previous track (down vol). This only works while the screen is off and phone locked which is basically the purpose . Right now will work on deodexed ROMs only, meaning pepole having "android.policy.odex" file in the system/framewrok folder would not be able to use this mod.
Caution : The mod if goes wrong can/will make your phone stuck at the boot animation unless the mod is removed. Copy both the files so you can restore your original file back in case it doesn't work for you.
How to Install
1) Make sure you are rooted. and boot into CWMR.
2) Flash LongPressVol.zip - Installs the mod and takes backup
3) Wipe Dalvik and Cache partition
4) Reboot and "Upgrading android" screen should show up.
You are done and now test it and let me know if it works for you. Enjoy!!!
Restore original/Remove Mod :
1) Boot into CWMR.
2) Flash LongPressVolRemove.zip - Restores your original android.policy.jar file
3) Wipe Dalvik and Cache partition
4) Reboot
Tested to be working fine on following ROMs
Nardholio's NardROM 0.4
Thegreatergood's LiteROM .4
Credits : Ported with help from the guide posted by jakubklos -> http://forum.xda-developers.com/showthread.php?t=1770564
Next update :
CWM flashable zip (will need some time to learn how to do that - Done
Post the Diff and the code to make it easier for other roms to include it if the android.policy.jar changes. - In progress
Awesome, been missing this mod since leaving my DHD
CWM Flashables worked great..... But since I'm using the stock rom which has not been deoxed it did not work.
It booted though didn't notice any adverse affects
Not to put you on the spot but do you think you could use the UCLH2 .jar and make a version that will use odex. not sure if anything would have to be done to the odex file but I have included the non odexed android.policy.jar files if you wouldn't mind taking a stab at it. If you could just modify the .jar file I'll test it. I would be forever in your debt!
Sent from my SGH-I927 using xda premium
Force closes PowerAMP and Nova Launcher.
Tested on ICS Leak.
Just delete the odex file and clear cache and you should be fine. You don't have to deodex the whole ROM.
or for extra points you can reodex, which theoretically will boost speeds a bit (although I'm experiencing wonderful speeds on my ROM). Redodexing is pretty easy (just Google it) and doesn't require him to do his mod again.
Cool thanks for the tip!
Sent from my SGH-I927 using xda premium
ludacris1 said:
Force closes PowerAMP and Nova Launcher.
Tested on ICS Leak.
Click to expand...
Click to collapse
Strange works for me. Nova didn't quit at all throughout my testing. I tried Poweramp trial and works fine as well. Did you clear dalvik and cache after flashing in the Mod ?
Nardholio said:
Just delete the odex file and clear cache and you should be fine. You don't have to deodex the whole ROM.
or for extra points you can reodex, which theoretically will boost speeds a bit (although I'm experiencing wonderful speeds on my ROM). Redodexing is pretty easy (just Google it) and doesn't require him to do his mod again.
Click to expand...
Click to collapse
Tried with no success stuck at boot screen. Thanks for the hint I'll try re odexing it and see if that will work next.
I like all the bloat that the stock has except the att apps, I would love to try your ROM but I would prefer a completely stock version of it with little modification and fixes. I have tried to do it myself with no success and simple don't have the patience for it. As my computer would end up at the muzzle end of a AR15. I really don't want to waste ammo or buy a new computer just yet. LOL ^o^
I'm very happy with the stock rom after applying the keyboard, tethering fix, and sdcard swap. It will be perfect when I get this working on it. And if its true that having it odexed is faster, I don't know but it is very smooth and battery is awesome.
Sent from my SGH-I927 using xda premium
enewman17 said:
Awesome, been missing this mod since leaving my DHD
CWM Flashables worked great..... But since I'm using the stock rom which has not been deoxed it did not work.
It booted though didn't notice any adverse affects
Not to put you on the spot but do you think you could use the UCLH2 .jar and make a version that will use odex. not sure if anything would have to be done to the odex file but I have included the non odexed android.policy.jar files if you wouldn't mind taking a stab at it. If you could just modify the .jar file I'll test it. I would be forever in your debt!
Sent from my SGH-I927 using xda premium
Click to expand...
Click to collapse
As evident from your last post, it does not work for you on UCLH2. As i said in my OP that i've not tested it on LH2 and it might not work as the android.policy.jar may be different. It should work on the UCLG9 and the ROM's based on it for sure.
I'll see later what i can do for the LH2. Can you post me a link of your whole system/framework folder, so i can download the same ? I'll maybe try later in the day to see the difference.
Thanks you, much appreciated! http://db.tt/0PnPOv4p
Sent from my Transformer TF101 using XDA Premium HD app
enewman17 said:
Thanks you, much appreciated! http://db.tt/0PnPOv4p
Sent from my Transformer TF101 using XDA Premium HD app
Click to expand...
Click to collapse
Deodexed your files and compared the PhoneWindowManager.smali file with mine, they are binary equals. So technically this mod should work for you. As your ROM is odexed, you need to manually delete the android.policy.odex and android.policy.jar file and then copy the android.policy.jar file from the zip attached to the OP. Remember to clear dalvik and cache partition as the last step before rebooting your phone. As Nardholio suggested this should work and you don't need to deodex the whole ROM.
Updated OP with the name of the ROM's tested to be working fine with this mod. Will try some more and keep adding.
Sent from my SGH-I927
Nardholio said:
Just delete the odex file and clear cache and you should be fine. You don't have to deodex the whole ROM.
or for extra points you can reodex, which theoretically will boost speeds a bit (although I'm experiencing wonderful speeds on my ROM). Redodexing is pretty easy (just Google it) and doesn't require him to do his mod again.
Click to expand...
Click to collapse
Do not delete the odex file... in an odex ROM all the code, java and smali are located in the odex class until you deodex which pulls the classes out and compresses them into a classes.dex into the particular apk and/ or jar file. So, if you delete the odex file the jar or apk is useless as you just deleted all the java and smali code it uses to communicate with the DVM..
Sent from my SGH-I897 using xda premium
dman3285 said:
Do not delete the odex file... in an odex ROM all the code, java and smali are located in the odex class until you deodex which pulls the classes out and compresses them into a classes.dex into the particular apk and/ or jar file. So, if you delete the odex file the jar or apk is useless as you just deleted all the java and email code it uses to communicate with the DVM..
Sent from my SGH-I897 using xda premium
Click to expand...
Click to collapse
Deodexing is all clear and i know the procedure, but can you let me know some link or tutorial to follow to odex it back again ? I think it needs the whole rom and needs some more files like framework etc. to be odexed again ?
Note: still learning and long way to go
In my trying to learn all of this too, seems you can re-odex a rom. But everything I found has to be done on the phone it self with terminal and a odex wrapper script. Haven't found a way of doing it on a computer yet.
Sent from my SGH-I927 using xda premium
enewman17 said:
In my trying to learn all of this too, seems you can re-odex a rom. But everything I found has to be done on the phone it self with terminal and a odex wrapper script. Haven't found a way of doing it on a computer yet.
Sent from my SGH-I927 using xda premium
Click to expand...
Click to collapse
I've read some tutorials as well, but lemme know if you find a easier way to do this. I'm almost certain that the odex files are specific to a specific rom, but i can be wrong as well. That's the reason i believe that the generic mods are only for the deodexed ROMs.
enewman17 said:
Awesome, been missing this mod since leaving my DHD
CWM Flashables worked great..... But since I'm using the stock rom which has not been deoxed it did not work.
It booted though didn't notice any adverse affects
Not to put you on the spot but do you think you could use the UCLH2 .jar and make a version that will use odex. not sure if anything would have to be done to the odex file but I have included the non odexed android.policy.jar files if you wouldn't mind taking a stab at it. If you could just modify the .jar file I'll test it. I would be forever in your debt!
Sent from my SGH-I927 using xda premium
Click to expand...
Click to collapse
I don't realize there was a Dial Home Device on earth, I though it was never found
*stargatefan*
TheHow7zer said:
I don't realize there was a Dial Home Device on earth, I though it was never found
*stargatefan*
Click to expand...
Click to collapse
Lol love stargate
Sent from my Desire HD using xda premium
---------- Post added at 07:13 PM ---------- Previous post was at 06:47 PM ----------
ninthsense said:
I've read some tutorials as well, but lemme know if you find a easier way to do this. I'm almost certain that the odex files are specific to a specific rom, but i can be wrong as well. That's the reason i believe that the generic mods are only for the deodexed ROMs.
Click to expand...
Click to collapse
Yes the odex file is specific per app so if any changes were made, the odex file which contains most of the data for each app would also have to reflect those changes. As the changes you made were part of .smali which is part of the dex file. So on a stock rom the odex file is loaded into the Dalvik machine during boot. This is why when flashed on a odexed rom the mod does not take, because the non modded odex file was already loaded. I gave up as I'm happy using literom4 with your mod.
Edit: Ok here is why it has to be done using the phone, all has to do with BOOTCLASSPATH http://classictomatoe.net/dexo-universal-odex-tool/
If you wanted to make this mod for folks still using the stock rom. All that needs to be done is decompile the .odex file using baksmali make the changes to the necessary files and then smali ?I think? don't quote me on that.
Can you share the how to four this? I'm setting up a rom and would like to add this
Sent from my SGH-I927 using xda app-developers app
kick buttowski said:
Can you share the how to four this? I'm setting up a rom and would like to add this
Sent from my SGH-I927 using xda app-developers app
Click to expand...
Click to collapse
Would you use the new uclj3 ? Send me the androidpolicy jar from your rom and hopefully it should be the same. I've not upgraded to .8 literom yet so not sure if it will work as .8 is based on the newer uclj3 released by samsung.
Sent from my SGH-I927
ninthsense said:
Would you use the new uclj3 ? Send me the androidpolicy jar from your rom and hopefully it should be the same. I've not upgraded to .8 literom yet so not sure if it will work as .8 is based on the newer uclj3 released by samsung.
Sent from my SGH-I927
Click to expand...
Click to collapse
Here ya go

[Q] Question about deodex and odex

So as I understand it a odexed rom which is how it comes from the factory should have a .apk file and a corresponding .odex file. for example in the /system/app directory you would find a phone.apk and phone.odex. Right?
So when you deodex the rom it should take that .odex file and repackage it into the.apk so you would only see phone.apk in the /system/app directory. And if you open up the phone.apk there will be a file called classes.dex which is the odexed info that was put in the .apk is that right?
The reason I am asking is because I installed tesh rom. I chose the deodexed one. then I installed all the modds from tekhd mods thread. They all worked fine. My phone is running great. BUt I noticed that I have the .apk and corresponding .odex file and when I read the .apk it contains the classes.dex file. So is the rom deodexed or not. I was under the impression that the modds would not work if the rom was still odexed. So I am a little bit confused.
Can someone shed some light on what is going on here?
Thanks,
Charlie
mojorisin7178 said:
Can someone shed some light on what is going on here?
Thanks,
Charlie
Click to expand...
Click to collapse
You already answered your own question dude. If it was odexed you would not have working mods.
So then I should still have 2 files in /system/app one .apk and one.odex. because I was under the impression that when you deodex you take that odex file and put it into the .apk so there would only be one file. That is what is confusing me. I am sorry that I am not following this I am trying.
mojorisin7178 said:
So then I should still have 2 files in /system/app one .apk and one.odex. because I was under the impression that when you deodex you take that odex file and put it into the .apk so there would only be one file. That is what is confusing me. I am sorry that I am not following this I am trying.
Click to expand...
Click to collapse
so you downloaded the odex version of the ROM, then flashed a deodexed theme, and it worked, correct? this is what you are saying?
i would not be surprised if that was the case. a lot of our old ways of doing things in android is changing. jelly bean is a very cleverly designed OS..
for example, i have made changes to the framework before, flashing a deodexed theme on an odexed theme, and just to see what it would do, did not wipe dalvik cache (our old structure of doing this type of modification has told us this is REQUIRED, for obvious reasons). the script written in the zip file did not wipe it for me, checked after this happened:
i booted up, and guess what? in the log cat saw that android was doing some signature checks on the dvm and verifying them against the existing framework files. found they didn't match, and it automatically cleared the dvm files and rebuilt them.
interesting yes? well, what i am getting at, again, is that i am not surprised this worked for you just because of the way android has changed. it is becoming a lot "smarter" so to say.
verify you actually downloaded an odexed ROM, and that the /system/framework and /system/app directory contents are indeed odexed, and come back here. also, verify you did indeed flash a theme for DEodexed ROMs... if all of this is the case, it seems we might be able to throw out all we know about flashing odexed roms/themes in our newer versions of the OS.
good luck, and very interesting intriguing event!
When I vet home tonight I will do some investigating. But what I thought I did was download the deodexed version and then added modd to it that were only supposed to work on deodexed roms. But when I went to my /system/app it had both .apk and .odex. so then I thought I might have dowoaded the odexed version. Which then the modds should not have worked.
So when I get home I will do some cbecking and pkst back with links to what I used and sys images if that helps. And thank 6ou for helping me out.
mojorisin7178 said:
When I vet home tonight I will do some investigating. But what I thought I did was download the deodexed version and then added modd to it that were only supposed to work on deodexed roms. But when I went to my /system/app it had both .apk and .odex. so then I thought I might have dowoaded the odexed version. Which then the modds should not have worked.
So when I get home I will do some cbecking and pkst back with links to what I used and sys images if that helps. And thank 6ou for helping me out.
Click to expand...
Click to collapse
Yes that is exactly what you should do. Also don't forget to check the contents of the /system/framework directory as those are the ones specific to theming your UI (statusbar, etc etc)

Categories

Resources