editing and replacing Phone.apk - Captivate Themes and Apps

I am trying to edit the icon for the phone.apk to match a theme i'm working with. When I go in and change the icon file in the .apk and try to overwrite it on my phone it either causes a constant FC or the phone app disappears and I cant use it at all. I have tried using a file explorer to do the swap and I have tried editing the phone.apk and putting it into the theme before I flash it. If I put it into the theme before flashing there are no FC's but the icon stays stock. Can someone point me in the right direction?
P.S. I have done this with many other apps such as email.apk and mms.apk and they work fine.

DialerTabActivity.apk not Phone.apk
Sent from my phone

Just tried that and it didn't change anything. Performed a reboot after switching the files.

/res/drawable-hdpi/ic_launcher_phone.png doesn't work?
Just an idea, this might be caused by the ROM or the launcher you're using.

Yep, that's the one I changed. I tried your suggestion and changed launchers also and it did not effect the icon.

I'm downloading Obssession right now. I'll look in the apk and see if there is anything special necessary.

Well, that file is definitely the icon. If you decompile the apk and look at the AndroidManifest.xml you can see that ic_launcher_phone is the app's icon.
I swapped out the icon for an orange stock-like icon on the attached apk. I can't test it as I'm on CM, but you can see if it'll work for you. (This is the stock Obssession blues rc2 dialertabactivity.apk w/ just the modified icon)

How can I open the .xml files? When I try to open them IE gives me an error and when I allow the script to run it doesn't change anything.

You need to decompile the apk in order to view the xml files. Using APK Manager is the easiest way I know of to decompile apks.

Can I see a screenshot of what you are talking about, icon wise? If it's the launcher then the problem is the icon in the launcher, not the app.
Oh and protip, use Notepad++, not IE: http://notepad-plus-plus.org/

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.

App to change statusbar...

Can't figure out how to change my statusbar look and color... I have a ton of programs to have my theme the way I want except a way to change the statusbar.
As far as I know the only way you can change it is by actually flashing a theme from the Magic/Dream theme section. I've yet to hear of an app that can change it.
You can replace just a few files to get the results but not without resigning them into a theme or ROM to flash. I have all the files if anyone knows how to write the app.
You must get the original rom you have, open the zip, go to system/framework/framework-res.apk and unzip this apk. You will see the drawable folder where all images are located, then you must create a update.zip with this framework.apk and flash it with your recovery.

Weird issues with LauncherPro when using modified framework-res.apk

So I applied a metamorph for the Desire Black Bar on my framework-res.apk, which worked fine.
However, I tried changing the icons to something a little different by opening the apk in winrar (after pulling it via adb), navigating to drawable-hdpi, and changing a few status bar icons (no compression, I know). And then I pushed the file back.
After adb reboot, the LauncherPro app FCs constantly and keeps doing it until I remove it from focus by opening the task manager or something. Even if I push back the original file I pulled, it still FCs.
Anyone know what to do?
Soooooo...anyone? My phone's unusable until I get this fixed.
I've tried doing the same once, and I couldn't get the framework-res.apk to work.
The only thing that helped was reinstalling the ROM, installing Metamorph, modifying a Metamorph theme and using it to insert the theme to framework-res.apk.
I didn't quite dig into it, since I was in a hurry.

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.

[REQUEST] SystemUI mods...

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

Categories

Resources