[Request]Need my SystemUI deodexed - Android Themes

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

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?

Themed System Apps not Working

I'm just trying a bit of theming myself, found plenty of guides on the topic however I have found one slight problem. No matter how I try to install my modded system apps, it always fails to install or doesn't change the original app at all.
I use APKmodder to do the editing if that affects anything, however the same issues arrise when using NinjaMorph on my NS.
I have tried multiple methods of getting the apps onto my device. Using adb push, creating a custom update.zip (which is all set out properly), NinjaMorph and even just the regular apk install, all of them either don't update the apps or are pushed to /system/apps but are not in the app launcher.
Any ideas? I have searched for hours about this and I haven't found anything to help me. Finally, if it helps I have tried with Launcher2.apk and Camera.apk.
Sent from my Nexus S using XDA App
Any ideas at all? I've never had much luck with Modding apps full stop. Could it be my copy of APKmodder?
Sent from my Nexus S using XDA App
is your rom deodexed?
I imagine so, running CM7 and I can't find any odex files in /system. I also read somewhere else that CM6 was deodexed so I figured it would be the same.
What difference would it make if it wasn't deodexed? Would you need to remove the odex or something?
Sent from my Nexus S
Jonathon Grigg said:
I imagine so, running CM7 and I can't find any odex files in /system. I also read somewhere else that CM6 was deodexed so I figured it would be the same.
What difference would it make if it wasn't deodexed? Would you need to remove the odex or something?
Sent from my Nexus S
Click to expand...
Click to collapse
CM7 is deoxed. It's probably because you're changing the apk, don't understand why you're playing with it but whatever.
No idea, my recommendation is to not mod it.
I am not familiar with the tools you're using, but I've heard that people have had trouble with them in the past.
The best tool for theming is Apkmanager 4.9 used along with Apktool 1.3.1.
However, if you're simply swapping some images, just do so in WinRAR or 7zip. No deed to decompile, resign anything. Just put your system apps in a Flashable zip in this order: Zip/system/framework/framework-res.apk and Zip/system/app/<your system apps> and drag and drop your images in the right locations.
Also, your zip must have a META-INF folder with the proper update script.
You can use any one of my themes as a template.
Hope this doesn't sound too convoluted.
Cheers.
Thanks for that, some changes are image based but there are also some XML based changes which I require, would the 7zip method work there?
And sorry if I'm being vague, but Im not near my computer now, but how would you use two tools in conjunction? Because I have used apktool before but not the other.
Thanks very much though! I am finally getting somewhere
Edit: thanks for the template offer, I will have a look and see what's different to my tests. Just one final question, is there any difference between an update-script and updater-script?
Double EDIT: For future reference if anyone finds this, there is a difference between update-script and updater-scripts. From Android 1.5 onwards, Google moved to updater-script's, leaving update-script's behind. Make sure you remember this!
Sent from my Nexus S
Jonathon Grigg said:
Thanks for that, some changes are image based but there are also some XML based changes which I require, would the 7zip method work there?
And sorry if I'm being vague, but Im not near my computer now, but how would you use two tools in conjunction? Because I have used apktool before but not the other.
Thanks very much though! I am finally getting somewhere
Edit: thanks for the template offer, I will have a look and see what's different to my tests. Just one final question, is there any difference between an update-script and updater-script?
Sent from my Nexus S
Click to expand...
Click to collapse
For xml changes you have to decompile/recompile the apk. Apkmanager is a GUI for apktool so you don't have to learn/remember the java commands.
If you download Apkmanager, it comes with Apktool 1.3.2, be sure to replace it with 1.3.1. It's way more stable and reliable.
Not sure about the difference between updater and update, maybe one has Amend scripts and one doesn't.
I am not a developer so can't say for sure , but the one person to ask would be ogdobber.
He literally knows everything about everything .
sonnysekhon said:
For xml changes you have to decompile/recompile the apk. Apkmanager is a GUI for apktool so you don't have to learn/remember the java commands.
If you download Apkmanager, it comes with Apktool 1.3.2, be sure to replace it with 1.3.1. It's way more stable and reliable.
Not sure about the difference between updater and update, maybe one has Amend scripts and one doesn't.
I am not a developer so can't say for sure , but the one person to ask would be ogdobber.
He literally knows everything about everything .
Click to expand...
Click to collapse
Ok thankyou very much for the help once again. I have finished school for the week so I should have time to test these methods out now.
If I need any further help I might drop ogdobber a note then.
Thanks for all your help!
Sent from my Nexus S

[Q] Making Minor Theme Modifications

Hello Devs,
I'm interested in making a few very minor modifications to the overall theme for my phone. I'm currently using FireFly, and although I like it for the most part, I'm not very fond of the current animation used to display dialogs.
I currently develop for Android, so I'm familiar with aspects of applying styles and themes to my own app as well as using styles from within the android.jar. I've read a few things about doing this, but I'm hoping there's a way to clear up some loose ends.
1. If I were to just open up and modify the main FireFly zip package, paricularly the files under /system/framework/framework-res.apk, would it be possible to to zip it back up, flash back to stock and then follow the usual procedure to install the Rom?
2. Is it possible to modify that .apk and just upload it directly to the my current rom?
3. Do I need to be concerned with apk signing?
Thanks to everyone in advance,
Jeremiah
Im not a moderator but I believe this should be in themes section or Q&A. =/
From what Ive done. You can modify the zip packages. Best results I'v had is using 7zip to modify them internally. Ive only modified images in them, and my little experience you have to keep the same amount of images it had from the beginning. Im not sure if that is changed by modifying the xml's or something else.
prbassplayer said:
Im not a moderator but I believe this should be in themes section or Q&A. =/
From what Ive done. You can modify the zip packages. Best results I'v had is using 7zip to modify them internally. Ive only modified images in them, and my little experience you have to keep the same amount of images it had from the beginning. Im not sure if that is changed by modifying the xml's or something else.
Click to expand...
Click to collapse
Damn it... I had a feeling I missed a section this would be belong more in, my eyes glazed right past the words Theme in the App/Theme section. A mod is more than welcome to move it, sorry for the mistake.
Thanks for the advice though
I haven't done any themeing myself mainly because I'm too lazy, but from what I understand based off what other people who do theme have said to modify the number of images you need to edit the corresponding xml file.
http://forum.xda-developers.com/showthread.php?t=1227179
Might help alleviate some of your worries about signed apks and what not.
Many of the colors are handles by XML. You will need to decomplie apks to modify xml files and then recompile them again.
You can use APK Manager to decomplie and recomple the APK packages.
Also, go through this thread.
PS: Request mods to move this thread to Q&A section.
Takes time to do it. I used to do a lot of themeing to roms but had to hang it up. You have to know what picture files to change and then what each line is in each .XML.
IlluminatedOne said:
Many of the colors are handles by XML. You will need to decomplie apks to modify xml files and then recompile them again.
You can use APK Manager to decomplie and recomple the APK packages.
Also, go through this thread.
PS: Request mods to move this thread to Q&A section.
Click to expand...
Click to collapse
Awesome, thanks so much for this, exactly the information I was looking for.

[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

[Q] soution to running theme on deodex

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

Categories

Resources