[Q] soution to running theme on deodex - Nexus 5 Developer Discussion [Developers Only]

HI devs this is regarding a dark theme I am making for the n5 found here http://forum.xda-developers.com/goo...-material-black-theme-lollipop-t2958812/page9
so heres the probblem i am facing ... I started theming on a stock based odexed rom ... xtrasmooth to be exact and i theme by decompiling the apks modding and then recompiling the current build works fine on alot of odexed roms and it all cool there
but i also want this mod to run on deodexed roms ... this is where i have the problem
as of now i cant find a way to deodex lollipop apks trust me i searched but none of them seem to work I understand the problem with deodex
I managed to get a build to boot on slim but i did that by decompiling the slim apks comparing the xmls and replacing the values this works but is very time consuming and it runs only on slim and not anyother deodexed roms
Im new to themeing so I dont really know how to figure this out myself , thats why im here
BUUUUT I have come up with some possible approachees
the problem as we understand it
quoting @Incredible_Culp from this page
Quote:
Originally Posted by Incredible_Culp
eh, doesnt matter since it didnt work ha
im starting to think that to apply your theme on deodex roms, you would have to manually grab whatever deodex rom you'd like, grab its system, settings, framework, etc apk's and modify them specifically for that rom itself..
i think its going to be very difficult trying to 'universify' (not a word, i know lol) custom themes to work on both odex and deodex rom's on lollipop..
lollipop is so different setting things up from kitkat, that every apk will be totally different depending on what rom youre using (it seems)
I think (pertaining to lollipop) it's either make a theme for deodex roms or odex roms.. or even build both separately...
i could be TOTALLY WRONG on this idea.. but everything that i did on kitkat, is not working on lollipop, and this idea is what i came up with...
i think this is a valid hypothesis because terminus rom has its own theme specifically made for it/made for a certain date.. it wont boot/work on newer builds so the theme has to be updated to work with its newer rom.. and terminus rom is deodex.. same thing goes with the new Elix-R theme.. its specifically made for stock based roms which are odex roms
Again, i could be wrong. But i think you (or I) will have to make separate theme builds.. one for odex and one for deodex..
take this with a grain of salt lol -- im going to be doing more testing tonight to get more of a valid conclusion.
Click to expand...
Click to collapse
AND THE POSSIBLE APPROACHES
quoting myslef from this page
Quote:
Originally Posted by androidous
Yes like I said before from looks lollipop is wayy different to kitkat......
yes bro you're right .... I dont think its possible to univerify (lol) a single build ite either odex or deodex or both seperately
Approaches
1) as mentoined before two seperate builds
2) build for odex and then deodex it - by the looks this seems the easiest but I CANT FIND A SINGLE TUTORIAL ON THE INTERNET TO DEODEX LOLLIPOP APPS :/ understandable cause its a fairly very new OS
3) what ive been doing to get a deodexed build working is manually decompile the deodex and copy paste the xml values from odex to maintain consistancy rather then having one colour on odex and the other on deod ..... this seems to work well but is very time consuming :/ ILL do this afte exams if it our only hope <----- this method i tested on slim and works i used http://www.diffnow.com/ to manuallyy compare the xmls its a little more efficient than rremebering all the changes
well thats what ive figured out on how to get a deodexed build.......
hope we can fix soon
Click to expand...
Click to collapse
so what i need to know is Are my approaches the only way ? or is there some other way i dont know of.... is it practical to so
and
is there a way to universiy the deodex build as in make a build to run on all deodexed custom roms or should a build be made for each seperately ?
thanks
andoidous

No.
How's that for a detailed answer?
Basically, if your theming includes changing XML or adding or removing resources, you have to decompile the apk's. If your theming just involves changing the icons, you're better off looking at something that can inject those icons, like the Ultimate Flashing Tool.
I'm sure that Smali/baksmali will be updated soon to be Lollipop-compatible. We're all waiting for it!

You are thinking about it wrong and...... being lazy. Sorry. But Linux in general is about passing along knowledge and teaching others. In the spirit of this I encourage you to learn how to build from source. (what site has that kind of information you can learn to do that?...) You can modify and play around all you want to with the apks BEFORE its compiled and not wait for JF to do the hard work.
You'll learn a lot of things along the way and educate yourself better in understanding your end goal.

The question about development has been asked and answered.
Feel free to check out the XDA University
Thread closed

Related

[PRJ] JI2 Deodexed files *NOT FLASHABLE*

