[HELP] theming stock rom to look like CM - Android Themes

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

Related

Toggle Buttons in Statusbar

Hi, I've searched thoroughly through this and other forums, but this topic doesn't seem to interest many people...and even when there are questions, answers are often imprecise and evasive.
I'd like to know how to modify the toggle buttons in my statusbar. I want to remove the orientation switch (who uses it, seriously?), and add (for a total of 6 buttons), toggle data and 2G/3G switch...is that possible? Yes it is, it's Android
But how to do it? Is there a guide or even some files ready for flashing? I'd like to get rid of Extended Controls once and for all...
Thanks in advance, looking forward for an answer
Unfortunately it's not possible to edit those buttons on the Stock LG ROM.
remczar69 said:
Unfortunately it's not possible to edit those buttons on the Stock LG ROM.
Click to expand...
Click to collapse
Another good reason to switch to a cooked ROM
Anyway, can you post anything you are willing to (links to guides, files...) for doing this on other ROMs? And maybe a list of ROMs that allow this operation (or, at least, the characteristic they need to have, for example a certain kernel or other stuff).
Thanks in advance
I know for sure that CM 7 has that possibility. I use CM7 it is pretty stable for me.
it it possible to hide the buttons?
(using modaco r19)
thx
lixeira said:
it it possible to hide the buttons?
(using modaco r19)
thx
Click to expand...
Click to collapse
cook rom without buttons, you can choose in kitchen
75markus said:
cook rom without buttons, you can choose in kitchen
Click to expand...
Click to collapse
i know ... dont have modaco premium account
you can use apk manager to decompile the framework-res.apk file
then modify a file called status_bar_expanded.xml (found in /res/layout)
then compile it
i have made the edits to the files, but i cant get it do compile again
(attached the xml file, rename the file back to .xml)
Mjuksel said:
you can use apk manager to decompile the framework-res.apk file
then modify a file called status_bar_expanded.xml (found in /res/layout)
then compile it
i have made the edits to the files, but i cant get it do compile again
(attached the xml file, rename the file back to .xml)
Click to expand...
Click to collapse
Not that skilled yet still learning ... but thanks
i'm not that skilled either so don't mind it
i just can't get it to recompile

[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.

[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

Accurate Battery Mod for THS Build 6.5

THS Build 6.5 is now out, and I wasn't sure if the accurate battery for build6.0/6.1 was going to work since the SystemUI.apks have different file sizes.
Therefore, I decided to make one from scratch.
I just took gunnermike's mod and applied it to THS 6.5's SystemUI.apk. so all the credit goes to him
This is mostly for myself, but I decided to share it since others might find it useful too.
Enjoy!
Flashed it, works great. Thanks!
Would you explain how you did this please? I'm sure there's a lot of us who are interested.
AuroEdge said:
Would you explain how you did this please? I'm sure there's a lot of us who are interested.
Click to expand...
Click to collapse
Sure.. I'll list the general steps, but obviously it's too much to explain every detail, so you must know a bit about how to use ADB, Android SDK, etc..
1. Pull /system/framework/framework-res.apk & /system/app/SystemUI.apk from your phone or extract from the THS6.5 .zip
2. Use APKTool to decompile framework-res.apk (apktool if framework-res.apk)
3. Use APKManager to decompile SystemUI.apk
4. Replace the stat_sys_battery.xml & stat_sys_battery_charge.xml in /res/drawable/ with the "accurate" versions (You can do that by reusing previous versions or get it via UT Kitchen)
5. Replace/add the battery pngs files in /res/drawable-hdpi
6. Compile using APKManager as system apk
7. Create flashable .zip file for use with CWM. You can do this by reusing an existing version and just opening the .zip and replacing some files..
Well.. hope that gives you an idea.. You can find everything online right here in XDA Developers forums or via Google.. That's how I learned too..
Many thanks dude; just what the Doktor ordered!
This may not be the appropriate place to ask, but could somebody compile a stock battery that is flashable? The Mesmerize versions of THS come with a accurate battery mod preinstalled, but I'd much rather have the stock battery.
nograsswillgrow said:
This may not be the appropriate place to ask, but could somebody compile a stock battery that is flashable? The Mesmerize versions of THS come with a accurate battery mod preinstalled, but I'd much rather have the stock battery.
Click to expand...
Click to collapse
I can make one for you when I have time Monday..
Don't have the necessary tools here at home
neozen21 said:
I can make one for you when I have time Monday..
Don't have the necessary tools here at home
Click to expand...
Click to collapse
That would be awesome, thank you!
Edit: actually you don't have to worry about it if you don't want, someone over at Rootzwiki put one up last night. Thank you anyway!
nograsswillgrow said:
That would be awesome, thank you!
Edit: actually you don't have to worry about it if you don't want, someone over at Rootzwiki put one up last night. Thank you anyway!
Click to expand...
Click to collapse
Lol.. I started already (but haven't finished).. I see now why you don't like the accurate battery.. it's an Android!
I see that post on Rootzwiki, it should have what you are looking for..

[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