[Q] Need help modifying framework-res.apk or twframework-res.apk and services.jar - Vibrant Q&A, Help & Troubleshooting

Hello, maybe this is the wrong thread but i seem to not be getting any help over at Q&A's... I'm porting a theme from the captivate forums and for some reason my dropdown notifications have a transparent background and the text is black as well for any popup window like when you long press the homescreen to get widgets, and wallpaper chooser, so i think i need to modify either the framework-res.apk or the twframework-res.apk but don't kno exactly what file to modify to either get the text to white or get a background on those things... if anyone would advice me i'd appreciate it... thanks
Also if anyone could guide me into modifying the services.jar to change the clock color i would also appreciate it...
THIS IS THE LINK TO WHAT IM WORKING ON

danalex0829 said:
Hello, maybe this is the wrong thread but i seem to not be getting any help over at Q&A's... I'm porting a theme from the captivate forums and for some reason my dropdown notifications have a transparent background and the text is black as well for any popup window like when you long press the homescreen to get widgets, and wallpaper chooser, so i think i need to modify either the framework-res.apk or the twframework-res.apk but don't kno exactly what file to modify to either get the text to white or get a background on those things... if anyone would advice me i'd appreciate it... thanks
Also if anyone could guide me into modifying the services.jar to change the clock color i would also appreciate it...
THIS IS THE LINK TO WHAT IM WORKING ON
Click to expand...
Click to collapse
you need to edit the .xml files.
for notification you need to edit statubar_expand.xml and files that has similar name to that xml. dont exactly remember what its called.
its in framework-res.apk/res/layout
the notification pulldown background is in
twframework-res.apk/res/drawable-hdpi

eunkipark92 said:
you need to edit the .xml files.
for notification you need to edit statubar_expand.xml and files that has similar name to that xml. dont exactly remember what its called.
its in framework-res.apk/res/layout
the notification pulldown background is in
twframework-res.apk/res/drawable-hdpi
Click to expand...
Click to collapse
Well for the notification pulldown background ive got the one i wanted... what im referring to is when u have a notification, for instance you downloaded something from the market and u get successfully downloaded that one notification has no background it is set to transpare t and the letters are black so i can really read what it says...

anybody wishing to help?

If it is an image you need to edit to be non-black/transparent the file I think you're looking for is called "status_bar_item_background_normal.9.png"
Change that to a totally opposite color and see if that's it?
If you mean editing the color of the letters then I do not know what to edit in the .xml file.
Hope I helped!

How can I modify the XML files? 'cause when I extract them from apk file, all of them are protected, I can't read any codes. Can anyone show me how to fully unprotected them?
P/s: I always get this error "An invalid character was found in text content. Error processing resource..." whenever I open xml file with IE.

vnthantai said:
How can I modify the XML files? 'cause when I extract them from apk file, all of them are protected, I can't read any codes. Can anyone show me how to fully unprotected them?
Click to expand...
Click to collapse
^^ +1.....

danalex0829 said:
^^ +1.....
Click to expand...
Click to collapse
they must be decompiled with apk manager

additionally when you recompile make sure to check the log as there will be several images that will be renamed from. 9.png to png you must use the draw9patch program found in the tools folder of the android ask to 9patch these images otherwise your apks will not compile correctly. Im on my phone now so I can't provide the necessary video link how ever simply go on youtube and search how to use draw9patch there is a very good beginners explanation (2 part) of what a 9 patch is and how to use the 9 patch utility
Sent from my AXURA powered Vibrant

are all of images in "res/drawable-hdpi" folder 9.png formated files? or just some of them?

vnthantai said:
are all of images in "res/drawable-hdpi" folder 9.png formated files? or just some of them?
Click to expand...
Click to collapse
it varies, they can be in any folder really, but generally speaking that is where you will find most of them. Just check the logs and you will know exactly where to find them and what they were named.

was anyone able to figure out to edit services.jar in order to change clock color?

aamir123 said:
was anyone able to figure out to edit services.jar in order to change clock color?
Click to expand...
Click to collapse
Here you go man. http://forum.xda-developers.com/showthread.php?t=940692
That thread will explain that part. Be careful with it though, and make a backup cas if you mess it up you'll get a boot loop as I did

