[REQUEST] SystemUI mods... - Sony Xperia T, TL, TX, V

Hey guys, I recently just got into the rooting and modding stuff here so excuse me, but im just a beginner and don't know much of what I'm doing. I've searched and searched and searched for the mods that i want, but with no luck, so I'm wondering if anyone had any free time to make some mods for me? I have a Sony xperia TL (Lt30at) and its rooted. I have CWM to flash zips so if i could get a zip made up to be able to do this, i would greatly appreciate it! okay, so this is what i was looking for. I wanted to change the statusbar background to a different image, which is the first attatchment i have. I would also like to make the chat bubbles that same image in the sms app. I also wanted to change the clock, battery, notification icons, all of that stuff on the statusbar to red instead of the stock colors, but keep all of the stock icons. Now, only two more things. If somebody could make, or point me in the direction where to find red soft keys for my phone, that would be awesome. I found some on here but none seemed to work on my phone, it just made systemui crash. Last, i wanted to change the sms background from white to the picture i have in my second attatchment. I have JB v4.1.2 with stock rom and whatnot. If anybody could do any of these things for me or point me in the direction of an already made one, i would greatly appreciate it!! Thank you very much.

I don't think you can change the nav bars background to a picture, just the color. You can however, change the softkeys. Check this thread for new ones. Or download one, make your own images, and just replace them in the zip with yours using winrar, 7zip, or even unzip and re-zip on your phone with root explorer.
As for the background image on sms... Use winrar, 7zip, or whatever and unpack the apk. Navigate to the "res" (meaning resources) folder, then into the "drawable-xhdpi" (other drawables are for other phone resolutions, we use xhdpi always). In that folder, see if you can find a background image. If not, then its probably not an image but a color code thats inside an xml file. Other than that, use another sms app such as GoSMS. Which allows custom themes/backgrounds.
Info about zips from the link above...
The SoftKey threads zips are ones that modify apk's without actually replacing them. It does it that way in case you have mods on an apk that you don't want to lose just because you want to change an image.
When you unzip one you'll normally see a few folders but the one you'll need to focus on is the "vrtheme" folder. Inside vrtheme there is a "system" folder with two folders "app" and "framework". Inside "app" is a folder "SystemUI.apk", which is the file to be modified. Inside that folder will be the layout of the original apk, excluding folders that your not modifying. If u don't understand that, try unpacking your original SystemUI.apk and you will see a ton of folder and files. But since we only need to replace specific images, only those folders are reconstructed in the SystemUI.apk folder as... "SystemUI.apk/res/drawable-xhdpi/"
If this confused you then you might have to wait until someone decides to drop what they're doing for everyone else, and help you. Which is as about as possible as you unlocking our bootloader. So ill try to help, but I'm still learning here as well. Luckily I've been a PC software programmer for over 15 years so the transition isn't as bad for me.
- Xperia TL, XperimenT v2.6 ~ via XDA App

http://forum.xda-developers.com/showthread.php?t=1433053

This might help also... http://rootzwiki.com/topic/17417-updated-solution-in-op-navigation-bar-background-image/
Ill attempt it in a minute and let you know my results. If it works, ill upload you a flashable zip.
- Xperia TL, XperimenT v2.6 ~ via XDA App

First, about the status bar, I haven't tried yet so I can't help
Second, about the soft keys, it's quite easy, decompile systemui (remember installing framework-res.apk and SemcGenericUxpRes.apk in apktool), go to res/drawable-xhdpi, edit the nav buttons (open in PTS and change the color to red ), then recompile the SystemUI
about the background image of sms, it use the background semc_bg_bright_tile.png in res/drawable-xhdpi of SemcGenericUxpRes.apk, but if you change this image, other apps using this background will be affected like SemcPhone T___T.
About nav background, you can edit the navigationbar.xml in SystemUI , you can search for Transparent Nav bar in this section, instead of giving the hex color, you can change it to the path of the image like /drawable-xhdpi/background.png (of course you have copied the file into editing folder). You should know some about xml editing . This is just some quick ideas, I'm quite busy so I can't help you out , good luck

