[Q] Edit .9.png files - General Questions and Answers

Hi everyone, I'm searching and trying for quite a while now but still can't get it right.
I'm trying to edit the chat bubbles of whatsapp to match my theme. I decompiled the app, used gimp to edit, tested it with draw9patch, compiled it & signed. But when I put it back on my phone it just won't show the edited files. I checked with 7z and the files are in there, checked any other map for the same files but nope.
I did encounter a few errors with compiling and working with .9.png's since it is my first time. But I could find everything I needed to fix them and eventually got it right, just can't find how to get it to show my edited files.
Some help would be really appreciated=)

anyone?

turkey744 said:
anyone?
Click to expand...
Click to collapse
How did you edit it with gimp? You cant test it with the draw 9 tool that is used to redraw the lines.
Also remember that you have to remove the border before you edit the image or run it through the .9 tool.

zelendel said:
How did you edit it with gimp? You cant test it with the draw 9 tool that is used to redraw the lines.
Also remember that you have to remove the border before you edit the image or run it through the .9 tool.
Click to expand...
Click to collapse
I put in 2 layers since I changed the opacity which affects the whole picture. So i redrew the black lines in a new layer at the same spot with the same colour(many people mentioned that you could just redraw it).
Previously I didn't redraw the black lines but then it failed to compile the app.

turkey744 said:
I put in 2 layers since I changed the opacity which affects the whole picture. So i redrew the black lines in a new layer at the same spot with the same colour(many people mentioned that you could just redraw it).
Previously I didn't redraw the black lines but then it failed to compile the app.
Click to expand...
Click to collapse
You can but it is unstable and it has to be the top layer when you merge the image. I would not advise doing this way and would tell anyone that is that they are doing it wrong.

zelendel said:
You can but it is unstable and it has to be the top layer when you merge the image. I would not advise doing this way and would tell anyone that is that they are doing it wrong.
Click to expand...
Click to collapse
Just made sure it was the upper layer, still the same result. And I already tried manually drawing the lines in 9patch with the same result. The files seem to be fine, if they weren't then shouldn't whatsapp be unable to open/install?

turkey744 said:
Just made sure it was the upper layer, still the same result. And I already tried manually drawing the lines in 9patch with the same result. The files seem to be fine, if they weren't then shouldn't whatsapp be unable to open/install?
Click to expand...
Click to collapse
Then it is pulling the images from another folder. Use the layouts folder to find out where. I no longer use whatsapp so I'm not sure where they would be.

zelendel said:
Then it is pulling the images from another folder. Use the layouts folder to find out where. I no longer use whatsapp so I'm not sure where they would be.
Click to expand...
Click to collapse
I can't find anything else that could be used as the balloons. Even checked my theme if that has something inside from whatsapp. Since it does overlay some parts, but not the bubbles. Can't I put my edited files in there so my theme overlays them?

Still could use some help

Related

[REQ] Metamorph to remove 'phone' text from black droid launcher

