I've looked through many posts. I am very new to creating my own Rom's, and I am having a problem after editing framework-res.apk. I started by downloading a popular rom for the Evo 3D, and decompiled it, edited framework-res, and after flashing the rom it wouldn't boot past the startup animation. The screen just remained black, but the capacitive buttons remained lit. Heres my process:
1.) Download the rom I desired.
2.) Extract zip
3.) Locate Framework-res.apk, copy, paste on desktop.
4.)Extract framework-res.apk, edited icons to my liking.
5.) Delete Meta-inf.
6.) Compress framework-res back to .zip, then to .apk.
7.)Sign Framework-res.apk.
8.) Replace framework-res.apk in my desired rom.
9.) Go into Meta-inf, delete Cert.RSA, Cert.SF, Manifest.MF (everything but the com folder)
10.) Re-sign .zip
11.) Flash via CWM, reboot, see Android startup animation, black screen?!!?!?
I am 99% I didn't change any dimensions of any of the images, and I re-signed everything perfectly. I know my mistake(s) are probably very noob, but as of now, I can't figure out what I am doing wrong. Any help would be greatly appreciated!
(Before you say anything, I have searched the forums several times, with no luck. I also tried this process several times, only editing one.png in framework-res, and I still get the same result.)
ellisperkins said:
I've looked through many posts. I am very new to creating my own Rom's, and I am having a problem after editing framework-res.apk. I started by downloading a popular rom for the Evo 3D, and decompiled it, edited framework-res, and after flashing the rom it wouldn't boot past the startup animation. The screen just remained black, but the capacitive buttons remained lit. Heres my process:
1.) Download the rom I desired.
2.) Extract zip
3.) Locate Framework-res.apk, copy, paste on desktop.
4.)Extract framework-res.apk, edited icons to my liking.
5.) Delete Meta-inf.
6.) Compress framework-res back to .zip, then to .apk.
7.)Sign Framework-res.apk.
8.) Replace framework-res.apk in my desired rom.
9.) Go into Meta-inf, delete Cert.RSA, Cert.SF, Manifest.MF (everything but the com folder)
10.) Re-sign .zip
11.) Flash via CWM, reboot, see Android startup animation, black screen?!!?!?
I am 99% I didn't change any dimensions of any of the images, and I re-signed everything perfectly. I know my mistake(s) are probably very noob, but as of now, I can't figure out what I am doing wrong. Any help would be greatly appreciated!
(Before you say anything, I have searched the forums several times, with no luck. I also tried this process several times, only editing one.png in framework-res, and I still get the same result.)
Click to expand...
Click to collapse
Are you editing .9.pngs? If you are then you can't edit them the normal way. Also you don't sign anything that goes into the system folder.
Hey you can't do apk editing that way it wont work. You have to decompile the apk use apktool. Then make changes and recompile back.
Sent from my LG-P500 using XDA Premium App
I tryed with the apk tool and gave all green icons a blue color with gimp but after recompiling the framework-res.apk and uploading it to the phone it won't boot anymore. (bootloop)
Does anybody know if I have to sign the apk or do I have to do something different to make this work? (I did'n't change the size of the pictures, only recolored it.)
It's about the png files in the "drawable-hdpi" folder.
I followed the instructions from this site: http://www.miui-au.com/add-ons/apktool/)
Nemesco said:
I tryed with the apk tool and gave all green icons a blue color with gimp but after recompiling the framework-res.apk and uploading it to the phone it won't boot anymore. (bootloop)
Does anybody know if I have to sign the apk or do I have to do something different to make this work? (I did'n't change the size of the pictures, only recolored it.)
It's about the png files in the "drawable-hdpi" folder.
I followed the instructions from this site: http://www.miui-au.com/add-ons/apktool/)
Click to expand...
Click to collapse
You never sign a system apk. You main issue may be your trying to edit a .9.png if that is the case then you can't just recolor them in Gimp. They have to be decompiled and edited a certan way, then ran threw the draw9patch tool from the android sdk.
I believe the framework.apk and rom have to be deoxed to make these modifications
Sent from my HTC HD2 using XDA Premium App
Problemen is half solved. I re-colored all green icons to blue, exept the .9.png
Tryed the .9 patch tool but didn'd manage to change the .9.png without problems.
My ROM is deodexed, so this couldn'd be the problem.
When uploading the framework without recolored .9.png files the ROM works well.
Sent from my HTC Desire using Tapatalk
Nemesco said:
Problemen is half solved. I re-colored all green icons to blue, exept the .9.png
Tryed the .9 patch tool but didn'd manage to change the .9.png without problems.
My ROM is deodexed, so this couldn'd be the problem.
When uploading the framework without recolored .9.png files the ROM works well.
Sent from my HTC Desire using Tapatalk
Click to expand...
Click to collapse
If you're only changing colors you can modify a .9 with PhotoShop or Gimp just do not touch the black patch lines around the edges and they have to be decompiled then recompiled in order for it to work properly. The way I personally do theming of system apks is as follows:
Decompile apk with apktool.
Modify the images I want to change. Compile with apktool.
Copy the new images from newly compiled apk to original apk.
Push apk to proper location to test.
If you make xml changes you will need to copy those as well as the newly compiled resources.arsc file. You only need the resources file if you change xml files though.
Sent from my ADR6300 using XDA App
ellisperkins said:
I've looked through many posts. I am very new to creating my own Rom's, and I am having a problem after editing framework-res.apk. I started by downloading a popular rom for the Evo 3D, and decompiled it, edited framework-res, and after flashing the rom it wouldn't boot past the startup animation. The screen just remained black, but the capacitive buttons remained lit. Heres my process:
1.) Download the rom I desired.
2.) Extract zip
3.) Locate Framework-res.apk, copy, paste on desktop.
4.)Extract framework-res.apk, edited icons to my liking.
5.) Delete Meta-inf.
6.) Compress framework-res back to .zip, then to .apk.
7.)Sign Framework-res.apk.
8.) Replace framework-res.apk in my desired rom.
9.) Go into Meta-inf, delete Cert.RSA, Cert.SF, Manifest.MF (everything but the com folder)
10.) Re-sign .zip
11.) Flash via CWM, reboot, see Android startup animation, black screen?!!?!?
I am 99% I didn't change any dimensions of any of the images, and I re-signed everything perfectly. I know my mistake(s) are probably very noob, but as of now, I can't figure out what I am doing wrong. Any help would be greatly appreciated!
(Before you say anything, I have searched the forums several times, with no luck. I also tried this process several times, only editing one.png in framework-res, and I still get the same result.)
Click to expand...
Click to collapse
Without signing and deleting meta-inf. Just extract it with winzip, past ur png s then rezip it. It should work.
Sent from my GT-I9100 using xda premium
Open rom with 7-zip, open framework inside 7-zip, pull the folder to your desktop and keep 7-zip open, edit your pngs, drag folder back into 7-zip, accept changes, press back til it asks you if you wanna update framework inside the zip, select yes. Flash rom. Profit.
.9 editing (assuming you have eclipse set up, google how to)
Same steps as above until where you edit the pngs, copy the .9 files to a new folder on the desktop, name it 9pngs (or whatever), remove the .9 just make it a png (background.9.png to background.png), edit the colors, open draw9patch, color in the whole right side and bottom all black, then place one black dot in the middle of the top and one black dot in the middle on the left side (this might not work on every one, but it has worked fine on every one ive edited, theres more info on how to use draw9, google is your friend), save the image, this will make it a .9 but it wont be recognized by android til putting it thru eclipse, do the same with all of the images, open Eclipse, start new android project, name it whatever you want, open the project folder, go to res, drag all images to appropriate folder, right click on the project folder, choose android tools, extract unsigned application, open the application you made with 7-zip, drag out the images into your drawable folder, insert folder into framework inside of 7-zip, back out of 7-zip until it asks if you want to update framework inside of zip, select yes, flash rom, profit.
Related
I've seen it asked quite a few times now, so I thought I would share how I've been creating my own themes for the Nook. This is a quick and dirty guide as I've almost got it down to a science for quick, keyboard shortcut, theming.
Things you'll need
Photoshop or The Gimp for editing files
Android SDK so you can push and pull files to/from the Nook.
draw9patch app in the Android SDK /tools folder for creating 9.png files
APK Manager (http://forum.xda-developers.com/showpost.php?p=6703735&postcount=1)
Notepad++ or some other text editor for editing XML files. After using Notepad++ on this, I'd highly recommend it though
An attention span
Some restraint
This is a rather good guide that helped me get started. My only complaint is that it is almost to complicated and includes more information than what is needed for a basic theme.
http://forum.xda-developers.com/showthread.php?t=916814
Getting Started:
Download the Android SDK and get it installed.
Download APK Manager
ADB pull /system/framework/framework-res.apk
Make a copy of the framework-res.apk files as a back-up in case you need to revert
Copy the framework-res.apk file to the /place-apk-here-for-modding folder under the APK Manager folder
Launch the APK Manager Script.bat file
Type in 22 to select the default project
Type in the number next to framework-res.apk in the list to select it as your project
Select 1 to extract the files
Select 9 to decompile (this is what makes the XML files readable)
Go to the /projects/framework-res/res folder under the APK Manager folder to view all the files from the theme
Images are located in the /drawable-mdpi folder. XML files are located throughout, but the files specific to layout are under the /layout folder. To change global settings, such as color codes and strings, edit the XML files under the /values folder.
Creating custom PNG files: If you are using Photoshop, use the Save For Web feature when saving. Save the image as PNG-24. Select None under the Matte option. Select None under Metadata.
A word on 9.png files: 9.png files are files that can be stretched by the OS. There is a 1 pixel border all the way around the image. In that 1 pixel border, you'll notice solid black lines here and there. The black pixels indicate which portions of the image are to be stretched. You can add this border and the black pixels in Gimp or Photoshop, or you can open the file the draw9patch app under the Android SDK /tools folder. The draw9patch app will actually display how the image will look when stretched as you add the black pixels around the border, so it can come in handy and it's what I prefer to use. You can open and edit .9.png files in draw9patch and edit the border even after you save the file.
Once you have all your files edited, recompile the APK package with APK Manager
Option 11
y
y
It will tell you to delete the files under the /keep folder that you have edited. Delete any images and XML files, from the /keep folder, you edited under the /projects folder. If you edited XML files, delete the /keep/res/resources.arsc file as well
Press any key to continue and let the script finish
In a separate command line window, mount your Nook's /system folder (adb shell mount -o remount,rw /dev/block/mmcblk1p2 /system)
back in APK Manager, select 8
/system/framework/framework-res.apk
Reboot your Nook
Boot Loop: If you messed something up and are stuck in a boot loop, most of the time you can still mount your Nook, push the original framework-res.apk to it and reboot. Or, you can use an unedited version of the CWM flashable zip file from the link below.
NOTE: it is not smart to push your framework-res.apk file to the Nook. I've learned the hard way that you can only do this about 10 times before you run out of memory and can no longer boot your Nook until you reflash Froyo again.
I'd recommend only a few flashes on a bare bones copy of Froyo until you feel comfortable with working on the framework theme. After that, I'm attaching a base, flashable zip for you to use in CWM so you can flash the theme instead of pushing. This will prevent you from getting stuck in a boot loop (unless you do something wrong yourself).
To add your framework-res.apk file to the zip, just open the zip and replace the /system/framework/framework-res.apk file (I'd recommend 7zip).
A Few Goodies
I'm including all of the PSD files I use to edit and create themes. If you want to create your own, custom theme, these will get you started. The only downside to these PSD files is that they are at the MDPI scale. If you want to create an HDPI theme, you'll need to increase the sizes.
Link to PSD files for creating your own theme, plus the flashable CWM zip file:
http://jjis.me/android-theme-templates
Hey man, I know you theme the froyo roms, but Im attempting a theme for the Phiremod CM7 and I cant seem to get anything but splash hangs and bootloops. I theme CM7 for the hero so I know my way around that, but Im wondering if theres something about the Nook that I have to do differently. For instance what is the mount.sh file you have in the tools folder on your themes? Is that only for froyo? Any help you could give me would be appreciated.
PMDColeslaw said:
Hey man, I know you theme the froyo roms, but Im attempting a theme for the Phiremod CM7 and I cant seem to get anything but splash hangs and bootloops. I theme CM7 for the hero so I know my way around that, but Im wondering if theres something about the Nook that I have to do differently. For instance what is the mount.sh file you have in the tools folder on your themes? Is that only for froyo? Any help you could give me would be appreciated.
Click to expand...
Click to collapse
CM7 is a little different than the stock builds of Froyo and others. They use the theme manager for it. If you are looking to theme for CM7, I'd suggest learning what it is needed to package it for the theme manager. I spent about an hour one day trying to find documentation, but couldn't. If can, or have it, please let me know where to find it so I can link to it and use it myself.
With that said, it appears that CWM does not flash, or at least mount, the same on the Nook. I'm assuming it's because it's on the external SD card and not internal. The mount.sh file was borrowed from samuelhaff's flashable ROMs. It actually tells CWM to mount the internal memory and flash to it.
If you are flashing without the mount.sh, it could be why you're getting the boot loops.
CWM uses edify language instead of amend. Again, it took me forever to find little to no documentation on it.
If you are using the mount.sh file and you are still getting stuck in a boot loop, I did discover a little issue with it yesterday. I was trying to use it to flash my new theme without the Vending.apk mod and I kept getting stuck in a black screen during start up. I forgot my edify code deletes the Vending.apk file so that was causing my problem. If you know how to edit the file, go for it. If not, I'm planning on updating it to correct this. If you need to, for now, just copy the Vending.apk to your flashable zip file.
It deletes the services.jar file as well. This was a requirement on Froyo since the status bar text is black by default. The services.jar file has to be edited to change the status bar text to white. Since CM7 does not need that change, try pushing just the framework-res.apk file, reboot and see if you boot successfully. If so, that is more than likely your problem.
wretchedlocket said:
CM7 is a little different than the stock builds of Froyo and others. They use the theme manager for it. If you are looking to theme for CM7, I'd suggest learning what it is needed to package it for the theme manager. I spent about an hour one day trying to find documentation, but couldn't. If can, or have it, please let me know where to find it so I can link to it and use it myself.
With that said, it appears that CWM does not flash, or at least mount, the same on the Nook. I'm assuming it's because it's on the external SD card and not internal. The mount.sh file was borrowed from samuelhaff's flashable ROMs. It actually tells CWM to mount the internal memory and flash to it.
If you are flashing without the mount.sh, it could be why you're getting the boot loops.
CWM uses edify language instead of amend. Again, it took me forever to find little to no documentation on it.
If you are using the mount.sh file and you are still getting stuck in a boot loop, I did discover a little issue with it yesterday. I was trying to use it to flash my new theme without the Vending.apk mod and I kept getting stuck in a black screen during start up. I forgot my edify code deletes the Vending.apk file so that was causing my problem. If you know how to edit the file, go for it. If not, I'm planning on updating it to correct this. If you need to, for now, just copy the Vending.apk to your flashable zip file.
It deletes the services.jar file as well. This was a requirement on Froyo since the status bar text is black by default. The services.jar file has to be edited to change the status bar text to white. Since CM7 does not need that change, try pushing just the framework-res.apk file, reboot and see if you boot successfully. If so, that is more than likely your problem.
Click to expand...
Click to collapse
Thanks for the reply! I actually took yours apart and was able to correct my script and I noticed that the delete services.jar line was causing issues as well. If you can I'd like you to take a look at the updater script after I edited it and see if you see any errors. It's attached below. I have gotten the framework and other themed apps to flash fine, but for some reason the themed market will not install. After flash it is in the /system/app folder as vending.apk. but it doesn't actually replace the stock market anywhere else. I actually spent several hours today trying to get the market back because I got frustrated and went all delete happy in root explorer, lol.
As far as Theme Chooser goes, here is a decent tutorial, but I haven't taken the time to really try and change my whole MO to use it. I theme the aospCMod for the heroc without using the chooser app. You can also get some good tips on building themes for the chooser in the #aospbot irc channel. A few of the guys in there build themes for it.
View attachment updater-script.zip
PMDColeslaw said:
Thanks for the reply! I actually took yours apart and was able to correct my script and I noticed that the delete services.jar line was causing issues as well. If you can I'd like you to take a look at the updater script after I edited it and see if you see any errors. It's attached below. I have gotten the framework and other themed apps to flash fine, but for some reason the themed market will not install. After flash it is in the /system/app folder as vending.apk. but it doesn't actually replace the stock market anywhere else. I actually spent several hours today trying to get the market back because I got frustrated and went all delete happy in root explorer, lol.
As far as Theme Chooser goes, here is a decent tutorial, but I haven't taken the time to really try and change my whole MO to use it. I theme the aospCMod for the heroc without using the chooser app. You can also get some good tips on building themes for the chooser in the #aospbot irc channel. A few of the guys in there build themes for it.
View attachment 546902
Click to expand...
Click to collapse
Stupid question, but you are copying the vending file as Vending.apk and not vending.apk, correct?
Also, if you're using my themed market, there are only two icons that are customized. The rest looks stock.
Sent from my SAMSUNG-SGH-I897 using Tapatalk
wretchedlocket said:
Stupid question, but you are copying the vending file as Vending.apk and not vending.apk, correct?
Also, if you're using my themed market, there are only two icons that are customized. The rest looks stock.
Sent from my SAMSUNG-SGH-I897 using Tapatalk
Click to expand...
Click to collapse
Yeah the file is Vending.apk but its my themed market.
Sent from my NookColor using Tapatalk
PMDColeslaw said:
Yeah the file is Vending.apk but its my themed market.
Sent from my NookColor using Tapatalk
Click to expand...
Click to collapse
Sorry for the delay in response. I had too many things to do with the family yesterday.
If you haven't got this working yet, I'd suggest trying to start with removing just the /system/app/Vendind.apk file via the updater-script. If it works, then go back in and add each additional line until you run into problems again. At that point, you'll know what your problem is.
Since everything else (framework-res.apk, services.jar, etc.) gets replaced successfully, leave those lines alone. I'd just start with the basics of replacing the Vending.apk first and then work your way back up from there.
I've looked through many posts. I am very new to creating my own Rom's, and I am having a problem after editing framework-res.apk. I started by downloading a popular rom for the Evo 3D, and decompiled it, edited framework-res, and after flashing the rom it wouldn't boot past the startup animation. The screen just remained black, but the capacitive buttons remained lit. Heres my process:
1.) Download the rom I desired.
2.) Extract zip
3.) Locate Framework-res.apk, copy, paste on desktop.
4.)Extract framework-res.apk, edited icons to my liking.
5.) Delete Meta-inf.
6.) Compress framework-res back to .zip, then to .apk.
7.)Sign Framework-res.apk.
8.) Replace framework-res.apk in my desired rom.
9.) Go into Meta-inf, delete Cert.RSA, Cert.SF, Manifest.MF (everything but the com folder)
10.) Re-sign .zip
11.) Flash via CWM, reboot, see Android startup animation, black screen?!!?!?
I am 99% I didn't change any dimensions of any of the images, and I re-signed everything perfectly. I know my mistake(s) are probably very noob, but as of now, I can't figure out what I am doing wrong. Any help would be greatly appreciated!
(Before you say anything, I have searched the forums several times, with no luck. I also tried this process several times, only editing one.png in framework-res, and I still get the same result.)
ellisperkins said:
I've looked through many posts. I am very new to creating my own Rom's, and I am having a problem after editing framework-res.apk. I started by downloading a popular rom for the Evo 3D, and decompiled it, edited framework-res, and after flashing the rom it wouldn't boot past the startup animation. The screen just remained black, but the capacitive buttons remained lit. Heres my process:
1.) Download the rom I desired.
2.) Extract zip
3.) Locate Framework-res.apk, copy, paste on desktop.
4.)Extract framework-res.apk, edited icons to my liking.
5.) Delete Meta-inf.
6.) Compress framework-res back to .zip, then to .apk.
7.)Sign Framework-res.apk.
8.) Replace framework-res.apk in my desired rom.
9.) Go into Meta-inf, delete Cert.RSA, Cert.SF, Manifest.MF (everything but the com folder)
10.) Re-sign .zip
11.) Flash via CWM, reboot, see Android startup animation, black screen?!!?!?
I am 99% I didn't change any dimensions of any of the images, and I re-signed everything perfectly. I know my mistake(s) are probably very noob, but as of now, I can't figure out what I am doing wrong. Any help would be greatly appreciated!
(Before you say anything, I have searched the forums several times, with no luck. I also tried this process several times, only editing one.png in framework-res, and I still get the same result.)
Click to expand...
Click to collapse
Also, I just tried only changing the default_wallpaper, and it did the same thing leading me to believe that it doesn't have something to do with me modifying it, but actually in me signing and repackaging it. If anyone could help/ give me instructions on how to do so, that would be great!
WOW!
you could always try the easy way... http://forum.xda-developers.com/showthread.php?t=695701
Select option 1 to decompress, then when done press option 3 to recompress.
Its what I use for framework. Sometimes I use this: http://forum.xda-developers.com/showthread.php?t=737526
All depends on what I need to do.
scrosler said:
WOW!
you could always try the easy way... http://forum.xda-developers.com/showthread.php?t=695701
Select option 1 to decompress, then when done press option 3 to recompress.
Its what I use for framework. Sometimes I use this: http://forum.xda-developers.com/showthread.php?t=737526
All depends on what I need to do.
Click to expand...
Click to collapse
Thanks a lot! I'm going to try my luck with that, and build a rom shortly. Another question, if I am lazy and I copy/ paste and replace the icons from one framework-res to another, and there are un-used icons, would that effect it?
ellisperkins said:
Thanks a lot! I'm going to try my luck with that, and build a rom shortly. Another question, if I am lazy and I copy/ paste and replace the icons from one framework-res to another, and there are un-used icons, would that effect it?
Click to expand...
Click to collapse
No, it would just bloat your file.
scrosler said:
No, it would just bloat your file.
Click to expand...
Click to collapse
Thanks. Then what I was doing earlier had literally nothing to do with me modding any of the files, but had to do with the way I was either compressing/ or signing. I was using an old tool to sign from PPC geeks, so I kind of assumed that was the issue from the start.
ellisperkins said:
Thanks. Then what I was doing earlier had literally nothing to do with me modding any of the files, but had to do with the way I was either compressing/ or signing. I was using an old tool to sign from PPC geeks, so I kind of assumed that was the issue from the start.
Click to expand...
Click to collapse
Prolly so.
If the battery icons are just png files, couldn't I create my own images in photoshop and replace the framework-res.apk files with my custom icons? If so, does anyone know the typical dimensions for the png images? I replaced my original battery with the ICS battery thanks to a suggestion of using NinjaMorph.
You can extract the framework-res. Apk from the system folder. Tinker around with what you find inside it. Use 7zip to modify the zip without having to resign it.
Now, flashing the update zip is not going to be easy without recovery. But you can assess png dimensions, and tinker with modding them meanwhile. It's a hobby of mine also
Sent from my HTC ThunderBolt using XDA Premium App
Sean Hicks said:
You can extract the framework-res. Apk from the system folder. Tinker around with what you find inside it. Use 7zip to modify the zip without having to resign it.
Now, flashing the update zip is not going to be easy without recovery. But you can assess png dimensions, and tinker with modding them meanwhile. It's a hobby of mine also
Click to expand...
Click to collapse
Thanks. I used the ICS battery info that I have now which was 25x25 png images and created my own battery images and animations, but when I use NinjaMorph to resign the apk nothing happens on reboot. Not sure if the sizing is off or what. So when you use 7zip you just flash the new zip in recovery? Can't seem to find the apk for 7zip
Click to expand...
Click to collapse
boyj600 said:
Sean Hicks said:
Thanks. I used the ICS battery info that I have now which was 25x25 png images and created my own battery images and animations, but when I use NinjaMorph to resign the apk nothing happens on reboot. Not sure if the sizing is off or what. So when you use 7zip you just flash the new zip in recovery? Can't seem to find the apk for 7zip
Click to expand...
Click to collapse
When you use NinjaMorph, make sure to 'finish' the project by clicking on the button, then on the project. Also, make sure the files were named exactly the same and were replaced. The battery icons used in the framework-res.apk were the ones names like such:
stat_sys_battery_bn_40.png
stat_sys_battery_bn_60.png
stat_sys_battery_bn_80.png
etc....
Click to expand...
Click to collapse
I'm piggybacking on this thread, but I have a question about replacing the battery images.
I've got the images (from this post: http://forum.xda-developers.com/showpost.php?p=21003708&postcount=10), but when I open the the image folder (with NinjaMorph) in framework-res.apk/res/drawable, I can't find the corresponding image files.
In that folder, where I thought the battery images were, I have a few .xml files (stat_sys_battery.xml, stat_sys_battery_bn.xml etc) and only 2 .png files (stat_sys_battery_charge_anim6.png and stat_sys_battery_charge_anim7.png).
Am I in the wrong place, or where have I messed up along the way? Thanks in advance for any replies.
as far as image sizes go mine are 38x38 png files and they work fine. i have used several different sets without fail. also to save time you dont have to change the images, just the ones with the "bn" in the name.
also if you are doing all this on a computer you can download metamorph from the market, there is a free and paid version, and you can create the file path to the images using correctly named folder in a zip file and use metamorph to auto install. i have not tried this method myself but it should work.
@topched in ninjamorph start a new project, go to system > framework > framework-res.apk > res > drawable-mdpi, scroll down till you see the battery images.
also if you wanted to create the metamorph the file path is framework-res > res > drawable-mdpi
and if you wanted to change your wifi meter to match your battery meter, like i do, the path is system > app > SystemUI.apk > res > drawable-mdpi
metamorph filepath would be SystemUI > res > drawable-mdpi
iirc its in drawable-mdpi
Edit: oops didnt see the last reply.
Sent from my HTC EVO 3D X515m using xda premium
Once you rezip the framework-res.apk, you can use adb to replace it as well.
adb devices
adb remount
adb push c:\location of apk file /system/framework/framework-res.apk
adb reboot
That will allow you to change the images without recovery. though I think nearly everyone has recovery now anyhow.
Also note, you want to replace the images into the framework-res.apk file without extracting it. open it with winrar or 7zip, navigate to the drawable-mdpi folder, drop images in and click ok on adding/altering the file. Then push it back.
Ok I finally got the icons replaced after tinkering and trying the suggested methods. Thanks for all of the input and direction. This is my Android battery. Pretty basic, but something I thought might look cool.
Know-Fear said:
Once you rezip the framework-res.apk, you can use adb to replace it as well.
adb devices
adb remount
adb push c:\location of apk file /system/framework/framework-res.apk
adb reboot
That will allow you to change the images without recovery. though I think nearly everyone has recovery now anyhow.
Also note, you want to replace the images into the framework-res.apk file without extracting it. open it with winrar or 7zip, navigate to the drawable-mdpi folder, drop images in and click ok on adding/altering the file. Then push it back.
Click to expand...
Click to collapse
i turn the zip into an apk and edit the images using ninjamorph
kcpaynev1 said:
i turn the zip into an apk and edit the images using ninjamorph
Click to expand...
Click to collapse
Ninjamorph has really been hit or miss with me. I have always used ninjamorph and metamorph before that with high rates of success. On the NT, it seems like it will work sometimes, and other times it does nothing. I noticed it mostly with the menu.background.png trying to alleviate the white on white issue. I replaced the image at least 20 times and it did nothing. Finally I just gave up on it and pushed the new .apk with adb and it was done.
Know-Fear said:
Ninjamorph has really been hit or miss with me. I have always used ninjamorph and metamorph before that with high rates of success. On the NT, it seems like it will work sometimes, and other times it does nothing. I noticed it mostly with the menu.background.png trying to alleviate the white on white issue. I replaced the image at least 20 times and it did nothing. Finally I just gave up on it and pushed the new .apk with adb and it was done.
Click to expand...
Click to collapse
Only time I have issues is when I forget to turn on usg debugging after a reboot
Sent from my Nook Tablet using Tapatalk
Know-Fear said:
Ninjamorph has really been hit or miss with me. I have always used ninjamorph and metamorph before that with high rates of success. On the NT, it seems like it will work sometimes, and other times it does nothing. I noticed it mostly with the menu.background.png trying to alleviate the white on white issue. I replaced the image at least 20 times and it did nothing. Finally I just gave up on it and pushed the new .apk with adb and it was done.
Click to expand...
Click to collapse
I was having this issue but used ninjamorph combined with 7zip on my pc and the two worked together flawlessly
boyj600 said:
If the battery icons are just png files, couldn't I create my own images in photoshop and replace the framework-res.apk files with my custom icons? If so, does anyone know the typical dimensions for the png images? I replaced my original battery with the ICS battery thanks to a suggestion of using NinjaMorph.
Click to expand...
Click to collapse
heres an example on how to edit the files in framework-res.apk.
what i did was extract the Battery.png's into a folder, then i edit them in paint, then i use photoshop to make the background transparent because paint saves them with a white background. im doing em 1 by one. its very time consuming. once i am done editing them, i will move them back into framework-res.apk (Hopefully overwriting the other files of the same name).. then from there, im still looking on how to create a flashable zip.
NOTE: i always save them with the same name as when they were extracted from framework-res.apk
funnyangrykid said:
heres an example on how to edit the files in framework-res.apk.
what i did was extract the Battery.png's into a folder, then i edit them in paint, then i use photoshop to make the background transparent because paint saves them with a white background. im doing em 1 by one. its very time consuming. once i am done editing them, i will move them back into framework-res.apk (Hopefully overwriting the other files of the same name).. then from there, im still looking on how to create a flashable zip.
NOTE: i always save them with the same name as when they were extracted from framework-res.apk
Click to expand...
Click to collapse
Let me know if you figure out the flashable zip. I've been wondering about that.
boyj600 said:
Let me know if you figure out the flashable zip. I've been wondering about that.
Click to expand...
Click to collapse
will do.
i found this. http://forum.xda-developers.com/showthread.php?t=732957 this is new to me so im gonna test it on my phone first before i share it.
funnyangrykid said:
i found this. http://forum.xda-developers.com/showthread.php?t=732957 this is new to me so im gonna test it on my phone first before i share it.
Click to expand...
Click to collapse
Sweet! I may give this a run when I get a chance. I'm trying to theme my HTC Rezound with a custom battery and anything else I can tinker with. Thanks.
I tried to decompile, modify 1 xml file and recompile the framework-res.apk.
But everytime I do it, I either get into a boot loop, or when In succeed it displays glitches (like notification bar, and messed up lock screen, and settings)
This is for AURORA ICS 4.0.3 and I do have the latest aapt.exe file .. so I don't know what is wrong!
I tried to use the original framework-res but replace the resources file inside, stored and compressed methods.
Tried to get the compiled framework-res but add the META-INF and Manifest file (again, both with compressed and stored resources file) and always.. it just glitches or bootloops.. and the mod that I tried (ICS on screen buttons or the CRT effect when you switch off the screen, mainly used in Oxygen roms, but it's available in all ROMs).. it never works.. only glitches the lock screen, notification bar etc..
Any help?
Thanks.
I might know the answer to this..
Which files are you modifying in framework-res? And how are you pushing it back to your phone?
Sent from my U20i using xda premium
Would be great
I am modifying some files in the values folder, bools.xml, arrays.xml .. but even if I edit bools.xml alone, it still glitches.
To push it back: I go to recovery mode on my phone, plug it into my linux machine (the system partition mounts), paste the new framework-res.apk to replace the old one, fix permissions (otherwise it boot loops), and restart the phone. This method works for other files and never had any problems, like the android.policy.jar
Would be great if you can help me. Thanks
Well, the XML files you're editing are all part of resources.arsc so it's something to do with that which is causing the problem. I used to get all sorts of annoying bugs when I edited anything in resources.arsc and I eventually found out that I was pushing the final apk back to the phone incorrectly.
I use a Windows PC, not Linux, so I might not be that helpful but this is what I do to modify and replace framework-res.apk. Hopefully it'll help. What I do is..
Decompile framework-res.apk
Make my changes
Recompile the file
Use a program like 7zip to open the old and the new files
Drag and drop the "res" folder from the new file into the old
Extract resources.arsc from the new framework-res.apk and add it to the old one in "STORE" mode, so it's not actually compressed
Go into recovery, mount the system partition and push the old file
..and that's it. Works a charm every time.
I would have thought that you would need to do the same thing on Linux but with the additional step of correcting the permissions. If you do all that and it still doesn't work, then there has to be a problem with the actual mod you're trying to do.
Thank you very much, I actually tried that method. It sort of worked, but everytime it breaks the notification bar. It becomes like double the size and I'm not sure why.
Thanks.
Then the issue must be with the modification itself. What exactly are you changing to what?
Sent from my U20i using xda premium
I tried different ones.. but even a simple one.. enable CRT animation.. which is pretty much open bools.xml and edit one true to false.. it breaks it :/
So I'm trying to do a little themeing and I have some questions. For instance, if I modify idlescreen_base.apk, do I have to sign that and then also sign the .zip? I'm trying to do a full on theme, modifying every little part of the ROM. When do you have to sign the .apks and .zips? One thing I don't like is the bubble around the four icons on the lock screen, so I went in to modify that and then found more files to change and so it began. And so while I'm on it, why do some m10s decode and some don't? Gingeritis3D and ShiftS3NS3 v3.0 have a default folder, but others have Blue Sky, etc. The default folder that has sharedm10 will decode but the others don't. Just curious. I'm using ShiftS3NS3 v3.0 as my base ROM to theme, by the way.
TheBeardedMann said:
So I'm trying to do a little themeing and I have some questions. For instance, if I modify idlescreen_base.apk, do I have to sign that and then also sign the .zip? I'm trying to do a full on theme, modifying every little part of the ROM. When do you have to sign the .apks and .zips? One thing I don't like is the bubble around the four icons on the lock screen, so I went in to modify that and then found more files to change and so it began. And so while I'm on it, why do some m10s decode and some don't? Gingeritis3D and ShiftS3NS3 v3.0 have a default folder, but others have Blue Sky, etc. The default folder that has sharedm10 will decode but the others don't. Just curious. I'm using ShiftS3NS3 v3.0 as my base ROM to theme, by the way.
Click to expand...
Click to collapse
I'm not much of a themer, but I might be able to help you with the signing.
You have to sign an APK any time you decompile and recompile it. Alternatively, if you use apktool, build the apk, then take the META-INF folder and AndroidManifest.xml from the original apk and copy them to the /build/app folder of the decompiled apk. Rebuild and your apk is signed. Your essentially taking the signature from the original apk and copying it to the one you recompiled.
If you want the zip to flash, you have to sign it. If you remove anything from an already signed zip, you have to resign it.
orkillakilla said:
I'm not much of a themer, but I might be able to help you with the signing.
You have to sign an APK any time you decompile and recompile it. Alternatively, if you use apktool, build the apk, then take the META-INF folder and AndroidManifest.xml from the original apk and copy them to the /build/app folder of the decompiled apk. Rebuild and your apk is signed. Your essentially taking the signature from the original apk and copying it to the one you recompiled.
If you want the zip to flash, you have to sign it. If you remove anything from an already signed zip, you have to resign it.
Click to expand...
Click to collapse
That makes total sense. I get it now. Thanks!
orkillakilla said:
I'm not much of a themer, but I might be able to help you with the signing.
You have to sign an APK any time you decompile and recompile it. Alternatively, if you use apktool, build the apk, then take the META-INF folder and AndroidManifest.xml from the original apk and copy them to the /build/app folder of the decompiled apk. Rebuild and your apk is signed. Your essentially taking the signature from the original apk and copying it to the one you recompiled.
If you want the zip to flash, you have to sign it. If you remove anything from an already signed zip, you have to resign it.
Click to expand...
Click to collapse
Sorry I seen this thread, and was wondering if you use metamorph to theme if you add the META-INF folder and the AndroidManifest.xml to the respective theme will the .apk be able to be installed into the data/app folder?
Deftoolfinch said:
Sorry I seen this thread, and was wondering if you use metamorph to theme if you add the META-INF folder and the AndroidManifest.xml to the respective theme will the .apk be able to be installed into the data/app folder?
Click to expand...
Click to collapse
Not sure. I don't use metamorph so I can't help you there. Sorry.
Sent from my ADR6400L using xda premium
I don't use metamorph. I modify the .apk then flash in recovery. Meta and ninja morph aren't necessary once you get the hang of flashing .zips.