Modifying framework png's - EVO 4G Q&A, Help & Troubleshooting

I was told that in drawable hdpi i can modify pngs but not 9 pngs! Will changing basic pngs and not 9's conflict or can i just drag all the images except status bar! Help please! Thanks
Sent from my Full Android using XDA App

Can you be a little more specific please?
Sent from your mom's phone.

I want to modify all pngs in framework res apks, drawable htpi's! Are there some that should not be touched or can i just replace them from another apk drawable htpi file? Swap them and overwrite!
Sent from my Full Android using XDA App

Yes you can just pull the images from another evo framework. If you want to add extra images like adding battery percent, you will have to edit some XML files if the framework you are adding them to doesn't originally contain them. As long as you are just replacing files you should be good to go.
Sent from your mom's phone.

Editing .9.png's is easy enough, too...but it does take some extra effort. Do a little searching. There are several good how-to's out there specifically about .9's.

This is where i am at with it!
Can i just swap pngs from one res to another and leave the 9s or do the 9s have to stay with corresponding pngs or are they two seperate enteties! Do the 9s in a res effect the pngs within the file!
Can i just swap res for res!
Sorry for being a pain but i need to know! Cant do it alone and i respect your knowledge!
Sent from my Full Android using XDA App

If you are just pulling a 9patch file from another rom you don't need to worry about it. You can just copy it straight over.
Sent from your mom's phone.

Will try
Sent from my Full Android using XDA App

How about swapping the whole drawabale hdpi file, pngs and all!
Sent from my Full Android using XDA App

Pretty much if the filenames correspond from the different roms then your rom will pull it correctly. Draw9 patching isn't too difficult as long as you understand how to patch/recompile them; otherwise, editing them is as simple as photoshop or gimp. Also, certain files will show up as index color in photoshop and I pretty much stay away from those since it's too bothersome to recompile them. An example of mashed up themes would be lowrider's theme that uses components of various themes.

Thanks
Sent from my Full Android using XDA App

Should have my second rom release up in a few days! I will def give you props thanks again!
Still alot of trial and error to come!
Sent from my Full Android using XDA App

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...

Problems with editing pngs

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

HELP! decompiling apk to theme it

