Framework-res.apk editing??? - myTouch 3G Slide Q&A, Help & Troubleshooting

How can I edit the nightly framework.apk correctly? I tried unzipping it by renaming it from .apk to .zip. I inserted the .png's to the appropriate place (they were battery images from the status bar) zipped it back up and renamed it from .zip to .apk. I flashed the rom and the default battery images were still there. Any answers? Thanks.
Sent from my T-Mobile myTouch 3G Slide using Tapatalk

When I did it I didn't rename i just right clicked and opened with winrar or winzip. Dragged whatever in and it worked.
My experience with this is using Matteslide. The rom only comes with free version of launcherpro. I just stole the themes from there and dragged it into the plus version.
Though i would think that you would have to resign an apk after editing it. idk.

OK, I got it working, all I did was decompile the apk, edited the .pngs and recompiled it. Your not suppose to sign it. Thanks, Ill be trying to port some themes now.

Related

[Q] metamorph theme problem for Redemption Rom, help

So I created a metamorph file that had a bunch of .pngs in it to replace some in framework-res.apk. I put them all in a folder called drawable-hdpi-v4 and put that inside a res folder and put that inside a framework-res folder. I edited an existing xml file that i borrowed from skyraiders and ran metamorph. I pulled the framwork-res.apk file out with adb and verified that all the pics went in but they wont show up on the phone. I have rebooted, ran metamorph several times, cleared cache but they just dont show up. What am I doing wrong? I am using redemption rom v2.2
This should not be in the dev section....
What images/xmls did you edit?
Also, what edits to the xmls?
Sent from my ADR6300 using XDA App

[Q] Changing Signal Bars Color

Can some leed me to the way of changing the Signal bars to baby blue i have not seen no one change the colors of the bars before
Sent from my PC36100 using XDA App
In a nutshell: If you are running an aosp rom, pull the framework-res.apk from /system/framework. If using sense I think you have to pull com.htc.resources.apk from the same place instead.
Then make three copies of the file you are using. Make one for backup then unzip the second one. You can then look through the unzipped apk under /res/drawable-hdpi for the images you want to change. Use your favorite editor to change the color of the images.
When you've made all the changes you want, use 7-zip to open (not unzip) the third copy of the apk that you haven't touched yet. Drag and drop the edited images into the same folder in the opened apk, overwriting the old ones.
Now you should be able to push this apk back to your phone.
Sent from your mom's phone.
Thanks man This is pretty hard do you mind doing this for me if you can thanks
Sent from my PC36100 using XDA App
Thanks I've been trying to figure that out for done time now.
nukedukem said:
In a nutshell: If you are running an aosp rom, pull the framework-res.apk from /system/framework. If using sense I think you have to pull com.htc.resources.apk from the same place instead.
Then make three copies of the file you are using. Make one for backup then unzip the second one. You can then look through the unzipped apk under /res/drawable-hdpi for the images you want to change. Use your favorite editor to change the color of the images.
When you've made all the changes you want, use 7-zip to open (not unzip) the third copy of the apk that you haven't touched yet. Drag and drop the edited images into the same folder in the opened apk, overwriting the old ones.
Now you should be able to push this apk back to your phone.
Sent from your mom's phone.
Click to expand...
Click to collapse
Swyped from Eva running Myn's RLS4!

Unzipping and zipping apk files?

