Replacing apks in ROM zip. - Samsung Epic 4G Touch

Just wondering if it's possible for me to overwrite certain APKs in a ROM zip with custom ones that I've found.
Specifically, the inverted/blue MMS and unlocked Exchange Email APKs to put into my AOKP zip. I'd like to be able to do this instead of having to do it post-flash.
Thanks.

Yes you can,i make custom roms with every rom like this,it really easy.Just use 7zip and replace them,just make sure they don't have different names,to be sure i usually delete old apk's first and then copy new ones instead of replacing them.
This what i do:
1 Add or replace apk's in system/app folder and delete any apk's i dont want,this improves speed and battery life.
2 Go to system/media folder and delete or replace any unwanted ringtones and delete system sounds.You can also replace BootAnimation,zip in there for custom boot animation.
3 (Optional) go to /system/frameworks folder and replace framework-res.apk and twframework-res.apk to use a custom theme,just make sure its compatible with the rom yore using.Oh,and replace SystemUI.apk in system/app folder.
And BOOM you have your own custom rom ready to flash.If you need any more tips just ask.

lviv73 said:
Yes you can,i make custom roms with every rom like this,it really easy.Just use 7zip and replace them,just make sure they don't have different names,to be sure i usually delete old apk's first and then copy new ones instead of replacing them.
This what i do:
1 Add or replace apk's in system/app folder and delete any apk's i dont want,this improves speed and battery life.
2 Go to system/media folder and delete or replace any unwanted ringtones and delete system sounds.You can also replace BootAnimation,zip in there for custom boot animation.
3 (Optional) go to /system/frameworks folder and replace framework-res.apk and twframework-res.apk to use a custom theme,just make sure its compatible with the rom yore using.Oh,and replace SystemUI.apk in system/app folder.
And BOOM you have your own custom rom ready to flash.If you need any more tips just ask.
Click to expand...
Click to collapse
Yeah I need a tip. Every time I've tried this I can't resign them.
How do I do this?
Sent from my sprint Samsung galaxy s2 Epic 4g touch with ics using cm9 on the blazing slow now network

gilbydakid said:
Yeah I need a tip. Every time I've tried this I can't resign them.
How do I do this?
Sent from my sprint Samsung galaxy s2 Epic 4g touch with ics using cm9 on the blazing slow now network
Click to expand...
Click to collapse
Resign them?You don't need to resigh them,just add the apk and that's it.
NOTE:
If you modify some apk files they will no longer install from /system/app folder and you need to resign them,but if you did not modify apk file you're good.
While rarely(about 5% of time) some apk's will not install from system/app folder.
Strange thing is that if apk wont install,if you modify it and not sign it it will install,it will install unsigned but will not install signed!
So try it,if signed apk wont install just unsign it(mod it with 7zip) and see if it does and vice versa.
But 95% of apk's will work in system/app folder with no signing or unsigning needed.Just place the apk in system/app folder and you're good.

http://forum.xda-developers.com/showthread.php?t=1568913

playya said:
http://forum.xda-developers.com/showthread.php?t=1568913
Click to expand...
Click to collapse
Its nice but not really needed,plus devs can name same apk's with different names.I ptefer seven zip because it even tells you which apps devs added themselfs to the ROM.

Related

Request: change lockscreen

