[Q] Editing the theme - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

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?

Related

[Q] theming - icons location

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

[Themers Needed] Texture Hunt

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

[HOW-TO][2012-07-23]Make the Stock Browser Icon a Themeable PNG

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.

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'

[SOLVED][PHONE.APK] Trying to theme incoming call screen

G'Day XDA,
Just wondering if anyone could please help me. I am trying to change the colour of the ring around the phone icon on the left hand side from this green colour to a different colour.
I have edited all the images in the drawable folders and edited all the xmls in the layout folders and values folder.
I suspect it might be smali code that I have to change, but that may as well be written in Swahili for me because it makes no sense at all.
I will have to deodex, edit and then reodex if it is in the smali folder which I am willing to do, but I want to change this colour.
If anyone can help I would greatly appreciate it.
Thanks.
{
"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"
}
Edit: See 3rd post for the smali file to edit in order to change the colour of the ring
daveyannihilation said:
G'Day XDA,
Just wondering if anyone could please help me. I am trying to change the colour of the ring around the phone icon on the left hand side from this green colour to a different colour.
I have edited all the images in the drawable folders and edited all the xmls in the layout folders and values folder.
I suspect it might be smali code that I have to change, but that may as well be written in Swahili for me because it makes no sense at all.
I will have to deodex, edit and then reodex if it is in the smali folder which I am willing to do, but I want to change this colour.
If anyone can help I would greatly appreciate it.
Thanks.
Click to expand...
Click to collapse
searching for it too and cant find any thing on xda. iam sure its something with phone.apk not a .png too if you find any solution please tell me
Ahmed hamouda said:
searching for it too and cant find any thing on xda. iam sure its something with phone.apk not a .png too if you find any solution please tell me
Click to expand...
Click to collapse
I managed to find it. I had to deodex the apk (I'm using a stock odexed rom) and in smali/com/android/phone I had to edit a file called IncomingCallWidget$Handle.smali . I searched for the smali code for the green colour on the screenshot which is -0x9e5eeb (Hex code is #ff61a115) and I just changed it to the smali code for the colour that I wanted to change it to. Then I recompiled, re-odexed and voila!

Categories

Resources