redincali said:
I don't think you can change the nav bars background to a picture, just the color. You can however, change the softkeys. Check this thread for new ones. Or download one, make your own images, and just replace them in the zip with yours using winrar, 7zip, or even unzip and re-zip on your phone with root explorer.
As for the background image on sms... Use winrar, 7zip, or whatever and unpack the apk. Navigate to the "res" (meaning resources) folder, then into the "drawable-xhdpi" (other drawables are for other phone resolutions, we use xhdpi always). In that folder, see if you can find a background image. If not, then its probably not an image but a color code thats inside an xml file. Other than that, use another sms app such as GoSMS. Which allows custom themes/backgrounds.
Info about zips from the link above...
The SoftKey threads zips are ones that modify apk's without actually replacing them. It does it that way in case you have mods on an apk that you don't want to lose just because you want to change an image.
When you unzip one you'll normally see a few folders but the one you'll need to focus on is the "vrtheme" folder. Inside vrtheme there is a "system" folder with two folders "app" and "framework". Inside "app" is a folder "SystemUI.apk", which is the file to be modified. Inside that folder will be the layout of the original apk, excluding folders that your not modifying. If u don't understand that, try unpacking your original SystemUI.apk and you will see a ton of folder and files. But since we only need to replace specific images, only those folders are reconstructed in the SystemUI.apk folder as... "SystemUI.apk/res/drawable-xhdpi/"
If this confused you then you might have to wait until someone decides to drop what they're doing for everyone else, and help you. Which is as about as possible as you unlocking our bootloader. So ill try to help, but I'm still learning here as well. Luckily I've been a PC software programmer for over 15 years so the transition isn't as bad for me.
- Xperia TL, XperimenT v2.6 ~ via XDA App
Click to expand...
Click to collapse
Thank you very much! tons of help!
dully79 said:
http://forum.xda-developers.com/showthread.php?t=1433053
Click to expand...
Click to collapse
thanks for the reply!
redincali said:
This might help also... http://rootzwiki.com/topic/17417-updated-solution-in-op-navigation-bar-background-image/
Ill attempt it in a minute and let you know my results. If it works, ill upload you a flashable zip.
- Xperia TL, XperimenT v2.6 ~ via XDA App
Click to expand...
Click to collapse
Did you work anything out for that? I've been trying to do it myself but i'm not all that familiar with what to do.
blackcat510 said:
First, about the status bar, I haven't tried yet so I can't help
Second, about the soft keys, it's quite easy, decompile systemui (remember installing framework-res.apk and SemcGenericUxpRes.apk in apktool), go to res/drawable-xhdpi, edit the nav buttons (open in PTS and change the color to red ), then recompile the SystemUI
about the background image of sms, it use the background semc_bg_bright_tile.png in res/drawable-xhdpi of SemcGenericUxpRes.apk, but if you change this image, other apps using this background will be affected like SemcPhone T___T.
About nav background, you can edit the navigationbar.xml in SystemUI , you can search for Transparent Nav bar in this section, instead of giving the hex color, you can change it to the path of the image like /drawable-xhdpi/background.png (of course you have copied the file into editing folder). You should know some about xml editing . This is just some quick ideas, I'm quite busy so I can't help you out , good luck
Click to expand...
Click to collapse
Ive been trying to do this, but i can't get my framework onto my computer. When i copy it to my sd card using root explorer it just doesnt show up when im looking for it on my pc..frustrating...

I forgot to add this:
http://forum.xda-developers.com/showpost.php?p=40026013&postcount=20

Related

Change taskbar color