am trying to edit the framework-res.apk
am trying to change the images of the slider (jog_dial_bg_rev.png) but when i save it and then install or move the .apk to system/framework folder
the phone crashes? has this got anything to do with the MD5?
all i wanna do is change the slider image based on the CM7 pro v20 ROM
my reason is because the black shadow covers the incoming call number

kashem58 said:
am trying to edit the framework-res.apk
am trying to change the images of the slider (jog_dial_bg_rev.png) but when i save it and then install or move the .apk to system/framework folder
the phone crashes? has this got anything to do with the MD5?
all i wanna do is change the slider image based on the CM7 pro v20 ROM
my reason is because the black shadow covers the incoming call number
Click to expand...
Click to collapse
Instead of extracting, Just open it with winrar or 7zip and drag and drop image in the 7zip window.
Sent from samsung vibrant

Related

[Q] How to add custom image to Notification Bar in GS2 ??

i have seen a featured article in which some one just pulls out the framework-res.apk from the phone, replaces the images and pushes the framework-res.apk back to system/framework to change a certain part of the theme..
i actually tried doing the same with the notification bar backround. i had to look for that file which is actually taking the backround of the notification bar.. which i m pretty sure is located in res/drawable-hdpi/status_bar_background.png
i have attached that png so that you can see for yourself that it is that image which shows up in the backround of the notification bar.. but! when i replace the png with my custom one and push it back to its directory, but! it still doesnt make any difference.. anyone knows how to do it? does it have anything to do with the attributes of the file? anyone??
I want to know the same, but, I'm pretty sure you have the wrong APK, because when I open de SystemUI.apk, I find a file called: status_bar_background.png, but I'm not pretty sure if we can just edit it and push the file back to the phone...
Viletung said:
I want to know the same, but, I'm pretty sure you have the wrong APK, because when I open de SystemUI.apk, I find a file called: status_bar_background.png, but I'm not pretty sure if we can just edit it and push the file back to the phone...
Click to expand...
Click to collapse
i m not sure if its wrong or not, its just not working.. the thread where i took this idea from, also had the same file i am talking about plus i also have the same file name in framework-res.apk as you have in you systemUi.apk .. there was a word about twframework-res.apk too. i tried that too but it didnt have that kinda of file..
other than that, what do you think about the image that i've attached? isnt it the backround we have on gs2's notification bar?
and about pushing it back after adding the image file with winrar, ppl have it working on other phones.. but i had no luck with gs2..
Hmm weird I looked at the same file you attached, and looked at the file name and I'm running lite ning pro, and in systemui.apk, I have a file with the same filename as your attahment, and it looks like the file we need. I will try tomorrow to change it.
Viletung said:
Hmm weird I looked at the same file you attached, and looked at the file name and I'm running lite ning pro, and in systemui.apk, I have a file with the same filename as your attahment, and it looks like the file we need. I will try tomorrow to change it.
Click to expand...
Click to collapse
i hope you are right X)
please update me with whatever you get..
ill update asap,
I got it!! I modified the status_bar_background.png in the SystemUI.apk!
Then added the modified png to the SystemUI.apk using Winrar,
then I pushed the file back to the phone and then I turned off the phone and after a minute I started it again
I have also attached the original modified file.
Viletung said:
I got it!! I modified the status_bar_background.png in the SystemUI.apk!
Then added the modified png to the SystemUI.apk using Winrar,
then I pushed the file back to the phone and then I turned off the phone and after a minute I started it again
I have also attached the original modified file.
Click to expand...
Click to collapse
THanks and you're the man! XD
No problem, I'm glad I could help
Viletung said:
No problem, I'm glad I could help
Click to expand...
Click to collapse
i made my own version of that png file.. check it out

Lockscreen ??