Ok so I found this launcher I really like based off ics called Holo launcher and since I'm running MIUI I'd like to change the ics colors to MIUI colors.. The only colors I really need to change are in the app drawer
So here are my questions
1. Do I have to decompile to do this?
2. If I do is there a thread that can teach me how to do so?
3. Is there anything I have to worry about? I heard sometimes recompiling doesn't go right but I figure since is cosmetic changes I think it should be fine..
sent from my evol supersonic
Some apk files require you to resign after you decompile and rebuilt it. Some bits of color can be a simple img edit to xml edits.
Sent from my PG86100 using xda premium
Extract the apk with 7zip on your pc and look in the res/drawable-hdpi folder to see if your edits are an actual .png file. If that's the case make your edits in PhotoShop or gimp, save file and then drop the edited png back into the original apk in the same folder it belongs...
If its text color it is most likely an xml and you will need to decompile.
Sent from my PC36100 using xda premium
jessesse said:
Extract the apk with 7zip on your pc and look in the res/drawable-hdpi folder to see if your edits are an actual .png file. If that's the case make your edits in PhotoShop or gimp, save file and then drop the edited png back into the original apk in the same folder it belongs...
If its text color it is most likely an xml and you will need to decompile.
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
That works too Apktool works well too.
jessesse said:
Extract the apk with 7zip on your pc and look in the res/drawable-hdpi folder to see if your edits are an actual .png file. If that's the case make your edits in PhotoShop or gimp, save file and then drop the edited png back into the original apk in the same folder it belongs...
If its text color it is most likely an xml and you will need to decompile.
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
Thats how i theme my roms.
Diablo67 said:
Thats how i theme my roms.
Click to expand...
Click to collapse
Word... Thanks for all the help guys, I'm gonna get down on some trending sometime this week I've just been so busy lately with the whole married life lol
sent from my evol supersonic
What an awful way to theme roms... Horrible people absolutely horrible... You just 7zip in all your images in? That is trash~! Learn how to use apktool seriously people its not hard apktool if and apktool b -f and apktool d are not hard to learn.... 7zipping in things creates unaligned .apk's which are trash and use up a ton of memory ill bet your themed roms are garbage if your 7zipping crap in!
Pneuma1985 said:
What an awful way to theme roms... Horrible people absolutely horrible... You just 7zip in all your images in? That is trash~! Learn how to use apktool seriously people its not hard apktool if and apktool b -f and apktool d are not hard to learn.... 7zipping in things creates unaligned .apk's which are trash and use up a ton of memory ill be your themed roms are garbage!
Click to expand...
Click to collapse
Completely agree. The only good way to do it is to decompile and then recompile. It is not that hard.
Look here for some good info
http://code.google.com/p/android-apktool/
The OP's first question was 1.do I have to decompile to do this?
Just trying to help him out.
I do agree that its not hard to decompile though.. just takes a little bit of reading and some trial and error.
jessesse said:
The OP's first question was 1.do I have to decompile to do this?
Just trying to help him out.
I do agree that its not hard to decompile though.. just takes a little bit of reading and some trial and error.
Click to expand...
Click to collapse
Yeah but at the same time 7zipping images into an apk is not the correct answer... No offense its just when you do that you unalign the .apk which causes the .apk suck up memory and leave a huge memory footprint on the phone which can cause adverse battery problems...
Oh I see, thanks for the heads up. No offense taken.. I was busy working and didn't mean to sound that way.
OP (EVOl4g) check out Tommy Tomatoes Android utility if you happen to have a mac or Linux pc
If you decompile first even pesky .9.pngs are a breeze. Where as if you try to edit one thats not decompiled you will have to repatch it first and without decompiling you may have no idea where to place ur lil black dotz.
Using 7zip is a nice way to cut your teeth on android theming but as others have stated your not going to get the best results nor the ease you get from decompiling.
alright so i extracted apex launcher and i wanna change the app drawer background to white, i've already changed all the images with ICS blue to MIUI orange... Also I need to know where I can change the blue lines to orange, any help is appreciated.. you all have been really suppotive I appreciate it.

How can add Lock screen with framework-res?

How can add Lock screen with framework-res?(in framework-res)
can someone help me?
It's not easy, if you've never modified anything, you'll have a lot of difficulty to make it. there is more than one file at modify.
i know it's have some mods on many *.xml like public.xml and more files but you know any page to can help me?
Depends a lot on which rom base you want to do this, if it's aosp,ICS, JB i9000 rom I guess you have to work on sources,do it yourself or apply a diff patch (search for Evilisto name on xda, he provided such diff patch for at least a Blackberry lockscreen> aosp).
If stock Samsung rom it should be "easier" if I can say,only full tutorial I know is French and based on froyo:
http://galaxys-team.fr/viewtopic.php?f=6&t=14563
How Can add Ripple Lock Screen To CM10?
galaxy s iii mini is hdpi like i9000
Can someone use it?
i think developers must work on
framework-res.apk
android.policy.jar
and if developers can port it,we can work on ink Lock Screen.
If you find out... Let me know I'm working on finalizing a new theme I made and would love to implement it into it.
Sent from my SGH-T959V using xda app-developers app
nirvanite said:
If you find out... Let me know I'm working on finalizing a new theme I made and would love to implement it into it.
Sent from my SGH-T959V using xda app-developers app
Click to expand...
Click to collapse
+1
Sent from my GT-I9001 using xda app-developers app
I have been doing some poking around in framework-res.apk and it shows many xml files that link to the lockscreen it seems. After doing a uot kitchen themed lockscreen those pngs inside the drawables-hdpi directory need to be mapped right in the xmls to display on the screen at the right given time. Decompile, edit icons or add your own and then change one icon map in the xml files and finally recompile and push to your device.
Sent from my SGH-T959V using xda app-developers app

Categories

Resources