I unzipped a apk file to change some of the images in the drawable-hdpi folder, how do I zip it back into an apk file to reinstall it on my phone. Or can I flash the zip file? I dunno how that would work...
Sent from my HTC Vision using XDA App
Can you get another copy of the apk?
If you can then the best thing to do is use winRAR or 7zip to open/explore the apk just like with a .zip file. That way you never unzip it and don't run into that issue. Using those allows you to delete and add files. You can also do the same thing on your phone using root explorer or something similar.
As far as correcting what you've done already (assuming you can't get a copy of that apk) I've completely forgotten since I never have to do it. I know if you look on the android sdk's site you can find the answer though.
adamtheindien said:
I unzipped a apk file to change some of the images in the drawable-hdpi folder, how do I zip it back into an apk file to reinstall it on my phone. Or can I flash the zip file? I dunno how that would work...
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
An apk is just a zip file with the apk extension, once you zip it up change it from a .zip to a .apk
Sent from my T-Mobile G2 using XDA App
i changed what i wanted and rezipped, changed the extension, tried to install it, says problem parsing the package?
adamtheindien said:
i changed what i wanted and rezipped, changed the extension, tried to install it, says problem parsing the package?
Click to expand...
Click to collapse
It can also depend on which APK (system vs non-system) and which images (.9 images can be tricky to replace if you don't know what you are doing). Sometimes, you also need to re-sign the APK, depending on what you modified (there are tools to re-sign in the SDK or you can use something like APK Manager).
You should try the opening the APK directly in WinRAR/7-zip and replacing the images method. In my experience, if you are just replacing simple images, you usually don't have to re-sign when doing this (it leaves the existing signature intact).
ok i mainly just replaced images and and edited a couple. i dont know how to use all that adbsdkwhatever stuff.... -_- i know i should but im too lazy. so i dunno how to re sign it...
all im trying to do is edit the quick search bar images. maybe i dont have to do this if there is somewhere to find themed search bars?
If you can then the best thing to do is use winRAR or 7zip to open/explore the apk just like with a .zip file.
Click to expand...
Click to collapse
If your using winRAR click and drag stuff works if its one or two files.
If its a lot of images or a large file like framework-res.apk (I'm thinking your search bar might be in there if I'm not mistaken) then you'll want to make a new ZIP archive with "store" compression (uncompressed pretty much).
(also you shouldn't need to resign the framework-res.apk)
I haven't tested 7zips click and drag but the same principals apply. If its bigger files being recompiled Winrar tends to compress it a bit and sometimes it causes bootloops.
That being said, don't forget to nandroid
82_Z28 said:
If your using winRAR click and drag stuff works if its one or two files.
If its a lot of images or a large file like framework-res.apk (I'm thinking your search bar might be in there if I'm not mistaken) then you'll want to make a new ZIP archive with "store" compression (uncompressed pretty much).
(also you shouldn't need to resign the framework-res.apk)
I haven't tested 7zips click and drag but the same principals apply. If its bigger files being recompiled Winrar tends to compress it a bit and sometimes it causes bootloops.
That being said, don't forget to nandroid
Click to expand...
Click to collapse
Well from my experience, 7zip handles the task like a champ. I've taken every image out and put others back in with no issues. The downside is that some apps set certain dependencies in the .xml files so if you delete the wrong things it won't install and if it does, all you get is a fc all day. In that case it helps to know how to convert the xml binary to something readable (unless you're a king a hex editing).

[Q] need help with theme

my first attempt into creating a new theme it's just a swype keyboard however i get fc when i try to open it. i am on starburst 1.95 i wipe after applying before launching. i modded png files compressed them originally i thought the apk being 6 megs was my issue but i have the same issue after compressing them. I didn't know if the apk needed to be resigned so i first tried without signing then with signing with the same result. can someone help me find what i screwed up.
didn't download your file to look but did you change any .9.png's ?
if all you changed were png's the .9.are probably causing your problems.
try this.
if just changing normal pngs just unzip the .apk (its a zip file) edit your png files and zip it back up.
see if that works.
once you get that going there are quite a few good tutorials out there on modding .9 files.
they take a few extra steps.
they are all .png
i have noticed swype themes for other phones don't completely work or they don't swype at least, but they do work for standard typing. my failed theme however just force closes so i am thinking this is a different issue not necessarily compatibility. the swype i modded was pulled from starburst, my current rom.
their is a com.swypeinputmethod file under data/data i am not sure if or how this effects the swupe.apk in system/app. thanks for the reply
try replacing the png files without decompiling the .apk first
just rename .apk to .zip and extract to a folder then rezip and change back to .apk
or easier just open the zip without extracting and copy the files to thier spots and close.
this way you don't have to worry about all the decompiling and signing.
it works
i got it
since it is a no install system app i just put it into the rom and installed the rom, i also got a fresh apk to dump the png's into not sure what did it but it is now working and i can look for something else to theme, skin or play with.
thanks guys

bootloop trying to replace framework-res.apk

I've been getting this bootloop for the last 18hours of trying
I'm on stock ROM, with Gin2Ics V1.0 theme, and using Overdose1986 Notification toggle, but I change the wifi icon of Overdose1986 using ApkChanger and it works..
and then I want to change the battery icon of FlorinXstyle (Gin2Ics V1.0) to something like this http://forum.xda-developers.com/showthread.php?t=1472766 so I tried decompile the framework-res (should be from Gin2Ics theme) then put some new battery icon from http://forum.xda-developers.com/showthread.php?p=19938404 , then re-compile and i got bootloop..
Am i missing something or doing wrong here? well actually I just read some of the post here on how to decompile/recompile framework-res but mine always ends up in bootloop.. can somene help me thanks
I think just to replace the battery icons you don't need to decompile, just open the framework apk with 7 zip or winrar, and paste the images in, checking the names match. There might bee more or less, but so long as the names match, shouldn't be a prob.
When done, install as you have been.
Sent from my metalliArc S
Metallijim said:
I think just to replace the battery icons you don't need to decompile, just open the framework apk with 7 zip or winrar, and paste the images in, checking the names match. There might bee more or less, but so long as the names match, shouldn't be a prob.
When done, install as you have been.
Sent from my metalliArc S
Click to expand...
Click to collapse
thanks for reply, after I put the images in, what should I do next? how can I make it again to an apk file without compiling it and how should I install it?
EDIT#1: I still got a bootloop
asderth8000 said:
thanks for reply, after I put the images in, what should I do next? how can I make it again to an apk file without compiling it and how should I install it?
EDIT#1: I still got a bootloop
Click to expand...
Click to collapse
To replace images use WinRAR, rename .pngs you have the same as they are in drawable-hdpi (stat_sys_battery_0-100, stat_sys_battery_charge_0-100 stat_sys_battery_charge_full, stat_sys_battery_full, stat_sys_battery_unknown) if they aren't already renamed. So open framework-res.apk with Winrar, go to drawable-hdpi, click Add button, choose all the icons you want, click ok, choose Store compression method and OK. Then you shouldn't have a bootloop.
It won't change from apk to any other file.
n3n00 said:
To replace images use WinRAR, rename .pngs you have the same as they are in drawable-hdpi (stat_sys_battery_0-100, stat_sys_battery_charge_0-100 stat_sys_battery_charge_full, stat_sys_battery_full, stat_sys_battery_unknown) if they aren't already renamed. So open framework-res.apk with Winrar, go to drawable-hdpi, click Add button, choose all the icons you want, click ok, choose Store compression method and OK. Then you shouldn't have a bootloop.
It won't change from apk to any other file.
Click to expand...
Click to collapse
I did what you said but no luck, or maybe I'm using incompatible files but all I do is change the png files, and they have the same name already, I'll call it a night maybe try something tomorrow thanks
http://forum.xda-developers.com/showthread.php?t=1374394
Are you changing permissions when you put the framework-res back in the framework folder?
yes I'm changing permissions, rw-r--r--, but always ends up in bootloop, I read somewhere post that after changemjg permission and move to framework folder, if phone reboot itself then there must be wrong in what i' m doing, cause thats what happen after I move the framework-res to framework folder, after finish replacing the one in the folder, phone shutdown and start to bootloop..
Sent from my LT18i using xda app-developers app
Do you have .odex files in system/app? Also which battery mod are you trying to add?
n3n00 said:
Do you have .odex files in system/app? Also which battery mod are you trying to add?
Click to expand...
Click to collapse
i dont know actually about odex files i'll check them later,btw what about odex files?
its jamesgary's battery mod
Sent from my LT18i using xda app-developers app
i think i dont have .odex files in my system/app folders
Sent from my LT18i using xda app-developers app

Categories

Resources