I can't find the original post on this forum that contained the attachment, so I am attaching it here. I'm not sure what was changed in the file to get it to do it. Was hoping I could find more info from the person who made it... but I can't find the post.
Can anyone help with this, please?
Thanks!
That's weird. I just got a PM about an hour ago regarding the same question. When the "mods" thread got "cleaned up" much of the stuff went missing, unfortunately.
The phone text is cleared out in:
Rosie.apk\res\layout-port\button_bar.xml
Attached is a patched XML file that will clear the text out. You will still need to replace the applicable .png files with transparent ones, for example, if you want to remove the phone icon, etc.
Download <--- Right click to save the file, otherwise, it will attempt to load in your browser.
wow lol thats kinda funny
wtphoto said:
wow lol thats kinda funny
Click to expand...
Click to collapse
I know, right? Well, here you go .
JsChiSurf said:
That's weird. I just got a PM about an hour ago regarding the same question. When the "mods" thread got "cleaned up" much of the stuff went missing, unfortunately.
The phone text is cleared out in:
Rosie.apk\res\layout-port\button_bar.xml
Attached is a patched XML file that will clear the text out. You will still need to replace the applicable .png files with transparent ones, for example, if you want to remove the phone icon, etc.
Download <--- Right click to save the file, otherwise, it will attempt to load in your browser.
Click to expand...
Click to collapse
Thanks. That worked in removing the phone text, but it didn't center the phone icon on the button. Can you do that, too?
I can't seem to find the file that centers the phone image onto the middle button for the launcher. I've tried launcher.xml but no dice. bb_btn_middle.xml perhaps?
Also, could you provide some insight into what folders to edit? What is mdpi, land, port? Which folders get edited with our phone? I find myself constantly playing a guessing game with which folder the edits go into.
EDIT: Ok, it turns out it was the button_bar.xml file. Now that I knew that, I pulled it out of the zip in the first post and the phone icon is centered. Attached just the xml.
Jedis said:
I can't seem to find the file that centers the phone image onto the middle button for the launcher. I've tried launcher.xml but no dice. bb_btn_middle.xml perhaps?
Also, could you provide some insight into what folders to edit? What is mdpi, land, port? Which folders get edited with our phone? I find myself constantly playing a guessing game with which folder the edits go into.
EDIT: Ok, it turns out it was the button_bar.xml file. Now that I knew that, I pulled it out of the zip in the first post and the phone icon is centered. Attached just the xml.
Click to expand...
Click to collapse
The phone icon is in Rosie.apk res/drawable-normal-mdpi. Its called icon_p_phone_rest.png and icon_p_phone_on.png.
VinceOB said:
The phone icon is in Rosie.apk res/drawable-normal-mdpi. Its called icon_p_phone_rest.png and icon_p_phone_on.png.
Click to expand...
Click to collapse
I didn't need to edit the actual png, it was just something in the xml file that centered the placement of it. It's all fixed.
My goal is all Metamorph's with the black droid launcher with phone text removed, all clear widgets (Digital Clock Widget, GenieWidget, pure calendar, pure music player, power control widget, etc). Genie, pure calendar/music is done. Digital Clock Widget is working, but tapping on it to edit the alarm is busted since the WorldClock was removed for the lockscreen...
I'm sick of remembering which files were editted in the apk files to achieve the mods... Metamorphing will make everything much easier, but it's a process to figure out which files were edited, since repacking the zipfiles usually modifies the 'modified date'.

[REQ] How to change the color of pattern unlock

I have seen images of this done, but I can't find the xml controlling the color of the grey line that appears when you draw the pattern. I have looked through a lot of apk who could be the culprit, but with no luck. Anyone know where to find it?
tristan202 said:
I have seen images of this done, but I can't find the xml controlling the color of the grey line that appears when you draw the pattern. I have looked through a lot of apk who could be the culprit, but with no luck. Anyone know where to find it?
Click to expand...
Click to collapse
Have a look in /system/framework and extract the file "framework-res.apk". That file contains a lot of images and stuff you can mod, make sure you don't change any filenames or your device might not boot.

[Q] PNG's in the framework (Resolved)

