Hello.
I am replacing some icons and find most in the drawable-hdpi folder.
However I couldn't find icons for example the "media scanning" icon or icons in the pulldown menu (to toggle wifi, bluetooth, etc).
I know to replace most of icons I just replace them in the drawable-hdpi folder and if the icon I wish to replace is there, I just replace it. However some icons are not there and I don't know how to change them.
Could someone point me in the right direction?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Try looking in the Services.jar and SettingsUI (for MIUI and ICS) folders.
Could not locate in said folders..
I am doing this on bionix 1.3.1 if it makes a difference.
/system/framework/services.jar --->It is Framework and not Framework-res, fyi
Can also look in /system/framework/android.policy.jar too but not much in there
I extracted /system/framework/services.jar with 7zip. All I get was classes.dex file and META-INF folder and a file MANIFEST.MF in it. I tried opening those 2 files with 7zip but no-go. Similar with android.policy.jar file.
Am I missing something? Should the icons just be in the services.jar once extracted (same as they are if I extract framework.res)? Because like I said no icons.
Twframework if it's a touch whiz rom
Sent from my SGH-T959 using XDA App
Try looking here. Know that you'll have to modify the services.jar to make the changes stick for the notification pull-down to stick.
The media scanning or sd card scanning icon is in media.provider.apk in apps.
dillym thanks, found the sd card scanning icon. I can replace that now, thanks.
No luck with finding icons that appear in the pull down menu. I tried twframework, there are some icons but not the ones I need.
I presume that pulldown icons are a bit different then lets say framework-res.apk or settings.apk icons, that can be extracted and then found in drawable-hdpi folders?
I'm guessing it is somewhat different but have no idea what to look for. Don't find anything in those .jar files. I already had a look in the theming section but am not allowed to post my question there per forum rules and don't seem to find a suitable topic to post in.
I guess my question is how to change icons in pulldown menu if that is possible.
Pull down Icons
tipsek said:
dillym thanks, found the sd card scanning icon. I can replace that now, thanks.
No luck with finding icons that appear in the pull down menu. I tried twframework, there are some icons but not the ones I need.
I presume that pulldown icons are a bit different then lets say framework-res.apk or settings.apk icons, that can be extracted and then found in drawable-hdpi folders?
I'm guessing it is somewhat different but have no idea what to look for. Don't find anything in those .jar files. I already had a look in the theming section but am not allowed to post my question there per forum rules and don't seem to find a suitable topic to post in.
I guess my question is how to change icons in pulldown menu if that is possible.
Click to expand...
Click to collapse
Are you talking about the wifi, bluetooth,GPS,Vibration toggles? they are in twframework.res. or systemUI.apk in apps. what rom are you themeing it for? sometimes they are are in other places.
I once again checked the twframework.res and they are indeed there.
I missed them initially because they were "invisible" (white icons on white folder background) but I rechecked and found them.
Oh and I am theming it for bionix. Taking icons from varions roms/themes and putting together my personal blend. Looking good so far.
Thanks everyone for the help
Related
Got interest in editing the whole theme on my WT19i.
Few questions first.
What files do I need to edit to change the notification bar, toggle buttons to be exact?
And about lockscreen, how to change the layout? What files?
A small note.
Do not recommend lockscreen replacements, I have tried these already, my LWW's Walkman button is not blocked. Had a problem today morning, when I suddenly heard music playing, those buttons get clicked quite easily in my pocket.
Someguyfromhell said:
Got interest in editing the whole theme on my WT19i.
Few questions first.
What files do I need to edit to change the notification bar, toggle buttons to be exact?
And about lockscreen, how to change the layout? What files?
Click to expand...
Click to collapse
all data of notification bar is in System-UI.apk, when you decompile it you will see few xml's open them and you will understand.
I found the .xml files, but these seem in a very strange language, seems like compiled or something.
Is it needed to decompile .apk with decompiler or is regular zipping program good enough?
I already have Eclipse to do the editing, but it can't read the Manifest file correctly, probably due to this strange coding in .xml files.
you need to decompile them using apktool, unzipping it wont work.
You dont need to edit any xml's if you're looking to edit how stuff looks. Inside the apk, without decompiling, you will find the drawable-mdpi folder. Inside there are files. If you take out a .png file e.g. Topmenubar.png and edit it, you can dimply drag and drop it in the apk. Apktool is only needed for when you intend to change something that has been compiled, like .xml files.
Sent from my ST17i using XDA
dumraden said:
You dont need to edit any xml's if you're looking to edit how stuff looks. Inside the apk, without decompiling, you will find the drawable-mdpi folder. Inside there are files. If you take out a .png file e.g. Topmenubar.png and edit it, you can dimply drag and drop it in the apk. Apktool is only needed for when you intend to change something that has been compiled, like .xml files.
Sent from my ST17i using XDA
Click to expand...
Click to collapse
OP said he wants to change toggle buttons.
So all he has to do is (if there are already toggle buttons in the theme he's got), pull them off the apk, change them and put them back in
Sent from my ST17i using XDA
dumraden said:
So all he has to do is (if there are already toggle buttons in the theme he's got), pull them off the apk, change them and put them back in
Sent from my ST17i using XDA
Click to expand...
Click to collapse
I would like to change the button, not it's icon, but what it does.
I need 2G-3G switch, so I need to place it myself.
And yes, I already have them in the theme, have now decompiled SystemUI.apk and will take a look on .xml files, when I have time.
Has anyone idea, where are files about Lockscreen located? I cannot find these.
Also, seems like my sliders are higher than usually...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Could it be because I have edited slider .png files?
Hey Guys,
I need some help finding a texture. I have been looking for it more than 5 weeks and I simply cant find it.
Take a look at those screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I am looking for the greyisch texture on the right part of the settings app. Since its being used in some 3rd party apps I thought it should be in the framework-res.apk and I changed a whole lot of images, but that texture never was found.
Since its not the first time I ask this question, just FYI of course i have the holo background themed and the dark dialog files too. My Power menu is black, but I just cant find it. I also talked to some themers over in the transformer forums, but sadly I couldnt get the answer I was longing for -.-
Here is my framework-res.apk
Framework-res.apk
Plz, if you can help me take a look at my apk and tell me what I am missing.
Thanks in advance
backgrounds like that arnt images
itll be in a xml somwhere
look in the general ics theme xmls in framework
or try looking in the xmls in settings
to speed it up
take a screnshot then find out the hex code for that colour using the eye dropper on photoshop or somthing then just search that code in any xmls it could be in
BroBot175 said:
backgrounds like that arnt images
itll be in a xml somwhere
look in the general ics theme xmls in framework
or try looking in the xmls in settings
to speed it up
take a screnshot then find out the hex code for that colour using the eye dropper on photoshop or somthing then just search that code in any xmls it could be in
Click to expand...
Click to collapse
Ok I have the hex code, its #212126
could you possibly guide me to in what folder the xml is? values etc?^^
Nordpolcamper said:
Ok I have the hex code, its #212126
could you possibly guide me to in what folder the xml is? values etc?^^
Click to expand...
Click to collapse
itll be in layout-(whatever pixle density your device is) folder
or
this may be wrong
but they may have it as a set colour so look in the values folder for styles.xml
actually try this one first as itll only take a second
I searched in systemui, framework and settings, but I didnt get a hit in any layout folders or value folders
sorry dno then
I'm creating this thread to help other themers avoid the hours of work I spent trying to figure this out.
The Problem
If you attempt to theme the stock browser app icon in /system/app/Browser.apk, you will find that it is a jpg image in res/drawable-xhdpi called icon_launcher_browser.jpg, and that it has a strange encoded background which gets rendered as transparent. Here's the icon:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you try to switch out or re-color parts of the image, it will break the encoding, and it will display that ugly background when it renders the icon on your phone. Since the jpg format doesn't support transparency, you can't easily fix this by making the background transparent like you can in a png. Re-coloring the background solid makes it a little better, but when people have different color backgrounds in their app drawers or home screens, they will see this colored square around the icon. So, this is not ideal.
The Theory
Perhaps there is a way to change this icon to a png so that you can have a normal icon with a transparent background. Removing the jpg and adding a png with the same name does not work, so there is another reference hidden somewhere in the apk besides AndroidManifest.xml, which doesn't specify an extension.
Doing a search in all files in the apk reveals the culprit. It's in resources.arsc. Here's the result when using Virtuous Ten Studio to perform the search:
Looking at the result you can see that this is unfortunately not plain text.
If you used 7zip and did not decompile, you will actually get two more instances. One in CERT.SF and one in MANIFEST.MF. Since these files are generated by signing the certificate, modifying these does not work. And also, we will invalidate the signature by changing the contents of the apk anyway, so we will resign the apk after we modify it to fix these.
The Solution
Here's how to modify the apk so it will point to a png file for its icon instead:
Extract the apk with 7zip.
Open resources.arsc with a hex editor (I used XVI32).
Search to find the one and only instance of icon_launcher_browser.jpg. You should see a result similar to the following:
Change the jpg to png, like so:
Save it.
Copy the new resources.arsc into the apk using 7zip.
Create a new png image to take the place of the jpg as the app icon. Name it icon_launcher_browser.png.
Copy the png image into res/drawable-xhdpi in the apk using 7zip.
You can delete the original jpg image from the apk if you'd like, but testing reveals that this is not required.
Delete the entire META-INF folder using 7zip again.
Resign the apk. I use APK Multi-Tool or PPCGeeks APK & Zip Signer.
Remove the original system version and install it as a user app on your phone.
Open Titanium Backup, go to the app, and choose "Convert to system app".
TB gives the apk a new name: com.android.browser.apk. Rename it back to Browser.apk, if you'd like.
You now have a working png application icon for Browser.apk which supports transparency and can be easily edited/themed.
Note: If you support multiple ROMs with different versions of Browser.apk, you can copy the resources.arsc file, the icon_launcher_browser.png file, and the entire META-INF folder from your modified version. Then just use 7zip to overwrite the existing files in each Browser.apk with these modified files.
Help To Edit "SystemUI" contain "status_bar_expand.xml" status bar background color.
I use AOSP ROM, but its status bar notifications background has white color. So that its not clear. I need to know how do i change the notification background color/running apps status bar background color?
This is my notification issue.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now i unpack "systemUI.apk" into my desktop folder, but not clear how to edit "status_bar_expand.xml".
Anyone know it, please help me. I replaced another similar ics rom " systemUI.apk" with this rom, but its not work. My phone not boot up.
I need to edit "status_bar_expand.xml" so that i open it using "HxD" but how do i change its status bar running apps background?
Thanks in advanced.
i think its in SystemUI.apk in system/ not in framework
attack11 said:
i think its in SystemUI.apk in system/ not in framework
Click to expand...
Click to collapse
Thanks you friend. kamarush told me that and I checked the "systemUI.apk", but looks like i can't do anything. :crying:
android addicts said:
Thanks you friend. kamarush told me that and I checked the "systemUI.apk", but looks like i can't do anything. :crying:
Click to expand...
Click to collapse
Some time ago I was using Kamarush's MiniCMSandwich and I make background white... See values folder in decompiled SystemUI.apk and drawable-mdpi folder for background image (don't remember if it was just color or image).
android addicts said:
Now i unpack "systemUI.apk" into my desktop folder, but not clear how to edit "status_bar_expand.xml".
Click to expand...
Click to collapse
When you say you unpacked it, did you actually decompile the apk file or just unzip it?
reaper61616 said:
Some time ago I was using Kamarush's MiniCMSandwich and I make background white... See values folder in decompiled SystemUI.apk and drawable-mdpi folder for background image (don't remember if it was just color or image).
Click to expand...
Click to collapse
Thanks friend your help, ill try it.
Ticklefish said:
When you say you unpacked it, did you actually decompile the apk file or just unzip it?
Click to expand...
Click to collapse
I copied "systemUI.apk" into my desktop and change the file extension ".zip" is it OK? How do i decompile the apk?
android addicts said:
I copied "systemUI.apk" into my desktop and change the file extension ".zip" is it OK? How do i decompile the apk?
Click to expand...
Click to collapse
This way you don't make anything...
See 1st link in my signature and go to 'INSTALLATION'
Howdy Lter's I've got a little treat for everyone.
Okay so this is pretty simple
what you need
archive manager [optional] (if you dont feel like recompiling apks via apkmanager etc (wont cover this here)
attached is a zip file with the images needed to pull of this modification.
so take the rom you want this mod on and extract framework-res.apk
place it in a folder, for things like this I usually put them on the desktop. so we'll name the folder senseframework
now make another folder, or download the attachment and extract
so now we have two folders senseframework and v4lock
open both folders side by side
here's the (not hard) but annoying part
in the sense framework folder after decompiling or extracting the apk navigate to res drawable hdmi xhdmi etc find the holo (white) lockscreen components, do note the files with in the zip may not exactly match in sense but it is easy enough to spot what is what, I search in explorer for lock and all the images needed to pull this off apear I believe. there may be the odd mms.png but when it's all in front t of you it's simple to spot. so now the renaming begins.{!DO NOT RENAME ANYTHING IN THE SENSE FRAMEWORKFOLDER OR AOSP!} the only renaming takes place in the miuilock folder. so yea you rename the miui images e.g. lock_phone.png in miui folder will be renamed to ic_phone_lock.png once youre done renaming the images in the miui folder you can then select all files in the folder and paste into the sense or aosp folder or drag and drop into the apk archive once thats all done the mod is basically done
I have not yet figured out the proper smali/xml edits need in ics to make some of the graphics found in the lockscreen on miui e.g. orange highlight etc
this is a little rough at the moment ill get around to posting screenshots soon
but basically you get the lock of miuiV4 on Aosp and Sense, for sense youll need to remove the htc lockscreen parts.
here are before and after shots
before
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
after
Dev's, modders hackers kangers feel free to use this in your roms all I ask is that you credit me
and to make things easier Ill be editing the images for the mod well renaming them to the proper names for sense 4.+ and aosp
reserved
I got this one............just in case
Thanks man, very cool mod and nice tutorial as well
Sent from my EVO using xda premium
Awesome man. I have a special patch that may make this guide unnecessary though. It pushes images into compiled apks sort of like the villain Rom theme system, which unfortunately does not work on sense 4.1. Hit me up on gtalk if you want it...
Sent from my EVO using Tapatalk 2
Noob question of the day: Does this work with CM10 (or any other AOSP Jellybean ROM?)
psych0r3bel said:
Noob question of the day: Does this work with CM10 (or any other AOSP Jellybean ROM?)
Click to expand...
Click to collapse
yes.