i love the modaco custom rom but would like to add the lockscreen from drizzys custom rom. (or any plain android looking lockscreen)
is there a way to extract the files i need and simply replacing them in the MRC? i guess its just an html file or something like that to replace, right?
I guess this is the HTCLockScreen.apk and .odex but since it's a system app, it cannot be installed or unistalled, and overwirting the apk in the system/app folder doesn't do anything.
If someone knows how to do it I will be very interested too.
im not sure if it will work but you can download my rom go to
system/framework
grab com.htc.resource.apk
now adb push com.htc.framework.apk /system/framework/
then reboot!
steps:
adb remount
adb push com.htc.framework.apk /system/framework/
adb shell
reboot
then if your phone loops then it didnt work, but if you go straight to you home screen then it should be fine!
good luck
"im not responsible for any wipes that you will have to do if you phone loops"
piflechien said:
I guess this is the HTCLockScreen.apk and .odex but since it's a system app, it cannot be installed or unistalled, and overwirting the apk in the system/app folder doesn't do anything.
If someone knows how to do it I will be very interested too.
Click to expand...
Click to collapse
its not in the lockscreen!
its in the framework!
Or you could do what I did, pull com.htc.resources.apk from the phone, extract it with 7zip edit the .png files in res/drawable-land-480x320/ and res/drawable-port-480x320/ then zipped it and built the apk using apkbuilder.
Then push it to the phone, as usual make backups.
soulehmoo said:
Or you could do what I did, pull com.htc.resources.apk from the phone, extract it with 7zip edit the .png files in res/drawable-land-480x320/ and res/drawable-port-480x320/ then zipped it and built the apk using apkbuilder.
Then push it to the phone, as usual make backups.
Click to expand...
Click to collapse
Thank you very much.
It works perfectly.
BR. Simemu
Thx it worked perfectly
I just pushed com.htc.resources.apk into the /system/framework folder.
Now is it also possible to change the notification bar with a similar method ?
I love the one from your Rom Drizzy Drake Rogers.
They are in framework-res.apk
A few jpg and png named status* in res/drawable-480x320/
Same method should apply.
As usual, would be smart to back up.
Edit: When I get some time off I may have a day messing with these files see about some different coloured UI's etc.
for me this does not work
what ive done is:
1. get the com.htc.resources.apk
2. extract it with rar
3. changed the mentioned png files
4. then i put them back into the archive (apk file, renamed as a zip file)
5. renamed the zip back to its original name
6. put the file as mentioned to the correct folder
there is no change.. is it a MUST to use apk builder, if yes, how to use that bat?
felikz said:
for me this does not work
what ive done is:
1. get the com.htc.resources.apk
2. extract it with rar
3. changed the mentioned png files
4. then i put them back into the archive (apk file, renamed as a zip file)
5. renamed the zip back to its original name
6. put the file as mentioned to the correct folder
there is no change.. is it a MUST to use apk builder, if yes, how to use that bat?
Click to expand...
Click to collapse
reboot and see if that works!
yes i did that, its not the case..
did you guys do it my way, or did you use adk builder?
Yeah use apk builder. Should work.
Edit: you sure its named right and in the right place?? It should have overwritten your old one.
and how to use apk builder??
okay, i signed the new apk with this http://www.anddev.org/signing_your_apk-application_for_release_keytooljarsigner-t3069.html
but that didnt work (the sign process worked, but then the hero looped)..
can anyone please tell how to sign the apk with apkbuilder??
Did you sign the .apk or the .png ????
Sorry...but i didn´t got a solution...i´m standing in front of the same problem like you
easier method here
http://forum.xda-developers.com/showthread.php?t=536271
no need to bother with apk builder with this method.
boomshaker said:
Did you sign the .apk or the .png ????
Sorry...but i didn´t got a solution...i´m standing in front of the same problem like you
Click to expand...
Click to collapse
signed the apk
soulehmoo said:
easier method here
http://forum.xda-developers.com/showthread.php?t=536271
no need to bother with apk builder with this method.
Click to expand...
Click to collapse
also this does not work for me --> phone loop
any idea, what i could do wrong? i am using windows paint (windows 7) to edit the files.. then i put the edited png files back into archive (thus, overwrite the files there) and push that apk file again back to its path.. after phone reboot the phone goes into endless loop
soulehmoo said:
Or you could do what I did, pull com.htc.resources.apk from the phone, extract it with 7zip edit the .png files in res/drawable-land-480x320/ and res/drawable-port-480x320/ then zipped it and built the apk using apkbuilder.
Then push it to the phone, as usual make backups.
Click to expand...
Click to collapse
I want to change my lockscreen, it all seems to make sense apart from editing the .png files..
What am I supposed to be changing in the files? Maybe I missed something, but that doesn't seem to have been explained
pookie1 said:
I want to change my lockscreen, it all seems to make sense apart from editing the .png files..
What am I supposed to be changing in the files? Maybe I missed something, but that doesn't seem to have been explained
Click to expand...
Click to collapse
tha background image of your lockscreen can be changed easily in the phone settings, but if you wanna change the other parts of the lockscreen, then you need to do it like told here ;-)
felikz said:
also this does not work for me --> phone loop
any idea, what i could do wrong? i am using windows paint (windows 7) to edit the files.. then i put the edited png files back into archive (thus, overwrite the files there) and push that apk file again back to its path.. after phone reboot the phone goes into endless loop
Click to expand...
Click to collapse
common guys, just a feedback!

ResettingOf Themes