some of the png's i open in photoshop have a black background/black pixely border. i have took a ss of one of the media control images as an example and it's attached below.
if anyone knows why this is happening could you please give me an idea? It's not all just a few here and there.
droidx11 said:
some of the png's i open in photoshop have a black background/black pixely border. i have took a ss of one of the media control images as an example and it's attached below.
if anyone knows why this is happening could you please give me an idea? It's not all just a few here and there.
Click to expand...
Click to collapse
because i believe you are looking at .9.png's which use black borders as a guide for stretching if the file is something.9.png then that is your answer
hmm.. i haven't seem to have a problem editing the .9 PNG's, i've tried searching this forum and a few other forums and haven't found that anyone has asked this.. that particular png file name is "ic_media_play". i've also had the same problem when opening the wifi, 3g, some of the keyboard buttons, the "spinner_black_16" image. i've tried opening them in firefox then copying image, dragging them directing into photoshop and a few other things. sorry if this is a newb question...
droidx11 said:
hmm.. i haven't seem to have a problem editing the .9 PNG's, i've tried searching this forum and a few other forums and haven't found that anyone has asked this.. that particular png file name is "ic_media_play". i've also had the same problem when opening the wifi, 3g, some of the keyboard buttons, the "spinner_black_16" image. i've tried opening them in firefox then copying image, dragging them directing into photoshop and a few other things. sorry if this is a newb question...
Click to expand...
Click to collapse
well ic_media_play isnt a .9.png so if it has a black outline its just for the way it looks the wifi, 3g, and spinner_black_16 images you shouldnt have a problem with since they arent .9.png's either, most of the keyboard images are tho and will need to be decompiled and recompiled to get them to work correctly. im working on a theme right now and theres no easy way to edit them, oh also if you're using something like 7zip to open up the apk that might be your problem i edit most of mine in Linux so i dont remember if you can open them in Photoshop without decompiling but the best way is to decompile, edit, then recompile and there are guides out there that describe how to better than i could but search for apktool or apkmanager
Funnyface19 said:
well ic_media_play isnt a .9.png so if it has a black outline its just for the way it looks the wifi, 3g, and spinner_black_16 images you shouldnt have a problem with since they arent .9.png's either, most of the keyboard images are tho and will need to be decompiled and recompiled to get them to work correctly. im working on a theme right now and theres no easy way to edit them, oh also if you're using something like 7zip to open up the apk that might be your problem i edit most of mine in Linux so i dont remember if you can open them in Photoshop without decompiling but the best way is to decompile, edit, then recompile and there are guides out there that describe how to better than i could but search for apktool or apkmanager
Click to expand...
Click to collapse
first i'd like to thank you for your response. what i am doing is unzipping the contents from framework-res with winrar. (i was planning on just replacing the unzipped folders with the existing folders that are in framework-res, just overwriting them.) then i just pulled the images from the unzipped folder, res -> drawable-hdpi, into photoshop... in the unzipped folder thumbnail image, these images seem to look okay, no border/stroke around the edges, no black bg etc. but in photoshop they seem to have locked layers named "index" which i just change the mode to RGB to make the layer editable. i'm not sure what i'm doing right, i'm sure it's something i'm not doing right, i just can't figure it out - maybe i'll try a different program to unzip the folder?
i've attached a ss of the folder with the thumbnail images looking okay.
(p.s. this theme is for my gf)
I've been working on a theme also, though not for the DX... I had to completely remake the PNG's in question. I'm on OSX using Photoshop and it does the same thing. First start with an indexed color version then once you get it done on a block level convert it to an RGB 8-bit image and smooth the image with a very mild gaussian blur or lens blur... personally I use gaussian.
Here's a screenshot of mine in action... I made the "empty" signal bars hollow with a neon outline..
You'll want to use 7-zip, not sure about the black stroke on the images, sounds like a .9 PNG issue. I don't use Photoshop personally, I use Fireworks. It could be Photoshop putting the stroke on the images...If you have access to Fireworks, trying using that instead.
k0smo86 said:
You'll want to use 7-zip, not sure about the black stroke on the images, sounds like a .9 PNG issue. I don't use Photoshop personally, I use Fireworks. It could be Photoshop putting the stroke on the images...If you have access to Fireworks, trying using that instead.
Click to expand...
Click to collapse
winRAR is fine too you can open a zip file without having to unzip the entire contents, personally i use linux/Ubuntu which has an awesome photoshop like picture editor G.I.M.P. idk if you can download it or not for windows but you could check it out
droidx11 said:
first i'd like to thank you for your response. what i am doing is unzipping the contents from framework-res with winrar. (i was planning on just replacing the unzipped folders with the existing folders that are in framework-res, just overwriting them.) then i just pulled the images from the unzipped folder, res -> drawable-hdpi, into photoshop... in the unzipped folder thumbnail image, these images seem to look okay, no border/stroke around the edges, no black bg etc. but in photoshop they seem to have locked layers named "index" which i just change the mode to RGB to make the layer editable. i'm not sure what i'm doing right, i'm sure it's something i'm not doing right, i just can't figure it out - maybe i'll try a different program to unzip the folder?
i've attached a ss of the folder with the thumbnail images looking okay.
(p.s. this theme is for my gf)
Click to expand...
Click to collapse
lol sure its for HER lol you can use 7zip/winRAR either one but use it to extract the drawable res folder out and pull them into photoshop, edit the ones you want and put them back in the one already zipped up, but if you do it that way stay away from .9.png's
XGX5309 said:
I've been working on a theme also, though not for the DX... I had to completely remake the PNG's in question. I'm on OSX using Photoshop and it does the same thing. First start with an indexed color version then once you get it done on a block level convert it to an RGB 8-bit image and smooth the image with a very mild gaussian blur or lens blur... personally I use gaussian.
Here's a screenshot of mine in action... I made the "empty" signal bars hollow with a neon outline..
Click to expand...
Click to collapse
looks very nice so far, did you edit the analog clock also? looks amazing... thanks for the tips.
k0smo86 said:
You'll want to use 7-zip, not sure about the black stroke on the images, sounds like a .9 PNG issue. I don't use Photoshop personally, I use Fireworks. It could be Photoshop putting the stroke on the images...If you have access to Fireworks, trying using that instead.
Click to expand...
Click to collapse
thanks for the advice, i'll give fireworks a try and see how it turns out.
Funnyface19 said:
lol sure its for HER lol you can use 7zip/winRAR either one but use it to extract the drawable res folder out and pull them into photoshop, edit the ones you want and put them back in the one already zipped up, but if you do it that way stay away from .9.png's
Click to expand...
Click to collapse
hahaha yea i was trying on that pink to see how it looked on me . I'm going to try to dl GIMP along with fireworks to see how they turn out and yea i've read about those .9.png's on other threads about how they weren't changing over in certain apps. hopefully i won't run into this problem but if i do then its back to the pros on xda for advice. lol
Update - Editing the PNG's in fireworks, works like a charm, a lot smoother. Thanks everyone for your useful and helpful information
You should be able to option +2x click the index layer and then cmd + J in PS to mod it without redrawing it.
Hth
Sent from my SCH-I800 using XDA App