Can somebody tell me where the lockscreen is stored?
Probably either framework-res.apk or SystemUI.apk. Open them up with winrar and see if you can find any PNG's that exist in the already set up lockscreen.
In the framework apk i just found a huge amount of .xml files and in the systemUI i found the statusbar png but nothing from the lockscreen :/
They're in the Framework-res file. Look better.
Thanks found em and i've found the standard android lockscreen png's too in the same direction. And is it possible to use the standard ones if i just rename them to name of sonys lockscreen png's?
Sorry for my bad english
Yea. Android is made to use a specifix name for a certain icon in a certain spot. You can put whatever you want, but you want to make it look nice So adding a bird with the same name as a button will show you a bird instead of the button, but will behave as a button
Okay and if i did changes to the framework-res.apk must i do something with it or can i just put it on my phone with root explorer?
MCPoppa said:
Okay and if i did changes to the framework-res.apk must i do something with it or can i just put it on my phone with root explorer?
Click to expand...
Click to collapse
Only set correct permissions

[Req] Need help with SystemUI

So I've decompiled SystemUI.apk(Scott's CleanROM2.1 ICS) and I'm trying to find out what makes the data icon change. I know where the icons are but I can't find any smali or xml that actually swaps the images. I've checked Galaxy Nexus ROMs as well and still can't find it. Can anyone assist me finding this or join the quest to locate this information?
MrSmith317 said:
So I've decompiled SystemUI.apk(Scott's CleanROM2.1 ICS) and I'm trying to find out what makes the data icon change. I know where the icons are but I can't find any smali or xml that actually swaps the images. I've checked Galaxy Nexus ROMs as well and still can't find it. Can anyone assist me finding this or join the quest to locate this information?
Click to expand...
Click to collapse
I will try to help and get a look at it later.
In the mean time try a text search (Win7 gives you the choice to look in the files) in the decompiled folder for an occurrence of the png name with the .png and you may get a pointer to where it is controlled.
It is more than likely in the anim folder.
NilsP said:
I will try to help and get a look at it later.
In the mean time try a text search (Win7 gives you the choice to look in the files) in the decompiled folder for an occurrence of the png name with the .png and you may get a pointer to where it is controlled.
It is more than likely in the anim folder.
Click to expand...
Click to collapse
Checked there. I'm running Ubuntu at home and grepped SystemUI, com.htc.resources and framework-res on GB and ICS and came up empty.

Replacing icons in apk

Hi
sorry if for expert devs this is a basic question
I have been looking around but I did not found this explained
HOW TO CHANG THE ICON ASSOCIATED WITH AN APK ????
I know how to open a apk with 7 zip and that I have to change the png file there
but which file ?????
do I need to change just the file associated with the icons or all the others ?
I mean .... inside (for example) mm.apk I found the icons related to contacts.apk to email.apk etc ... do I need to chenge all of them with the new ones ?
decompile and recompile
Decompile the app with apktool and go into the res folder and find the icon u want to replace ,,change it and recompile with apktool.Lastly sign the app and you are good to go
I have never tried change icons but i tried to change the background images for dialer and system menu. I used the same method mentioned above by opening the apk using 7zip and changing the images files with my custom images and rename them exactly the same as old ones.
Then I used CWM to flash the zip which contains the modified apk (i.e. contacts.apk and framework-res.apk)
However, I would recommend that you backup your ROM before flashing the modified zip file just in case something wrong happens.
Good Luck
I remember that there is a tool much faster than apktool ti decompile recompile but ... I have not been on the forum for long and I lost it
Is it also possible to change only theicon by using vrtheme ? if yes can someone explain how ?
Thanks
Give this thread a whirl...should be very useful
Basic theming guide by Dully79
Darkside Agent said:
Give this thread a whirl...should be very useful
Basic theming guide by Dully79
Click to expand...
Click to collapse
All very interesting I am sure I will use it at some point
I installed Java SDK and APKtool ... I remembered what they are for ... but still ...
the only thing I needed to know was if I need to change all the images in res or only that associated to the icon.....
ads7112 said:
All very interesting I am sure I will use it at some point
I installed Java SDK and APKtool ... I remembered what they are for ... but still ...
the only thing I needed to know was if I need to change all the images in res or only that associated to the icon.....
Click to expand...
Click to collapse
fine, whatever, ignore my post
Please .. do not missunderstand me !!!
Your help is very much apreciated
I knew approximately what to do to modify the theme also if in general I preferred kitchen uot
Instead I was hoping in a simple change of icon afetr decompressing/decompiling the apk but apparently it is not so simple ...never mind