Hi Guys,
is it possible to change android (magic) taskbar color/theme for the device without root access?
I don't like the boring white, I want black taskbar with white font.
any suggestion will be appreciated .
thanks
I would like the same my device is rooted though
Draxter said:
I would like the same my device is rooted though
Click to expand...
Click to collapse
dont think it is possible if you aren't rooted. If you are rooted open up the update.zip file you are using as your rom using 7-zip, go to where framework drawable folder is. Open status bar and change its colour, drop it back in and resign app. There are instructions how to do this in themes section of Dream.
http://forum.xda-developers.com/showthread.php?t=473580
http://forum.xda-developers.com/showthread.php?t=471586 I use post number 6 the way i do it.
I'm using the Vodafone rom... I don't think I can get my update.zip from that? I rooted my device with haykuro's stuff in this tutorial.
http://android-dls.com/wiki/index.php?title=Magic_Rooting
I want to keep my Dutch XT9 so I can't flash anything else but smartphone france or my stock vodafone...
all the drawables should be in the root-me rom. open it and have a look for them.
But if they aren't I will brick my device by flashing a wrong framework...
no you wont. All you do is open it and drop in the .pngs you want, then resign it. they will be there in the rom- if not look at one of the other roms- Rogers, or daldroid will have them.
If it does go in to boot loop reboot into recovery and flash the last working rom you have until you figure out what went wrong. The only thing you are changing is the pngs. you shouldnt go intoa bootloop doing this- i have done a heap of theming for myself for the G1 and each time i got a boot loop it was cos i was playing around with services.jar and xml files. each time i just rebooted into recovery and reflashed previous working rom.
The thing is, I don't know which ROM I have... I have rooted my magic by using the android-dls tutorial with haykuro's stuff. There are still some vodafone relics left. I still have the vodafone shortcut, and i still have support for Dutch XT9.
http://android-dls.com/wiki/index.php?title=Magic_Rooting
I haven't made a Nandroid backup and I don't know how to make a backup either so... There is only one alternative, flashing Smartphone France firmware, it has Dutch support. I wouldn't mind trying out that one but that'll be the first time that I flash firmware onto my Magic so I'd like some guidance on MSN with that
Drawer
Im looking for the application drawer button in the res folder that is inside framework... found the status/notification bar and all icons but can't seem to find the app drawer button... i want to change it to a darker grey and make the notification bar black...
the app drawers are in launcher.apk
Easiest/safest way of changing the graphics I have found was to:
1. Connect your phone via USB and make sure you have the drivers installed
2. do adb remount
3. Do a adb pull on /system/framework/framework-res.apk for example
4. Open the apk with something like winrar etc
5. Locate the png files you want to change and extract them
6. make modifications to the files
7. pop back to the apk
8. do an adb push of the file back to the device
I've done this with fairly few apk's such as the launcher.apk and framework-res.apk and never had to resign the file =o)
The advantage is that you are using the file from your phone that you know works =o)) certain apk's don't even need a restart such as the Launcher.apk, I did alot of modding with the app drawer without ever needing to restart the phone.
This is good for changing the images but things like changing the clock color is ALOT harder, it requires you to edit the services.jar file with a hex editor =o(
Hope this helps.
Draxter said:
the app drawers are in launcher.apk
Click to expand...
Click to collapse
Ok, i did find the file in the launcher.apk, i edited it and all the other files and now need to resign in linux... was looking for the SignApk.jar in the SDK and didn't find it... also tried JF's testsign.jar and didnt work... can anyone point me in the right direction so i can resign the file using test keys in linux.
Thanks,
If you just changed the png's you shouldn't have to resign it
fxn said:
If you just changed the png's you shouldn't have to resign it
Click to expand...
Click to collapse
What about the hour and date font in the status bar... if i change the notification area to black it wont automatically switch to white text... do you know where i can find the parameters to change it?
Some of the text like notification texts etc are held in framework-res.apk xml files in the drawable folder if I remember correctly.
The clock is the difficult one as it is inside services.jar file, its a serious pain in the back side, the dream forum has more info about it but it involves opening up files in hex editor and changing the hex code directly there
I'll be having a look at this and see if I can make step by step guide of this but it is seriously a pain!
Any idea which XML's in framework-re.apk (or other location) hold the various notification font colour(s)?? I can't seem to find it.

Music Player colors

Ok, so this hasn't really been a problem for me before since I couldn't use the samsung music player at all since it wouldn't sort by artist. However, now that I'm using JM6, it is letting me sort by artist. I really like the widget on the lock screen and on the pull down notification bar, so I'd like to use music player of Mixzing.
The problem is, on both of the widgets the background is an ugly purple color. Why would they do this? Ew. Is there any way to change the background color of these widgets? If I could do that, I would be as close to 100% happy with this phone that I've ever been.
Edit: Nevermind. I got it.
Care to share what you did? I didn't see anything in the settings. My ultimate goal would be to have the widget with a transparent background.
Sent from my SAMSUNG-SGH-I897 using XDA App
keredini said:
Care to share what you did? I didn't see anything in the settings. My ultimate goal would be to have the widget with a transparent background.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
You could do that. The files you need to change are located in the twframework and framework apk's. They are in system/framework, but I just used the twframework file from here. I don't remember the names of the files I changed (sorry). I just searched for music or background or bg in the drawable-hdpi folder of the apk's and when I found the ones I wanted to change, (really the only purple ones) I changed the color to something else. To make it transparent just replace the file (keep the same name) with a transparent .png file.
The twframework file can just be edited and then copied back over the original, but the framework apk caused a lot of force closes on me when I tried that. So I just edited the files inside the circle clock.zip file and then ran the .zip file and it applied the changes for me without any problems.
I also changed the ugly pink icon to something that looks like a real cd in the background with an orange music note on top. Looks a billion times better.
I apologize that I can't be more technical with you, if you have any questions about anything shoot me a pm or post it up here.
dontshakepandas said:
You could do that. The files you need to change are located in the twframework and framework apk's. They are in system/framework, but I just used the twframework file from here. I don't remember the names of the files I changed (sorry). I just searched for music or background or bg in the drawable-hdpi folder of the apk's and when I found the ones I wanted to change, (really the only purple ones) I changed the color to something else. To make it transparent just replace the file (keep the same name) with a transparent .png file.
The twframework file can just be edited and then copied back over the original, but the framework apk caused a lot of force closes on me when I tried that. So I just edited the files inside the circle clock.zip file and then ran the .zip file and it applied the changes for me without any problems.
I also changed the ugly pink icon to something that looks like a real cd in the background with an orange music note on top. Looks a billion times better.
I apologize that I can't be more technical with you, if you have any questions about anything shoot me a pm or post it up here.
Click to expand...
Click to collapse
Strange, I couldn't get this to work...here are the steps i took:
Used adb push to get the twframework-res.apk file to my PC.
Used APK Manager to unzip the APK.
Modified the purple background file (quick_panel_music_bg.9.png) to be transparent.
Used APK Manager to zip the APK using the new PNG file. (I only Zipped the APK, I did not sign it since it was a system APK and did not Zipalign it)
Dropped the APK on the root of my sdcard.
Used Busybox to copy it over the existing APK.
Rebooted.
Any ideas why this wouldn't work? I tried twice, both times the background is still purple.
Hmmm, I went back and looked at the framework-res.apk and noticed i missed a file in there with purple background, so i edited that PNG file, then used APK Manager to zip and then ADB to copy over the original.
Now my phone will boot only to the Galaxy S boot screen, then just goes black. Looks like I will need to adb the backup files back onto the phone. Can you explain how you did this using an update.zip file. That seems like maybe an easier route.
when changing the twframework file I used 7zip to open the archive without ever unzipping the file. I dragged the already edited png files into the correct directory to replace the purple ones.
For the update.zip I downloaded the .zip file for thecircle battery mod. I then put the updated png files that I wanted to replace using 7 zip again. I ran the update.zip file and everything worked.
If you are able to use metamorph (using older su version) you can download the simplistic theme, replace the res files with the ones from the stock apks then apply them in metamorph.

[REQ] [froyo] BLACK/TRANSPARENT notification pull down bar

Searched and couldn't find just this...a black notification pull down. I think I am one of the few that likes the stock look just want a black/ transparent pulldown and don't want a whole new theme to get it. I am running dl30 BTW. I KNOW THAERE ALOT OF REQUEST BUT HOPEFULLY MINE IS EASY TO FULL FILL WITH A COUPLE OF OPTIONS TO ADD AS A ZIP FOR THOSE THAT LIKE A SEMI-STOCK LOOK. HOPE TO SEE A COUPLE SOON.
THANKS IN ADVANCE
A little FYI...I really like the midnight pulldown and buttons....many others are nice as well..
This can be done by modifying the png images in the framework i believe. If you use 7zip to extract it and then edit with photoshop or gimp and save the png and put back into the framework file.
If i am wrong somebody can correct me though.
bump....seems easy but I am an idiot with this phone?!?
I want it also
I pulled out the files and changed everything and put it back into the apk file. When I put it back on my phone I didnt get any changes. I thought I read that if your only changeing pics, this is all that was needed.
I posted asking if there was something I was missing but no answer.
I have the changes if I could get the phone to take them.
Yeah i tried ti compile it too just now....fail.
MSHancock said:
I pulled out the files and changed everything and put it back into the apk file. When I put it back on my phone I didnt get any changes. I thought I read that if your only changeing pics, this is all that was needed.
I posted asking if there was something I was missing but no answer.
I have the changes if I could get the phone to take them.
Click to expand...
Click to collapse
Attach your framework-res.apk & twframework-res.apk and let me look at it. It will be hard to give an accurate explanation without first doing this.
EDIT: Or do what nitsuj said below and it should work. Your probably having problems with .9 pngs
MSHancock said:
I pulled out the files and changed everything and put it back into the apk file. When I put it back on my phone I didnt get any changes. I thought I read that if your only changeing pics, this is all that was needed.
I posted asking if there was something I was missing but no answer.
I have the changes if I could get the phone to take them.
Click to expand...
Click to collapse
to do what you are trying to do.......grab the twframework-res.apk from your phone by pulling it with adb...or simple version just grab it out the rom you are currently using by moving the og rom file to your desktop and use 7zip to extract it.
now use 7zip again to extract the drawable-hdpi folder from the apk.
swap out status_bar_background.9 for a transparent one you grabbed from another theme...or you can make one by yourself...but its a .9 image so you ll have to patch it in 9 patch.
if you want to avoid that heres a transparent one for you http://dl.dropbox.com/u/15331201/rom/transparentbackground.zip (just extract it and swap it)
open up the twframework with 7zip again and copy this drawabl-hdpi folder over the old one....then you can push this framework back to your phone...or just take one of our theme update.zips and open it up with 7zip...go into the system folder, delete the app and font folders...go into the framework folder and delete whats theres and place the twframework-res.apk in it....put the zip file on ur sdcard...boot to recovery and flash it
Thanks
Thanks for the tips guys. I will work on this today and have something later.
as soon as I get back to my comp I am going to try and fix it...

[Q] Changing font color

Can someone tell me where I can change the font of the notifications. They come out in black and don't go with my theme, I'd like to change them to white. Thanks
Also if someone can teach me how to get the words under the icons to show up (wifi, bluetooth, gps ... )
You'll be wanting to read how to theme, there are a few threads if you search. twframework-res.apk and framework-res.apk is what you'll be modifying.
Caution swyping! Read at your own risk.
cappysw10 said:
You'll be wanting to read how to theme, there are a few threads if you search. twframework-res.apk and framework-res.apk is what you'll be modifying.
Caution swyping! Read at your own risk.
Click to expand...
Click to collapse
Thanks, I've modified both those files with all the images I need in those two folders. I just need someone to point me to the right xml file that needs editing for these two questions (and if you'd be so kind to point me to where in the xml file even better), thanks
Can anybody help me out... Pleeaase?
Sent from my SAMSUNG-SGH-I897 using XDA App
I think this is what you're looking for
http://forum.xda-developers.com/showthread.php?t=1007221
CuriousTech said:
I think this is what you're looking for
http://forum.xda-developers.com/showthread.php?t=1007221
Click to expand...
Click to collapse
Ok that somewhat helped. I'm looking at the status_bar_expanded.xml file and the last three are already at #ffffffff for white (which is what I want) but my notifications are still coming up in black
I think that's in framework-res.apk/res/layout/status_bar_latest_event_content.xml
It looks like you're trying to change a heavily modified theme back to original. It would be easiest to look at a stock framework and use those values.
CuriousTech said:
I think that's in framework-res.apk/res/layout/status_bar_latest_event_content.xml
It looks like you're trying to change a heavily modified theme back to original. It would be easiest to look at a stock framework and use those values.
Click to expand...
Click to collapse
That should do it!
CuriousTech said:
I think that's in framework-res.apk/res/layout/status_bar_latest_event_content.xml
It looks like you're trying to change a heavily modified theme back to original. It would be easiest to look at a stock framework and use those values.
Click to expand...
Click to collapse
It's actually status_bar_expanded.xml. I need to change the color from ff000000 to ffffffff, that will change it from black to white. So I decompiled framework-res.apk using apk manager. I edited the file, then when I try to compile, I get an error, even if I answer Yes Yes to the two questions and delete the resources.arsc file plust the xml file I edited. It creates an unsigned package but it's much smaller than the original. What am I doing wrong?
I'd prefer to learn how to change the font color to white, however if anybody knows which is the image file for the background I can also just change that to a white or light color that is not transparent like the current one is
What errors are you getting when you compile it? Are you trying to mod a already moded theme? It is most likely .9.png errors that you are getting and they will need to be fixed before it will recompile. Also make sure you are using apktool 1.3.1 as the newer version is known to cause recompiling issues.
The backgrounds are in framework-res
status_bar_item_background_normal.9.png
status_bar_item_app_background_normal.9.png
One is the title "Ongoing..." I think. The associated "pressed" or for when pressed.
The most significant error is the first one. Usually the ones below that are caused by it. Because of the .9.png errors, I always make xml changes to the original unthemed APK, compile it, then pull the compiled xml files out and drop them into the themed one or keep a copy of the drawable-hdpi folder with all the modified .9s (compiled) and drop them into the new APK each time. It's a pain but works.
Thanks guys. framework was previously themed, I'm trying to add my own flavor into the mix. I'll check into the .9.png files when I get home and report back.
A better explanation is that .9.png files that have an opacity set won't decompile so they're corrupt. They'll show up in the error log or show as default (cone, box, sphere) thumbnails when viewing the folder. So when you recompile, those corrupt files will throw errors.
There are a lot of other ways to get around it like keep a copy of all the problem files, and drop the stock images in the apk before decompiling, then after compiling drop the modified ones back in.
If you need to edit them it can get confusing though. They need to remain the same image size. If they're compiled, take the .9 off before modifying in draw9patch so it will add the 1px border back before compiling. Then it's back to the correct size. And since those aren't corrupt, they'll compile fine.

