[Q] Theming an Odexed ROM Possibilities - Android Themes

Before I get started, I understand the difference between an odexed rom and de-odexed rom. I understand what that means for themes.
But my question is, is there way to rebuild the odex file for an apk?
The story is, I'm on a Stock 2.1 Rom on my Samsung Captivate. I've changed fonts around already. But I want to add some framework animations, similar to the ones found in a few custom ROMs. I understand that with APK manager I can decompile an apk so that changes can be made. I also understand that because my ROM is odexed that I can't just put the apk back on the phone and everything will be fine.
Isn't there a way to take a de-odexed apk and make an odex file for it so that it can work again?

i really wish someone had answered this.. because i'm in the same boat. I'm using Gingeritis... an odexed rom for my tbolt. LOVE it. but i want to theme it. and its odexed and idk wtf to do

traumahawk said:
i really wish someone had answered this.. because i'm in the same boat. I'm using Gingeritis... an odexed rom for my tbolt. LOVE it. but i want to theme it. and its odexed and idk wtf to do
Click to expand...
Click to collapse
In a odexed ROM (not sure if using properly the word, I mean a ROM with apk and odex files) You can change the apk and odex files of the file (delete both) and put in a deodexed apk (framework-res.apk for example) of a deodexed ROM (not just deleting the odex. You need to fins a deodexed ROM, then pick the .apk
It will probably work (most devs do that and I have done that too with framework-res.apk and other system apk. Just change apk and odex for a "full" apk of another deodexed ROM

Related

[Q] Deodexed JPO

Please can someone produced a stock deodex of the JPO 2.2 rom ?
Thanks
Dan
Ok, I have to ask - what exactly does "deodex" mean? I keep seeing the term but no explanation for it anywhere....
hey,
10 sec search in google....
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.
Doc´s ROM v 7.6
dwillMUFC said:
Please can someone produced a stock deodex of the JPO 2.2 rom ?
Thanks
Dan
Click to expand...
Click to collapse
Try Docs ROM v7.6 based od JPA or JPO! It is fully deodexed and zipaligned. You can also customize this ROM before aplying to the phone.

Is it really that hard to extract a theme from a Rom?

Hi!
I have been trying to extract the theme from this ROM
http://forum.xda-developers.com/showthread.php?t=869408
It looks awesome and I want to add some animations from a different ROM and use it with Darkys or Assonance for example but this seems to be much harder than I though unless someone has a quick and easy for dummies procedure for poor me that is.
It should be as easy as extracting the framework-res.apk, twframework-res.apk, mms.apk, bootanimation.zip and fonts as that is what is listed as being themed in the ROM thread. Then use the theme porter posted in the Android Themes section of XDA to inject them in your apk's, then manually change whatever didn't copy over.
rrrrramos said:
It should be as easy as extracting the framework-res.apk, twframework-res.apk, mms.apk, bootanimation.zip and fonts as that is what is listed as being themed in the ROM thread. Then use the theme porter posted in the Android Themes section of XDA to inject them in your apk's, then manually change whatever didn't copy over.
Click to expand...
Click to collapse
mmm sounds simple when you say it lol I will need to dig deep here it seems but that is a good post to point me towards the right path
I usually just extract the framework-res.apk and twframework-res.apk from the ROM I am taking the theme from and the ROM I want to put it in, then I copy the res/drawable-hdpi folder from the old apk into the new one. It is a quick/dirty method, and wont let you change font colors or add a circle battery mod to one without it, but I have never had problems with it before.
You also have to be sure it is compatible with the rom you are using. Some roms have different xml code behind and if you simply put the framework and tw framework in your rom you risk getting fc at boot and not getting past them.
Sent from my SAMSUNG-SGH-I897 using XDA App
Both are JPY Roms so I hope that is enough. I guess worst thing that could happen is having to flash again
shaolin95 said:
Both are JPY Roms so I hope that is enough. I guess worst thing that could happen is having to flash again
Click to expand...
Click to collapse
Try first with /system/framework/framework-res.apk and /system/framework/twframework-res.apk
I'm attaching a cwm zip file that has those files as found in Doc's 6.1 rom.
Just replace them with the files from whatever rom you want and keep that as a backup in case something goes wrong. It will save you from reflashing
If both are JPY roms then it shouldn't be an issue.
I tried doing what Ryukeima mentioned but I ended up with a Frankenstein of a theme as not all things from the them I wanted came over to the new one!
This is going to require some practice. That ROM has also some very nice Icons for Launcher Pro so is going to be another thing to look for..in fact I think I could be happy just getting those Icons.
shaolin95 said:
I tried doing what Ryukeima mentioned but I ended up with a Frankenstein of a theme as not all things from the them I wanted came over to the new one!
This is going to require some practice. That ROM has also some very nice Icons for Launcher Pro so is going to be another thing to look for..in fact I think I could be happy just getting those Icons.
Click to expand...
Click to collapse
Rip all the framework folder. Make a CWM zip and flash it over your ROM. It should work without problems. Then try to either apply animations on UOT kitchen or inject them with metamorph.
icezar1 said:
Rip all the framework folder. Make a CWM zip and flash it over your ROM. It should work without problems. Then try to either apply animations on UOT kitchen or inject them with metamorph.
Click to expand...
Click to collapse
Sorry for my noobness...Just trying to learn this stuff
So if i rip out all framework folders from one rom and manually replace them in another rom (like i did for kernel..replacing zimage file)...will it work?
Also, can anyone tell me how to make a CWM zip...i know there is a post for that on XDA but i am not able to find it...
viny2cool said:
Sorry for my noobness...Just trying to learn this stuff
So if i rip out all framework folders from one rom and manually replace them in another rom (like i did for kernel..replacing zimage file)...will it work?
Also, can anyone tell me how to make a CWM zip...i know there is a post for that on XDA but i am not able to find it...
Click to expand...
Click to collapse
To answer the first question, it won't straight out work. You have to add the images to the file 'framework-res.apk' in the 'drawable-hdpi' folder located within it. Different framework-res.apk's will differ from ROM to ROM, and will just FC or bootloop your phone if you use one that it doesn't like. That's why most themes have the ROM they will work with posted in the title. If it is the same base ROM (in the case of my phone, running Assonance, any JK3 theme will work), then it is as simple as drag & drop. But if it's between say Axura and Assonance, it would have to be manually changed as stated above, since there may be subtle differences in the framework.
As for the second question, here ya go
http://forum.xda-developers.com/showthread.php?t=717437
viny2cool said:
Sorry for my noobness...Just trying to learn this stuff
So if i rip out all framework folders from one rom and manually replace them in another rom (like i did for kernel..replacing zimage file)...will it work?
Also, can anyone tell me how to make a CWM zip...i know there is a post for that on XDA but i am not able to find it...
Click to expand...
Click to collapse
If the theme was made for JPY and the Rom you want to put it on is JPY, it should work. However, there are sometimes system apps which need to be installed with the theme. Easyest thing would be to rip it off, put it on your rom and see if it works. Experiment a bit, thats how you'll learn.
thanks and thanks.
Its really interesting to have a full control of your phone....so i am enjoying learning this stuff....tried using UOT kitchen but got errors...
I just want to modify notification bar...
I am on darky's 7.7...i will have to look for compatible theme
viny2cool said:
I am on darky's 7.7...i will have to look for compatible theme
Click to expand...
Click to collapse
There's plenty of jpy based themes in the i9000>theme section.
You could metamorph it if it doesn't require any xml edits... it looks like Marilyn img edits which could be taken foment that rom..
Sent from my SAMSUNG-SGH-I897 using XDA App
i have a question along these same lines. if one wanted to copy the notification pulldown from a different ROM|theme, how would you do so? im using Perception 9.5 which is built on JK3, but the Androdena theme is built on JPX files. all i want is the notification pulldown elements. can you just copy those image files over and go? i always see themers talking about 9.pngs and i was just wondering if they'd prohibit just a simple copy from one tw-framework to another.

[Q] ODEX ROM Mod

After trying several days to DEODEX an ODEXED ROM, I gave up because It's not working good for me, Bootloops, APK FC's and many more. So I decided to stick with ODEX Stock till someone does it properly. Im still new to this.
So since im on ODEX Stock -> I need to know whether its possible to -
* Mod PNG files inside APK's using Winzip
* Mod Framework-Res.APK to edit the XML "Bools" file to add CRT effect
* Use Deodexed APK's inside System/app folder
If the above is possible, are there things that I should keep in mind to not mess up the system ?
Thanks a lot guys !
Just download an already deodexed custom ROM. Most are.
Sent from my superior GT-N7000 using Tapatalk

[Request]Need my SystemUI deodexed

I made a thread in the Android General section, but it must not be getting attention from anyone capable of deodexing an apk, or just nobody wants to do it.
I probably should have created the thread here, so I'm linking to it here.
http://forum.xda-developers.com/showthread.php?t=1504082
Thanks all
bizzump
+10char
There's a few things we need to know first. Why only one apk? Why not deodex your whole ROM? Or if you have a copy of the whole ROM could your send it to me…..I can't deodex just the SystemUI when it has dependencies on the other functions within the ROM i.e. Framework.jar.
Or if you could explain maybe what your hoping to achieve I could probably sort somethingout for you a much simpler way.
What phone do you have and what apks are you using now? If you want to theme or want some sort of function from an apk that’s not yours but is odex version there may be a way of breaking it down to its classes (if I knew what ROM it was from and you had the entire framework folder from the ROM along with the odex file) and then I can decompile the apk you use (I think that’s what your trying to achieve correct?) from your ROM, then bring the classes and/or pngs across, rebuild, re-optimise (not odex btw) and send it back to you maintaining the signature for your apks in your ROM.
The phone and rom it is running are in my sig. I only want the SystemUI deodexed so that I can make the status bar transparent and still enjoy the slightly improved performance of an odex'ed rom, because this is a low-end phone so anything to increase performance helps. I have also tried using the AutoDeo Tool, but I don't know how to figure out what the correct custom bootclass path line input should be.
I asked for some help in that thread this morning and feel that I'm getting closer to having a deodexed SystemUI. I hate having posts in so many places about the same problem, but it seems like not a whole lot of people know how to do it, and even fewer want to explain such a complex process.
Hopefully I'll be able to deodex my entire rom.zip and just replace the systemui that's on my phone with the deodexed one and delete the .odex file and everything will be ok.
Sent from my SGH-T499 using XDA App

odexed vs deodexed which one should I download ?

Hi guys, im going to download 6.09.401.12 stock rom, but i found 2 versions odexed and deodexed, which one should i download ?
how does the stock rom come ? (odexed or deodexed ) ?
Hi guys, im going to download 6.09.401.12 stock rom, but i found 2 versions odexed and deodexed, which one should i download ?
Click to expand...
Click to collapse
If you want to be stock and use ota updates, better to go fo the odexed one. If you want to be able to customize your system files easily then choose deodexed.
how does the stock rom come ? (odexed or deodexed ) ?
Click to expand...
Click to collapse
Odexed
well thanks, @alray but if i get deodexed will i get better performance or better batery life ....
or i should stick with odexed ?
I don't think you can notice any real difference between odexed vs deodexed system but in theory an odexed system is supposed to be faster than deodexed. In an odexed system, all apps (apk) have their own .odex file pre-loaded in the dalvik cache. When you open an app, the system looks for the instructions directly from the appropriate .odex file resulting in faster app launch. In a deodexed system, everything is put back in the .apk file (no .odex file) so each time you launch an app, the system must look in the entire apk to find the instructions to launch. Afaik (I'm not a dev), the only reason why roms are deodexed is for easier customization (e.g themes), not for performance.

Categories

Resources