WARNING - THIS IS NOT A FLASHABLE ROM, DO NOT TRY IT, DON'T EVEN ASK ABOUT IT, I'M JUST GOING TO IGNORE YOU.
Removed, seemed to cause problems for some people
​
Ok, with that out of the way, in my continuing quest to perfect the new JI2 leaked rom for my own personal taste, I went ahead and deodexed the ROM, and thought I'd share my work for any other devs that want to package an update.zip with these. I have no idea how to add the new modem.bin to a flashable.zip, so I'm not even going to try packaging one.
FYI, this was made from a straight adb pull of /system and then deodexing the ROM using Danesh's fantastic auto-deodexer. Took a few tries to get the right bootclasspath for several files, so I figure I'll save other devs the headache and just post my work.
HOWEVER, this was done after I already rooted, installed busybox, and modified a few things to suit my tastes.
My modifications were:
1) Change lockscreen to Vanilla 2.1 lockscreen
2) modify framework-res.apk to support my vertical, accurate battery mod (http://forum.xda-developers.com/showthread.php?t=758797)
3) modify framework-res.apk and twframework-res.apk to use the default (non-glossy, see attached screenshot) touchwize drawable elements.
4) Edited build.prop to fix market not displaying all apps error
I'm sorry to anyone that wants a totally stock version of the files, but I've reached my boredom level for the day and don't feel like going back and deodexing the ROM again, and besides, the framework-res.apk and twframework-res.apk can just be pulled from any unmodified install and replaced without any issue, though the android.policy.jar will need to be deodexed again if you want the touchwiz lockscreen back.
UPDATE 1 (9/17/2010)
OK, well, I had some spare time, so I let it deodex from stock again while I was afk, so I'm attaching a zip file with ONLY the stock android.policy.jar (original twiz lockscreen) and stock framework-res.apk and twframework-res.apk.
Anyway, have fun, and please just give me credit if you use these in your own mod.
Cheers,
=)
~ Jocelyn
Well its fun to play with. I like the battery icon alot thanks
Sent from my vibrant
Thanks for this!
lol i was actually bugging eugene for the JI2
hahahah
scrizz said:
Thanks for this!
lol i was actually bugging eugene for the JI2
hahahah
Click to expand...
Click to collapse
I uploaded it ( Fully Build ) did you not get it?

[DEV ADVICE NEEDED] Considering Casual ROM-building

Let me explain what I mean by "casual". I've come to find that I always end up removing stuff from custom ROMs that I don't like/don't use and end up with something much much better.
With NFX's permission (should he give it) I'd like to make a custom ROM based on my slimmed down approach, one that left me with tons of free space, lots of free RAM, great battery life, and smooth operation. I'm looking at the ROM right now, and I'm wondering; is there anything special I need to know about adding my own apks to be preinstalled with the ROM? I'd like to add Fancy Widget and LauncherPro since I stopped using the Sense Launcher. My ideal setup is one where the app is recognized by the market so that it can be updated as and when needed. Also, what can I do to ensure that LauncherPro is the default launcher?
I'd love to get into this. I'm not big on code editing but have no issue with doing so when needed, can anyone nudge me in the right direction?
Update #1: My first attempt failed . I was using Nfinite's Odexed NFX Rom. I tried to just change around the apps in the data/app/ folder. Also attempted to delete all the HTC Sense Widgets beforehand. (I do this after install, but I wanted to do it before.) Should I not be working with an odexed ROM, and is there some sort of signature process that I need to be using?
Pretty sure you need deodexed.
CM6 Android 2.2.1 Froyo Darchstar
Radio 2.42.01.04.27
*Bite me Sprint!
Search for avabox on these forums. It has the zip signing tool to make the zip flashable after editing it. And many other helpful tools
Sent from my HERO200 using XDA App
davec1234 said:
Pretty sure you need deodexed.
CM6 Android 2.2.1 Froyo Darchstar
Radio 2.42.01.04.27
*Bite me Sprint!
Click to expand...
Click to collapse
danaff37 said:
Search for avabox on these forums. It has the zip signing tool to make the zip flashable after editing it. And many other helpful tools
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Thanks guys! I'll give this a shot and see what happens
LiquidSolstice said:
Let me explain what I mean by "casual". I've come to find that I always end up removing stuff from custom ROMs that I don't like/don't use and end up with something much much better.
With NFX's permission (should he give it) I'd like to make a custom ROM based on my slimmed down approach, one that left me with tons of free space, lots of free RAM, great battery life, and smooth operation. I'm looking at the ROM right now, and I'm wondering; is there anything special I need to know about adding my own apks to be preinstalled with the ROM? I'd like to add Fancy Widget and LauncherPro since I stopped using the Sense Launcher. My ideal setup is one where the app is recognized by the market so that it can be updated as and when needed. Also, what can I do to ensure that LauncherPro is the default launcher?
I'd love to get into this. I'm not big on code editing but have no issue with doing so when needed, can anyone nudge me in the right direction?
Update #1: My first attempt failed . I was using Nfinite's Odexed NFX Rom. I tried to just change around the apps in the data/app/ folder. Also attempted to delete all the HTC Sense Widgets beforehand. (I do this after install, but I wanted to do it before.) Should I not be working with an odexed ROM, and is there some sort of signature process that I need to be using?
Click to expand...
Click to collapse
Like some else said you'll need the deodexed rom. Also if your altering the rom for personal purposes there is no need to ask nfinite... if you post the rom then you'll need to ask and give props.
Next you need some kind of rom manager tools so that you can sign and zip align your apk and have a flashable after you make your changes. maybe read threw the rom cooking guide on the hero wiki page also.
You most definitely what an odexed ROM. Its been a while since I messed with it, but i think you will want to place apps you want updated in /data/app. As for the default launcher, it should ask which one you want as default when you first boot into the ROM.
unCoRrUpTeD said:
You most definitely what an odexed ROM. Its been a while since I messed with it, but i think you will want to place apps you want updated in /data/app. As for the default launcher, it should ask which one you want as default when you first boot into the ROM.
Click to expand...
Click to collapse
@[email protected] Confusion. A few people above have said I need deodexed?
The only problem you will run into with odexed vs deodexed is changes to any jar files within an apk on system. Only really applies to framework level edits. Things like removing haptic or rotary lock screen or battery percentage mods, etc.
Sent from my HERO200 using XDA App
LiquidSolstice said:
@[email protected] Confusion. A few people above have said I need deodexed?
Click to expand...
Click to collapse
I meant to type deodexed. I was so tired and doing ten things at once. Didn't even reread what I was posting.
danaff37 said:
The only problem you will run into with odexed vs deodexed is changes to any jar files within an apk on system. Only really applies to framework level edits. Things like removing haptic or rotary lock screen or battery percentage mods, etc.
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Ah. Nah, the only thing I'd love to experiment with is to swap out images and png files. The functionality of the ROM and its inner workings are fine . Assuming that I can remove all the HTC widgets and a few of the apps I won't be using (using LP, so Sense Widgets are unneeded), and that I can set a default launcher, and perhaps mess around with all the status bar icons/button images, that's all I want to do
LiquidSolstice said:
@[email protected] Confusion. A few people above have said I need deodexed?
Click to expand...
Click to collapse
You will need deodexed
You can always re-Odex it afterwards.
I assume you've realized this, as you have a stable odexed ROM out, but I'm putting it up for reference's sake. Don't want someone reading the thread and getting the wrong idea.

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.