Hi there could someone assist me how am I to go abt changing the to defaultThemes upon using a particular one in the Samsung Galaxy S, Android 2.2.1, Thanks s
salmannizam said:
Hi there could someone assist me how am I to go abt changing the to defaultThemes upon using a particular one in the Samsung Galaxy S, Android 2.2.1, Thanks s
Click to expand...
Click to collapse
I posted this in my theme thread, but here goes...
Using 7-zip or WinRAR, take a look inside the downloaded theme zip file. In there browse to the /system/framework and /system/app folders - these are the files that get installed.
What you need to do is make a note of the file names, then go to your phone and make a copy of the same files from /system/framework and /system/app to a folder on your sdcard.
Then copy this folder over to your pc.
Make a copy of the theme zip and call it e.g. mybackup.zip. Open mybackup.zip and copy the files you've backed up into their respective folders, overwriting the ones that are already there.
Close 7-zip/WinRAR and you're done.
Backup created. You can flash it using ClockworkMod recovery.
Each theme replaces different files. You need to check each time you want to try a new theme if you have the right files backed up that the theme is going to overwrite - if you hope to go back to 100% now it was before.

[Q] Force Close after re-compiling framework-res.apk

Hi,
I'm trying to make some changes to framework-res.apk.
I user APK Manager 4.9 to decompile the file, then made one trivial change to a XML file (changed one auto brightness related value).
I then compiled back to APK without signing and pushed to the phone in recovery mode the deleted Dalvik cache just to be on the safe side.
No matter how I play with it I always get FC from all the system apps immediately after the phone completes the boot process.
Some more information:
1. My original APK had directories like /res/drawable-hdpi-v4 while after decomplie they become res/drawable-hdpi (without the "v4")
2. After I recompile the "v4" directories are not created back and the generated APK contains the directories without the v4
3. If I use the "Reduce errors" feature of the APK manager complie option then I end up with APK that contains both the directories with v4 and those without.
4. I tried with the "reduce errors" option and without it (in which case I manually copied the signature directory into the APK) but got same FC.
5. It seems that once the FCs begin to happen they don't stop until a full nandroid restore. Even if I put the original framework.res.apk file I still get FCs after rebooting.
6. I'm using Revolution HD 2.0.11 ROM
7. The APK file I'm trying to modify was generated by the UOT kitchen.
Any idea what am I doing wrong?
No one knows?
erank said:
No one knows?
Click to expand...
Click to collapse
You dont need to decompile the framework to edit the files, heres the best way, take the the original framework-res.apk, and copy it to your pc, use 7zip to extract the .apk and extract any files you want to edit from the extracted framework, now go back to your original framework-res.apk and right click on it, find 7zip in the contex menu and click open, the contents of the apk will appear in a new window, now just drag and drop your edied files in the right directorys, once done, close 7zip, push the framework back to /system/framework/, wipe the dalvik cache and your done
AndroHero said:
You dont need to decompile the framework to edit the files, heres the best way, take the the original framework-res.apk, and copy it to your pc, use 7zip to extract the .apk and extract any files you want to edit from the extracted framework, now go back to your original framework-res.apk and right click on it, find 7zip in the contex menu and click open, the contents of the apk will appear in a new window, now just drag and drop your edied files in the right directorys, once done, close 7zip, push the framework back to /system/framework/, wipe the dalvik cache and your done
Click to expand...
Click to collapse
The files I want to edit are XML files which are compiled to reasources.arsc, as far as I know 7zip can't extract those, it has to be decompiled.
erank said:
The files I want to edit are XML files which are compiled to reasources.arsc, as far as I know 7zip can't extract those, it has to be decompiled.
Click to expand...
Click to collapse
Too true, the only other thing you could try is to sign the .apk before pushing it....
Sent from my Desire HD using Tapatalk
AndroHero said:
Too true, the only other thing you could try is to sign the .apk before pushing it....
Click to expand...
Click to collapse
Thanks AndroHero.
Everywhere I was looking they always say not to sign system APKs, but just to be sure I also tried signing it and not signing but copying the original META-INF directory - always got the same result - FC in all systems apps after boot.

[Q] Problems with theming Framework

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

Question for [TN&TR] "Black"FI27 ICS. Modded&Tweaked OUT! Update! 10/16/12

