Related
http://depositfiles.com/files/aji72anj8
this is the rosie.apk file, i replaced the images needed and i changed a few XML files.
i dont know what im doing, just playing around with things. my goal is to get this bar at the bottom instead of the regular senseui bar
ill upload a screenshot of what this new rosie.apk looks like. its getting there, i just need a little help. eventually im gonna compile this with my custom framework-res, htc.resources, and some other files to create a themed 2.1 rom. any help is appreciated.
the rosie.apk works with sanpeis, ive been testing with his rom using adb push. if anything goes wrong, just push the original rosie.apk from sanpeis rom and itll work again..no worries..
Everything seems to work fine so far, but I've hit a snag.
Here's what happens. I've made some changes to my rom. I'm on modaco's latest, I have theme with the battery percentage mod installed (can't remember which), but everything runs perfectly with no hiccups or hangups.
The problem I'm running into is with the battery icons.
Here's what I do.
1) Pull framework-res.apk from device(to keep my changes)
2) Pull battery icons from framework-res
3) Modify icons
4) Put icons back into framework-res
5) Push framework-res back to device
As soon as I push this back to the device, everything starts force-closing. Phone, gmail, launcher, contacts...everything.
I've made changes like this before and this has never happened. Am I doing something wrong here? Any help would be appreciated. I would like to eventually release this as a theme that people can flash.
try pushing the modded files while in recovery...
..never pushed framework-res.apk.
In recovery sounds good..
But why not makin a morph?..or you could do an update.zip.
i am assuming you rebooted after pushing the new framework-res.apk across?
Did you zipalign before pushing? I know CM zipaligns on boot after changes in recovery but can't remember for stuffed pushed across- i either just zipalign it myself or the easiest and best thing to do is what rori~ said- just make a metamorph- that way when the rom gets updated you dont have to change anything at all (assuming there are no xml changes)..
eg. i have been using the same CM metamorph theme i made since about 5.0.X and it still works on every nightly- i have had tyo remove xml edits etc as CM now does that itself but it makes it all so easy.
instead of using adb, try doing it the easy way with Metamorph. Basically you'll need to create custom pngs with the same name as the ones you want to replace in the framework-res.apk.
So get a copy of your framework-res.apk and rename it to .zip and unzip it. Erase all the folders where you have no custom images to push. You'll prob just end up with some nested folders like "framework-res-->res-->drawable-hdpi" or a similar last folder. Place the custom images in there, then just reuse this attached xml file, making sure to change the pertinent information such as the file structure to be the correct path so the images push to the correct folder when you apply it with Metamorph. Be sure to save the xml file with a reasonable name, then zip the xml and framework-res folder containing your custom images together. Make sure the zip has the same name as the xml file only with .zip extension or you may get an error.
From there install Metamorph. Load the zip you created onto your sd card inside the "android themes" folder. Launch Metamorph, grant su, then "unzip new theme", and "apply all".
Hope this is helpful. A bit longer than I pictured it, but easy to do. If you run into trouble just DL a couple ones other people did and it should become easier to figure out.
^^^ what they said
made life even easier ......
here is a blank framework-res morph drag drop your desired pngs in the drawable-hdpi folder within the zip and morph away
http://www.mediafire.com/file/d1zr12fke13i61l/Framework_res_obama.zip
icegad said:
^^^ what they said
made life even easier ......
here is a blank framework-res morph drag drop your desired pngs in the drawable-hdpi folder within the zip and morph away
http://www.mediafire.com/file/d1zr12fke13i61l/Framework_res_obama.zip
Click to expand...
Click to collapse
Awesome! Thanks a ton! I'll report back my findings...
Sorry, no such luck. Endless force closes and reboots. Bummer. I'll have to sleep on it for a day or two and come back to it.
If anyone has any ideas, please let me know.
If u like u can upload the images and ill try to morph it on my phone and see what causes the fcs if any
icegad said:
If u like u can upload the images and ill try to morph it on my phone and see what causes the fcs if any
Click to expand...
Click to collapse
That would be great, thanks!
morphed the icons onto my phoneno fc or bootloops here
see screenshot....(i have a black status so it maybe hard to see your icons )
only thing i can think of is.... dont know if you were putting your folder within the drawable-hdpi folder that can cause errors..put the standalone images only
and i went ahead and put the icons in the morph you so you can jus morph this zip >>>
http://www.mediafire.com/file/9ldnfsf4t894kz6/Framework_res_obama.zip
I can't seem to replace an icon in my framework-res.apk and I'm wondering if it's possible to create a flashable .zip file that'll overwrite the icon I want replaced in the file.
Attached is the alarm clock icon (with the proper file name) which I extracted from the Droid 2 framework-res.apk.
I want to replace the CM6 icon I'm using now w/ the Droid 2 icon I'm attaching.
I copy my apk to my computer, unzip it, replace 'stat_notify_alarm.png', zip it back up, rename to apk, use the 'Android-sign' droplet app (I'm on a Mac), push back to the system/framework folder, reboot, nothing... old icon still there.
1. Can someone tell what steps I'm missing?
2. Can someone create a flashable .zip that'll overwrite the icon?
Thanks!
Give me your framework-res.apk and I will do it for you signed and everything
I'd like to know how to do this too.
I also have a question about icons on the homescreen. Is there anyway to get rid of the text right underneath the icon?
ms79723 said:
I also have a question about icons on the homescreen. Is there anyway to get rid of the text right underneath the icon?
Click to expand...
Click to collapse
Use LauncherPro.......you can hide the text in preferences.
ms79723 said:
I'd like to know how to do this too.
Click to expand...
Click to collapse
i'd like to know too.
As for creating a flashable zip, make your changes and then delete the 2 cert files and the manifest file inside the meta inf folder then sign it. You can use Avabox or the tool regaw just made.
Sent from my SUPERSONIC
bluebeast213 said:
Use LauncherPro.......you can hide the text in preferences.
Click to expand...
Click to collapse
well i want to make new icons for sense that dont have the text on the bottom
xxbabiboi228xx said:
Give me your framework-res.apk and I will do it for you signed and everything
Click to expand...
Click to collapse
Here's my framework-res.apk
*Note* my APK has a modded battery icon (don't know if that matters to you or not but better safe than sorry )
I've been seeing way too many requests for this with just about every mod possible. Considering the simplicity of this mod, the easiest way to please everyone, is for all of you to know how to accomplish this mod yourself.
BTW, this is for the status bar itself, not pulldown bar or notification background.
What you need:
- Paint.NET software (or any other image editing software that you are already comfortable with, this one seems to be the easiest for setting transparency though.)
- Your framework-res.apk AFTER you have all of your other mods applied to your phone. Otherwise you will have to apply this mod again every time you add or change mods (most likely).
- 7zip
So, you should have your framework-res.apk on your computer and 7zip installed to open the apk. Open up the framework, navigate to /res/drawable-hdpi folder. In that folder, find the file statusbar_background.png. You can either pull that file out to your computer to edit it or open it straight from 7zip (which is the best way to ensure there is no issues when pushing framework back to the phone) but you must have your editing software set as the default to open .png files.
Now once you have that file open in Paint.NET, you will see the image of the status bar as you currently have it. Up on the top toolbar, you should see the option "Layers". Click that then select "Layer properties" at the bottom of the drop-down. At the bottom of the window that pops up, you should see "Opacity" and the number set at 255 with the neighboring slider all the way to the right. I suggest using the slider because as you move it you will see the transparency applied to the bar image, allowing you to slide it around to the desired transparency.
Once you have finished setting your transparency, click the little disk image at the top left to save your changes, close the program out and you should then see a box pop up in 7zip (if you made changes without unpacking the file from 7zip first) asking if you would like to apply changes to file you edited. Say yes, then close 7zip, which may or may not state that changes have been made to the apk and if you'd like to update it, which you would say yes to if it does. If you unpacked the file from 7zip, simply drag and drop the file back into its correct spot, confirm you want to replace the file, then close it up. After all of this is done, just put framework-res.apk back into the framework folder on your phone whatever way you like, turn your phone on and you have a transparent status bar.
As a side note, you can play with Paint.net to see all of the modifications you can make to your status bar like changing colors, texture, and a few other things. One piece of advice is to have a backup framework-res.apk in case you make a mistake or something.
excuse my extreme noobness, but what is the best way to transfer the apk back and forth from the phone to computer? yes I am new to this and yes I am a retard and yes I probably shouldnt even try this..
JoeyBones1 said:
excuse my extreme noobness, but what is the best way to transfer the apk back and forth from the phone to computer? yes I am new to this and yes I am a retard and yes I probably shouldnt even try this..
Click to expand...
Click to collapse
Easiest way would be to get root explorer so you can navigate to the /system/framework folder and copy the apk from there to your sdcard, where you can just copy it to your computer. the other option would be plugging your phone into your computer, phone should be on, open up command prompt then navigate to your sdk/tools folder (get it if you dont already have it), then type "adb pull /system/framework/framework-res.apk c:\" without the quotes. the file will be in the root of your C directory. To get it back on your phone when finished, for root explorer just reverse the steps, but when moving the apk back to its proper folder, just hit the "Mount R/W" button at the top right of root explorer, copy the file back in and reboot. For alternate method, boot into recovery, mount /system partition, then in prompt after navigating to sdk tools folder type "adb push c:\insertdirectoryto\framework-res.apk /system/framework/" without quotes, then boot up and youre done.
tried this...boot looped...had to restore backup...thanks for the info though...might try again soon
BillytheKid82 said:
tried this...boot looped...had to restore backup...thanks for the info though...might try again soon
Click to expand...
Click to collapse
Did you try editing the file without extracting it or did you extract it and reinsert it?
Or you could edit the .png and use metamorph to push it into the framework-res.apk without moving or unzipping anything. And you could just keep the metamorph theme with that one .png on your sdcard to re-apply it whenever you flash a new rom, without altering any other theme elements you've already applied.
What do I edit to change the pull down notifications?
Sent from my Incredible using XDA App
thx a ton got it
transparent, transferring back to phone now..we will see
edit ..boot loops too..
i used root explorer ..extracted framework-res.apk to my sd card ,,then on my computer i opened paint.net and edited the statusbar_background.png file and then
zipped back up the framework-res and renamed to apk then copied back to my framework folder and it the forced closed and went into boot lopes...
i know im close to getting this right ..what step am i skrewing up?
i edited the file w/out extracting it...using root explorer i copied the framework res to my sdcard...plugged my phone in to comp, opened the framework res w/ 7zip, edited w/ gimp, saved all changes...unmounted phone, used root explorer and copied the new edited framework, then navigated to the original framework res and pasted the new one there to overwrite the original...then it force closed so i tried to paste it again, then the phone rebooted and boot looped? not sure if i did something wrong
Gahh Its Lee said:
What do I edit to change the pull down notifications?
Sent from my Incredible using XDA App
Click to expand...
Click to collapse
That file is a .9.png file. editing these is ridiculously difficult and ill-advised.
chrisloveskaos said:
thx a ton got it
transparent, transferring back to phone now..we will see
edit ..boot loops too..
i used root explorer ..extracted framework-res.apk to my sd card ,,then on my computer i opened paint.net and edited the statusbar_background.png file and then
zipped back up the framework-res and renamed to apk then copied back to my framework folder and it the forced closed and went into boot lopes...
i know im close to getting this right ..what step am i skrewing up?
Click to expand...
Click to collapse
BillytheKid82 said:
i edited the file w/out extracting it...using root explorer i copied the framework res to my sdcard...plugged my phone in to comp, opened the framework res w/ 7zip, edited w/ gimp, saved all changes...unmounted phone, used root explorer and copied the new edited framework, then navigated to the original framework res and pasted the new one there to overwrite the original...then it force closed so i tried to paste it again, then the phone rebooted and boot looped? not sure if i did something wrong
Click to expand...
Click to collapse
I JUST remembered that I think you need to be running a deodexed rom to allow modifications. I've always used deodexed roms and forgot that it might be a requirement for things like this. Do either of you know if what youre running is deodexed or not?
mixedlemon said:
Or you could edit the .png and use metamorph to push it into the framework-res.apk without moving or unzipping anything. And you could just keep the metamorph theme with that one .png on your sdcard to re-apply it whenever you flash a new rom, without altering any other theme elements you've already applied.
Click to expand...
Click to collapse
metamorph is definitely more useful. I just have never created anything to run with it so I don't know the process of doing so.
im running skyraider vanilla, i tried to look on the thread to see if it is deodexed and i couldn't find if it is or not...may not be...thanks for your help
mb02 said:
I JUST remembered that I think you need to be running a deodexed rom to allow modifications. I've always used deodexed roms and forgot that it might be a requirement for things like this. Do either of you know if what youre running is deodexed or not?
Click to expand...
Click to collapse
running new skyraider 3.3 and im sure it is
Yea it seems they are both deodexed, and btw I didn't know skyraider 3.3 was so awesome I'm tempted to switch over to it. But yea, I'm not sure why your phones aren't allowing the modifications to the framework. I might as well load SR 3.3 and see for myself what's up. I'll get on that later tonight when I have time and let you guys know if i figure anything out.
Use this with metamorph. It will work on any rom (tested on skyraider 3.3) except those that still use the "drawable-hdpi-v4" folder in the framework-res.apk. If your rom uses that folder, simply rename the folder it puts on your sdcard in /sdcard/AndroidThemes/HalfTransparentBar/
If you'd rather have a different transparency just replace the .png in the folder with yours.
In fact, if you want to edit ANY graphic on your rom, just put the .png in the /sdcard/AndroidThemes/xxxxxx/framework-res/res/drawable-hdpi/ folder with the same file name as the one you want to replace. And of course, do a nandroid backup just in case.
EDIT: As Berzerker7 pointed out, this file probably wont make anything transparent unless you have a modified services.jar. oops.
mixedlemon said:
Use this with metamorph. It will work on any rom (tested on skyraider 3.3) except those that still use the "drawable-hdpi-v4" folder in the framework-res.apk. If your rom uses that folder, simply rename the folder it puts on your sdcard in /sdcard/AndroidThemes/HalfTransparentBar/
If you'd rather have a different transparency just replace the .png in the folder with yours.
In fact, if you want to edit ANY graphic on your rom, just put the .png in the /sdcard/AndroidThemes/xxxxxx/framework-res/res/drawable-hdpi/ folder with the same file name as the one you want to replace.
edit: and of course, do a nandroid backup just in case.
Click to expand...
Click to collapse
Well then that simplifies a lot of things lol. Thanks for putting that up for us, makes everything even easier.
Simply swapping a file won't work. It's the same reason simply swapping a transparent image for the notification pull-down doesn't work. Opacity is controlled on another level by services.jar. You need to modify the values there, as well as swapping out for a transparent image.
Btw, this didn't work for me on SkyRaider 3.3. (Metamorph or swapping the file).
It makes the background black but not transparent on virtuous 3.0.1
mixedlemon said:
Use this with metamorph. It will work on any rom (tested on skyraider 3.3) except those that still use the "drawable-hdpi-v4" folder in the framework-res.apk. If your rom uses that folder, simply rename the folder it puts on your sdcard in /sdcard/AndroidThemes/HalfTransparentBar/
If you'd rather have a different transparency just replace the .png in the folder with yours.
In fact, if you want to edit ANY graphic on your rom, just put the .png in the /sdcard/AndroidThemes/xxxxxx/framework-res/res/drawable-hdpi/ folder with the same file name as the one you want to replace.
edit: and of course, do a nandroid backup just in case.
Click to expand...
Click to collapse
Berzerker7 said:
Simply swapping a file won't work. It's the same reason simply swapping a transparent image for the notification pull-down doesn't work. Opacity is controlled on another level by services.jar. You need to modify the values there, as well as swapping out for a transparent image.
Btw, this didn't work for me on SkyRaider 3.3. (Metamorph or swapping the file).
Click to expand...
Click to collapse
Ah, I must have already installed a theme that modified it, then.
WOOOT!
SO can't wait to try this!
Wow... epic fail on my part... edited the image, repackaged, compared to original, file sizes/compression were similar enough, so I copied it onto my SD card and went in to Root Explorer... Mistake number 1)forgot to do a nandroid OR a titanium, Mistake number 2)Renamed the framework-res.apk to framework-res.bak BEFORE I copied the new file to the /system/framework. As soon as I did that, everything went haywire so I did a battery pull and went to do it the ADB way from recovery. Thought I did that right, so I rebooted into a bootloop... Finally gave up so I decided to do mistake number 3)full nandroid restore of a backup that was admittedly a few days old (See mistake 1 lol) after which I had rearranged a few things and added more apps etc... Now on to the important stuff...
MAKE SURE YOU DO STEP 1 BEFORE ATTEMPTING ANY OF THIS AND IF YOU RUN INTO PROBLEMS, DO STEP 2 SO YOU DON'T MAKE THE SAME MISTAKE I DID!
Step 1)For the love of all that's holy, do a Nandroid and Titanium backup first!
Step 2)In Clockwork Mod Recovery, do NOT do a full restore, instead go to advanced restore and simply restore the system (the part that you were messing around with to do this mod lol I realized this gem just as I clicked "Yes" in CWM, I still have the palm print on my forehead... haha
Hopefully you folks will have better luck than I did, but if not, hopefully I can save you some of the headache I went thru...
Hey guys, was reading through the threads today and noticed a few comments where people got confused weather overscroll is in the new GB OTA roms or not.
The answer to that is yes. The overscroll has been in ALL GB roms since the beginning, including GB Sense roms.
We could never see them in the HTC Sense Gingerbread roms though because HTC hid them(not removed them) by changing the color to black and then Indexing them.
So where are they?
They are located in an apk called framework-res.apk. This apk is located in the system/framework folder of your rom. You can get the apk from your rom by doing one of a few things.
1.
Code:
adb remount
adb pull /system/framework/ framework-res.apk
2. Use the Root Explorer app to copy the apk from your system/framework folder and paste it on your SD Card and then just transfer it to your computer.
3. Using 7Zip, extract the apk from your original rom zip while its on your computer, if you originally downloaded it to your computer.
Extract framework-res.apk and navigate to framework-res\res\drawable-hdpi.
Look for these two images: overscroll_edge.png and overscroll_glow.png. Thats the overscroll images. Also look at any of these new OTA GB roms and you'll see what I mean by HTC has blacked them out. Kinda messed up huh?
How to make them colored?
Using a program such as gimp, open the images and change them from 'indexed' mode to 'rgb' mode and then just change the hue to whatever you like.
After that's done just open the original framework-res.apk and drag and drop your new custom overscroll images in to their proper folder. See? very simple.
or...
Grab the framework-res out of a CM GB rom and grab those same images above and toss them into your framework-res.apk
After you've made your changes just do one of these to put the framework-res.apk back into your rom.
1.
Code:
adb remount
adb push framework-res.apk /system/framework/
2. Drop the apk into a pre-made flashable zip that you know installs to system/framework and flash through recovery.
Easy huh?
wildstang83 said:
So where are they?
Extract framework-res.apk and navigate to framework-res\res\drawable-hdpi.
Look for these two images: overscroll_edge.png and overscroll_glow.png. Thats the overscroll images. Also look at any of these new OTA GB roms and you'll see what I mean by HTC has blacked them out. Kinda messed up huh?
Click to expand...
Click to collapse
how do you do this? i wanna play with this a little bit.
also when you are done do you just push the apk back in?
OMG_VTEC said:
how do you do this? i wanna play with this a little bit.
also when you are done do you just push the apk back in?
Click to expand...
Click to collapse
Well you can extract with 7Zip. And yea just pushing it back in with adb is probably the best way unless your good with flashables.
Edit: You want to know how to get that framework-res.apk? Just pull it out of your rom using Root Explorer or extract it from the actual rom zip that you downloaded in the first place. Its located in system/framework.
ok...i figured that part out...
now when in gimp i cant seem to see any color change...
all i see is the grayscale blocks and a black stripe(edge) or curved part(glow)
i dont see what any of the color change options are doing...
and so you know, i dont know crap about image editing...cant ya tell??
EDIT- thats exactly what i did...dropbox to the computer and now im stuck...lol
OMG_VTEC said:
ok...i figured that part out...
now when in gimp i cant seem to see any color change...
all i see is the grayscale blocks and a black stripe(edge) or curved part(glow)
i dont see what any of the color change options are doing...
and so you know, i dont know crap about image editing...cant ya tell??
EDIT- thats exactly what i did...dropbox to the computer and now im stuck...lol
Click to expand...
Click to collapse
Ok do this:
Open the image in gimp. Go to the tool bar at the top and hit image. Do you see 'Mode'? Select that and then change to rgb mode. You'll notice how the image goes from blockish to blurry. Now you can edit your colors
Just play with colorize and brightness until you get what you want.
it doesnt do that... stays blocked when i do that
OMG_VTEC said:
it doesnt do that... stays blocked when i do that
Click to expand...
Click to collapse
Ah ok I see what your saying. You can still do any color you want. Just make sure the image is in rgb mode and then pick whatever color you want and choose the largest blurry brush and draw a straight line across the top of the image. Look at my example below. You can even use my example if you want.
Do the same thing for the over glow edge. Just use a normal brush and only color the top of the image. About two pixels should be good. Again look at my example.
And if that isn't working for you, just grab the images out of a CM rom and just change the color on them to whatever you like.
feel a little dumb here but what exactly is over scroll?
is it when you are scrolling and get to the end and you see the color flash over briefly, like you are bumping into a momentary light switch...?
Azag Thoth said:
feel a little dumb here but what exactly is over scroll?
is it when you are scrolling and get to the end and you see the color flash over briefly, like you are bumping into a momentary light switch...?
Click to expand...
Click to collapse
Lol yea thats what it is. The blurry light at the end of a scroll.
Just incase...here are those blurry lights in action
Sent from my Rinky Dinky DInc2
So I just pushed my framework-res.apk right down over the orig and rebooted and that worked.
But I suspect there is a reason why you want to install it via a zip right?
Not trying to be annoying, but more to learn and actually understand this wonderful world of Android.
Otherwise, I really do like the over-scroll.. Especially when I am browsing folders using Root Explorer and NOT viewing by alphabetical but file size for instance.
Thank you for sharing this information wildstang83!
Whi7eRa66iT said:
So I just pushed my framework-res.apk right down over the orig and rebooted and that worked.
But I suspect there is a reason why you want to install it via a zip right?
Not trying to be annoying, but more to learn and actually understand this wonderful world of Android.
Otherwise, I really do like the over-scroll.. Especially when I am browsing folders using Root Explorer and NOT viewing by alphabetical but file size for instance.
Thank you for sharing this information wildstang83!
Click to expand...
Click to collapse
Well just that some people are more comfortable flashing vs actually adb pushing stuff.
And thanks. Always glad to help if I can.
Great info in this thread - thanks wildstang.
Sorry to ask such a entry level question - in regards to:
2. Drop the apk into a pre-made flashable zip that you know installs to system/framework and flash through recovery.
Where would one acquire a pre-made flashable zip ?
EDITED: answered my own question thru trial and error.
Well, its whatever. People on XDA would much rather bash those that need help than to actually help them. I'm still learning but I can't get anywhere with these types of comments. So until then I'll be over at themikmik.com.
Follow me if you truely care. If not, nice knowing ya.