Location of files to change sense? [solved] - Hero, G2 Touch Themes and Apps

ok, so I want to create a theme with a few small changes to apply to my hero.
I know you have to edit the .png's inside any 'drawable' folders inside the .apk's in /system/app.
I think.
But I cannot seem to find the location of the .pngs I want to change, specifically the curved bar in the lockscreen, and the bar+icons that appear at the bottom of many of the htc apps (friendstream, clock ext.)
could anyone provide me with the paths/any help as to what I'm doing wrong?
Thanks in advance!
ok, I found them. There in /system/framework

Related

Where are these images? APKs broken down!

:::Mods please don't move this thread with the other theme tuts:::
Well i have pretty much finished FadetoBlue and now taking a small break before starting my next theme. I am banging my head trying to remember where the boot image is. I know i have seen them somewhere but can not remember where. So i figured why not ask the forums, but at the same time give info on where the images are located inside the apks. I know a lot of the images are easily figured out by the name, but i want to find and explain the tougher ones that the names don't make as much sense, also things like if you change the dialer in contacts.apk, you should also change the dialer in phone.apk.
Common Image names:
.9.png - These images are used for items that will stretch. These can be difficult to edit.
btn_ - Buttons, there are a lot of different buttons and they have different states. The most common are Normal, Longpress, Disabled(when it is linked to an editbox that has nothing in it yet, Selected(When highlighted and pressed with trackball) and Focused(When scrolling over with trackball)
pressed_application_background_static.png - This image has to do with pressing an app icon on the home screen or in the launcher
focused_application_background_static.png - This image has to do with using the trackball to scroll over app icons on the home screen or in the launcher.
ic_menu - these are all the files you seen when you hit Menu in various apps.
stat_notify - Notification alerts that are found on the top bar.
stat_sys - Icons for Battery, signal strength, wireless, connections. Also on the top bar.
status_bar - These all have to do with the images you see when you drag your finger down from the top of the screen.
title_bar - this is the bar where all of the Notifications pop up on.
Most common changes: Aside from icons.
Framework-res.apk -has the majority of UI images, Notification icons,
Contacts.apk - You see these images when you hit the green call button, press the contacts or phone icons, Has some of the same images as Phone.apk
Launcher.apk - Has the Clock, Folders, wallpapers and some Google Search widget images.
Phone.apk - You see these images, after you dial a number and call them. You should make the same changes here as in Contacts.apk
Icons:
AlarmClock.apk - res\drawable\ic_launcher_alarmclock.png
Browser.apk - res\drawable\ic_launcher_browser.png
Calculator.apk - res\drawable\icon.png
Calendar.apk - res\drawable\app_calendar.png
CalendarProvider.apk -res\drawable\app_icon.png
Camera.apk - res\drawable\ic_launcher_camera.png
com.amazon.mp3.apk - res\drawable\icon_application.png
com.android.term.apk - res\drawable\app_terminal.png
Contacts.apk -res\drawable\ic_launcher_contacts.png & ic_launcher_phone.png
Email.apk -res\drawable\icon.png
GDataFeedsProvider.apk -res\drawable\app_icon.png
Gmail.apk -res\drawable\ic_launcher_mail.png
GmailProvider.apk -res\drawable\ic_launcher_mail.png
GoogleSearch.apk - Has a drawable folder but no icon?
gtalkservice.apk -res\drawable\app_instant_message.png
IM.apk -res\drawable\ic_launcher_im.png
ImProvider.apk -res\drawable\ic_launcher_im.png
Launcher.apk -res\drawable\ic_launcher_alarmclock.png & ic_launcher_gallery.png & ic_launcher_home.png
Maps.apk -res\drawable\ic_launcher_maps.png
MediaProvider.apk -Has a drawable folder but no icon!
Mms.apk -res\drawable\ic_launcher_smsmms.png
Music.apk -res\drawable\app_music.png
MyFaves.apk -res\drawable\myfaves_app_icon.png
PackageInstaller.apk -res\drawable\icon.png
Phone.apk -res\drawable\app_voicemail.png & ic_launcher_phone.png
Settings.apk -res\drawable\ic_launcher_settings.png
SettingsProvider.apk -res\drawable\ic_launcher_settings.png
SetupWizard.apk -Has a drawable folder but no icons!
SoundRecorder.apk -res\drawable\ic_launcher_soundrecorder.png
Street.apk -Has a drawable folder but no icon!
Superuser.apk -res\drawable\icon.png
Sync.apk -res\drawable\app_icon.png
SystemUpdater.apk -Has a drawable folder but no icons!
Talk.apk -res\drawable\app_instant_message.png
TelephonyProvider.apk -res\drawable\ic_launcher_phone.png
TmoImPlugin.apk -res\drawable\ic_im_logo_* This has icons for AIM,Yahoo and MSN. They show in IM list.
Vending.apk -res\drawable\ic_launcher_androidmarket.png
VoiceDialer.apk -res\drawable\app_voicedialer.png
VoiceSearch.apk -res\drawable\app_voicesearch.png
YouTube.apk -res\drawable\ic_launcher_youtube.png
Reserved...
Just incase =)
cheers for this, very useful to budding theme developers
i think if you look in framework-res and go to assets then images for the boot images
Sorry about the delayed reply, i kind of lost the thread =) thanks Kron!
Woot!
Someone like a mod should sticky this thread.
Thanks for the list.
Great list, I basically found this out all through just going through and looking at the images, but a single post with all the images would be great for all the new theme makers who are starting to come in and contribute. Thanks for posting this!
I second for a sticky.
This would have saved me many many hours when I was just starting out with this theme business. Very useful post!
Thanks for the info.
I tried looking for the pictures icon location but can seem to find them... The one in the launcher.apk was for the wallpaper icon. Any clue?
yellow heel said:
Thanks for the info.
I tried looking for the pictures icon location but can seem to find them... The one in the launcher.apk was for the wallpaper icon. Any clue?
Click to expand...
Click to collapse
Sorry for the delayed reply, I didnt get the question at first so i didn't answer, then forgot about it.
But you will find the ic_launcher_gallery.png in Camera.apk and Launcher.apk. I believe by changing the one in the camera it will change it where you want.
damnitpud said:
Sorry for the delayed reply, I didnt get the question at first so i didn't answer, then forgot about it.
But you will find the ic_launcher_gallery.png in Camera.apk and Launcher.apk. I believe by changing the one in the camera it will change it where you want.
Click to expand...
Click to collapse
Thank you, I will give that a shot.
Quick Question...
After a long time searching,(i didn't want to make a new thread for this if there was one already opened) I have a question...
I want to be able to edit just the launcher.apk or the drawables in framework-res.apk to be able to hold all the default launcher-app icons.
Basically, is there a way to place all the icons for the stock apps in one of those 2 above mentioned files and when opening the app tray, those icons show up as opposed to the ones in the individual .apk's?
any help on this would be nice. i'm tired of searching. lol
temporizer said:
After a long time searching,(i didn't want to make a new thread for this if there was one already opened) I have a question...
I want to be able to edit just the launcher.apk or the drawables in framework-res.apk to be able to hold all the default launcher-app icons.
Basically, is there a way to place all the icons for the stock apps in one of those 2 above mentioned files and when opening the app tray, those icons show up as opposed to the ones in the individual .apk's?
any help on this would be nice. i'm tired of searching. lol
Click to expand...
Click to collapse
Currently, NO there is no way to do this on the way the android files are pulled to and from the system.
However, I believe Cyanogen has an idea to implement an easier way to skin the default system app's icons than the system we have now. This is one of the things he has on his list of 'to-do' for the Experimental builds if I remember correctly.
Until he's able to pull this off, we're stuck editing individual apk's. It sucks since there is a higher probability of something breaking doing this. Hopefully Cyanogen can get something working soon. It'd make my job a lot easier.
Gah again with the double post, mods please delete.
prash said:
Currently, NO there is no way to do this on the way the android files are pulled to and from the system.
However, I believe Cyanogen has an idea to implement an easier way to skin the default system app's icons than the system we have now. This is one of the things he has on his list of 'to-do' for the Experimental builds if I remember correctly.
Until he's able to pull this off, we're stuck editing individual apk's. It sucks since there is a higher probability of something breaking doing this. Hopefully Cyanogen can get something working soon. It'd make my job a lot easier.
Click to expand...
Click to collapse
Thank you Prash for the response.
That makes sense, and i know that cyanogen is working on implementing the standalone icon feature.
The ONLY reason I ask this is because of a post that stericson made a while ago:
Stericson said:
General Info:
Every .apk contains the images relating to itself. However, every apk has the ability to use the images in framework-res.apk. The images for every apk is located inside of itself. To find these images open up the apk, you can rename it to .zip or open it with an archiver of your choice, winrar, winace, etc. Then after opening the apk open the folder called res and inside of that there are folders that are named Drawable, drawable-land, drawable-port, etc. This is where the images are stored.
Click to expand...
Click to collapse
so, i thought that icons could be pulled from there as well...
thanks for this, i attempted to theme cyans theme template the other day and didn't know where to start. This is going to be very helpful!
DAKIDD236 said:
thanks for this, i attempted to theme cyans theme template the other day and didn't know where to start. This is going to be very helpful!
Click to expand...
Click to collapse
i am glad my old posts are still helping people, i just hope this old info is still good. I am tinkering with theme'n again so its possible that i will be updating any changed info, or using the second post of this thread for the new info.
got a question.
i have JACxROM v1.3r2. all i want to do is change the battery icon at the top. i found the image after i change it do i have to do anything else or can i just flash it to my phone
saprano614 said:
i have JACxROM v1.3r2. all i want to do is change the battery icon at the top. i found the image after i change it do i have to do anything else or can i just flash it to my phone
Click to expand...
Click to collapse
just resign and you're good to go
jonnybueno said:
just resign and you're good to go
Click to expand...
Click to collapse
how do i resign

[Q] ?s about themeing

I really want to theme my phone, is there any tips to make it easyier
an also theres no meny png files that im not sure what changes what, is there a guide of any sort for that or anything.
I got editing images down but im still gettin lost on changing things
an out of curioisy is there a good themer out there that would be willing to work with me personally so im not gettin mixed results
here ya go..this should get you a start
http://www.google.com/cse?q=how+to+...ub-2900107662879704:fs7umqefhnf&ie=ISO-8859-1
Great resource here
im not sure if im wording this right, but to theme an app u open that apps apk. to theme a widget u open that widgets apk. right?
So what all does framwork control?
still tring to get it togather what png's edit what on my phone
Essentially yes. Most of the app's .png's will be in the respective .apk, although if it's a Sense ROM then a lot is stored in the 'com.htc.resources.apk'
The 'framework-res.apk' holds all the files for like the notification area, the pull down menu, status icons, buttons, tick boxes, radio buttons etc...
The best way to familiarise yourself with it all is just to have a look through the image folders and see what you see.
not much luck, im gettin lost, so ill be back in a cuple days let u knw if i got it yet, if i cant come up with it, ill just make a list of things i want done an see where it goes.
Are you on a Mac or PC?
Keep in mind, you have to sign it to get it to install if you unpack it. After weeks of failed signing attempts (I still cant get them to sign) I found a way around this though...just don't unpack it Use 7zip on PC or I am on a Mac so I use Springy. Replace what you want and you are good to go.
Let me know if you need more help with this method. It isn't the way everyone else does things, but it works for editing things and making it what you want.
@reanger91878 I was just looking into start some theming and was trying to figure out if using a Mac put me at a disadvantage... but I guess since I found you I'll know who to ask if I run into a problem. So I guess I'm gonna get Springy and see what I can figure out. (I've never done this crap before).
:edit: boo it costs money, any free options? or will the non-licensed version work for me?
Alright
heres what i want done
I have NFX Sprint 2.31.651.7 STOCK Odex Update3.
Lock screen bar where its grey i want black
All screens under settings an phone options like device1 pic 1 want there its white to be black an the black letters white with a green boarder.
Device2 pic: want top an bottom where its grey to be black save with bookmark widget an calander app
Device3: white section black an the letter white
Device4: change all screens from white to black an white lettes an the grey buttons at the bottom to green same with clock, messages, music and photos
Device5: i want the ui buttons at the bottom like that but for it to be Phone in the middle app drawer on the left an add to home on the right
Invert all menus uder browser
so if some one would be willing to help with what xml an pic files i edit to do it, or some one helps me put it togather it would be awsome an id be very thankful
BuddahWolf01 said:
@reanger91878 I was just looking into start some theming and was trying to figure out if using a Mac put me at a disadvantage... but I guess since I found you I'll know who to ask if I run into a problem. So I guess I'm gonna get Springy and see what I can figure out. (I've never done this crap before).
:edit: boo it costs money, any free options? or will the non-licensed version work for me?
Click to expand...
Click to collapse
Using a Mac does not put you at a disadvantage per se...kind of, but there are workarounds
You don't have to use Springy, that is just what I use. The key is to find an Mac application that can open up a .zip file without extracting it, because once you extract, you need to resign (no big deal really, but for whatever reason my computer won't properly sign). I think the free version of Springy lets you open up a ROM of a certain size? Can't remember...but if you are editing a theme, they should open, because most are under 15MB. You can also just search around for other Mac apps that handle zip files and find one that does not extract. Let me know what you come up with and what you need help with...I gained much knowledge here, and will gladly pass on what I have gleaned.
DubsideWICKED said:
heres what i want done
I have NFX Sprint 2.31.651.7 STOCK Odex Update3.
Lock screen bar where its grey i want black
All screens under settings an phone options like device1 pic 1 want there its white to be black an the black letters white with a green boarder.
Device2 pic: want top an bottom where its grey to be black save with bookmark widget an calander app
Device3: white section black an the letter white
Device4: change all screens from white to black an white lettes an the grey buttons at the bottom to green same with clock, messages, music and photos
Device5: i want the ui buttons at the bottom like that but for it to be Phone in the middle app drawer on the left an add to home on the right
Invert all menus uder browser
so if some one would be willing to help with what xml an pic files i edit to do it, or some one helps me put it togather it would be awsome an id be very thankful
Click to expand...
Click to collapse
Big tasks Don't know if anyone will actually be able to do it for you, but check the resources above to get an idea where to start. It's the whole "give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime" idea.
Open up your ROM and check the framework-res.apk and see what you find...but you are looking to do more than just framework edits...
ranger61878 said:
Big tasks Don't know if anyone will actually be able to do it for you, but check the resources above to get an idea where to start. It's the whole "give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime" idea.
Open up your ROM and check the framework-res.apk and see what you find...but you are looking to do more than just framework edits...
Click to expand...
Click to collapse
Out of what all i want edited what is controlled by frame work an then would the rest be Apk files in the system app
my biggest problem is im not understanding what xml files change what an some of the pngs idk what they change
edit: I found post that said this, is that a pretty good way to descride it.?
app folder - This folder contains all of the apps that will be installed during an update or wipe. You will need to extract only the apks of the apps you wish to change the icon and graphics for.
-Launcher.apk - This file is in the app folder and contains the menu launcher tab, clock, google search widget, wallpapers and some other things.
framework - This folder contains framework-res.apk, this is where the bulk of your editing will take place.
When you open a apk you will see:
assets - This will contain images, sounds and other content used by the programs. Not always used!
META-INF - This contain the encryption data of the update.zip.
res - This folder contains all of the png and xml files. The xml files are used to format the UI, these can be used to change the locations of things on the screen. The xmls need to be unencrypted first. Depending on the apk there can be a bunch of folders under the res folder but we will only concentrate on the drawable ones.
-drawable - The png files in this folder are displayed wheather the keyboard is open or closed. The majority of the files are here.
-drawable-land - These are the files that will show when the keyboard is open. There won't be as many files in these folders. Most of the time the programmer will re-organize the layout with an xml file.
so basically everything is a picture that i want changed an xml files control text color an placement of where things are or what?,
im try my best to but thoes darn xml files are messing with me lol
To start, don't mess with the XML files. Just make changes to the PNG files. Once you get familiar with changing icons and status bar colors, then you can start messing with XML files. Let's say you want a different alarm icon.
Look in the DeskClock.apk under res/drawable-mdpi. You would find an icon(PNG) you want to substitute with, size it to the same size as ic_launcher_alarmclock.PNG, name it the same name and replace the original in the apk.
Use adb to push the apk back to your phone. I would then reboot and then enjoy your new icon.
Some icons will be in drawable-mdpi and some just in drawable. No need to change hdpi on our phones.
The majority of your status bar icons and base OS icons will be in framework-res.apk.
Sent from my HERO200 using XDA App
poashll said:
To start, don't mess with the XML files. Just make changes to the PNG files. Once you get familiar with changing icons and status bar colors, then you can start messing with XML files. Let's say you want a different alarm icon.
Look in the DeskClock.apk under res/drawable-mdpi. You would find an icon(PNG) you want to substitute with, size it to the same size as ic_launcher_alarmclock.PNG, name it the same name and replace the original in the apk.
Use adb to push the apk back to your phone. I would then reboot and then enjoy your new icon.
Some icons will be in drawable-mdpi and some just in drawable. No need to change hdpi on our phones.
The majority of your status bar icons and base OS icons will be in framework-res.apk.
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Well said.
You can also do it on your computer...don't extract, just open, replace, close, put on SD and flash (after you nandroid...just in case )
iv been looking an looking, but cant seem to find a black stock theme
with stock htc green when a button is pressed, any one kno off a stock black theme i might be over looking
still havent figured ths out, an im having problems because im odexed?
DubsideWICKED said:
still havent figured ths out, an im having problems because im odexed?
Click to expand...
Click to collapse
Yes more than likely your only have trouble theme and odexed rom. Try a rom that is deodexed or I heard the have some deodex sripts that will do it.
ASimmons said:
Yes more than likely your only have trouble theme and odexed rom. Try a rom that is deodexed or I heard the have some deodex sripts that will do it.
Click to expand...
Click to collapse
Alright is there a performance or memory difference between odex an deodex
Does this same process apply with adw? If so, does that mean theming aosp and cm6 are equally as easy?
Sent from my HERO200 using XDA App

[Q] Can't Find 3G/Reception Bar Icons In Drawable Folder To Replace

I'm trying to replace the 3g and reception bars icons in the taskbar but I can't seem to locate the .pngs in framework-res.apk. I thought they were in the drawable-hdpi-v4 folder but no dice. Can someone point me to where they are? I can change them myself once I find them. If anyone's interested, it's a VaelPak 2.3 framework-res with MattedBlues icons replacing most of those in the framework-res, I'll upload it when done. Thanks.
Look in drawable-mdpi, the names should be something like stat_sys_data
C0dy said:
Look in drawable-mdpi, the names should be something like stat_sys_data
Click to expand...
Click to collapse
The taskbar icons are in the drawable-hdpi-v4 on my ROM, which I'm pretty sure is the same as the mdpi folder. I saw the 3G icons (not the reception bar ones) but when I replaced them then pushed the new framework-res, they don't change. I'm using ClockWorkMod Recovery so I can mount the system partition and push the file but it has an issue with clearing dalvik. Could this be the problem? Also, do I have to replace the Gmail icon in the gmail.apk? That is still the old style also. Thanks for the help.
I found what I was looking for: the icons are in the com.htc.resources.apk in /system/res folder. Switched 'em out, all good. The taskbar isn't finished 'cause I gotta get into some individual app .apk but when I'm finished doing that and probably making a whole theme, I'm gonna post it on VaelPak forum: http://vaelek.com/. Thanks.

[NS4G] Location of 4G icons?

Hi all,
I'm new to themes and am trying to figure out where the various 4G connection icons are located so I can change them from green to white.
Running the GreybreadX theme, which is great, but the 4G icon is still green.
I was able to locate the 3-bar and disconnected icons within framework-res.apk but not sure where to look for the 2-bar and 1-bar icons.
Any suggestions on where to check?
You should find them in /system/app/SystemUI.apk
inside there: SystemUI.apk/res/drawable-hdpi/
Then look for pngs beginning with stat_sys_data_wimax
..all sorts of notification bar (etc) goodies in there. If you're decompiling and/or modding xml/smali though, I'd read up on it first within these forums.
Ok so I finally got around to editing the 4G icons to be white/grey instead of green/grey, removed the originals from SystemUI.apk and placed mine in there, and placed the edited SystemUI.apk in /system/app/ (made backups of everything).
Rebooted and I still have green/grey 4G icons... what am I missing here?
Edited png files attached.
I don't have it in front of me, but check the framework-res.apk in the drawable hdpi folder. There are a couple sets of 4G icons- once its activated, and then to display your signal.
Also, btw, i usually just drag the edited icons over into the apk (in 7zip) and make sure it asks to replace the files... just to make sure the file names are the same.
. . NS4G . . CM7 . .
Ended up going back to the stock systemui.apk and using Ninjamorph to overwrite the original images. Worked perfectly!
https://market.android.com/details?id=stericson.ninjamorph.free

[Q] Need help finding an image for HTC apks (contacts, clock)

Alright, so here's my problem...
I'm a newbie themer, and I've been working on making a theme for my HTC Merge. The problem is that I can't seem to find the location of a certain image that I want to modify. The image I'm looking for is used for the bottom background in HTC apps that have a scroller along the bottom... ie: htccontacts, clock, the launcher itself.
I've decompiled com.htc.resources.apk, framework-res.apk and SystemUI.apk searching but I can't seem to find it anywhere. The majority of HTC images I've found have been in the com.htc.resources, but unless I'm crazy, this one isn't there.
I attached an image that shows which part I'm talking about. I've already found the image for the scroller (common_subnav_selector_tab.png) but I can't find the background for the life of me. Does anyone know which image this is? Thanks in advance!

Categories

Resources