[Q] Background Colors - SMS, Conversation History...

I know this is probably petty, but for me it's sort of a big deal.
I like light characters on a black screen, especially at night. There are flashlight apps to turn the screen white because it's bright and at night I would prefer to have a black screen.
Is there a way to change the conversation history to black, and lso for the background behind the balloons in an SMS?
Is there a ROM that has an option for this?
Thanks for the help!
Go sms. Totally customizable. Backgrounds, fonts, font colors, etc
Sent from my SAMSUNG-SGH-I727 using Tapatalk
Ends said:
Go sms. Totally customizable. Backgrounds, fonts, font colors, etc
Sent from my SAMSUNG-SGH-I727 using Tapatalk
Click to expand...
Click to collapse
Handcent will let you do this too.
If you get GoSMS Pro, grab the Theme builder in the market as well. It will allow you to totally create your own theme.
liquidzoo said:
Handcent will let you do this too.
If you get GoSMS Pro, grab the Theme builder in the market as well. It will allow you to totally create your own theme.
Click to expand...
Click to collapse
I should have included that I've tried all those. Yes, they're good and very customizable. But I've not been able to get them to work seamlessly and to replace the stock messaging. One of those my keyboard does't display properly with and simple other things. Plus I really like how I can go to messages and slide to the right to call. That's the easiest way to call people. That's my favorite feature and no one else has that.
What's so hard about changing the stock messaging to black with white text? lol At one point there was a night mode that made the conversation history black, but not now.
One question... For example a lock screen. There are different ones to install. Is there a different messaging to install to replace stock that someone has added things to? I don't even know if it's possible to replace messaging or not. I don't really want to install another app... I've just not had the best luck with them having the right feel.
Firstly, are you on GB or ICS? And which ROM?
If GB, you could swap out the AT&T mms.apk with the Rogers version, as they use a dark charcoal background behind matte blue and yellow bubbles (was always my favorite). Or you could try the mms.apk that Sean used to include in his GB ROMs. It was basically stock, but came with 5 themes. If you're on NexusMod GB, somewhere in the thread R4INS posted a CM7 mms.apk which has a light and dark theme.
If you're on an AOSP ICS (which I know you're not since you mention swipe to call), you could try the inverted mms.apk, which is black. If you're on stock ICS, the only thing I can think of is to just decompile the apk and use Gimp to change the colors as you'd like them (which goes for any apk really), although I think the important images are *.9.png's which are tricky. Or since you like TouchWiz, see what the T-Mobile mms.apk from their leak looks like? And if it works? As I don't know the answer to either.
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
I'm running ICS that I just flashed. I put in SKYICS also.
Thank you for getting back to me. I'm new to this and starting to figure things out. I opened the mms.apk with WinRar and found most of what I want to change. I've not used Gimp. For colors I usually use Office Picture Manager. I'll have to check out Gimp. I'm starting to understand a little about the xdaAutoTool. I suppose I have to decompile the mms.apk , modify what I want, then recompile it, zip it all back up, then install it through CWM. I can't get the adaAutoTool to run because of the OCX thing and I don't know how to register the files. I wish I knew someone that could decompile the apk, let me change some of the .png files and recompile it for me. I want to change the editor box from this almost black to black beause it looks incredibly grainy at 1% gray or whatever it is. The hard thing for me would be figure out how to change the text color to white if I had to on the conversation list. I think I'll do as you suggested and look for another mms.apk.
You said I like TouchWiz... I'm not exactly sure what that even is. Isn't that something to do with the buttons and how they look at the bottom?
You mentioned the CM7 something. I'm not exactly sure what the CM is. I have CM5 and it said I have a mismatch when I tried to restore my original ROM that I backed up. it was 2.3.6 I think.
Thanks for the help and I'll be back. I'm going to look for another mms.apk...
CodeRedDewd said:
I'm running ICS that I just flashed. I put in SKYICS also.
...
I'm going to look for another mms.apk...
Click to expand...
Click to collapse
I think I may have just come across a solution for you. Did you see this post in the SkyICS thread?? I'd look into that one first before attempting any of the above.
---------- Post added at 05:51 PM ---------- Previous post was at 05:43 PM ----------
CodeRedDewd said:
I'm new to this and starting to figure things out. I opened the mms.apk with WinRar and found most of what I want to change. I've not used Gimp. For colors I usually use Office Picture Manager. I'll have to check out Gimp. I'm starting to understand a little about the xdaAutoTool. I suppose I have to decompile the mms.apk , modify what I want, then recompile it, zip it all back up, then install it through CWM. I can't get the adaAutoTool to run because of the OCX thing and I don't know how to register the files. I wish I knew someone that could decompile the apk, let me change some of the .png files and recompile it for me. I want to change the editor box from this almost black to black beause it looks incredibly grainy at 1% gray or whatever it is. The hard thing for me would be figure out how to change the text color to white if I had to on the conversation list. I think I'll do as you suggested and look for another mms.apk.
Click to expand...
Click to collapse
Now I'm no expert on this or anything and haven't done much research on it, so I don't know everything you're talking about. But when I manually swapped out battery icon images from framework-res.apk, I didn't do any unzipping, rezipping, decompiling, recompiling. All I had to do was *open* the archive with 7zip (NOT unzip). Delete the images in there I wanted to replace. Then drag and drop the new images into the archive. As long as they were the same names and I wasn't adding or removing any images, there was no need to change any of the XML files. And it all worked fine.
As I said though, if I recall (as I actually looked into trying to do this myself with the help of another guy -- I wanted to make the AT&T mms.apk look like the Rogers mms.apk) the background image and maybe the bubble images too are 9-patch files, which are the image_name.9.png files. They require a very special process for editing. So that might require a bit more work.
---------- Post added at 05:58 PM ---------- Previous post was at 05:51 PM ----------
CodeRedDewd said:
You said I like TouchWiz... I'm not exactly sure what that even is. Isn't that something to do with the buttons and how they look at the bottom?
Click to expand...
Click to collapse
Haha something like that. TouchWiz is the graphical overlay (UI skin) Samsung puts on top of "vanilla" Android, or AOSP. Every manufacture does it. Motorola's is called MotoBlur. HTC's is called Sense. And so on. The Nexus line of phones is the only one to get stock, vanilla Android (AOSP). So it's the reason all android phones from the same manufacture look somewhat the same.
TouchWiz does consist of those buttons at the bottom and how they look (I assume you're talking about the docked apps - Phone, Contacts, Email, Apps). But it's also the system apps (Messaging, Email, Phone, Contacts, Settings, etc.) and how they look and act. The swipe right to call / swipe left to message is a feature of TouchWiz, which is why I said you liked TW because you like that feature.
---------- Post added at 06:07 PM ---------- Previous post was at 05:58 PM ----------
CodeRedDewd said:
You mentioned the CM7 something. I'm not exactly sure what the CM is. I have CM5 and it said I have a mismatch when I tried to restore my original ROM that I backed up. it was 2.3.6 I think.
Click to expand...
Click to collapse
CM stands for CyanogenMod and consists of a more AOSP feel, unlike Samsung's TouchWiz. So it doesn't have the swipe to call feature; usually just tap the contact picture inside Messaging and it gives you the option to call. CM7 was their Gingerbread build. CM9 is their Ice Cream Sandwich build.
Basically CyanogenMod has created a replacement/aftermarket firmware to replace Google Android (AOSP). It's sort of different than just a custom ROM because a custom ROM is usually just built with one phone in mind (whichever one the developer owns). CM is a firmware built the same way, with the same features, for as many phones as they can support. So your specific phone still needs to be supported and have its own specific build, but once you have it on you phone, it will look and feel just like any HTC, Motorola, etc. that is also running CM.
So it's based off of Google Android (AOSP), it's completely self-contained as its own operating system (somewhat anyway).
We have an unofficial alpha of CM9 in the development section if you want to give it a shot! (Unofficial means it's not being built by or currently supported by the actual CyanogenMod team. Just a private individual is using their source code to make it work with our Skyrocket.) It works rather well and is like 99.5% a daily driver.
Wow, thank you for that information. Some of the fuzzy things are a little clearer now but not much. lol
What you said about replacing a png - I opened the ROM in 7Zip, clicked down to the Mms.apk. I right clicked and copied to desktop. I opened that in 7Zip and dragged and dropped the png into that. I changed the file extinsion to .zip and put in on my phone. When I tried to install it though CWM touch it just aborted.
I'm not 100% sure, but I edited the png in paint. I magnified it 800 times and could see a perfect rectangle inside of this other stuff. I only made the perfect rectangle black and saved. The one I'm doing is textfield_default_dark.9.png. I don't quite think I edited it wrong since it wouldn't even install. My editing wrong would make it FC or not show right?? I don't know how to troubleshoot.
In the meantime I'm going to check out some of your other suggestions. However I would LOVE to be able to fix what I want. Why make a black that's not black and can't be displayed right by the display because the pixels are just barely on?
Suggestions on my proceedure? I read somewhere earlier that there has to be some something done to the png for permission or something strange....
I checked out the dark themed Mms.apk you mentioned at the top. This is what it says.
This is not flashable. what you'll need to do is navigate to system--> app, rename your current mms.apk to something like "mms.apk.old" or "mms.apk.bak". Then paste the attached into the same folder. Reboot your phone and voila.
I lost root access and cannot get it back when I installed SKYICS. I'm running UCLD2. I haven't been able to put together what to do about this. I tried to install my original backup and it said CM5 mismatch or something. I do believe I need root access to navigate to the system folder because I can't find it?
yeah. you need root. you dont really need to "flash" in CWM. Just replace the original in the system. But you do need root. Reboot into recovery and flash superuser
I did that a few times and nothing. I gave up on rooting for a while then now I'm rooted. Titanium, when I opened it, asked for permission. It wouldn't do that yesterday. I'm just going to have to say okay I'm rooted.
I'm trying to find the system directory right now...
CodeRedDewd said:
I'm not 100% sure, but I edited the png in paint. I magnified it 800 times and could see a perfect rectangle inside of this other stuff. I only made the perfect rectangle black and saved. The one I'm doing is textfield_default_dark.9.png. I don't quite think I edited it wrong since it wouldn't even install. My editing wrong would make it FC or not show right?? I don't know how to troubleshoot.
Click to expand...
Click to collapse
Yea so like I said, since it's a 9-patch file (*.9.png), I'm not sure if you can just edit the image and throw it back in there. I'm guessing that Paint only recognizes it as a *.png, and so saves it as such. 9-patch images need to be recompiled, as far as I know. So that might've screwed you up, even if you installed it right.
CodeRedDewd said:
What you said about replacing a png - I opened the ROM in 7Zip, clicked down to the Mms.apk. I right clicked and copied to desktop. I opened that in 7Zip and dragged and dropped the png into that. I changed the file extinsion to .zip and put in on my phone. When I tried to install it though CWM touch it just aborted.
Click to expand...
Click to collapse
So about installing it. Everything above sounds like the correct process EXCEPT for changing the file extension. A CWM flashable zip isn't just any old zip file. It's has a certain structure to it and includes a script file that tells CWM exactly what to do with the information contained inside the zip. With a system apk, all you need to do is get the file on your phone somehow (microSD, USB cable, Dropbox, etc.), and then copy and paste it into the /system/app directory, afterwards setting its permissions to rw-r--r--. To do this, yes you will need root access. It shouldn't be that hard to just root again if you lost it somehow. Or judging by your last post, you may have successfully rooted again.
CodeRedDewd said:
I checked out the dark themed Mms.apk you mentioned at the top. This is what it says.
This is not flashable. what you'll need to do is navigate to system--> app, rename your current mms.apk to something like "mms.apk.old" or "mms.apk.bak". Then paste the attached into the same folder. Reboot your phone and voila.
I lost root access and cannot get it back when I installed SKYICS. I'm running UCLD2. I haven't been able to put together what to do about this. I tried to install my original backup and it said CM5 mismatch or something. I do believe I need root access to navigate to the system folder because I can't find it?
Click to expand...
Click to collapse
Which brings us back to this mms.apk. Definitely give this app another shot using the above method once you obtain root again. You will need an app such as Root Explorer, which can be downloaded from the Market.
As far as restoring your backup, the error you received was an MD5 checksum mismatch error. You can Google what MD5 means, and possible reasons why CWM gave you that error. I think it gives it to you sometimes when you rename a backup file and put a space in the file name.
I'll have to research that MD5 thing...
I got the Mms.apk copied to the right directory and my changes worked. I have to use something other than paint that allows me to keep white as the transparant color. This is pretty awesome... Maybe I'll post my result when I figure out what's going on. I'm thinking the text field is a box within a box. I got a black box with a very dark gray one in the middle... But it's progress! Thanks for your help!
CodeRedDewd said:
I'll have to research that MD5 thing...
I got the Mms.apk copied to the right directory and my changes worked. I have to use something other than paint that allows me to keep white as the transparant color. This is pretty awesome... Maybe I'll post my result when I figure out what's going on. I'm thinking the text field is a box within a box. I got a black box with a very dark gray one in the middle... But it's progress! Thanks for your help!
Click to expand...
Click to collapse
That's awesome man, good job! Wanna post a screenshot for me? A before and after if you have it?
But if you need something better than Paint, I'd look into Gimp. It's what most of the guys on here use. It's basically the Linux version of Photoshop. And being Linux, it's free and open source... and has been ported over to Windows. It works great for quick image editing. Just takes a bit of Googling to learn all the buttons haha.
I'm using Gimp because it keeps the transparant background. I had a big white box around my box from paint.
Update: When I used paint, it seemed things worked correctly besides the white box around the editor. The transparancy was lost. In Gimp, if I change 1 pixel I get a whole distorted image for the editor. In paint, I made the blue line gold and the box black. That looked great. Nothing seems to be working right with Gimp. Wait, in Paint I did notice one thing. The box was a true black, but with a lighter black, wide stripe in the middle from end to end, as if it was another png inserted into it. Hmmm... In Gimp it looks like nothing is getting inserted and the small image is stretching all the way across with the thin blue line getting super fat. I didn't jack the image up. I only changed one pixel to red in the middle of the black. I'm thinking there's more to this. Someone posted something about a decompiled image that had extra dots around the edge and one a one pixel line on two sides or something. I didn't break anything, because I put in an untouched png and it fixed things, so it's just the image.
Any ideas? I'm headed out to watch a movie, but I'm determined.
Look for a brush diameter or feathering option in Gimp and change it to the smallest one you have. I've had to do that in both Photoshop and Gimp before to get the apk changes I've made to look right and not have that outlining that you're referring to.
I understand what you mean, but this is different.The .9.png looks exactly the same when I edit it. I'm just making it darker. The .9.png files are made of 9 sections taht are stretched individually so the image is not distorted. In my case, Gimp is destroying that ability and the image is getting stretched the wrong way when displayed. For example, if you stretch a line along its lengt it still looks like the same line only longer, which is what they do. But if you stretch it across its width, it becomes this fat line, which is what is happening in my case.
I think you're editig just .png and not .9.png files?
CodeRedDewd said:
I understand what you mean, but this is different.The .9.png looks exactly the same when I edit it. I'm just making it darker. The .9.png files are made of 9 sections taht are stretched individually so the image is not distorted. In my case, Gimp is destroying that ability and the image is getting stretched the wrong way when displayed. For example, if you stretch a line along its lengt it still looks like the same line only longer, which is what they do. But if you stretch it across its width, it becomes this fat line, which is what is happening in my case.
I think you're editig just .png and not .9.png files?
Click to expand...
Click to collapse
Do you think some information in this tutorial could be of any help? There's also a video tutorial available.
Yes it's possible that would be very helpful. I found either that or another tutorial last night. It was interesting how the .9.png files are sectioned. I conda figured that out on my own, because it would have to be to get bigger and not distort fine lines. I'll have to find that tutorial itself, because that post you linked has no links in it. I went to a 9patch website or something that had all the stuff, but it got too deep pretty quickly. In the short time I studied it, I had no clue how to even begin to install and use the program.
What baffles me is how Paint didn't screw up the .9.png. It worked fine with my edits, only it had no transparency so there was a white border. It was able to scale fine to landscape and portrait. It looked great. I totally though I had it figured out. :/ Have you looked at how to do .9.png files?
CodeRedDewd said:
Yes it's possible that would be very helpful. I found either that or another tutorial last night. It was interesting how the .9.png files are sectioned. I conda figured that out on my own, because it would have to be to get bigger and not distort fine lines. I'll have to find that tutorial itself, because that post you linked has no links in it. I went to a 9patch website or something that had all the stuff, but it got too deep pretty quickly. In the short time I studied it, I had no clue how to even begin to install and use the program.
What baffles me is how Paint didn't screw up the .9.png. It worked fine with my edits, only it had no transparency so there was a white border. It was able to scale fine to landscape and portrait. It looked great. I totally though I had it figured out. :/ Have you looked at how to do .9.png files?
Click to expand...
Click to collapse
The tutorial is contained in the OP of that post I linked to. It contains links for all the tools you need and a short description of the process to follow. And then I think the video tutorial might just guide you through the OP of that first link.
But yea, that's really interesting how Paint worked so well. Did you happen to take any screenshots of the Paint-edited apk running on your phone?
And no, I actually have never looked into editing .9.png files. Didn't really even know how they worked until you explained them a little bit in one of the above posts.
I attached an image. I'm not sure if it's going to show up in the post as an image; we'll see.
There is a white box around what is suppose to be shown as the editor. In the center of the black box it's not true black as the black surrounding it that I changed in the .9.png. The center must be another image.
I'm thinking I'm just going to make the white black, find the other gray images the buttons are on and make that one black. Who needs transparancy when it's all black, which is what I want anyway. lol
I'm going to look into the 9patch some more... It just seems so complicated with how to install and get working. It would be nice to work with someone who is actively editing .9.png's to get me on track....
Do you have an interest in editing those png's? lol

Help with Framework-res

Hi guys
I have edited my framework-res.apk (de and recompile with advanced_apktool and ticklemyandroid )for reducing the navbar height to 36 dip and i got this after booting my devices...
Image1
Image2
I have tried to change the theme and rebooted but the issue is not solved ...
Thanks for helping me
lordriguez said:
Hi guys
I have edited my framework-res.apk (de and recompile with advanced_apktool and ticklemyandroid )for reducing the navbar height to 36 dip and i got this after booting my devices...
Image1
Image2
I have tried to change the theme and rebooted but the issue is not solved ...
Thanks for helping me
Click to expand...
Click to collapse
i cant understand that language
arismelachrinos said:
i cant understand that language
Click to expand...
Click to collapse
Sorry it's in french the first image is power off, reboot and so one, the second image is the message for safe reboot
You're referring to how the popup dialogs have that white around them, right?
I could be wrong, but from your screenshots, it looks as if the images that are used for the dialog box lost their transparency for some reason, so you're seeing white with the shadow over it, instead of the shadow over whatever is behind the dialog as it should look. Is the nav bar size the only thing you've modified? If so, then maybe APKTool and/or TickleMyAndroid is/are at fault. I believe APKTool compresses images before recompiling, so it might have saved those images incorrectly without transparency. I'm not sure how to make it handle images differently, though (I feel like there should be some parameters if you're using it through the command prompt and not with a GUI tool).
A good way to test my theory would be to start fresh, decompile your framework-res.apk and then just recompile it without modifying anything. Push it to your system and see if you still see this issue. If you do, then you know the tool is messing up the images somehow, but if not, then something you modified the first time is causing the problem. If it seems like APKTool is your culprit, then I would suggest first trying something like APK Multi-Tool. It's the only tool I use for modifying APKs and it never gives me any problems. Try it out and see if it produces the same results. If it still does, you can try the "Keep folder" option it has, which will copy over all the original files from the APK that you didn't modify exactly as they are, without touching them at all, to prevent errors.
neonixxx said:
You're referring to how the popup dialogs have that white around them, right?
I could be wrong, but from your screenshots, it looks as if the images that are used for the dialog box lost their transparency for some reason, so you're seeing white with the shadow over it, instead of the shadow over whatever is behind the dialog as it should look. Is the nav bar size the only thing you've modified? If so, then maybe APKTool and/or TickleMyAndroid is/are at fault. I believe APKTool compresses images before recompiling, so it might have saved those images incorrectly without transparency. I'm not sure how to make it handle images differently, though (I feel like there should be some parameters if you're using it through the command prompt and not with a GUI tool).
A good way to test my theory would be to start fresh, decompile your framework-res.apk and then just recompile it without modifying anything. Push it to your system and see if you still see this issue. If you do, then you know the tool is messing up the images somehow, but if not, then something you modified the first time is causing the problem. If it seems like APKTool is your culprit, then I would suggest first trying something like APK Multi-Tool. It's the only tool I use for modifying APKs and it never gives me any problems. Try it out and see if it produces the same results. If it still does, you can try the "Keep folder" option it has, which will copy over all the original files from the APK that you didn't modify exactly as they are, without touching them at all, to prevent errors.
Click to expand...
Click to collapse
Thanks I will test it and and let you know!!!
By the way I solve the issue by changing the apktool_2.0.3 to apktool_2.0.1 on Advanced apktool the resources.arsc was way bigger with 2.0.3 and all is fine now!
lordriguez said:
Thanks I will test it and and let you know!!!
By the way I solve the issue by changing the apktool_2.0.3 to apktool_2.0.1 on Advanced apktool the resources.arsc was way bigger with 2.0.3 and all is fine now!
Click to expand...
Click to collapse
Awesome! Sounds like it could have indeed been what I was saying, judging by the increased resources size, but I guess it doesn't really matter now unless you're curious Glad you got it working!
neonixxx said:
Awesome! Sounds like it could have indeed been what I was saying, judging by the increased resources size, but I guess it doesn't really matter now unless you're curious Glad you got it working!
Click to expand...
Click to collapse
Yeah Curiousity is the mother of XDA :good::highfive:
Thanks for help buddy!

Categories

Resources