Framework-res.apk - Vibrant Q&A, Help & Troubleshooting

What does this do? Needs to be installed? Bionox V...thanks!
Sent from my SGH-T959 using XDA App

framework-res.apk is the visual template for your phone's OS. It is not a universal app, it is typically different for each firmware/ROM. When you hear the words "theme" or "theming", its referring to changes made to framework-res.apk. It consists of a bunch of .pngs and .xmls that dictate your OS's appearance (i.e. notifications bar, progress bar, pulldown menu, etc.).
Your phone WILL NOT operate without this, nor will it operate if you make improper changes to your framework (i.e. install a theme that isnt compatible with a certain ROM). It does not need to be installed, because you already have it, otherwise your phone would not even turn on.

Cool. The reason I was asking is because I was wanting to change done png's. (specifically the color of the xda app icon) I wanted blue instead of orange. I'm just trying to figure out how to do this.
Sent from my SGH-T959 using XDA App

"some" png's
Sent from my SGH-T959 using XDA App

what you will have to do is extract the apk. you can use bitzipper or appmanager. (i would suggest bitzipper for simple .png edits, apk manager can be kind of buggy). simply open the .apk with bitzipper.....drag the "res" folder out onto your desktop. find the .png you want to edit. edit it. then drag the "res" folder back into framework-res.apk (it will automatically compress it for you.
once you make all of your changes, you will need to resign the app since its not a system app. you do this by first deleting the "meta-inf" folder. then you need to resign using any resigning tool.....i use this.......once you successfully sign it you can reinstall

Related

[Q]Change volume bar color and lockscreen clock font.

Hey guys, anyone can show me how change the volume bar color and the lockscreen clock font, so it looks the same as ICS. I'm using CM7. Please tell my exactly what to do (what I use to ''open'' and close'' the needed files, what to change, what possible files to change, etc), because my knowledge isn't good at this.
Thanks in advance.
Sent from my U20i using xda premium
You need to flash the ICS font. I think it was called roboto or something along these lines. Search the forum, you will find it. Its a zip file.
Regarding the volume bar though - think u need to change framework.apk. not sure tho.
Sent from my LG-P500 using xda premium
I don't think I need to flash the font. I use font changer, and it should change everything, even the clock, so I think it's framework related too, but I don't know how change it.
Sent from my U20i using xda premium
Never mind about the clock, I changed the Clockopia.tff for AndroidClock.tff and renamed it. But it still want to change the volume bar color.
Sent from my U20i using xda premium
Bump bump bump
Bump Bump BumpĀ“(sorry, I really want to change it.)
If you are rooted,copy framework-res.apk from your device and upload it hre,and do whatever modifications you want
uot.dakra.lt/kitchen/
MI310user said:
If you are rooted,copy framework-res.apk from your device and upload it hre,and do whatever modifications you want
uot.dakra.lt/kitchen/
Click to expand...
Click to collapse
I know that, but I have 3 MODs on my framework, and I must know what to change in the framework to change the color. There must be a code somewhere that says wich color is used for the bar.
you need to decompile framework. (there are milliond of guides on how) once done go to the res/drawable folder. In it look for the progress_horizontal.xml file. open that file with notepad or notepad++ to edit it. there are 3 sets of 3 colors in there. top group is for the background grey, you need to change the other two groups.
Also, if you know the hex color for ics off hand i will do the change and send you the file so you can drop it straight into the framework.
you need to decompile framework. (there are milliond of guides on how) once done go to the res/drawable folder. In it look for the progress_horizontal.xml file. open that file with notepad or notepad++ to edit it. there are 3 sets of 3 colors in there. top group is for the background grey, you need to change the other two groups.
Also, if you know the hex color for ics off hand i will do the change and send you the file so you can drop it straight into the framework.
Click to expand...
Click to collapse
Thanks for your help. I will try to find the hex color from ICS, and after that I upload my framework. But I won't turn on my PC today. Tomorrow, after I wake up, I will upload it.
EDIT: Found color code. Can make sure is this one (I am on my phone), but here is it: FF33B5E5
EDIT 2: If possible, take some screenshots and send to me, only from the editing part. I was trying to do and I coudn't understand exactly how to change.
Sent from my U20i using xda premium
mate did you managed it to get the change of volume bar color like ics.

[Q] SystemUI.apk editing?

Good day ladies and gentlemen.
If I may ask, does any person presently reading this post know of a method to alter the images contained within SystemUI.apk? I would be grateful to anybody who could resolve my conundrum. I must also present some background information; I have unsuccessfully recompiled the apk file and I have also attempted to edit the files whilst not extracting said apk which also resulted in disappointing failure. However, I have not attempted to create a flashable zip file due to the fact that I lack this information. If this can be confirmed working, then I require no more assistance as I would not want to burden anybody with the simple task of using Google. Once again, I kindly request any assistance from any persons reading this if you would so choose to help a fellow XDA user.
Thank you for reading and/or responding to my post. I wish you all a happy week.
jdeoxys said:
Good day ladies and gentlemen.
If I may ask, does any person presently reading this post know of a method to alter the images contained within SystemUI.apk? I would be grateful to anybody who could resolve my conundrum. I must also present some background information; I have unsuccessfully recompiled the apk file and I have also attempted to edit the files whilst not extracting said apk which also resulted in disappointing failure. However, I have not attempted to create a flashable zip file due to the fact that I lack this information. If this can be confirmed working, then I require no more assistance as I would not want to burden anybody with the simple task of using Google. Once again, I kindly request any assistance from any persons reading this if you would so choose to help a fellow XDA user.
Thank you for reading and/or responding to my post. I wish you all a happy week.
Click to expand...
Click to collapse
Yea it can be done. IDK what ROM you're running or if you're rooted,but I was going to make my own nav buttons before I switched ROMS. The Dev of the Icylicious ROM has made a few mod packs (flashable systemUI.apks) of the nav buttons for his ROM. I asked him a question about doing my own images and this is what he said...
I like the stock buttons myself...the stock icy buttons. I would like to do a few of my own images, but is it as simple as overwriting your images and rezipping? Anything in particular I should know/do? I'd really appreciate your help with that aspect...as far as images, I've been using Photoshop for years so I'm good there. Thanks
system/app/SystemUI.apk/res/drawable-mdpi
you'll find the buttons in that directory. No need to unzip. Just open the ROM in Winrar, navigate to that directory, pull out just the files you want to modify, and drag and drop them back in. What I do is just pull the systemui out, and open the apk in winrar (winrar treats it just like a rar or zip file), modify the file in Photoshop, and when you're done, just replace the systemui.apk in one of the zips I have in the "Mods" post with yours and flash it.
It really is that simple.
Hope that helps..
jaycustom said:
Yea it can be done. IDK what ROM you're running or if you're rooted,but I was going to make my own nav buttons before I switched ROMS. The Dev of the Icylicious ROM has made a few mod packs (flashable systemUI.apks) of the nav buttons for his ROM. I asked him a question about doing my own images and this is what he said...
I like the stock buttons myself...the stock icy buttons. I would like to do a few of my own images, but is it as simple as overwriting your images and rezipping? Anything in particular I should know/do? I'd really appreciate your help with that aspect...as far as images, I've been using Photoshop for years so I'm good there. Thanks
system/app/SystemUI.apk/res/drawable-mdpi
you'll find the buttons in that directory. No need to unzip. Just open the ROM in Winrar, navigate to that directory, pull out just the files you want to modify, and drag and drop them back in. What I do is just pull the systemui out, and open the apk in winrar (winrar treats it just like a rar or zip file), modify the file in Photoshop, and when you're done, just replace the systemui.apk in one of the zips I have in the "Mods" post with yours and flash it.
It really is that simple.
Hope that helps..
Click to expand...
Click to collapse
As long a you don't alter the .9.png a they need to be decompiled, then recompiled. I've been taught to use APK Manager to unzip/edit the systemui.apk I it's easy to use one you get the hang of it. Do yourself a favor and dl Gimp, it's a great image editing tool.
I have a thread in Droid X2/Theme + Apps / Theme Creation....
Good luck, enjoy
This ISN'T my Transformer Prime
jaycustom said:
Yea it can be done. IDK what ROM you're running or if you're rooted,but I was going to make my own nav buttons before I switched ROMS. The Dev of the Icylicious ROM has made a few mod packs (flashable systemUI.apks) of the nav buttons for his ROM. I asked him a question about doing my own images and this is what he said...
I like the stock buttons myself...the stock icy buttons. I would like to do a few of my own images, but is it as simple as overwriting your images and rezipping? Anything in particular I should know/do? I'd really appreciate your help with that aspect...as far as images, I've been using Photoshop for years so I'm good there. Thanks
system/app/SystemUI.apk/res/drawable-mdpi
you'll find the buttons in that directory. No need to unzip. Just open the ROM in Winrar, navigate to that directory, pull out just the files you want to modify, and drag and drop them back in. What I do is just pull the systemui out, and open the apk in winrar (winrar treats it just like a rar or zip file), modify the file in Photoshop, and when you're done, just replace the systemui.apk in one of the zips I have in the "Mods" post with yours and flash it.
It really is that simple.
Hope that helps..
Click to expand...
Click to collapse
I found a way to get it working. I just had to dl one of the other qs mods and use the included scripts to install from cwm. I did try to replace the systemui.apk manually with es file explorer but idk why it failed.
Pixelation said:
As long a you don't alter the .9.png a they need to be decompiled, then recompiled. I've been taught to use APK Manager to unzip/edit the systemui.apk I it's easy to use one you get the hang of it. Do yourself a favor and dl Gimp, it's a great image editing tool.
I have a thread in Droid X2/Theme + Apps / Theme Creation....
Good luck, enjoy
This ISN'T my Transformer Prime
Click to expand...
Click to collapse
I have gimp and its great.
Can only replace PNG files as of right now. No one has been able to recompile the SystemUI.apk successfully.... will most likely need the source from Asus.
Sent from my Transformer Prime TF201 using XDA Premium HD app
Ok, I got down to business but the look is still inconsistent with grey lines and blue lines. Wat do?
Sent from my PG86100 using xda premium
If you don't see the PNG that you're looking for, you might also want to try the framework-res.apk. if it's not there either, then it may be a XML edit, in which case you're out of luck.
Sent from my CM7 Atrix 4G
Swiftks said:
If you don't see the PNG that you're looking for, you might also want to try the framework-res.apk. if it's not there either, then it may be a XML edit, in which case you're out of luck.
Sent from my CM7 Atrix 4G
Click to expand...
Click to collapse
FFFFFFFFFFFFFFFFFFFUUUUUUUUUUU man that sucks. Checked mah dubs ... excuse me, my framework-res apk and it was chock full of images. It's gonna take a year to sort through them all. Imma try emailing Asus and see if they could release the sauce code for systemui or whatever. Thanks for the intel bro.
Sent from my tablet thing with XDA Premium.
jdeoxys said:
FFFFFFFFFFFFFFFFFFFUUUUUUUUUUU man that sucks. Checked mah dubs ... excuse me, my framework-res apk and it was chock full of images. It's gonna take a year to sort through them all. Imma try emailing Asus and see if they could release the sauce code for systemui or whatever. Thanks for the intel bro.
Sent from my tablet thing with XDA Premium.
Click to expand...
Click to collapse
Batch editing is great, there are a ton, so be patient, or leave it to a theme. The regular .png you don't need to worry about much. It's the .9.png where the recompiling becomes an issue.
This IS my Transformer Prime, my DX 2 is boring
Pixelation said:
Batch editing is great, there are a ton, so be patient, or leave it to a theme. The regular .png you don't need to worry about much. It's the .9.png where the recompiling becomes an issue.
This IS my Transformer Prime, my DX 2 is boring
Click to expand...
Click to collapse
How do you batch edit? And why is the .9.png so important?
jdeoxys said:
How do you batch edit? And why is the .9.png so important?
Click to expand...
Click to collapse
.9.pngs are usually things like boarders, boxes, popups, etc.
But they have to be decompiled and recompiled in order to edit them and have them work.
Sent from my Transformer Prime TF201 using XDA Premium HD app
Swiftks said:
.9.pngs are usually things like boarders, boxes, popups, etc.
But they have to be recompiled and recompiled in order to edit them and have them work.
Sent from my Transformer Prime TF201 using XDA Premium HD app
Click to expand...
Click to collapse
Damn, that means I can't do anything unless they find out a way to decompile...
Sent from my tablet thing with XDA Premium.
jdeoxys said:
Damn, that means I can't do anything unless they find out a way to decompile...
Sent from my tablet thing with XDA Premium.
Click to expand...
Click to collapse
AOKP Rom is kicking ass, and since it's not based off of Asus's source, everything decompiles and recompiles quite nicely.
Sent from my Transformer Prime TF201 using XDA Premium HD app
.9.PNG are bastards. I spent hours and hour working on them.Worst part is that they have index, which Photoshop doesn't read, so it just messes up gradients. Paint.net handles them well IIRC.
Sent through the wormhole from my CoinInserted Sensation OG.
.9s aren't bad as long as you know what's going on with them. If working on a .9 PNG the previous statement that you cannot edit them without decompiling is accurate. The .9 essentially is an image that is going to be stretched. The ".9" or "guides" tells the system where the stretching is going to happen. With out decompiling the .9 you will be unable to see the guides... therefore you cannot edit the image without destroying the guides! Once decompiled the .9 image will show its guides as black pixels or lines on the border of the image. Once you see those you can just edit everthing inside of those guides and recompile without an issue. Now there are other work arounds that you can do to still modify these images without being able to successfully decompile/recompile your existing framework. Such as pulling the compiled .9 image out of the .apk... renaming to remove the .9... editing then using 9patch from the Android sdk to reguide the image... but then of coarse you will have to go through the process of recompiling the image to drop into the apk. Another quick possibility would be to pull the image you want to edit from let's say framework-Res.apk... download a theme that you know you're able to recompile... replace one of the images within that theme with yours(renaming if needed). Decompile-edit-recompile... then pull your edited .9 from the recompiled project and dropping into your actual framework. There's almost always a work around... just keep in mind should something go wrong you could end up starting from scratch.
Btw.. your top and left "guides" are where the image will be stretched. The bottom and right are for padding(if I recall correctly) lol.. but I'm positive top and left are the stretch points...
Sent from my Galaxy Nexus using Tapatalk

Redesign apps without complex programming?

This question is to all the developers out there!
I am more of a graphics designer than a programmer.
I have very basic knowledge as far as programming and API's are concerned.
I know there are tools out there which can help you Compile and Recompile APKs, and I can do that without help,
but I was wondering if its possible to edit just the graphical elements of the app (say, change the app icon,or modify the typography, or color accents) without the need for changing a whole lot of the code?
If not, is it possible to learn how to do it in a short while?
I would love to modify to redesign a few open source apps and post it here for everyone else. ( Inspired by Android Design in Action )
shubhamsizzles said:
This question is to all the developers out there!
I am more of a graphics designer than a programmer.
I have very basic knowledge as far as programming and API's are concerned.
I know there are tools out there which can help you Compile and Recompile APKs, and I can do that without help,
but I was wondering if its possible to edit just the graphical elements of the app (say, change the app icon,or modify the typography, or color accents) without the need for changing a whole lot of the code?
If not, is it possible to learn how to do it in a short while?
I would love to modify to redesign a few open source apps and post it here for everyone else. ( Inspired by Android Design in Action )
Click to expand...
Click to collapse
Yes it is possible all you need this:
1 the app you wish to modify
2 an app called ninjamorph
A computer optional
And enough space on your phone to decompile on APK which isn't much
A way to save the app as an Apk on your phone ( ie titanium backup or the like)
Run ninjamorph I believe it has a tutorial with in and app if you need it very simple to use
It will decompile the APk of the app and then you can go into the product work space within ninjamorph and goto resources drawable depending on the app maybe drawable HPI just look through the folders then select the PNG you wish to modify and ninjamorph has ui to change right there on your phone or you can connect your phone to a computer and transfer the PNG file you wish to modify to the computer and modify it there then replace it and in the exact location you found it (with the same name names are I believe case sensitive) and use ninjamorph to recompile the apk, uninstall the old apk (if installed before hand) and install the new Apk and there you go should work
Sent from my SGH-I997 using xda premium
moving to q&a
if u only need to modify image files open apk from winrar, edit it and save.
Can I also change stuff like screen margins, fonts etc. this way? I'm guessing no. Right?
Sent from my One V using xda premium
Is it really that tough? Any suggestions?
shubhamsizzles said:
Is it really that tough? Any suggestions?
Click to expand...
Click to collapse
No you cant change the margins and fonts that way. You will have to edit the layout of the app by decompiling it and changing the XMLs and maybe some smali coding changes.

Theming Questions

So...I like to make my own theme sorta. I like to pull the systemui.apk and the launcher.apk and sort through the /res/drawable-xhdpi folder (as well as the other drawable folders) and make my own graphics...I'm starting to have a problem...
I'm using Photoshop cs5 on a windows 7 machine. I use Gimp when I'm on my Linux laptop.
I use root explorer on my phone to extract the apk and to put it together when I'm done and I use a basic flashable zip template to flash in recovery.
Here's my problem.
I'm making a simple battery percent. All I want to see is something like 87%. No battery icon...just numbers. The images I've made come out jagged. Not smoothe at all. The images are 50x50 at 72pixels/inch and I'm saving them as png-8. I also tried using rgb-16 bit and saving as PNG 24. Same result. Any ideas?
Sent from my HTC6435LVW using xda premium

What goes into theming Touchwiz apps?

question in title. I mean things like the SMS app, dialer, etc. I love the work people are doing with them (dark themes and whatnot) and was just curious as to how they do it. Can be technical, I feel comfortable with all the "android jargon" lol
You'll need something to decompile your apps. If you are working on odex files you'll need to deodex first. Once you decompile your app it'll be broken into 2 folders project and project-smali. You'll focus on the project folder -or- where the folder "res" is.
In there is drawable folders in various DPIs. Those contain the picture files you can edit. Some of the background colors, text colors, and placement of items will be controlled inside of the various XML files.
While in there you could also look around at potential mods in the bools.xml and you COULD remove some of the extra languages if you want to lean it out.
Sent from my SCH-I545 using xda premium
Dubbsy said:
You'll need something to decompile your apps. If you are working on odex files you'll need to deodex first. Once you decompile your app it'll be broken into 2 folders project and project-smali. You'll focus on the project folder -or- where the folder "res" is.
In there is drawable folders in various DPIs. Those contain the picture files you can edit. Some of the background colors, text colors, and placement of items will be controlled inside of the various XML files.
While in there you could also look around at potential mods in the bools.xml and you COULD remove some of the extra languages if you want to lean it out.
Sent from my SCH-I545 using xda premium
Click to expand...
Click to collapse
I have sorta played around with them and whatnot and have seen the res folder. so when you go and replace the images and everything, how do you recompile so that they will install fine? I'm rooted of course so I can put them in system and set permissions
Sent from my SCH-I545 using xda app-developers app
I've found it works best to recompile it using whichever tool you prefer. If it doesn't install nicely you can open the apk with 7zip and pull the compiled images and xml files out to use in either a vrtheme installer or you can open up the stock apk with 7z and copy them in.
There are tons of ways to do things. :good:
sent from my GE gs4
that is what I am starting to realize I may start playing around with it. thank you for the help, really! this is what makes XDA rule so much. :thumbup:
No problem buddy. Everyone has to start somewhere
sent from my GE gs4
Dubbsy said:
No problem buddy. Everyone has to start somewhere
sent from my GE gs4
Click to expand...
Click to collapse
one more question, might not pertain to you...what is the best/easiest way to sign an apk after editting it? i am using a macbook pro by the way
coltonwood said:
one more question, might not pertain to you...what is the best/easiest way to sign an apk after editting it? i am using a macbook pro by the way
Click to expand...
Click to collapse
I generally don't sign mine. If i themed something that wasn't mine and it could potentially be updated i would want the update to fail due to mismatching signatures in order to keep my theme.
But a way to keep the same signature is to recompile your work, open the new one with 7zip and copy the compiled pngs, xmls, and arsc file at root from the new one and over write the stock one's files using 7zip again. That'll change everything but leave the signature.
sent from my GE gs4
Dubbsy said:
I generally don't sign mine. If i themed something that wasn't mine and it could potentially be updated i would want the update to fail due to mismatching signatures in order to keep my theme.
But a way to keep the same signature is to recompile your work, open the new one with 7zip and copy the compiled pngs, xmls, and arsc file at root from the new one and over write the stock one's files using 7zip again. That'll change everything but leave the signature.
sent from my GE gs4
Click to expand...
Click to collapse
ohhhhhhhh okay that makes sense! okay here is a question that could be getting away from the theming, im not sure:
i was playing around with textra (the sms app) just changing the png's to look like ios 7 (lol just for testing). I decompiled, changed some png's, and then recompiled (using apktool). It created a new textra.apk that i then transferred to my phone. i deleted my current textra and installed my new one (successfully) and i can tell my theming worked from a test sms they send you. but when i try to compose a new message, Textra force closes. I rebooted and everything to make sure. Do you think this would be from my attempt at theming, or would it have to do with signing at all? this is where i am really lost lol, considering it installed and everything fine.

Categories

Resources