Related
I am trying to use percentage icons with CM nightly build. I tried to unzip it and replace icons and xml battery files but I don't get any battery icons to show up on my status bar. I was able to make my own theme by replacing icons and image files but I wan percentage battery icons. I tryied to change xml files in CM source code and recompiled it and then I gor random icons instead of my battery icons. I also tried to replace all images but then would tell me that images are missing something and will stop compile. Could somone point me the right direction on how to mod framework-res to include percentage icons
http://forum.xda-developers.com/showthread.php?t=724778
I tried it and does not work. The kitchen does wird stuff to my framework and makes the phone reboot
tritron777 said:
I am trying to use percentage icons with CM nightly build. I tried to unzip it and replace icons and xml battery files but I don't get any battery icons to show up on my status bar. I was able to make my own theme by replacing icons and image files but I wan percentage battery icons. I tryied to change xml files in CM source code and recompiled it and then I gor random icons instead of my battery icons. I also tried to replace all images but then would tell me that images are missing something and will stop compile. Could somone point me the right direction on how to mod framework-res to include percentage icons
Click to expand...
Click to collapse
In addition to changing the XML files in the /res/drawable folder, specifically:
stat_sys_battery_charge.xml
zzz_stat_sys_battery_1.xml
stat_sys_battery.xml
And adding the new png file to /res/drawable-hdpi
You MUST make sure you add resource IDs for each of your newly added png files to the /res/values/public.xml file. Otherwise, the XML has no way of referencing the new images by ID, and the likely reason why you were getting random imagines, rather than the new ones specified.
If you are manually editing and recompiling, you can then just grab the above referenced XML files and the 'resources.arsc' file from the newly built apk file and drop them in your original.
JsChiSurf said:
In addition to changing the XML files in the /res/drawable folder, specifically:
stat_sys_battery_charge.xml
zzz_stat_sys_battery_1.xml
stat_sys_battery.xml
And adding the new png file to /res/drawable-hdpi
You MUST make sure you add resource IDs for each of your newly added png files to the /res/values/public.xml file. Otherwise, the XML has no way of referencing the new images by ID, and the likely reason why you were getting random imagines, rather than the new ones specified.
If you are manually editing and recompiling, you can then just grab the above referenced XML files and the 'resources.arsc' file from the newly built apk file and drop them in your original.
Click to expand...
Click to collapse
What's the easiest way to get the resource ID's for the new images?
HeyItsLou said:
What's the easiest way to get the resource ID's for the new images?
Click to expand...
Click to collapse
Decompile an existing super battery framwork-res and pull the IDs from it's public.xml file.
You do not need to put in the ID's. You can just edit the xml files add the pics to your hdpi folder and recompile, apkmanager will make the ID's by itself.
rujelus22 said:
You do not need to put in the ID's. You can just edit the xml files add the pics to your hdpi folder and recompile, apkmanager will make the ID's by itself.
Click to expand...
Click to collapse
I don't use apk manager but I do use apktool which apk manager uses and I can verify this to work 100%
If you open say com.htc.resources.apk with an archive manager like 7zip for windows or archive manager if you're using linux and drop in your edited png's then use apktool to decompile the framework it should create all of the resource ID's in the public.xml file for you. At this point if you have any xml edits or smali edits to do complete those then recompile. Now just extract the "res" folder and the "resources" files from the compiled apk and using the same archive manager from above to open the original com.htc.resources.apk and replace the files you should be good to go.
IS there a way to autogenerate image ids?
tritron777 said:
IS there a way to autogenerate image ids?
Click to expand...
Click to collapse
Not that I'm aware of however I'm no pro themer. As far as I know you have to manually edit the xml's in the drawable directory by creating the strings that point to the drawable hdpi images you created or it won't work.
if you use http://circle.glx.nl/ you won't need to do the manual xml updating. i use this kitchen for my cm6 nightly ROM.
extract the framework.apk file from the cm6nightly that you are using (current nightly builds have had changes to the framework...thus if you flash tonight you may need to redo the process..perhaps you can just dump the updated framework and resign the zip..i just go back to the kitchen and recook) anyway..
after extract
go to kitchen
set ur desired options
upload the framework file
wait
download the UOTxxx.zip file
put on root of evo sdcard
reboot into recovery
flash the UOT zip file
enjoy
but then, that's the automated cheater way.
I suppose if you don't know what you're doing, kitchens are great. For non noobs who don't want / need to use (the whole point of the thread as the op had problems), doing it manually makes sure it is done right without making your framework all screwy.
Sent from my HTC Evo
JsChiSurf said:
I suppose if you don't know what you're doing, kitchens are great. For non noobs who don't want / need to use (the whole point of the thread as the op had problems), doing it manually makes sure it is done right without making your framework all screwy.
Sent from my HTC Evo
Click to expand...
Click to collapse
I completely agree. I rather learn how to do something the manual way it just empowers you for any future mods you may want to do. Not to mention if you rely on one resource and all of a sudden that resource such as a kitchen goes away you're out of luck.
HeyItsLou said:
I completely agree. I rather learn how to do something the manual way it just empowers you for any future mods you may want to do. Not to mention if you rely on one resource and all of a sudden that resource such as a kitchen goes away you're out of luck.
Click to expand...
Click to collapse
Completely agree, Learning how to do something is always better.
Hello dear Forum...
First off I have to apologize if I missed something in a sticky,
since I'm new to the forum and the hole rooting/customizing on my GT I-9000.
I've successfully rooted my phone and I'm running Darky_v10_RC5_Final now.
Could anyone provide a link or an explanation how to:
# set own icons for apps
# set lockscreen (as its said there are 4 different ones on this ROM; plus changing the lockscreen image in the settings is not quite working for me)
# setting another theme - if not too complicated.
many thanks in advance - seems to be a truly nice community!
reimi said:
I've successfully rooted my phone and I'm running Darky_v10_RC5_Final now.
Click to expand...
Click to collapse
Final ?? When did it come out ?? Didn't find on Darky's website.
Sorry , wasn't logged in.
GT-I9000 said:
Final ?? When did it come out ?? Didn't find on Darky's website.
Click to expand...
Click to collapse
its the files name, I downloaded from somewhere in this thread:
http://forum.xda-developers.com/showthread.php?t=814091
reimi said:
Hello dear Forum...
First off I have to apologize if I missed something in a sticky,
since I'm new to the forum and the hole rooting/customizing on my GT I-9000.
I've successfully rooted my phone and I'm running Darky_v10_RC5_Final now.
Could anyone provide a link or an explanation how to:
# set own icons for apps
# set lockscreen (as its said there are 4 different ones on this ROM; plus changing the lockscreen image in the settings is not quite working for me)
# setting another theme - if not too complicated.
many thanks in advance - seems to be a truly nice community!
Click to expand...
Click to collapse
To change the icon in an apk, you need to get the apk, open it with winrar and go to drawable-hdpi
There are pngs there. Normally, the icon one is called icon.png, but on some apps, it has a different name, for example ic_launcher_phone.png
You edit it and substitute it.
Then you push the apk back into your phone into /system/app in case it's a system app or you just copy the apk to your sdcard and install it.
Lockscreen background may not work with some specific lockscreens.
For a theme, to make one you'd need to edit the pngs in framework-res.apk/drawable-hdpi (opening it with winrar) and then push it back. That's for changing icons and part of the appearance, but to change text colours and other things you'd need to decompile the apk and edit some xml's.
To apply a theme you just need the zip of the theme, copy it into your sdcard and install it through cwm.
coldflid said:
To change the icon in an apk, you need to get the apk, open it with winrar and go to drawable-hdpi
There are pngs there. Normally, the icon one is called icon.png, but on some apps, it has a different name, for example ic_launcher_phone.png
You edit it and substitute it.
Then you push the apk back into your phone into /system/app in case it's a system app or you just copy the apk to your sdcard and install it.
Lockscreen background may not work with some specific lockscreens.
For a theme, to make one you'd need to edit the pngs in framework-res.apk/drawable-hdpi (opening it with winrar) and then push it back. That's for changing icons and part of the appearance, but to change text colours and other things you'd need to decompile the apk and edit some xml's.
To apply a theme you just need the zip of the theme, copy it into your sdcard and install it through cwm.
Click to expand...
Click to collapse
thank you for the answer!
Is there no way to change the icons of stock applications?
And how may I change the lockscreen?
could you please give me a link, or something how to apply themes via cwm - to be honest I don't even know what cwm is.
sorry for all the questions - many thanks in advance!
reimi said:
thank you for the answer!
Is there no way to change the icons of stock applications?
And how may I change the lockscreen?
could you please give me a link, or something how to apply themes via cwm - to be honest I don't even know what cwm is.
sorry for all the questions - many thanks in advance!
Click to expand...
Click to collapse
Sorry, had lost track of this thread.
You can change the icon of stock applications in same way, but you must be rooted since they are located in system/app
For the lockscreen, to theme the glass lockscreen, you need to edit the pngs in framework-res.apk/res/drawable-hdpi named zzz_unlock_arrow_0000.png up to zzz_unlock_arrow_0009.png and the zzz_unlock_blackbg.9.png and zzz_blackbg_dual.9.png
To theme puzzle lockscreen:
edit zzz_unlock_puzzle_noti_icon_unlock and zzz_unlock_puzzle_noti_icon_unlock_fit
For android lockscreen (in framework-res.apk/res/drawable-land-hdpi):
ic_jog_dial_unlock
ic_jog_dial_sound on
ic_jog_dial_sound off
For epic unlock on framework-res.apk/res/drawable-hdpi
mod zz_unlock_lockbg_press
mod zz_unlock_lockbg_press
In case you want to get a stock framework and get aosp lockscreen:
To get aosp lockscreen you'd need to decompile classes.dex in android.policy.jar and edit a few files.
For that, i use ubuntu.
You open android.policy.jar and extract classes.dex
Then get baksmali and smali and place them in the same location as classes.dex
Open up a terminal and type cd and the location
Example:
cd /home/coldflid/Desktop
Then type java -jar baksmali-1.2.5.jar classes.dex
(if you've got another version of bajsmali change the 1.2.5 for the version you have).
You can type java -jar baksmali-1.2.5.jar classes.dex -o *
Where * is the name of the folder where you want classes.dex to be decompiled
Then you'd need to mod LockPatternKeyGuardView.smali or replace it with a modded one.
Then type in terminal
Then type java -jar smali-1.2.5.jar *
Where * is the name of the folder where classes.dex was decompiled
out.dex should be generated, rename it to classes.dex and copy it to android.policy.jar (replace the old one).
Then use root explorer to copy it to system/framework
coldflid said:
Sorry, had lost track of this thread.
You can change the icon of stock applications in same way, but you must be rooted since they are located in system/app
For the lockscreen, to theme...
Click to expand...
Click to collapse
thank you for the answer!
I'm currently using LockBot Pro to change the locksreen and its background, works fine for me.
I'll try to change the stock app icons as soon as I have time. Thanks!
coldflid said:
Sorry, had lost track of this thread.
You can change the icon of stock applications in same way, but you must be rooted since they are located in system/app...
Click to expand...
Click to collapse
I'm currently trying to substitute the stock app icons.
My question is, how I can find out, which of all those images is used for the menu and how can I browse the folders on my pc, which I can browse on my phone via root explorer...
thanks for the answer!
Hi there.
Is there any chance to replace stock dialerpad icons on gingerbread with others of mine? I mean,is there a specific directory where I can have a go at replacing them with root explorer or am I supposed to mess up it all???
thanks in advance
If you have deodexed rom, just drop attached png to System/app/ DialerTabActivity.apk / drawable-hdpi folder.
nedooo said:
If you have deodexed rom, just drop attached png to System/app/ DialerTabActivity.apk / drawable-hdpi folder.
Click to expand...
Click to collapse
thanks a lot nedoo,but maybe I just couldn't explain myself very well
I mean,since I fancy "buuf theme" more than any other theme and since adw.buuf.theme can't buuf system icons,I'd like to change dialerpad icons just to pop up somethin' like this:
is that possible to do all by myself???
I'd like to change icons in system/app/DialerTabActivity.apk/res/drawable.hdpi can I simply replacle icons or I gotta modify xml file too??????
Sent from my GT-I9000 using XDA Premium App
nemello said:
I'd like to change icons in system/app/DialerTabActivity.apk/res/drawable.hdpi can I simply replacle icons or I gotta modify xml file too??????
Sent from my GT-I9000 using XDA Premium App
Click to expand...
Click to collapse
You can drop in different images, yes... but don't expect it to decompile or recompile properly if you modify or replace the ".9" PNG's. To edit the ".9" PNG's properly, you have to decompile the normal framework/app, change the PNG and XML, then recompile.
XGX5309 said:
You can drop in different images, yes... but don't expect it to decompile or recompile properly if you modify or replace the ".9" PNG's. To edit the ".9" PNG's properly, you have to decompile the normal framework/app, change the PNG and XML, then recompile.
Click to expand...
Click to collapse
.9 png's??
for example,in drawable.hdpi folder I can see call_contacts_icon_normal.png,I'd like to change it with another one,can I do that???
nemello said:
.9 png's??
for example,in drawable.hdpi folder I can see call_contacts_icon_normal.png,I'd like to change it with another one,can I do that???
Click to expand...
Click to collapse
Yes if you are on deodexed ROM. .9.png is not normal png it is compiled png with dots (invisible when compiled, visible when decompiled)wich are used as guides for streaching graphics.
T gain all the elements you showed on that photo you need to modify Phone.apk,
framework-res.apk, SystemUI.apk.
So do a beckup and experiment
That's not easy at all, more to say it's rather hard, but...
Hello Everyone,
as the Title says. We like to mod the statusbar of our Gnex with an backround image.
I tried and searched long to find out how to and finally I found this:
http://forum.xda-developers.com/showthread.php?t=1814441
and I can say this works, but you have to follow some steps of mine, so this really really works.
At first I will give credits to powerpoint45, he is the man, who has done all this getting to work. Please hit his thanks-button!!!!
Ok, now we start:
1. Step is, to download the files of powerpoint45 thread
2. Step is to follow his guide, but this is new: use the framework-res of your rom you like to use
So first install the framework-res.apk of your ROM and then install the SystemUI.apk of your ROM
When the SystemUI is successfully decompiled, there you can see a folder "SystemUI"
Go into this folder and then go into the res folder and then into the "drawable-xhdpi" folder
Here you will find a file called "status_bar_bg_tile", this file you can change out with a png you want, but the file must have the SAME name. The size of the png should be 720x30 (CREDITS HERE TO BANKS)
When you replaced this file with the one of your choice , you have to go to the folder /res/values
Here you pick out the drawable.xml
Open with notepad++
edit line 5 into this: @drawable/status_bar_bg_tile
Save the file
Now, make the way Powerpoint45 recompiles, but before you have to copy the META_INF and manifest.xml from the ORIGINAL SystemUI.apk into the decompiled SystemUI folder.
It is possible that you will not see an builded apk like the terminal says, so try this command:
java -jar apktool.jar b SystemUI
After that, there should be a new folder called "dist", here you will find the new SystemUI.apk
Install the new SystemUI the way you like. I use push via adb - then fix permissions (IMPORTANT)
Last Thanks to Powerpoint45 and Banks
I hope this helps you to customize your Gnex a little more!!!
If I missed something, correct me! This is my first little how to! AND SORRY FOR MY BAD ENGLISH!
Pete2506 said:
Hello,
I used the search function, but did not find an answer for my question. I want to theme my statusbar. And want to change the image of the backround image. But in jellybean the png has another name than in earlier android versions.
So I want to know what is the name of the backround image and what is the correct size for the png I want to use.
I hope themers can help.
Click to expand...
Click to collapse
Image is called status_bar_bg_tile.png Found in SystemUI.apk res/drawable-xhdpi
Change it to w/e
Go into SystemUI.apk res/values/drawables.xml
Open it.
Change the line out that calls out the statusbar color with this
<drawable name="status_bar_background">@drawable/status_bar_bg_tile</drawable>
Save, Recompile,Flash, Profit, lol
Edit: I always made them 720x30 for the size
BaNkS said:
Image is called status_bar_bg_tile.png Found in SystemUI.apk res/drawable-xhdpi
Change it to w/e
Go into SystemUI.apk res/values/drawables.xml
Open it.
Change the line out that calls out the statusbar color with this
<drawable name="status_bar_background">@drawable/status_bar_bg_tile</drawable>
Save, Recompile,Flash, Profit, lol
Edit: I always made them 720x30 for the size
Click to expand...
Click to collapse
Is it possible to resize the image I want, rename the file and make a zipthemer file?
Sent from my HTC Renovatio VXR
Pete2506 said:
Is it possible to resize the image I want, rename the file and make a zipthemer file?
Sent from my HTC Renovatio VXR
Click to expand...
Click to collapse
Yeah, you should be alright to resize the image. I don't think you can just make a zipthemer mod since the stock SystemUI calls out an image HEX color instead of an actual image. You would still have to decompile your SystemUI and make that XML edit. After you made that edit, you can rename the statusbar png to w/e you want and make the necessary changes to the XML to call out that image.
Example: <drawable name="status_bar_background">@drawable/whatever your image name is.png</drawable>
drawable.xml is not available in the rom I use. I found an status_bar_bg.xml, but I am not able to open it with notepad++. Decompiling only show *.smali so no xml files
I managed to change the image that I want but still black is shown in statusbar, so wich xml file to edit so that the image is shown?
I attached the sysui.apk The rom I use is jbsourcery2.1
Maybe someone could help better.
Watch out the status_bar_bg_tile.png it is now an image with size 720x30
You should be able to just put an image in the xhdpi folder called status_bar_background.png. I don't recall needing to change any XML to add an image
Sent from my SPH-L710 using xda premium
nbeebe24 said:
You should be able to just put an image in the xhdpi folder called status_bar_background.png. I don't recall needing to change any XML to add an image
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
I have done it, you can see it in the attached file, the image does not change. Status bar is still black
AHHH..., you mean such adding this file
Sent from my GNex Renovatio VXR
I decompiled your SystemUI apk and see what you did wrong. You need to have an image name status_bar_background.png as I said before. Not the tile one. Try this and see if it works http://www.mediafire.com/?cka1374omcxny1h
Send me your framework-res.apk I'll take a crack at it
- delete -
-DELETE
Could you show us where we can get the title bar image you used.
looky
powerpoint45 said:
Could you show us where we can get the title bar image you used.
Click to expand...
Click to collapse
Here you go!!!
ALL CREDITS FOR THE ORIGINAL PNG TO SCAR FROM MY OLD DESIRE ROM
Does so much people only like the black boring Statusbar?
Doing this, makes it even possible to set a complete transparent Statusbar.
Hm..., somebody interested in Silver Stausbar Icons? Like this:
Pete2506 said:
Does so much people only like the black boring Statusbar?
Doing this, makes it even possible to set a complete transparent Statusbar.
Hm..., somebody interested in Silver Stausbar Icons? Like this:
Click to expand...
Click to collapse
That looks awesome
Sent from my Galaxy Nexus using xda app-developers app
Thanks for the tutorial. Works like a charm. Question though, has anybody else tried to make a transparent status bar? Mine always reverts back to black and I was just wondering if anyone else had the same problem.
Sent from my Galaxy Nexus using xda app-developers app
Dawei87 said:
Thanks for the tutorial. Works like a charm. Question though, has anybody else tried to make a transparent status bar? Mine always reverts back to black and I was just wondering if anyone else had the same problem.
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
Are you using a tablet because I don't think u can make it transparent in tablet mode.
Sent from my Amazon Kindle Fire using xda app-developers app
powerpoint45 said:
Are you using a tablet because I don't think u can make it transparent in tablet mode.
Sent from my Amazon Kindle Fire using xda app-developers app
Click to expand...
Click to collapse
Right now I'm not using tablet mode or anything. I am using a galaxy nexus and when I make it transparent it will look as intended, but then when I open an app or menu and return to the home screen it stays black and the transparency isn't there anymore. Tried using custom images and also just tweaking the colors in the files but both have the same results. I'm stumped at this point.
Sent from my Galaxy Nexus using xda app-developers app
Can anyone make this mod? Or help me how to make this mode.
Im using MC3 and I love the Cyan colour on my phone than this stock green.
I want ro Stock batter and Stock Internet & Wifi Arrows but just in Cyan Colur.
Like This pic.
Can anyone Help me about it please?
I decompiled the framework-res.apk but couldnt find anyting to change colour
Joy` said:
I decompiled the framework-res.apk but couldnt find anyting to change colour
Click to expand...
Click to collapse
Look into SystemUI.apk, not in framework
I decompiled SystemUi.apk
Its about 2.4 Mb. change my battery colours (you can see on the attach)
But when i compile again it was 1.7 Mb. Unsigned
I signed Apk and still same 1.7 Mb.
Its my first time to decompile any apk.
I think i made something wrong
Any idea for this Noob User? :angel:
Size is not important. Often a compile of something you decompile will come out smaller. This shouldn't be used as an indicator of anything
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
Size is not important. Often a compile of something you decompile will come out smaller. This shouldn't be used as an indicator of anything
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
I replaced the new systemUI.apk to system/app give permission rw-r--r-- but. Status bar dont shown and systemUI force close
Sent from my GT-I9300 using xda premium
In that case you have done something wrong
You don't even need to decompile to swap images anyway. Just open the zip (NOT extract) with winrar, 7zip or linux archive manager, delete the images you want and drag the new images (which must have the exact same name - case sensitive) in. If it asks for compression,.choose "store" or "no compression"
You only need to decompile and recompile if you're changing resources and xml files
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
In that case you have done something wrong
You don't even need to decompile to swap images anyway. Just open the zip (NOT extract) with winrar, 7zip or linux archive manager, delete the images you want and drag the new images (which must have the exact same name - case sensitive) in. If it asks for compression,.choose "store" or "no compression"
You only need to decompile and recompile if you're changing resources and xml files
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Hahaha. IT work Lol. I did not thinks thats easy like this.
You are Parfect Mate.! Very Thanks :good:
yep, very easy if only images.
And Ta taa!!
Sent from my GT-I9300 using xda premium