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...
Related
I've been reading the theme guides and, time permitting, would like to start playing around. I've been comparing files from the stock theme template to crakes battery percent mod found here: http://forum.xda-developers.com/showthread.php?t=793805&highlight=battery+mod and have been trying to figure out how to use it in another theme. Is it as simple as adding the extra stat_sys_battery_#.png's or does something else have to be done to the framework-res.apk to get the phone to point to the added pngs? I hope thats understandable, thanks in advance for your help all!
amosher13 said:
I've been reading the theme guides and, time permitting, would like to start playing around. I've been comparing files from the stock theme template to crakes battery percent mod found here: http://forum.xda-developers.com/showthread.php?t=793805&highlight=battery+mod and have been trying to figure out how to use it in another theme. Is it as simple as adding the extra stat_sys_battery_#.png's or does something else have to be done to the framework-res.apk to get the phone to point to the added pngs? I hope thats understandable, thanks in advance for your help all!
Click to expand...
Click to collapse
If your theme has 1% intervals already its just a matter of swapping the png files. If the theme don't your gonna have to devompile the apk and edit 3 xml files then recompile
Sent from my SPH-D700 using XDA App
okay, ya thats what i was wondering. any help on the xml files to edit and how? i've got apk manager and have it decompiled, i dont see anything that jumps out.
EDIT: okay i've got in the drawable folder stat_sys_battery, stat_sys_battery_charge, stat_sys_battery_charge_err_vinsq, stat_sys_battery_charge_vinsq, stat_sys_battery_vinsq. my guess is its 3 of those, i guess i can just compare the stock theme with the stock battery mod to see what to do.
amosher13 said:
okay, ya thats what i was wondering. any help on the xml files to edit and how? i've got apk manager and have it decompiled, i dont see anything that jumps out.
EDIT: okay i've got in the drawable folder stat_sys_battery, stat_sys_battery_charge, stat_sys_battery_charge_err_vinsq, stat_sys_battery_charge_vinsq, stat_sys_battery_vinsq. my guess is its 3 of those, i guess i can just compare the stock theme with the stock battery mod to see what to do.
Click to expand...
Click to collapse
You can do that but do you know how to add a line to an xml file
Sent from my SPH-D700 using XDA App
mysteryemotionz said:
You can do that but do you know how to add a line to an xml file
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
in general, yes, but i may not know how for these purposes. what might i be missing?
There's an even easier way.
start adb
and type adb pull /system/framework/framework-res.apk framework-res.apk
(grab frameworkTW-res.apk*i think* if you want it for touchwiz instead)
Next
go here UOT Kitchen
select flashable .zip
go through the stuff
upload the framework-res.apk you just pulled.
wait a bit download package and move to sd card then browse and install it and reboot.
TADA!
art3mis-nyc said:
There's an even easier way.
start adb
and type adb pull /system/framework/framework-res.apk framework-res.apk
(grab frameworkTW-res.apk*i think* if you want it for touchwiz instead)
Next
go here UOT Kitchen
select flashable .zip
go through the stuff
upload the framework-res.apk you just pulled.
wait a bit download package and move to sd card then browse and install it and reboot.
TADA!
Click to expand...
Click to collapse
very interesting, i'll certainly check that out. though i am interested also in learning how to do it myself, but that looks pretty cool!
art3mis-nyc said:
There's an even easier way.
start adb
and type adb pull /system/framework/framework-res.apk framework-res.apk
(grab frameworkTW-res.apk*i think* if you want it for touchwiz instead)
Next
go here UOT Kitchen
select flashable .zip
go through the stuff
upload the framework-res.apk you just pulled.
wait a bit download package and move to sd card then browse and install it and reboot.
TADA!
Click to expand...
Click to collapse
Thee problem with this is if there's any edited .9 pngs in the theme the out come is ****
Sent from my SPH-D700 using XDA App
mysteryemotionz said:
Thee problem with this is if there's any edited .9 pngs in the theme the out come is ****
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
so how about this: i pull the xmls from crakes framework-res.apk (do i need anything from twframework-res.apk?), recompile into the framework-res.apk from the theme i'm hacking, then dump the pngs into drawable-hdpi from the % mod i want to include and just make sure theres an image for each line in the xmls. sound good?
amosher13 said:
so how about this: i pull the xmls from crakes framework-res.apk (do i need anything from twframework-res.apk?), recompile into the framework-res.apk from the theme i'm hacking, then dump the pngs into drawable-hdpi from the % mod i want to include and just make sure theres an image for each line in the xmls. sound good?
Click to expand...
Click to collapse
Sounds great but just remember if your theme has any edited .9.pngs you will get errors with the framework.
What there are you trying to edit?
Sent from my SPH-D700 using XDA App
mysteryemotionz said:
Sounds great but just remember if your theme has any edited .9.pngs you will get errors with the framework.
What there are you trying to edit?
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
basically i want to work in a battery % mod into the theme from AOSP Magic (partially just to see if i can do it ). when you say "has any edited .9.pngs" do you mean if i edit any? or if the theme contains any that are already edited.
amosher13 said:
basically i want to work in a battery % mod into the theme from AOSP Magic (partially just to see if i can do it ). when you say "has any edited .9.pngs" do you mean if i edit any? or if the theme contains any that are already edited.
Click to expand...
Click to collapse
If the theme has any edited already out if you edited any
Sent from my SPH-D700 using XDA App
mysteryemotionz said:
If the theme has any edited already out if you edited any
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
ya i'm a little confused at that point on how i'd handle that. anywhere i can read up on that?
so basically if the theme i want to mod has .9.pngs that were edited from stock, when i decompile and recompile with the new xmls its going to break something? if so, what would i do? use the battery % mod theme and dump the drawable-hdpi folder into the apk after?
amosher13 said:
ya i'm a little confused at that point on how i'd handle that. anywhere i can read up on that?
so basically if the theme i want to mod has .9.pngs that were edited from stock, when i decompile and recompile with the new xmls its going to break something? if so, what would i do? use the battery % mod theme and dump the drawable-hdpi folder into the apk after?
Click to expand...
Click to collapse
What I do is modify the xml files ona stock framework. Make all the changes I need then recompile. Once compiled its a matter of dragging and dropping the pngs
Sent from my SPH-D700 using XDA App
mysteryemotionz said:
What I do is modify the xml files ona stock framework. Make all the changes I need then recompile. Once compiled its a matter of dragging and dropping the pngs
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
gotcha, perfect thanks!
I've just tried some of the themes available here against the apkmanager tool - decompiling and then compiling the framework-res.apk and twframework-res.apk and all of the custom themes give tons of errors (sometimes won;t even compile back) .. the only one that goes without troubles is the stock framework-res.apk and twframework-res.apk
I'm just wondering whether this is correct or not and where is the issue - is it apkmanager or the themes that are wrong ?
w83 said:
I've just tried some of the themes available here against the apkmanager tool - decompiling and then compiling the framework-res.apk and twframework-res.apk and all of the custom themes give tons of errors (sometimes won;t even compile back) .. the only one that goes without troubles is the stock framework-res.apk and twframework-res.apk
I'm just wondering whether this is correct or not and where is the issue - is it apkmanager or the themes that are wrong ?
Click to expand...
Click to collapse
I never had much luck with APKManager, that's why I use APKTool.
Try v1.3.1 if you can find it, 1.3.2 has problems.
Apk Manager uses apktool too.
@w83
Take a look at log.txt.
I guess it's due to corrupted .9.png.
Solution:
Replace all modded .9.png with original files, decompile, make your changes, compile.
Then you can put in your modded .9.pngs again...
scheichuwe said:
Apk Manager uses apktool too.
@w83
Take a look at log.txt.
I guess it's due to corrupted .9.png.
Solution:
Replace all modded .9.png with original files, decompile, make your changes, compile.
Then you can put in your modded .9.pngs again...
Click to expand...
Click to collapse
Is it really a solution ? .. cause it seems like all of the modded .9.pngs are basically broken
You're right, let's say workaround
For fixing your modded .9.png search for xUltimate draw 9 patcher. I don't know what it's called exactly.
But for editing framework-res.apk the workaround should be acceptable.
I can manage to decompile the theme (usually with some patched pngs messed up) but when I try to compile it (even without any changes) I end up with tons of errors in the form:
apktools/vagreen_frame/res/values/public.xml:3760: error: Public symbol drawable/zzzzz_tw_quickcontact_top_frame declared here is not defined.
(lots of these ones)
any idea what's wrong ?
w83 said:
I can manage to decompile the theme (usually with some patched pngs messed up) but when I try to compile it (even without any changes) I end up with tons of errors in the form:
apktools/vagreen_frame/res/values/public.xml:3760: error: Public symbol drawable/zzzzz_tw_quickcontact_top_frame declared here is not defined.
(lots of these ones)
any idea what's wrong ?
Click to expand...
Click to collapse
Once your 9.pngs are poorly done, errors such as the above would appear. There were only 6 9.png errors and the log generated a loh file size of 130+kb. But once solved, all errors were eliminated.
Sent from my GT-I9000 using XDA App
scheichuwe said:
You're right, let's say workaround
For fixing your modded .9.png search for xUltimate draw 9 patcher. I don't know what it's called exactly.
But for editing framework-res.apk the workaround should be acceptable.
Click to expand...
Click to collapse
I'm either using the android sdk draw9patch to generate the pngs or even GIMP to do it. Just make sure the first and last row/column must be either alpha or black. No other colours are allowed there.
Sent from my GT-I9000 using XDA App
g00ndu said:
I'm either using the android sdk draw9patch to generate the pngs or even GIMP to do it. Just make sure the first and last row/column must be either alpha or black. No other colours are allowed there.
Click to expand...
Click to collapse
Ok so ur saying that after I should correct the patch 9 pngs in the framework and it should compile correctly ? .. so two options: [1] decompile, replace the pngs with correct ones, compile ? .. or .. [2] correct pngs, compile in eclipse, replace in framework, decompile, compile ?
I am pretty sure that I've already tried correcting them using [1] and it didn't help at all .. I was still flooded with errors ..
I guess I'll try to modify things from the bottom up .. take the stock theme with extended menu and play around with it .. are there any significant changes in the .jars inside the /system/framework in most of current themes ?
but still it would be way nicer if I could decompile and compile one of current themes without errors .. I'm so curious how the theme gurus are doing it .. I envy their knowledge
w83 said:
...
but still it would be way nicer if I could decompile and compile one of current themes without errors .. I'm so curious how the theme gurus are doing it .. I envy their knowledge
Click to expand...
Click to collapse
Replace all modded .9.png with original files, decompile, make your changes, compile.
The person who made the theme did it lazily and incorrectly. The first couple versions of my ROM had this problem. Did some research into how .9 PNGs work.
If you want to fix them, I can tell you how. It's a bit tedious.
scheichuwe said:
Replace all modded .9.png with original files, decompile, make your changes, compile.
Click to expand...
Click to collapse
Yep that worked perfectly !! Thx mate for that
I'll try to mod something and see how it works
MikeyMike01 said:
The person who made the theme did it lazily and incorrectly. The first couple versions of my ROM had this problem. Did some research into how .9 PNGs work.
Click to expand...
Click to collapse
Most of the available themes can't be compiled and decompiled without errors
w83 said:
Most of the available themes can't be compiled and decompiled without errors
Click to expand...
Click to collapse
But mine can.
Spent a couple days fixing every .9 PNG one at a time. All you have to do is:
Decompile the unthemed .apk
Copy the broken PNG equivalents from the unthemed .apk
Decompile the themed .apk
Delete the broken .9 PNGs
APK Manager will rename the broken xxxxx.9.png to xxxxx.png
Open the non-broken PNGs in your favorite image editor
Delete everything but the 1 pixel border
Paste the edited PNG over it, without touching the 1 pixel border
Save
Recompile the themed.apk
MikeyMike01 said:
But mine can.
Spent a couple days fixing every .9 PNG one at a time. All you have to do is:
Decompile the unthemed .apk
Copy the broken PNG equivalents from the unthemed .apk
Decompile the themed .apk
Delete the broken .9 PNGs
APK Manager will rename the broken xxxxx.9.png to xxxxx.png
Open the non-broken PNGs in your favorite image editor
Delete everything but the 1 pixel border
Paste the edited PNG over it, without touching the 1 pixel border
Save
Recompile the themed.apk
Click to expand...
Click to collapse
Thank you so very much for sharing this info!!!
MikeyMike01 said:
But mine can.
Click to expand...
Click to collapse
Perfect
MikeyMike01 said:
Delete everything but the 1 pixel border
Paste the edited PNG over it, without touching the 1 pixel border
Click to expand...
Click to collapse
You can just edit the broken png in draw9patch (or gimp or whatever) but sticking to the patch 9 png rules
Thanks for sharing !
Could you briefly explain how the editing in draw9patch is done, please.
MikeyMike01 said:
But mine can.
Spent a couple days fixing every .9 PNG one at a time. All you have to do is:
Decompile the unthemed .apk
Copy the broken PNG equivalents from the unthemed .apk
Decompile the themed .apk
Delete the broken .9 PNGs
APK Manager will rename the broken xxxxx.9.png to xxxxx.png
Open the non-broken PNGs in your favorite image editor
Delete everything but the 1 pixel border
Paste the edited PNG over it, without touching the 1 pixel border
Save
Recompile the themed.apk
Click to expand...
Click to collapse
But lets say I want to change the default blue of 'statusbar_background.9.png' to full plain black. If I leave the 1 pixel border and fill the rest to black, wouldn't I have a blue border in the status bar?
brittosa said:
But lets say I want to change the default blue of 'statusbar_background.9.png' to full plain black. If I leave the 1 pixel border and fill the rest to black, wouldn't I have a blue border in the status bar?
Click to expand...
Click to collapse
No, there's a special one pixel border that has black and transparent pixels that tell the system how to stretch the image without making it look stretched.
That's why you'll note that .9 PNG files are buttons and other things that are used to make different sized objects.
Sent from my Captivate.
I am interested in changing the color of the text of the status bar. I have already modified all the images I need, now just need to modify the xml.
I am modifying the framework-res.apk colors xml. After I have made the change I recompile the apk. Switch out the Meta-INF and AndroidManifest.xml with the ones from the original apk but when I push to my phone the color of the status bar text isn't changing. These are the lines I have changed:
<color name="status_bar_text">#ff73cd68</color>
<color name="status_bar_clock_text">#ff73cd68</color>
You might find better luck actually pming a themer or posting it in the theme section. Not much Turner's drop by here
Sent from my SPH-D710 using XDA App
davidc23 said:
You might find better luck actually pming a themer or posting it in the theme section. Not much Turner's drop by here
Sent from my SPH-D710 using XDA App
Click to expand...
Click to collapse
yeah I was thinking that, I might just check on the irc channel. Thanks for looking out.
Hmmm did you reboot the phone?
Sent from my Epicâ„¢ 4G Touch
globalninja said:
Hmmm did you reboot the phone?
Sent from my Epicâ„¢ 4G Touch
Click to expand...
Click to collapse
Yeah, I didn't actually push the framework. I created a flashable zip.
dtm_stretch said:
Yeah, I didn't actually push the framework. I created a flashable zip.
Click to expand...
Click to collapse
If you got the framework-res.apk to recompile without errors then the changes you made should definitely work. There is no need to sawp anything owhen recompiling, just edit the xml, recompile it as a system app and push it to system/app via root explorer or any equivalent.
Which ROM framework are you trying to modify?
fnut6969 said:
If you got the framework-res.apk to recompile without errors then the changes you made should definitely work. There is no need to sawp anything owhen recompiling, just edit the xml, recompile it as a system app and push it to system/app via root explorer or any equivalent.
Which ROM framework are you trying to modify?
Click to expand...
Click to collapse
Thanks ill give that I try.
I am actually modifying the ICS theme for Cakulin's rom.
**Doesn't seem to work either. I should be changing the colors.xml in the framework-res.apk right?
Got it: Make sure to delete the stupid resources.arsc!
dtm_stretch said:
Thanks ill give that I try.
I am actually modifying the ICS theme for Cakulin's rom.
**Doesn't seem to work either. I should be changing the colors.xml in the framework-res.apk right?
Click to expand...
Click to collapse
Yes, and although you won't find the values folder when you recompile you'll still need to delete the resources.arsc when recompiling, if you'd like, you can attach the framework-res.apk you're trying to modify and I can change it for you.
I also, stated inadvertently, to place it in system/app that is incorrect it goes in system/framework which may actually be part of the problem.
fnut6969 said:
Yes, and although you won't find the values folder when you recompile you'll still need to delete the resources.arsc when recompiling, if you'd like, you can attach the framework-res.apk you're trying to modify and I can change it for you.
I also, stated inadvertently, to place it in system/app that is incorrect it goes in system/framework which may actually be part of the problem.
Click to expand...
Click to collapse
I got it figured out, just before you posted about the resources. Now I just got to figure out why my launcher keeps restarting.
I'm looking to change the png of the status bar(which hold the clock/running apps, running service), however I can't seem to locate the files for it.
I've done it before but forgot, it's located somewhere in systemui or framework-res, but can't recall the name.
ryojin said:
I'm looking to change the png of the status bar(which hold the clock/running apps, running service), however I can't seem to locate the files for it.
I've done it before but forgot, it's located somewhere in systemui or framework-res, but can't recall the name.
Click to expand...
Click to collapse
If u use app ninjamorph u can extract systemui and framework-res .In one of the extraction folder u will find xhdpi folder u will find the statusbar PNG.anyone correct me if I am wrong
Sent from my Xperia S using xda app-developers app
I am also interested in changing the transparency in the notification bar in CM9. As far as i read you have to pull SystemUI.apk, framework-res.apk from your phone, decompile it, change code then push it back in phone. I don't really know how to work with ApkTool so if anyone has an easier method for the uneducated, i will be very grateful.
Hi!I'm trying to theme my rom but I can't fine some png's.
Can someone tell me where are located this png's and in what .apk.
Thanks.
Screenshot in attachments
as far as i know they are on dialertabactivity.apk or framework-res.apk
muzaffarhassan64 said:
as far as i know they are on dialertabactivity.apk
Click to expand...
Click to collapse
I've tried changing the color in DialerTabActivity.apk of the png dialer_tab_button_bg_focus.9.png and dialer_tab_button_bg_press.9.png to another color, recompiled apk and tried it to see if there's any change but no change at all, i've also tried modifiyng those png's from framework-res but no change.
make sure you change the mdpi ones, some roms have multiple sorts of pngs inside
Sent from my GT-S5660 using xda app-developers app
Changed the mpdi ones still no effect
Did you restart the phone? After the new installation.
Yes of course
Of course.
Well, all I can think to tell you is to modify all pngs in both the dialer.apk and framework-res, make sure you edit them correctly since they are .9 patch pngs.
Clear apk cache, reinstall, reboot. If that doesn't work, then idk.
Those are inside TWframework res.apk
Tw tab
Sent from my ST25i using xda app-developers app