Problems with editing pngs - T-Mobile Samsung Galaxy S II SGH-T989

Hi I am trying to theme the digital clock apk, I am able to use my edited apk when pushed back to my device, the catch is that it only works when editing certain pngs (the number pngs). The second I try to edit any of the Sun-Saturday files the apk stops working when I push it back to my device. I have tried resigning the apk, but this doesn't seem to fix my issue either. Any ideas? I don't understand why certain pngs can be edited but others cannot; Any ideas?

No ideas huh? I guess I'll try a different image editor... Still stumped.
Sent from my SGH-T989 using xda premium

...
Hey, I have the same issue here, I can edit only some pngs, not everything.

did you check the permission?

Do u know how to edit .9 images properly? Check to see if the ones you are having trouble with are .9. To my understanding if you don't edit them correctly you'll have issues after recompiling the apk. Google .9 editing; hope this helped.
Sent from my SGH-T989 using xda app-developers app

That is what I was going to suggest, about the .9.png's. Make sure the 1px border is completely black after editing the image
Sent from my SGH-T989D using Tapatalk 2

Related

[Q] red sliding tabs, loading bars, and volume bar....

Bear with me guys....I know this is a question and would be better suited in Q&A but Idt anyone in there would no the answer.....I want a red themes phone.....I was able to do the keyboard with HTC IME and I used uot kitchen for the status bar and icons. But I want more than just this....I want to make my sliding tabs on my lockscreen red with red icons. I also want red loading bars and status bars.....pretty much anything that was white I want to make red.....is there any way I can do this?
Sent from my ADR6300 using XDA App
You need to edit images if your using cm7 or a Gingerbread Tom its in framework-res in the framework folder and in SystemUI on the app folder as for sense you will need to edit files in the HTC resources apk its in the framework folder if its a sense 2.0 Tom then inside of the I believe customize folder find an apk to edit(that is if your wanting to be able to resourt to stock theme) and edit that or just edit the HTC resource file like mentioned for sense sorry if there are any mistakes in this I'm on my phone and can't check for proper names of the locations.
Sent from my ADR6300 using XDA App
Ok thanks for the info....what programs are out there that are good for editing these apks? I'm sorry I'm new to editing apks and this is my learning experience!
Sent from my ADR6300 using XDA App
Well to edit the images in the apk just change the .apk to .zip and look through it for the files you want to edit they will be images as for the txt you will need to edit the services.jar there is a guide on here somewhere that tells you how to do it just Google changing txt color in android notification bar.
Sent from my ADR6300 using XDA App
I'm not worried about text color I already did the notification bar I'm more concerned with the lock tabs and loading bars....the small green accents here and there
Sent from my ADR6300 using XDA App
Those are in framework-res if your on an aosp rom so just open it up and play around.
Sent from my ADR6300 using XDA App
Also what program should I use to edit xml documents?
Sent from my ADR6300 using XDA App
That's something I'm not exactly sure of you will need to decompile the apk first if I remember correctly then u edit never took the time to research how to decompile bit after its decompiled you should be able to use several programs just Google for one
Sent from my ADR6300 using XDA App
Well I changed apk to zip and then extracted....there weren't a lot of images but there were a lot of xml documents that had titles that looked like they were for what I needed to edit so now I just need to figure out how to edit them....I know a lot of html and basic javascript so from my understanding it should be easy but my version of visual studio won't let me edit xml.....I need another program....recommendations?
Sent from my ADR6300 using XDA App
Go into it and look for the hdpi folders there should be about 600 images if your in framework-res
Sent from my ADR6300 using XDA App
Found it....looks like quite a job! Any idea where I could find replacement icons without having to re edit all of these?
Sent from my ADR6300 using XDA App
Just edit the hue in Photoshop or paint.net its real easy I use paint.net plus its free and lightweight only 3 megs and does a great job
Sent from my ADR6300 using XDA App
So I'm using paint.net to work my way through the hdpi images....when I'm done do I just rezip the framework file with the stuff set to store and then change extension to .apk and then rezip the Rom and flash it? Idk how to apply my changes
Sent from my ADR6300 using XDA App
Yup
Sent from my ADR6300 using XDA App
sick i just finished editing com.htc.resources.apk and framework-res.apk.....i changed anything that was green to red and im letting my phone build a bit of a charge before i flash it....wish me luck
elixir911911 said:
sick i just finished editing com.htc.resources.apk and framework-res.apk.....i changed anything that was green to red and im letting my phone build a bit of a charge before i flash it....wish me luck
Click to expand...
Click to collapse
Flash it? Did you make an updater for it or did you replace the files in a ROM that you're going to flash? I personally just push the .apk via ADB shell.
How did it go
Sent from my ADR6300 using XDA App
I did the xml editing for all the status bars, vol bars etc on my old Eris to change them to blue. Wasn't too bad, just extracted the XML where the current colors were all listed then edited the raw xml with a hex editor and put the new colors in (backwards) then applied, was pretty cool....
edited alll the files that I wanted and re packed them into my rom (skyraider) then just flashed the rom as if it were a nightly update (no wipe data/factory reset).....It worked great! I mucked a few things up here and there but overall it looks very slick....I've officially made my first theme for skyraider 4.0! Wasn't too hard at all....But now that I've done all this work there's a few images I can't seem to find that I want to change the color of....Mainly the highlights press color on the select a connection type dropdown and more importantly the volume popup bar when you increase the phone volume. Also I'm interested in trying to edit some apps like the market and the messages list......and my keyboard so I can get rid of the green in the candidates bar but unfortunately I think these apps are "signed" or something.....Does anyone have information on editing apks like that? when I try to edit them it seems to work correctly until I try to install it on my phone....Input on how to change these apps and the volume bar and everything else stated would be greatly appreciated.....And many thanks to odst for being as helpful as he has been with all of this. This has been a great learning experience
x2kjosh said:
I did the xml editing for all the status bars, vol bars etc on my old Eris to change them to blue. Wasn't too bad, just extracted the XML where the current colors were all listed then edited the raw xml with a hex editor and put the new colors in (backwards) then applied, was pretty cool....
Click to expand...
Click to collapse
Sorry I didn''t realize you had posted the answer to my question about vol. bars.....Where do I find this xml and more importantly how the hell do I open and edit it? I can't figure out how to open these xml's for the life of me

