Related
I've successfully used MM to push a solitary modified XML into the framework-res.apk, but it wasn't very graceful. There was no request to reboot, and the phone sort of hanged, rebooted by itself without the bootanimation and straight to the lock screen.
A subsequent reboot straightened everything out with the results of the new XML apparent. Is it the intention of MM to push XML files or only image files?
yes thats what it is for.. It can't write new ones tho.. Only overwrites...
The hanging half reboot is normal... Happens to me all the time when I modify the framework..
Sent from my SGH-T959 using XDA App
OK, great, thanks. One more question regarding the editing the compiled XML files if I could. Right now, in order to decompile an XML, I take an APK and extract it with the APK tool and overwrite the existing XML with the one I want to edit. I then zip the APK, then decompile it in order to edit it with Notepad++. I do the reverse of those steps in order to convert the decompiled XML back to the compiled format.
Is there an easier way of either using the APK tool or a different method altogether to convert the XML back and forth from one format to the other?
Apk manager takes some if that hassle away.. Its in the android themes section or the g1 section... Not sure which but danesh is a knowledgeable person and does good work with brut making all this easier..
Sent from my SGH-T959 using XDA App
Right, that's the app I'm using to go back and forth between formats already. But, it seems a little long winded simply to do this seemingly simple task with having to compile the entire APK. Anyway, I've asked there with no response.
I suppose it's the only way then.
Hello!
I'm trying to make my own Rom right now. With dsixda's Kitchen it isn't very hard to do so I thought I'd just give it a try. I'm taking a rooted official Update (Version: 2.10.405.2) as my base. Adding busybox runparts, the /data/app functionality, a2sd+, the custom bootanimation functionality etc. isn't a problem. Removing some apps like Maps, Facebook, Teeter (and so on) and adding some like Rom Manager, Neocore or Quadrant isn't a problem, too. But if I want to implement a theme like the Carbon Espresso Mod or a theme I made with the UOT Kitchen I'm getting bootloops at booting the phone. Here's what I do: I unzip the folder (for example a theme made with the UOT Kitchen) and I copy over the framework-res.apk from the unzipped folder to my Working Folder of the Kitchen (to system/framework) and I overwrite the original framework-res.apk.
And NO: I didn't choose a battery mod or a bootanimation in the UOT Kitchen....
Hope you guys can help me
I might be wrong but doesn't the new file have to be signed? I know there is a signing option in the kitchen.
Sent from my PC36100 using Tapatalk
It's a system .apk so it doesn't have to be signed.
I can't shed any light on the subject, but here's a bump.
Are you replacing the whole "framework-res.apk" file? If so then you will need to resign your entire ROM. Why? When you change a system file ("framework-res.apk", "com.htc.framework.apk", "twframework-res", "rosie.apk", etc.) it no longer has a matching "signature" for all the files it serves images to. Plug your phone into your computer and open up "ddms" in your android_sdk > tools folder to watch what happens when the phone boots up.
A workaround (The way I do it, it's more fun IMHO) is to open up your .apk files in 7zip (or if you're on a mac BetterZip) and add the images from the themed .apk to your stock .apk. This way makes it so your original .apk has the same signature as your other system files yet has the new images from the other files that you wanted. I've had a lot of luck with this method. I don't know if it will still work if you change any .xml files as I have not messed with those yet.
I've subscribed to this thread so if you have any questions post back here or you can PM me if you want. I'm on XDA all day, every day so I'll try to help as much as I can.
Thanks for all the answers! Especially to you, mbobino. Is there a way to sign the whole Rom new? When I make my Rom at the End, the Kitchen signs it automatically, doesn't it? The idea with the images is very good, but if I want to implement a theme like Carbon Espresso it isn't that easy, 'cause Carbon Espresso isn't just a few images. There are several .xml's etc.
The reason you boot loop is mis matched resource ID's in the public.xml file. If you decompile the framework using apktool after adding your images using an archiver then recompile apktool will update the public file for you which saves you from pulling ID''s for every image. I have a video tutorial of how to set up apktool and decompile framework in my Rom thread. Changing images in app apk's won't cause you to boot loop just messing with the framework will.
Sent from my ADR6300 using XDA App
DomiKamp said:
Thanks for all the answers! Especially to you, mbobino. Is there a way to sign the whole Rom new? When I make my Rom at the End, the Kitchen signs it automatically, doesn't it? The idea with the images is very good, but if I want to implement a theme like Carbon Espresso it isn't that easy, 'cause Carbon Espresso isn't just a few images. There are several .xml's etc.
Click to expand...
Click to collapse
The kitchen signs the .zip that you flash when you build it. It does not sign any .apks for you on its own. However, there is an option to sign .apks within the kitchen.
In my opinion, taking all of the images and figuring out how it all works is fun. I feel like I've already learned quite a bit from just digging around and moving files around.
As for the .xml files, you can decompile the .apk and edit them and then recompile the .apk. I'm actually looking into this today. It sounds like some work but hopefully I'll get it figured out.
Sounds like fun indeed So, I'll just have to try it. Where can I find the "Settings" for the Notification Bar? Thanks
The variois status*.xml files in the res/layout folder of the framework-res.apk and the status*.smali files in the services.jar.
What? If I want to implement a Theme made with the UOT Kitchen (without battery) I should just copy over those files to my existing res-framework.apk OR copy over the whole res-framework.apk (the new one) and sign it?
EDIT: Just tried it with a theme from the UOT Kitchen and it worked perfectly. I've just signed the res-framework.apk and the htc.com.resources.apk (or whatever) in the Kitchen, flashed it on my Phone and it just worked like a Charm. But I have got a 50% Transparent Notification Bar and all the system icons (Battery and time/date) are still black and not transparent! Has anyone got a idea where to change this? (.xml or whatever)...And does anyone know where I can find the HTC Wallpapers? I want to change them a little bit
HeyItsLou said:
The reason you boot loop is mis matched resource ID's in the public.xml file. If you decompile the framework using apktool after adding your images using an archiver then recompile apktool will update the public file for you which saves you from pulling ID''s for every image. I have a video tutorial of how to set up apktool and decompile framework in my Rom thread. Changing images in app apk's won't cause you to boot loop just messing with the framework will.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
HeyItsLou, I looked up your ROM thread but couldn't locate the video tutorial.... do you mind providing the url? Specifically, I am trying to add to the list of wallpapers in a ROM. (I have setup apktool but not sure where/which folder to add my wallpapers in Framework-res.apk Launcher.apk before recompiling/signing). Thanks.
You COULD use the Theme Porter by daneshm90. It will only port the PNG s for it so things like clock colour n stuff will be lost, but it will get you alot closer...
http://forum.xda-developers.com/showthread.php?t=737526
Sent from my HTC Hero using XDA App
Thanks! But like I've written before in my Edit, I made it. The bigger theme (Carbon Espresso) wasn't a problem, too. I just had to sign the .apk's in system/app and system/framework (the kitchen doesn't do it by itself. You have to choose the option to sign a single .apk and then look, where the system/framework .apk's are...). Works great now!
DomiKamp said:
Thanks! But like I've written before in my Edit, I made it. The bigger theme (Carbon Espresso) wasn't a problem, too. I just had to sign the .apk's in system/app and system/framework (the kitchen doesn't do it by itself. You have to choose the option to sign a single .apk and then look, where the system/framework .apk's are...). Works great now!
Click to expand...
Click to collapse
Isnt that what I said in the 2nd post -.- lol jk. Glad you got it working!
Yes! And that's why I tried it. And it worked! Thanks Husker and, of course, everybody else!
Glad you got it working. Welcome to the development side of android!
Sent from my PC36100 using XDA App
I don't sign system files or apps and apkmanager among other threads I've read say not to. Im on a rooted backflip. I find I only have to sign third party apps to install.
Why do you have to sign YOUR files?
Sorry for answering that late. Had a few things to do, so I wasn't online very often
If you want to cook an App into your Rom (NeoCore for example), then you don't have to sign it. You can just copy it into data/app. But if you want to change the whole framework-res.apk of the Rom, you have to sign it. 'Cause if you don't sign it, you'll get a Bootloop. The framework-res.apk is a very important part of the Rom, so it has to "fit" to the others. There are some ID's which have to match. Otherwise it won't work. That's how I understood it
Another Question: Has anybody got an Idea where to change the things that are coming, when you first start the phone with a new Rom (the "installation" of the Rom)? I wan't to write: "Welcome to DomiKamp's Rom!" Or something like that...
bestialbub said:
I don't sign system files or apps and apkmanager among other threads I've read say not to. Im on a rooted backflip. I find I only have to sign third party apps to install.
Why do you have to sign YOUR files?
Click to expand...
Click to collapse
I was curious about this too. I always edit the framework-res of any ROM I flash using a custom set of images I have and have never signed the apk afterwards and it has always worked. Maybe cause I'm only replacing images? I usually do this with framework-res and twframework-res and they both can sometimes grow by 1MB or more. Just my experience.
Sent from my SAMSUNG-SGH-I897 using XDA App
DomiKamp said:
Sorry for answering that late. Had a few things to do, so I wasn't online very often
If you want to cook an App into your Rom (NeoCore for example), then you don't have to sign it. You can just copy it into data/app. But if you want to change the whole framework-res.apk of the Rom, you have to sign it. 'Cause if you don't sign it, you'll get a Bootloop. The framework-res.apk is a very important part of the Rom, so it has to "fit" to the others. There are some ID's which have to match. Otherwise it won't work. That's how I understood it
Another Question: Has anybody got an Idea where to change the things that are coming, when you first start the phone with a new Rom (the "installation" of the Rom)? I wan't to write: "Welcome to DomiKamp's Rom!" Or something like that...
Click to expand...
Click to collapse
I think that in order to do the "welcome to" thing you'll have to edit the update-script file. I'm not 100% on it though. Look at a cm Rom and see what all is in there.
Sent from my HTC Evo 4G using XDA App
Finally! After days of struggling to figure out how to modify my ROM's framework-res.apk and create a working flashable update.zip to install the framework-res.apk changes, I have finally figured out how (big thanks to the guys here: http://forum.xda-developers.com/showthread.php?p=20962080#post20962080) and have created an automated script to help others struggling with the same problem.
Framework Flasher 1.1.4
Feel free to download and experiment with it. This is my first gift to the XDA/Android Hacking community, and I plan on doing more. I just want to test the waters for now Feedback would be nice. Let me know if I've helped you in some way!
---------------------------
What does it do?
It extracts your framework-res.apk file and allows you to edit the files. After editing, the script will compile, sign the apk, create your update.zip with the correct structure for flashing, and then sign the .zip. Everything you need to modify and flash your framework-res.apk file.
How do I use it?
Download the .zip from the link below and extract it somewhere on your PC. Drag the framework-res.apk file that you want to modify and/or flash into the /place-framework-res-here/ directory. Double-click on RunMe.bat and off you go! Do the steps (1-5) in order and you shouldn't have any problems.
Who needs this?
A LOT of people according to how many google searches I did in the past 3-4 days.
Will it work for files other than framework-res.apk?
Currently, no. However it would be easy to implement that functionality if I saw that people would benefit from it.
I found a bug... what do I do?
Post it in this topic. I'll do what I can to make continual updates as long as I see people are benefiting from it. I'm sure there are bugs in it somewhere, so just let me know.
Where do I download this snazzy piece of software?
http://www.mediafire.com/?1nc14hkhs2yrqmt
The little disclaimer
If you download this tool, please say thanks! Not only does it motivate me to continue to improve this software, but it also let's me know how many users are using it! Thanks!
This script is mainly intended for use with editing script files (xml, etc.), and normal (non 9png) images. 9pngs have been successfully repacked using this tool! If you run into any problems, be sure to make it known!
This tools was created to work with the Droid X2. If you are experiencing problems using it, first ensure that you are in fact using a Droid X2.
Change Log
1.1.4 (1/14/12)
- Corrected the Log error. You can now see error logs!
- Corrected an error processing problem where Framework Flasher would instantly close without warning
1.1 (1/7/12)
- Made compatibility tweaks
- Removed unnecessary overhead
1.0 (1/6/12)
- Initial Release
When reporting errors, please ensure that there are no spaces in your file path, and include what ROM and version you are running.
Hello
This is an awesome little tool you got here. I haven't tried it yet but I'll likely give it a shot eventually.
You should add functionality for SystemUI.apk, that's the other "real big" file people like to edit. Just a suggestion based on what I know about theming
Very nice!
So r u telling me this will modify everything including the. 9 png images..also can u get into the xml files as well or images only...i use apk manager and with the. 9 pngs u cannot touch the 9 patches or change the image without using draw 9 patch to ensure the apk will recompile
Sent from my DROID X2 using xda premium
PoorCollegeGuy said:
Hello
This is an awesome little tool you got here. I haven't tried it yet but I'll likely give it a shot eventually.
You should add functionality for SystemUI.apk, that's the other "real big" file people like to edit. Just a suggestion based on what I know about theming
Very nice!
Click to expand...
Click to collapse
Thanks. I will definitely look into adding this. I'll update the OP with any changes or updates.
Kevin3328 said:
So r u telling me this will modify everything including the. 9 png images..also can u get into the xml files as well or images only...i use apk manager and with the. 9 pngs u cannot touch the 9 patches or change the image without using draw 9 patch to ensure the apk will recompile
Sent from my DROID X2 using xda premium
Click to expand...
Click to collapse
Not tested 9pngs with this, it's mainly intended for scripting (xml files, etc. along with normal non 9png images). I've updated the OP to include a little disclaimer stating this fact. Thanks for pointing that out.
.9.png seems to work
Thanks Wesf90 for the tool. I was curious about the .9.png myself. Looking at the script it decompiles and compiles using apktool just like the apkmanager script does so just by looking at your RunMe.bat it looks like it would be fine. I did test it out to be sure though. So I took the framework-res from eclipse 2.0.3 changes some 9.png files and recompiled without any issues. It is important to note that you need to be careful when editing 9.png files to NOT change the black "patches" around the edge of those images. Doing so will cause bad patches and will generate errors when re-compiling. So for example if you apply a filter to the entire image double check that the color value of the black patches are still 000000 (I've done this ). If you don't mess with the patches all should be fine. It also depends on the original framework-res you are starting with. If you use one that has broken 9.pngs in it to start then you will need to fix them before re-compiling (I've done this too ).
Nice work. I especially like that step 4 that creates the update.zip. That is not in apkmanager that I've been using. So following steps 1,2,3,4 sure does make it simpler for a beginner which was your goal. Keep up the good work!
hedwig34 said:
Thanks Wesf90 for the tool. I was curious about the .9.png myself. Looking at the script it decompiles and compiles using apktool just like the apkmanager script does so just by looking at your RunMe.bat it looks like it would be fine. I did test it out to be sure though. So I took the framework-res from eclipse 2.0.3 changes some 9.png files and recompiled without any issues. It is important to note that you need to be careful when editing 9.png files to NOT change the black "patches" around the edge of those images. Doing so will cause bad patches and will generate errors when re-compiling. So for example if you apply a filter to the entire image double check that the color value of the black patches are still 000000 (I've done this ). If you don't mess with the patches all should be fine. It also depends on the original framework-res you are starting with. If you use one that has broken 9.pngs in it to start then you will need to fix them before re-compiling (I've done this too ).
Nice work. I especially like that step 4 that creates the update.zip. That is not in apkmanager that I've been using. So following steps 1,2,3,4 sure does make it simpler for a beginner which was your goal. Keep up the good work!
Click to expand...
Click to collapse
Thanks for the test run. I've updated to OP to state that 9pngs have been tested.
Creating the update.zip was the hardest part for me, learning how to use update-script and updater-script. Hopefully this will help everyone else get on the right path.
is it possible, that after the editing was done, to simply push the framework to its place? without flashing recovery?
Dude XDA did a writeup on this.. but the article states there is no. 9 compatibility .... which is not true your program decompiles just like apk manager and apk tool do... .9 can be edited the patches simply can't be touched.. making this an awesome little tool !!!
Sent from my DROID X2 using xda premium
Sweet tool, just what I've been looking for
Just wanted to drop in and say thanks for this tool (button hit, donation forthcoming).
I tried this with my framework-res file from and ICS 4.0.1 ROM I'm running and it decompiles perfectly, but after I make edits and try and recompile, the script just closes.
I tried looking at the log in the folder of the tool and it didn't have any information except the date/time I ran the script.
Any thoughts? Would love to make use of this if you think it should work for me. Thanks again!
XT69 said:
is it possible, that after the editing was done, to simply push the framework to its place? without flashing recovery?
Click to expand...
Click to collapse
Yes, definitely possible if you have ADB access. I may add this feature, but the idea of the tool is primarily to allow users to create a flash-able file for their's, or others', phones. I'll put it on my to-do list though
Kevin3328 said:
Dude XDA did a writeup on this.. but the article states there is no. 9 compatibility .... which is not true your program decompiles just like apk manager and apk tool do... .9 can be edited the patches simply can't be touched.. making this an awesome little tool !!!
Sent from my DROID X2 using xda premium
Click to expand...
Click to collapse
Yeah I noticed that about the 9pngs in the article, however several people (including yourself) have stated that 9png's work fine. So hopefully XDA will eventually update the post.
zaxondis said:
Just wanted to drop in and say thanks for this tool (button hit, donation forthcoming).
I tried this with my framework-res file from and ICS 4.0.1 ROM I'm running and it decompiles perfectly, but after I make edits and try and recompile, the script just closes.
I tried looking at the log in the folder of the tool and it didn't have any information except the date/time I ran the script.
Any thoughts? Would love to make use of this if you think it should work for me. Thanks again!
Click to expand...
Click to collapse
Interesting. I plan on releasing another update soon, so send me the file you tried (I sent you a PM), I plan on weeding out small bugs quickly. Once the update is ready, hopefully I can have this bug fixed (or at least resolved)
Wes
zaxondis said:
Just wanted to drop in and say thanks for this tool (button hit, donation forthcoming).
I tried this with my framework-res file from and ICS 4.0.1 ROM I'm running and it decompiles perfectly, but after I make edits and try and recompile, the script just closes.
I tried looking at the log in the folder of the tool and it didn't have any information except the date/time I ran the script.
Any thoughts? Would love to make use of this if you think it should work for me. Thanks again!
Click to expand...
Click to collapse
had the same here!
other then that great tool
Ok to u guys having this happen... try to decompile and them recompile immediately ... if this works odds are u damaged a .9 png... those images have a black 1 pixel boarder that cannot be touched
Sent from my DROID X2 using xda premium
Maybe a dumb question but do we flash this in recovery or is this for pc use?Thanks I been itching to try this on my Iced Sam Vib...
Program is for PC use when u r done it will create a flashing zip for u
Sent from my DROID X2 using xda premium
Dougfresh said:
Maybe a dumb question but do we flash this in recovery or is this for pc use?Thanks I been itching to try this on my Iced Sam Vib...
Click to expand...
Click to collapse
Yes, you're absolutely correct. Once you go through the steps and create the update.zip file, simple place that file onto your sd card. Then flash the .zip in recovery.
Wes
Doesn't work for me. It says that echo is off.
Thanks wesf90. Going to DL, and check this out.
Work with any Android?
Will this work with any Android system, like the GS2? Sorry if I missed the answer somewhere above.
Thx.
disclaimernotice said:
Doesn't work for me. It says that echo is off.
Click to expand...
Click to collapse
Does this happen as soon as you start it?
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 :/