[REQ] How to change the color of pattern unlock - Nexus One Themes and Apps

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.

Related

[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

XML Marker and Metamorph

I'm trying to make a battery meter for my rooted Inspire. I downloaded a battery meter to use as a guide template for mine. I have made all the icons and set up my folders exactly the same as the template. I opened the xml file and replaced all the fields with my own information so they are basically the same as the template. When I try to unzip and use it in metamorph, it says that it's not a valid theme file. Can anyone tell me what I'm doing wrong? I've never done this before so I'm trying to learn all I can. I'm not familiar with xml. Is it not ok to just copy the code and change the info? Thanks in advance.
Ok well I'm starting to see my problem isn't editing the xml tags...but the last part of the code, where it's asking for the .apk you're editing and the path. How do I find that information?

[Q] APK Multi-Tool Cannot Edit Colors in .APK

Hey Ya'll! I've hunted everywhere for an answer to this question. Hopefully I have it in the right place? I uploaded and decompiled an .APK file that I wanted to edit (the colors/pngs to be specific). It decompiled just fine. When I open the images in the res-drawable hdpi folder to edit, the colors will not change. The only color I have successfully used is white. Anything else just turns the original color to an off-color
Example: Dark grey will turn to light grey.
... if that makes any sense! It happened to me before, but then started working so I'm not sure what to do or what is causing it... HELP PLZZ!!!
SO SORRY for taking so long to respond to this... I was cleaning out my Email and must have overlooked your response! Which BTW I Thank you for. My answer is: I open the project file from APK Mult-tool>Res>Drawable>HDPI ... once I open these images in the hdpi file they're the ones that won't edit color... someone told me that some people who build the Themes lock their images so they can't be edited? Not sure

[Q] Edit .9.png files

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

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