Editing framework-res.apk questions..

sniffs

Well-known member
Dec 3, 2009
1,792
83
0
Do the icons have to be a specific size?

I'm going to go nuts on the file in a little bit and see if I can fix my disappeared Yahoo! mail icon and plus maybe change some other stuff around. (obviously I'll backup.)

So my question is.. do I just need the images(whatever size they need to be), ninjamorph and go to town?

or is there another "preferred" method to this madness?
 
In this size does matter. Each image is different. I have not edited framework before but have themed apps. I just pull the photo files and edit them or make new ones to that ones size. Also save them as the same file type and the same name. I push my apps after I theme them with terminal.

Sent from my DROIDX using Tapatalk
 
Apparently ninjamorph allows you to do all this directly on the phone.

edits the apk, pushes the image and then saves it back.. should I be worried? lol..
 
It can but u need them on your computer to edit and create new things. I used ninja once and didn't like the process.

Sent from my DROIDX using Tapatalk
 
I've heard nothing but complaints really about ninja/meta morph. Ninja morph also doesn't let you edit xml files / smali code for theming purposes. If you're planning on doing an entire theme, ninja/meta morph is definitely not the way to go. You can't do nearly as much as actually creating the theme by hand on your computer.
 
I would also HIGHLY doubt that anything in framework-res.apk would have anything at all to do with why your Yahoo icon disappeared. Sounds like you have a bigger issue.
 
I would also HIGHLY doubt that anything in framework-res.apk would have anything at all to do with why your Yahoo icon disappeared. Sounds like you have a bigger issue.

Dude, search for it on Google! It's not just me.. it's massively widespread. People's Yahoo! mail icons just up and disappeared one day.. the only way to get it back is to hard reset.

Google

Every single link on that first page is about the Yahoo! mail icon disappearing.
 
I've heard nothing but complaints really about ninja/meta morph. Ninja morph also doesn't let you edit xml files / smali code for theming purposes. If you're planning on doing an entire theme, ninja/meta morph is definitely not the way to go. You can't do nearly as much as actually creating the theme by hand on your computer.

I'm not looking to theme at all. I'm looking to fix/change notification icons.

My Yahoo! mail icon simply shows a space inbetween the other icons.. there's got to be a reason why and a fix outside of hardresetting.
 
I gotcha, then Ninja/MetaMorph might be good enough for what you're looking to do. Also, I don't use Yahoo Mail so i wouldn't really know about it, but I wasn't doubting that an issue with the Yahoo Mail icon exists, I'm just saying that from my background with creating themes and from what you've said about how the icons just disappeared one day it doesn't at all seem like editing framework-res.apk will lead to any sort of fix. Framework-res.apk doesn't just change itself one day and I don't think it contains any icons related to yahoo mail, so it seems like a bigger / much different problem. If anything, it seems like it'd be more of an issue with the yahoo mail apk file itself, not framework-res.apk.

I wish you luck on figuring this out though. It does sound annoying.
 
Yeah, I was just thinking framework-res.apk because it seemed all the notification icons were stored there.. but now it seems like individual apps themselves store the icons.

In any event, setup.apk is what stores the corporate exchange icon and the yahoo mail icon.

Weird thing though is that the .png's are all there and are all correct.. very strange!
 
Yea, that's what I was saying. It doesn't seem like it's a problem that theming would be able to fix. The contents of Setup.apk / framework-res.apk / anything in /system/app don't change really ever from day to day. These aren't apps that get updates from the market or anything like that. So, it's not like the notification icon for the yahoo mail can just up and disappear like that from the Setup.apk file's resources. It's something that's going on programmatically with the phone that's preventing it from showing up. Resources don't just disappear from packages like that.
 
Well since it happened on a wide spread, it's got to be some issue with an update Verizon pushed out, or some sort of change that Yahoo! made to their servers? I'm not quite sure. Not only is the notification icon gone, but going to Messaging where it shows all the accounts, the Yahoo! mail icon is just a blank white envelope now.. so whatever it is, it's not reading the account icon nor the notification icon.
 
In this size does matter. Each image is different. I have not edited framework before but have themed apps. I just pull the photo files and edit them or make new ones to that ones size. Also save them as the same file type and the same name. I push my apps after I theme them with terminal.

Sent from my DROIDX using Tapatalk

So I can use regular full size icons and it'll just shrink them for the notification bar?

EDIT: looks like the icons I'm replacing, activesync1.png and activesync1_thumb.png are both 72 pixels, so I'm making my new icon 72 pixels.
 
Last edited:
BAH.. so I copied 2 modified images into the folder, same pixel size and it didnt work.. not only did it not work, but now my email account is throwing up errors and when I click on Accounts it crashes.

Worse yet is I forgot to make a backup of setup.apk

anyone out there helpa brotha out?
 
I rebooted my phone and it seems like it's working again. No errors on the account and no errors when going to Settings.

Weird thing is though is that I still show my modified images in the setup.apk yet I'm getting the default UGLY images for the notification..
 
Likely, those aren't the only copies of the image. I'd check bluremail.apk. Those are probably just the images that show in the accounts dialog when you're adding a new account
 
I've checked every blur apk, and almost every single apk in the /system/app directory. Although I stopped once I hit setup.apk but perhaps I missed some further down? I'll look.

ah hah. directly below setup.apk is setupprovider.apk and that also has the 2 images in it.
 
chances are it's not in any of the /system/framework / "blur apk's".. it's almost definitely in /system/app if not in SetupProvider like you said you found.
 
ooo.. I didn't even think about the blur files in /system/framework

i was looking in /system/app

I'll have a looksy.


found it in blue-res.apk in the /framework folder also.. blarg!
 
ok so what is the quickest and easiest way to import the new Framework-res and twFramework-res to phone? I tried several software but no luck. I also did the adb but it won't let me pull nor push anything :(. If you guys have detail tutorial I would appreciated :)