don't know how to replace the framework-res.apk/res/anim folder.
im trying to use winrar should i use something else?
Na, you almost got it...open the apk in winrar, delete the anim folder, drag and drop the provided anim folder into the winrar window, follow the rest of the steps...
Sent from my ADR6300 using XDA App
KB Smoka said:
Na, you almost got it...open the apk in winrar, delete the anim folder, drag and drop the provided anim folder into the winrar window, follow the rest of the steps...XDA App
Click to expand...
Click to collapse
how do i open the apk in winrar thats where im stuck it doesnt show any of the root files thanks for the help i really appreciate it
where is it located i don't see /system
Related
im trying to customize my rom (skyraider 3.3) and i want to switch the 3G and 1X icons on the status bar, but whenever i try to edit them i get boot loops. ive tried adb pushing them, and ive even tried metamorph (not best idea). is there any way to edit them without having these problems.
*warning, this is an effin serious bump...
Last bump i swear!
Open the apk in something like 7zip (without unzipping it) and drag and drop the images replacing the ones in there already. Save it, and push it to your phone in recovery.
Did you sign the apk?
YoungSinema said:
Did you sign the apk?
Click to expand...
Click to collapse
Never sign HTC apks. Just drag-n-drop. Do not unzip.
Like already mentioned step by step:
open apk with 7zip,
extract the res folder,
close 7zip,
modify the graphics in the res folder,
open apk with 7zip,
drag the modified res folder into 7zip,
close 7zip,
push apk to /system/framework/ with adb
thanks for all the replies, really helped me out
NilsP said:
Like already mentioned step by step:
open apk with 7zip,
extract the res folder,
close 7zip,
modify the graphics in the res folder,
open apk with 7zip,
drag the modified res folder into 7zip,
close 7zip,
push apk to /system/framework/ with adb
Click to expand...
Click to collapse
Thanks for the instructions on editing com.htc.resources. Once I slowed down and followed the instructions worked like a charm, also I was able to reload into a zip file and applied through recovery.
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).
I'm trying to remove some transitions from a rom ZIP and perhaps replace them with some taken out of another. Does anyone know where they are located in the .ZIP or some other way to remove/replace them? A little help would be greatly appreciated.
crimeslunk said:
I'm trying to remove some transitions from a rom ZIP and perhaps replace them with some taken out of another. Does anyone know where they are located in the .ZIP or some other way to remove/replace them? A little help would be greatly appreciated.
Click to expand...
Click to collapse
Use 7zip. You need to pull the framework-res.apk from the phone and put it on your computer. Open with 7zip. You'll see a folder called 'res'. Open it. The first folder you see is then 'anim'. That folder contains your animations/transitions. So you would take the animations folder you want, and copy them to the anim folder in your framework-res.apk (replacing the existing). Then push your framework-res.apk to /system/app . That should give you your new animations. That's how I do it, and Myn posted up on how to do that in his thread, teaching us how to do that. Cool.
Sent from my PC36100 using XDA App
Or you can do it with astro file manager. Just copy the apk and take it out of a zip and swap the files. Then copy the updated apk where it would go in the zip.
Sent From My HTC Evo 4G On The Now Network From Sprint Using Tapatalk Pro!
Thanks alot guys I really appreciate it. I'm wondering if I use winrar can I just insert the transitions over the old ones the completely reflash the rom?
Edit: Ok if have found the framework-res.apk but I'm not exactly sure how to open it and look "inside" I'm using Winrar I'm thinking this is the same as 7zip for the purposes of searching through the zip but I'm not seeing compatibility with the .apk.
crimeslunk said:
Thanks alot guys I really appreciate it. I'm wondering if I use winrar can I just insert the transitions over the old ones the completely reflash the rom?
Edit: Ok if have found the framework-res.apk but I'm not exactly sure how to open it and look "inside" I'm using Winrar I'm thinking this is the same as 7zip for the purposes of searching through the zip but I'm not seeing compatibility with the .apk.
Click to expand...
Click to collapse
I can't say, because I don't use winrar. However, I know it works with 7zip, I change animations all the time. I can never decide if I like the flip or the fold animations. Anyways, try 7zip, I don't have a download link, but Google should take care of ya. 7zip allows you to open the .apk, so you can navigate to the 'res' folder, and then find the 'anim' folder. Good luck.
Yeah it worked great thanks. Stupid amon was giving me problems at first about it being signed but I just turned off verification. Btw how do you go about signing something?
Hi everyone,
I'm having a few questions regarding the theming of framework-res.apk on Android Revolution (No-Sense/Sense)..
After I pull the .apk, and decompile it, I edit the images so that the .9.png files stay intact. Then after that I compile the entire .apk and use WinRar to only push the images to the origional framework-res.apk..
But everytime I flash it I get bootloops and it won't boot into Android, any idea what I do wrong in the proces?
Thanks in advance!
if your using apk manager when you recompile the framework-res.apk it will ask you if its system app click yes then it will ask if you want to keep signature also click yes then you will have to delete the icons you changed in the keep folder then press enter in cmd window
it will compile and be called unsignedframework-res.apk rename to framework-.apk then open the rom using winrar (DO NOT EXTRACT) then just drag and drop the new framework-res.apk into the framework folder click ok let it do its thing then close winrar drop it on sd card and flash
leith51 said:
if your using apk manager when you recompile the framework-res.apk it will ask you if its system app click yes then it will ask if you want to keep signature also click yes then you will have to delete the icons you changed in the keep folder then press enter in cmd window
it will compile and be called unsignedframework-res.apk rename to framework-.apk then open the rom using winrar (DO NOT EXTRACT) then just drag and drop the new framework-res.apk into the framework folder click ok let it do its thing then close winrar drop it on sd card and flash
Click to expand...
Click to collapse
Or do what i do, make a copy of the zip file then extract the files you want to view, put them in a folder, then the icons you wanna swap put straight into the orig zip folder in there place, this method works for me fine & without any bootloops
deanr1977 said:
Or do what i do, make a copy of the zip file then extract the files you want to view, put them in a folder, then the icons you wanna swap put straight into the orig zip folder in there place, this method works for me fine & without any bootloops
Click to expand...
Click to collapse
I too do all my mods this way.. I find apk manager way to complicated to use lol when its so much easier to just swap the icons back into the original apk using 7zip...
apaquette420 said:
I too do all my mods this way.. I find apk manager way to complicated to use lol when its so much easier to just swap the icons back into the original apk using 7zip...
Click to expand...
Click to collapse
I find it much easyer this way. Can i ask you a question if you know abit about framework modding can you see were i have gone wrong here - http://forum.xda-developers.com/showthread.php?t=1195549
I can live with it but i would rather change it to a light gray or a different color? Any help would be very nice & not had a reply about this yet? Can you help?
i had the same issue and i found it easier to update the old framework and overwrite existing files. once you have completed compiling your new framework APK extract the contents and copy into the old framework... and that seems to work fine
Most UI sounds can be found and replaced simply in /system/media/audio/ui, but not so with the screen unlock sound. Replacing it is rather more involved. I'll assume some familiarity with using adb to move files around and rename them.
Tools you need: WinRAR, adb, zipalign
Procedure:
Create new unlock sounds named "lens_flare_unlock.ogg" and "lens_flare_tap.ogg". These can be oggs or mp3s but the files must be named exactly as stated with the .ogg extension.
Copy /system/framework/framework-res.apk to your computer and make a backup copy.
Rename your working copy to framework-res.zip
Double-click to open the file in WinRAR.
In WinRAR navigate to res/raw. You should see the files to be replaced.
Drag your replacement files into WinRAR and (here's the important part) in the Compression Method drop-down choose "Store".
Hit OK in WinRAR. Make sure the Size and Packed columns are the same for the replaced files. If they aren't you didn't choose 'Store' as the compression method.
Close WinRAR.
zipalign the file with this command: "zipalign 4 framework-res.zip framework-res.apk.mod"
Reboot the phone into recovery and plug it in. See this thread to get adb working.
Mount /system.
Use adb to push framework-res.apk.mod to /system/framework.
In /system/framework rename framework-res.apk (the original) to framework-res.apk.orig (so you have a convenient backup.)
Rename framework-res.apk.mod to framework-res.apk
chmod 644 framework-res.apk
Reboot and you should be good.
If your boot gets stuck after the T-Mobile animation something has gone wrong. To recover, reboot to recovery and use adb to rename framework-res.apk to framework-res.apk.mod and rename framework-res.apk.orig to framework-res.apk
If someone can tells us how to add files uncompressed using 7zip or Winzip that would be great. I used WinRAR because it's what I had.
You can also try replacing framework-res.apk using this method but I haven't.
thank you! ive been trying to figure this out! now if only I coudl find a way to change the actual lens flare to the lightning ive been seeing on youtube.
Synergy-7 said:
thank you! ive been trying to figure this out! now if only I coudl find a way to change the actual lens flare to the lightning ive been seeing on youtube.
Click to expand...
Click to collapse
flash this if you are on touchwiz...doesnt matter what rom or version you are on...its just images that will push to the framework
Lightening Lockscreen
How would I go about replacing the key press tone for my device? Currently it's the stock water droplet sound. Would I need adb since it is a system file? Or is there another method that would allow me to override this?
Sent from my SGH-M919 using xda app-developers app
cant you just replace the ogg files and that would be that??
btw how do you get the file to your computer and back?
Man this seems tough
Sent from my SGH-M919 using XDA Premium 4 mobile app
..