Question for [TN&TR] "Black"FI27 ICS. Modded&Tweaked OUT! Update! 10/16/12
What file or files needs to be moded to change the carrier banner name on the pull down as well as the border of the pull down that says "Black". Finally the boot animation as well. I only ask cause I every rom is a bit different. The theads I found about this did not work for this rom. Any help is apprieciated from anyone who has expierience with this rom or the talented Devs that moded this build. Thanks, great rom
Sent from my Black SPH-D710
elniper said:
What file or files needs to be moded to change the carrier banner name on the pull down as well as the border of the pull down that says "Black". Finally the boot animation as well. I only ask cause I every rom is a bit different. The theads I found about this did not work for this rom. Any help is apprieciated from anyone who has expierience with this rom or the talented Devs that moded this build. Thanks, great rom
Sent from my Black SPH-D710
Click to expand...
Click to collapse
I can help you out halfway. To change the boot animation, download one that you would like, browse to system/media from root explorer or another file explorer and replace the old one with the one you downloaded and reboot
Sent from my Epic 4G Touch using XDA Premium
http://forum.xda-developers.com/showthread.php?t=1844529
Explained here, but it may not work right with files that have already been modified. They might not decompile correctly, I'd check with Tim before changing anything though, he'll let you know if it's workable.
http://forum.xda-developers.com/showthread.php?t=1656612
And this should take care of the boot animations
Sent from my SPH-D710 using xda premium
Stryke_the_Orc said:
http://forum.xda-developers.com/showthread.php?t=1656612
And this should take care of the boot animations
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Thanks. I will check this out and let you know.
Sent from my Black SPH-D710
elniper said:
Thanks. I will check this out and let you know.
Sent from my Black SPH-D710
Click to expand...
Click to collapse
I have already made a mod for the carrier labels in the fi27 update. The new carrier label says team rejectz. If you would like to make your own carrier label(s) for fh23 for your own personal use, here's how...
What you will need:
-Pc/laptop updated with the latest java /sdk/jdk. (google it)
-Team Rejectz quick fix. (xda-dev section)
-Root file explorer such as : root explorer or ES file explorer OR adb shell on your pc to pull/push files from your pc to your phone.
-Notepad++ (google it)
-7 zip (google it)
- rooted e4gt and a NANDROID BACKUP!
1. Pull the framework res from your phone. Make a copy and save it. (system/framework)
2. Use the quick fix to decompile the framework res apk. The quick fix will make a framework res folder.
3. Go to res/values/strings.xml and open it with NotePad ++
4. At the top of NotePad ++ you will see an icon that looks like a pair of binoculars. That's the search icon.
Search for "Sprint". You should get 3 instances.
5 edit "Sprint" to say Black or Team Rejectz, your name or whatever you like. Just make sure its not too big or it won't work.
6. Recompile. After quick fix is done recompiling, there will be 2 new folders in the framework res folder; build, and dist. Go into the dist folder and you will see your new framework res apk.
7. Open the archive (don't extract, just open archive) of both the original copy of the framework res and the new one you edited from the dist folder. Drag and drop the META inf folder from the original to the modded apk. Now double click on the res folder in both archives. Drag and drop the drawable hdpi folder from the original to the modded archive.
Close out the archives and push your new framework res to system/app on your phone with either adb or your rooted file explorer. If you use the file explorer to push the framework res make sure you set the permissions the same as the rest of the system apks first. Push, reboot, enjoy.
Thanks
timmetal6669 said:
I have already made a mod for the carrier labels in the fi27 update. The new carrier label says team rejectz. If you would like to make your own carrier label(s) for fh23 for your own personal use, here's how...
What you will need:
-Pc/laptop updated with the latest java /sdk/jdk. (google it)
-Team Rejectz quick fix. (xda-dev section)
-Root file explorer such as : root explorer or ES file explorer OR adb shell on your pc to pull/push files from your pc to your phone.
-Notepad++ (google it)
-7 zip (google it)
- rooted e4gt and a NANDROID BACKUP!
1. Pull the framework res from your phone. Make a copy and save it. (system/framework)
2. Use the quick fix to decompile the framework res apk. The quick fix will make a framework res folder.
3. Go to res/values/strings.xml and open it with NotePad ++
4. At the top of NotePad ++ you will see an icon that looks like a pair of binoculars. That's the search icon.
Search for "Sprint". You should get 3 instances.
5 edit "Sprint" to say Black or Team Rejectz, your name or whatever you like. Just make sure its not too big or it won't work.
6. Recompile. After quick fix is done recompiling, there will be 2 new folders in the framework res folder; build, and dist. Go into the dist folder and you will see your new framework res apk.
7. Open the archive (don't extract, just open archive) of both the original copy of the framework res and the new one you edited from the dist folder. Drag and drop the META inf folder from the original to the modded apk. Now double click on the res folder in both archives. Drag and drop the drawable hdpi folder from the original to the modded archive.
Close out the archives and push your new framework res to system/app on your phone with either adb or your rooted file explorer. If you use the file explorer to push the framework res make sure you set the permissions the same as the rest of the system apks first. Push, reboot, enjoy.
Click to expand...
Click to collapse
Thanks, will try. And the boot animations, you agree with Stryke_the_Orc and others or you have a better method for Black Rom v1.3.
elniper said:
Thanks, will try. And the boot animations, you agree with Stryke_the_Orc and others or you have a better method for Black Rom v1.3.
Click to expand...
Click to collapse
Well I'd guess he'd say to use the method in the thread I directed you to, its his thread lol :beer:
Sent from my SPH-D710 using xda premium
Need Help
timmetal6669 said:
I have already made a mod for the carrier labels in the fi27 update. The new carrier label says team rejectz. If you would like to make your own carrier label(s) for fh23 for your own personal use, here's how...
What you will need:
-Pc/laptop updated with the latest java /sdk/jdk. (google it)
-Team Rejectz quick fix. (xda-dev section)
-Root file explorer such as : root explorer or ES file explorer OR adb shell on your pc to pull/push files from your pc to your phone.
-Notepad++ (google it)
-7 zip (google it)
- rooted e4gt and a NANDROID BACKUP!
1. Pull the framework res from your phone. Make a copy and save it. (system/framework)
2. Use the quick fix to decompile the framework res apk. The quick fix will make a framework res folder.
3. Go to res/values/strings.xml and open it with NotePad ++
4. At the top of NotePad ++ you will see an icon that looks like a pair of binoculars. That's the search icon.
Search for "Sprint". You should get 3 instances.
5 edit "Sprint" to say Black or Team Rejectz, your name or whatever you like. Just make sure its not too big or it won't work.
6. Recompile. After quick fix is done recompiling, there will be 2 new folders in the framework res folder; build, and dist. Go into the dist folder and you will see your new framework res apk.
7. Open the archive (don't extract, just open archive) of both the original copy of the framework res and the new one you edited from the dist folder. Drag and drop the META inf folder from the original to the modded apk. Now double click on the res folder in both archives. Drag and drop the drawable hdpi folder from the original to the modded archive.
Close out the archives and push your new framework res to system/app on your phone with either adb or your rooted file explorer. If you use the file explorer to push the framework res make sure you set the permissions the same as the rest of the system apks first. Push, reboot, enjoy.
Click to expand...
Click to collapse
Yea. Tried this today. I ran into a couple problems. The last step you say to push the framework-res file to "system/app" is that correct cause there is no room in there. I only have like a couple megs in there. I would have thought that it replaces the original file in "system/framework". I copied it there and over wrote the original and set permissions . The phone restarted by it self when I did that and got stuck on the boot animation. I force restarted the phone again and it still gets stuck on the boot animation. I restored my nandroid. I followed your instructions to a T. With the exception of where the framework-res file should go:crying: My carrier label has the same amount of characters as "Team Rejectz".
elniper said:
Yea. Tried this today. I ran into a couple problems. The last step you say to push the framework-res file to "system/app" is that correct cause there is no room in there. I only have like a couple megs in there. I would have thought that it replaces the original file in "system/framework". I copied it there and over wrote the original and set permissions . The phone restarted by it self when I did that and got stuck on the boot animation. I force restarted the phone again and it still gets stuck on the boot animation. I restored my nandroid. I followed your instructions to a T. With the exception of where the framework-res file should go:crying: My carrier label has the same amount of characters as "Team Rejectz".
Click to expand...
Click to collapse
Ok, first yes that should go to framework, system/app must have been a typo. Second, the getting stuck on boot could be a number of things, you'll have to get a logcat to find the specific cause. When this happened to me it was an improper edit that caused the xml to fail although it recompiled fine. Hope that helps.
Sent from my SPH-D710 using xda premium
Ok, so I can start attempting to make my own carrier label, and I want my clock on status bar in the center
Sent from my SPH-D710 using xda premium

Categories

Resources