[GUIDE] A n00b guide to porting themes :P (26/12/11)

Hello A little while ago I managed to learn how to theme totally from scratch. I knew nothing of anything before I started, but now I know how to port themes As I still see myself as a n00b there may be some weird things I've done, but at least I manage to create the themes This might not be the best way to theme, or the easiest, but it works
Overview PNGS
1) Getting the files
2) Getting the images
3) Port
4) Package and Sign
The only programs I've used is 7zip and autosigner download them and install 7zip and extract autosigner to a nice location for example your desktop
Getting the files
The first you need to do (after getting the programs) is to find the file you will mod (edit). This will mostly be the framework-res.apk because this decides most of looks of phone (for example the statusbar). Download the .zip of the rom your going to theme. Open it up (shouldn't require any programs, if does, use 7zip: either drag it onto the 7zip icon or right click and choose open with). Open system -> app and copy the framework-res.apk (or any other apk you would like to theme, for example the settings). Now paste it into an appropriate folder.
Getting the images
Now you need to find the images you want to use in your new theme. Find either an update.zip with a theme or an .apk with a theme chooser theme (if there is both a version for Froyo and GB, use the Froyo version as this will make it easier ) Open it up with 7zip (drag it into the 7zip icon). Now you can do either of two options:
1) You can take the whole drawable-mdpi folder and copy it out. You should probably don’t do this with a Themechooser apk, as they usually don’t have all icons in this folder, as they often lend a few from HDPI.
2) Take only the images you want and copy them to a folder. For example if you want the signal icons, copy the “stat_sys_signal_0” (-4 of course) and copy them out. If you want the statusbar background, copy “statusbar_background”. This way you can mix several themes, take the best of several themes and make your personal theme
When you’re done getting your icons, close the window.
Porting
Now open the Rom’s default framework-res.apk with 7-zip. If you’re going to port a whole theme, delete the /res/drawable-mdpi folder and copy in your own. If you’re going to port just a few icons, open the /res/drawable-mdpi folder and paste your icons. You might want to check if the icons have the same names in the different framework. For example the headset icons can be both “stat_sys_headset” and “stat_notify_headset”. Also if you port from a theme chooser theme, you will have to rename every single .png you port. This is really boring, but necessary. You need to remove the “framework_res” and the “android_systemui” from the beginning of all the names. So “framework_res_activity_title_bar.9.png” needs to be changed to “activity_title_bar.9.png”. Because this is so boring you better keep your renamed icons, so it’s easier to port it to another rom
This is kind of off-topic: my carrier lends network of another carrier. Therefor my phone is allways roaming. This puts a stupid “r” with my signal icons. To avoid this I allways take normal signal icons, copy them, and rename one of the two .pngs from for example “stat_sys_signal_1” to “stat_sys_r_signal_1”. This way I get rid of this stupid “r” and it will always show the normal icons
Packing and signing
Now the porting is done and the next job is to push the new framework to your phone. If you are familiar with adb, you can push it to system/framework on your phone. You don’t need to anything more with the apk before pushing it. Else you can create a flashable .zip for your theme. I’ve attached a .zip with update script (I haven’t created it. Just stole it from one of Elelinux’ add-ons ). Download the zip. Create a folder named system and a folder named framework. First drag the new, modded framework_res.apk to the framework folder, then drag the framework folder into the system folder, before you drag the system folder into the attached zip. If you use Clockworkmod recovery, you can just flash the zip right as it is, but if you use Amon_Ra or want it to be compatible with every recovery because you want to post it, you need to do something.
Unpack autosigner and launch the exe file inside. Drag the .zip into the new window and press sign. It will now appear a new file in the same folder as the file you wanted to sign. Its name is the same, but with “_signed” at the end. You can rename the file as you wish both before and after the signing.
XML Editing:
I decided to add a little section about XML editing as well I really don't know all about this myself, but i can tell how to set it up and some examples to what you can do Even though this may seem really complicated, it's not written in a completely different language, like Java in the smali files, so often it is possible to use logic to get what you want
Tools needed: APK Multi-tool. as well as Java, if you don't have it installed.
Overview:
1) Setting up
2) Examples
3) Finish
Settings up
Download APK Multi-tool and extract/ unzip it to wherever you want ( I have it on my desktop). Now you can place the apk you want to modify (usually the framework_res.apk) in the "Place_apk_for_modding" folder. Then you open the script. If you don't get an error, proceed to b), if you do get an error proceed to a)
a)) If you do get an error where it says something like "java not found" you need to correct the Java path (or install Java if you haven't done that, which you should have) . I had to do this to get it working. First open my computer and click disk C, or D if you have installed Java there. Open programfiles (or whatever it's called in your language) and scroll to the Java folder. Now open the folder there jdk folder or whatever you have there and open the "bin" folder. Look at the top of your window, where it says where on you're computer you are (like Windows: C to the left, and then Programfiles and so on). Right click it and click copy address. Mine is "C:\Program Files\Java\jdk1.7.0_01\bin . Now you can close the window.
Open "My computer" again. On the top bar below the navigationbar, click Sytemoptions (sorry, not really sure what it's called in Englsih, as my computer is Norwegian, please correct me if I'm wrong). On the left click the "advanced" link and in the popup that appears click "environment variables". Scroll down to the "path" variable and edit it. Paste the address you copied and click OK. You should now be able to proceed to b). If you still get an error, please tell me and I'll try to help
b) type 25 and press enter to select current project. Here you will see all the apks in the "Place_apk_for_modding" folder. Select the appropriate number (in this case probably 1) and press enter to continue. Then you hit 9 and enter to decompile it. I cannot really explain it, but it enables you to edit the xmls in the apk. If you try to edit them by using 7Zip, the xmls will be just messed up. When it's done decompiling, you have gotten a new folder in the "projects" folder. In this case it is probably named framework_res.apk. Minimize the script (DON'T CLOSE IT) and you're ready to edit the xmls
Examples on edits:
COMING SOON
Finish:
When you're done editing, open the script again (remember what I said about not closing it? ). Click 11, unless you are editing a non system apk. If you are editing the framework or settings or such, use 11. If you get an error now, you have probably done something wrong, try to see in the log what you have done wrong. Every time I've had an error, I've ended up in bootloop when I've flashed, so it is probably better to just start over. Another tip is to do one thing at the time. For example: you decompile, edit the notification color in pulldown, compile. Take the compiled apk, decompile edit another thing and so on, this makes it easier to not mess up and it also shows what you are doing wrong.
On the "Is this a system apk?" you should probably say y, as I said above. I also usually copy over the files I didn't edit, as this seems safer. Follow the instructions and you should be fine. When you're done and the script is done compiling, you will find a unsigned_**** (for example unsigned_framework-res.apk) in the "place_apk_for_modding" folder. This is your modified apk, and you can try to push it to ur device with an update.zip or adb, if you know how to use that
Well this was the end of my guide for now If there's anything which is unclear or you have other suggestions, feel free to post I've probably forgotten something
Finally after all my attemps to modify the android framework before i have do it correctly. I have changed a couple of things, the lock screen and battery icons so far. The framework I'm modifying is the one on Ele's Gingerbread and i wonder how to get the battery icon percentage 1 by 1 as i saw in some other themes. What i mean is that in the original framework there is only battery icons for 15, 20, 25 and so on, and if i push the 16, 17, 18, 19 they won't work. Is Theme Chooser the one on charge of this? how can i get that? some help please?
(Also tryed to theme a sense rom, but everything was messed up, i guess because of sense or maybe I did something wrong)
So thanks for your guide, really helpfull
Yeah, I've never tried to theme Sense so I don't know. It is probably possible to make icons for every %, but then you'll have to decompile using APK tool, and it is harder. I don't know how. If you want to try, you could try asking a question here
thanks
so funny=))
i'm tried
Great guide helped me a lo thx.
Finally, someone who CAN explain it...
I'm now porting ICS to GB (no cm7), cause I think CM sucks.
mDroidd said:
Finally, someone who CAN explain it...
I'm now porting ICS to GB (no cm7), cause I think CM sucks.
Click to expand...
Click to collapse
Hmm, ICS themes can be made really awesome, if you do some more advanced stuff. For example you want to remap the pulldownbar a bit, and change som text colors. But to do this you need to use a tool like APK multi-tool, and it is a bit more advanced. If you want to, I can create a new section where I show how to this
Thank you.
GUIDE UPDATED! Added a section about XML editing really quick, probably forgotten something and such, so just ask if there is something you don't understand This is for those who are getting used to the PNG editing and want to proceed to something slightly more advanced, for example you 7Tosta
Cheers
BTW: I should've reserved the 2nd post, this is getting messy
Edit: If there's anything specific you want me to add to the EXAMPLES section, tell me

Categories

Resources