[Q] Transparent notification background? (not dropdown window!)

I'm trying to figure out how to make the text of each notification in the dropdown window appear on a transparent background. I've figured out how to adjust everything else (toggle, status bar, and dropdown background transparency), but I simply cannot for the life of me figure out how to make the notifications actually have transparent backgrounds.
Is this not something modifiable from SystemUI.apk?
I've gone through a heck of a lot of .png files and looked through quite a few .xml files. Just can't figure this out.
edit: this part of the notification bar: http://s15.postimage.org/y8ad3u917/Screenshot_2012_10_03_17_59_49.png (from a different phone)
I've gone through a bunch of the SystemUI.apk files already, and now I've started going through framework-res.apk files. I can't compile framework-res.apk properly (not sure how to set two dependencies in apk multi-tool), so I've just been dropping files into the .apk and overwriting the originals.
In any case, I've made the following files transparent and still had no luck making the notification backgrounds transparent at all:
- notification_bg_low_normal.9.png
- notification_bg_low_pressed.9.png
- notification_bg_normal.9.png
- notification_bg_normal_pressed.9.png
Of course, those files aren't referenced by any of the .xmls in framework-res, but I thought I'd give it a shot. In fact, I have no idea what is actually being referenced for those backgrounds.
I opened up status_bar_latest_event_content.xml to see where it went, and it ends up pointing at transparent color values for non-pressed/focused notifications.
My completely unfounded and wild guess at the moment that the black background is a horrible mix of the #FF00FF00 and #FFFF00FF colors that are referenced in two separate places (the former is in colors.xml, the latter is in status_bar_latest_event.xml), but that would be ridiculous, since the latter never seems to reference the former. Argh.
Very confused.
Hi, u say u have figured most of the things in editing the system ui can you please help me?
I am trying to change the background in the notification pull down, i decompiled the systemui.apk i tried changing some images but when i put it back into my phone nothing happens
I can't find the correct file to change.
And i read somehwere that i have to change something in the xml file also to change the target to an image rather than a colour
The xml file is pointing to a colour (black)
How do i make it target to a image and after that where do i place the image file
I am running cm10
Btw i am sorry i couldnt answer ur question i just cannot find an answer to my question searched every where on xda, also the tutorial which are there, are for gingerbread.
Thankyou
I still need help figuring out the answer to this problem. Got horribly sick recently and haven't been able to put any more effort into figuring it out on my own, yet.
Help, please!
=======
Droidvenom said:
Hi, u say u have figured most of the things in editing the system ui can you please help me?
I am trying to change the background in the notification pull down, i decompiled the systemui.apk i tried changing some images but when i put it back into my phone nothing happens
I can't find the correct file to change.
And i read somehwere that i have to change something in the xml file also to change the target to an image rather than a colour
The xml file is pointing to a colour (black)
How do i make it target to a image and after that where do i place the image file
I am running cm10
Btw i am sorry i couldnt answer ur question i just cannot find an answer to my question searched every where on xda, also the tutorial which are there, are for gingerbread.
Thankyou
Click to expand...
Click to collapse
This is for stock, so I don't know if it will work in CM10. I somehow doubt it, but here's how it works in stock:
Decompile your SystemUI.apk and find the file "tw_status_bar_expanded.xml". It's in the res\layout folder.
Second line in the file should start with this:
Code:
<FrameLayout android:id="@id/notification_panel" android:background=
Replace whatever follows the android:background part with the file you want to use.
So, for example, if you changed status_bar_expand_default.png in the drawable-xhdpi folder into your background image, you'd write this (obviously without the red color):
Code:
android:background=[COLOR="Red"]"@drawable/status_bar_expand_default"[/COLOR]
and the full line would look like this:
Code:
<FrameLayout android:id="@id/notification_panel" android:background="@drawable/status_bar_expand_default" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_margin_left"
I suggest you use a 9patch image for your background, so it expands and shrinks without getting stretched, but you can experiment with that yourself. The image I used in my example (status_bar_expand_default.png) is unused by the system, as far as I know, so it's a convenient image to use.
Bumping this again, still wondering.

Categories

Resources