[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

[HELP] theming stock rom to look like CM

greetings,
newbie just want to learn, i dont know if this is in the right place ...
i am former users of G-FIT CM 7 by tj_style, and now switched to Lenovo S890 which have Mediatek MT6577 chipset. many variants of the chipset, and the source code is not released by vendors, so few developers really developing this phone. and now I missed the CM look and feel.
my question:
1. can stock rom (or lewa os) modified to look like CM?
2. I've tried to use UOT Kitchen to theming SystemUI, but didnt give any different, only change icon.
(I uploaded the framework-res.apk, lenovosystemui.apk, lenovo-res.apk (to replace twframework)
targets / objectives :
1. change the look of the stock-rom / lewa rom (only two of these are available) to look like CM.
2. add reboot, recovery when the power button is pressed (see some tutorials to change framework-res.apk, but stuck in the "where to put this, where to put that, because the tutorial that I found almost entirely specific to a particular device, and I do not understand patterns / rules in android)
3. use some CM applications (calendar, dialer, etc.), for this, if it could be done with just replace /system/framework and /system/app from CM to Stock Rom?
information relating to the above matters are expected (links, info, guide, hopefully someone will give direct way of how to accomplish my objectives above).
thank you,
jacknb1ack
UP UP
please anyone ?
jacknb1ack said:
2. add reboot, recovery when the power button is pressed (see some tutorials to change framework-res.apk, but stuck in the "where to put this, where to put that, because the tutorial that I found almost entirely specific to a particular device
Click to expand...
Click to collapse
At lot of guides are so unless you can find one specific to your device you need to try and figure it out, but most apks are similar in regards to how you edit them so just decompile a few and examine them and you'll get a general idea. My SystemUI.apk and yours for example will be different, but certain xmls from each are going to be quite similar. Lot's of info and links here - http://forum.xda-developers.com/showthread.php?t=2069287
XperienceD said:
At lot of guides are so unless you can find one specific to your device you need to try and figure it out, but most apks are similar in regards to how you edit them so just decompile a few and examine them and you'll get a general idea. My SystemUI.apk and yours for example will be different, but certain xmls from each are going to be quite similar. Lot's of info and links here - http://forum.xda-developers.com/showthread.php?t=2069287
Click to expand...
Click to collapse
thanks ... 1 more question, if i want to learn by comparing two systemUI.apk from different rom, is it okay to install both framework-res.apk in apktools ?
ex : i want to try comparing Lewa systemUI and stock SystemUI, i need to install framework-res.apk first to decompile systemui.apk (am i right in this or it is actually not needed ? )
thanks,
jacknb1ack
You can, but it will overwrite the first one, install you're own first and just use that, if you have an issue trying to decompile another from another Phone then you know you need to install the resources. This is why I love Virtuous Ten, as you can install multiple resources.
Sent from my C6603 using xda premium
wow, i didnt know there is tools like that, thanks again master... i will try, lewa os just released new stable version, will try messing this one xD.
once again, thanks a lot
Sent from my Lenovo S890 using Tapatalk 2

Categories

Resources