CM7 transparent pull down?

I'm new to messing with the code on Android, so I've been trying to find out how to change the pull down to be transparent. I've tried swapping out the png's in SystemUI.apk but that doesn't work. Could anyone shed some light on this for me? Maybe I am doing something wrong, but is there a tutorial on how to decompile and compile system apps and regular apps? I can't seem to find one.
Sent from my PC36100 using Tapatalk
A bunch of the CM themes that are out there have a transparent pull down. You could use apktool to poke around in those.
It's called bg_shade or something. Just add transparency to it in systemui.apk.
No need to decompile. Pull systemui.apk and unzip the file. Then with the systemui.apk that isn't unzipped just "open" the apk with 7zip and drag your new image into the correct folder. Push back to phone.
Sent from my PC36100 using XDA App
I tried changing that already but I decompiled it first so maybe I messed it up. I will try it that way and see how it goes. Thank you.
Sent from my PC36100 using Tapatalk
i think you need to edit some xml code. shouldn't be too hard to find. just download a theme chooser theme that does it, and see what xml's it changes. just poke around in those for a while. it's been done many times, so people kno how. i should probably find out...

Question about!!!

Hi yall doing ....i need some help on how to make an apk backround transparent ...i have bee searching all over google all over xda and havent found on how to make an apk background transparent...i have follow somesteps i found but they dont work my background stays black.....i have been using all kin of programs but still doesnt work i have change the layer but no luck still stays black...i need ur help on this by giving me somesteps on how to make my apk backround transparent plz...i will preceatedthank you..
Sent from my SGH-T959V using xda premium
What .apk? What you may need to do is change the color code in an xml file, or it could be as easy as chaging the image in gimp, first unzipping the .apk with 7zip.
malcolmXman said:
What .apk? What you may need to do is change the color code in an xml file, or it could be as easy as chaging the image in gimp, first unzipping the .apk with 7zip.
Click to expand...
Click to collapse
Xda app and much more ...and qbout xml what fo i have to edit and what should i put on?
Sent from my SGH-T959V using xda premium
Go to the Epic Themes section. Those guys are GREAT, especially Dreamsforgotten and they love to help!

Contacts.apk ?????

Ok I have only 1 remaining issue and I am hoping some one has an answer for me... I can decompile and recompile contacts.apk doing image edits just fine
Now... as soon as I touch an xml it will compile fine but when I flash it.. contacts force close every single time...
Any themer have this problem and if so does any themer have a solution???!!!!
FRUSTRATED!!
Sent from my Galaxy Nexus using xda premium
This is a known problem with the Contacts apk, but it is possible to theme the app without touching the XML files.
Kevin3328 said:
Ok I have only 1 remaining issue and I am hoping some one has an answer for me... I can decompile and recompile contacts.apk doing image edits just fine
Now... as soon as I touch an xml it will compile fine but when I flash it.. contacts force close every single time...
Any themer have this problem and if so does any themer have a solution???!!!!
FRUSTRATED!!
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
This has been a problem since we've started theming. I've managed to edit certain parts of the contacts.apk but I think since it draws so much from the framework themes that when you try to change the XMLs, they end up clashing and calling for two completely different things.

[Q] Change images in a Cm10 Theme?

How do I change images out of themes for cm10? Like lets say I want a black pulldown bar or black settings background how would I do this? I tried opening up the png in photoshop and making it black, saving it as the same exact name and put it back in the .apk but when I try to install it doesn't work. Would appreciate any help, Thanks.
You need to recompile the theme
Sent from my Galaxy Nexus using xda premium
polimeno said:
You need to recompile the theme
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
How would I do that?
You would need to decompile it first, the pulldown background is a .9.png so you would have to make whatever is inside the .9 border, if you screw up the border by the slightest it wont compile correctly. So i would suggest you keep you work area selected within the border. Then once you've made the corrections recompile and sign the apk. Otherwise it wont install.
You'll have to google how to decompile and signing apk's.. its relatively easy.
http://forum.xda-developers.com/showpost.php?p=10965186&postcount=3
good day.
Just extract the theme, edit/replace what you want, then zip it and flash.

Categories

Resources