[Q] Modding APK files / resigning? - General Questions and Answers

Hi everyone,
After playing fieldrunners for a while I wanted to make some changes to the game. I openened the .apk file and edited the things i wanted. After that I cannot install that APK anymore. Is there any way to resign this apk again? Or some tweak to make it work again?
Thx

Morgenavond said:
Hi everyone,
After playing fieldrunners for a while I wanted to make some changes to the game. I openened the .apk file and edited the things i wanted. After that I cannot install that APK anymore. Is there any way to resign this apk again? Or some tweak to make it work again?
Thx
Click to expand...
Click to collapse
uninstall existing version,
place modified apk on sd card root,
sign your modified apk with signapktic using the platform key,
install via a file manager and you should be set.

Hi and thx for the reply!
I installesd the program and signed the apk as u explained but nothing changes. It still wont finish the installation. If I choose another output file ( another name and location ) it also says finished almost instantly but I never get a new file. Is this normal and will it only fix the existing file?
Thx

Got it working now. Not with the program but made a key and used signapk.jar
Thx anyways!

Related

question about paid applications

why is it that they are installed onto data/app as a zip file?
this confuses me sooo much how does it work if they are zip and not apk!
humor me with enlightenment pleasee ^_^
apks are zips with a different name. For serious. When I pack up my version of a theme into a file that needs to be called framework-res.apk I simply zip it with no compression and then rename the file.
yes ive actaully done a little theming myself and i understand that, but what i wish to do is uninstall some of my applications and edit them to change the default icons, i have success with the apks of regular apps but i cant do it for the paid ones
it seems that in the data/app file they arent apks at all! they are zip files
and after i have edited them on the computer and re zipped, named, and signed them, i still cant get them to re install,
the purpose of this is to change the default icon and no i do not want to use bettercut because i am using ahome and its not compatible
matthewboii said:
yes ive actaully done a little theming myself and i understand that, but what i wish to do is uninstall some of my applications and edit them to change the default icons, i have success with the apks of regular apps but i cant do it for the paid ones
it seems that in the data/app file they arent apks at all! they are zip files
and after i have edited them on the computer and re zipped, named, and signed them, i still cant get them to re install,
the purpose of this is to change the default icon and no i do not want to use bettercut because i am using ahome and its not compatible
Click to expand...
Click to collapse
Hmm that's a good question. I have yet to change default icons, so I'm of no help. Sorry :-/
yeah, well its actually not that hard to do as long as you repack and sign it, that is, only for the apps that are not paid, but the paid apps on the other hand are another story completely
anyone?
I have noticed this as well, it seems that the .zip files in the app directory are protected. You will find the .apk in the app-private directory.
Hope that helps.
BlueBoar said:
I have noticed this as well, it seems that the .zip files in the app directory are protected. You will find the .apk in the app-private directory.
Hope that helps.
Click to expand...
Click to collapse
Just beat me to it! Yeah, try the APK in app-private.
workd!
thanks guys

Problem with framework-res...

So, i need some help from you.
Everytime I put some statusbaar icons into the framework-res.apk and resign it, it stucks in a boot loop.
In ddms it says me that the package android (i think its a file in the framework-res, or the framework-res) isn't signed correctly.
I attached the statusbaricons and the WORKING framework-res.
Could someone please integrate the files in the res/drawables folder and sign it correctly for me?
Thank you..
You would get a credit in my rom ;-) (Yes, i know, it's not very well known :-D , my roms name is MaxismaR, just search for it here..)
P.S: I'm on Windows 7, maybe that affects the signing process..
maxisma said:
So, i need some help from you.
Everytime I put some statusbaar icons into the framework-res.apk and resign it, it stucks in a boot loop.
In ddms it says me that the package android (i think its a file in the framework-res, or the framework-res) isn't signed correctly.
I attached the statusbaricons and the WORKING framework-res.
Could someone please integrate the files in the res/drawables folder and sign it correctly for me?
Thank you..
You would get a credit in my rom ;-) (Yes, i know, it's not very well known :-D , my roms name is MaxismaR, just search for it here..)
P.S: I'm on Windows 7, maybe that affects the signing process..
Click to expand...
Click to collapse
What are you using to sign? Keytools/Jarsigner?
I'm using the autosign.exe.
Ahh, Try my attachment.
Ok, tried and it gives me this :
06-18 21:52:40.797: ERROR/PackageManager(77): Package android signatures do not match the previously installed version; ignoring!
have you tried deleting the META-INF folder before you sign?
maxisma said:
Ok, tried and it gives me this :
06-18 21:52:40.797: ERROR/PackageManager(77): Package android signatures do not match the previously installed version; ignoring!
Click to expand...
Click to collapse
I've come across that error before, it's just telling you the current installation of framework-res doesn't match the signatures with the one you're trying to reinstall. I believe this framework jar file is located only in /system/framework so you would first have to remove any reference to the file (basically uninstall it). I know you can't uninstall a jar but basically you need to remove references to the file and signature of the file before you can replace it. It's possible you only need to remove /system/framework/framework-res.jar and /data/dalvik-cache/*framework-res*
I can't guarantee that if you remove this file that android will still boot up without errors. Be prepared to have to wipe and reload
why not take a full ROM update and put your images into that and then sign it. also make sure your images aren't too big. if you are using linux you can use pngcrush otherwise i'm no help
But there's no framework-res.jar in there.
But will try wiping after installing the new framework-res ;-)
If u r including icons like battery, check the number of icons in the framework of hero & that of ur rom, if it dosent mach, try removing or incliding some more or ger the source cod & insert those hero stuff inor source code & rebuild rom then get both framework res apk & the jar file....
thats the way i had implemented the percentage battery statusbar icons into 1.5
I know your always supposed to resign the apk's but the only workaround I have found for the exact same problem is to put.zip at the end of framework-res.apk.Right click on it explore to what directory im inserting my images in and paste em while leaving it zipped,when done take .zip back off dont sign it and it works then in the update.
THX to crotalusfreak! That fixed it! You'll get a credit in my next upload ;-)

[Q] Advice on motoblur

hello guys
through sbfrecalc I managed to open a original ROM 2.1 of droidx
I would like to try different type apk on my milestone: blurhome, blur service, blurcalendar, blurupdater etc etc..With rootexplorer installing them, after write me "apk not installed"
is a test without success, or do I have to change any library?
any advice is welcome!
thanks
any ideas?
1. do a test-key sign of apk.
2. copy appropiate jar files associated with apk
3. copy the libs needed
4. make sure framework support the blur functionality
5. update init.rc to load the required jar files at the end.
you're up for a little challenge. My mod of Motoblur is the closest you get to using it.
Dexter_nlb said:
1. do a test-key sign of apk.
2. copy appropiate jar files associated with apk
3. copy the libs needed
4. make sure framework support the blur functionality
5. update init.rc to load the required jar files at the end.
you're up for a little challenge. My mod of Motoblur is the closest you get to using it.
Click to expand...
Click to collapse
thank's dexter!
your motoblur its base froyo, but my idea was to prove eclair, and how do I know which are the correct libraries?
at your 5 answer im not sure to understand!
thanks for the reply and thanks for your work!

[Q] Icon location and question to themers about framework-res.apk

Well I've started theming myself since I wanted a Windows Phone 7 Theme and learning as I go along but I've come across a few hurdles.
1. How do I push framework-res.apk without losing configurations like my email/gmail set up or wallpaper being back to default?
2. Where do I find the icons for the top right voice search and search buttons? I've found a couple that look identical within the files but when I change them nothing happens.
3. Any good guides or tools on how to make a flashable zip? I used to just use a script to make an updater script but it doesn't work anymore since they changed it to edify. I'm a lowly designer and can't figure out how to make a working updater script.
Thanks in advance.
Bump to the top.
and another bump ):
hope this helps...
seshmaru said:
Well I've started theming myself since I wanted a Windows Phone 7 Theme and learning as I go along but I've come across a few hurdles.
1. How do I push framework-res.apk without losing configurations like my email/gmail set up or wallpaper being back to default?
2. Where do I find the icons for the top right voice search and search buttons? I've found a couple that look identical within the files but when I change them nothing happens.
3. Any good guides or tools on how to make a flashable zip? I used to just use a script to make an updater script but it doesn't work anymore since they changed it to edify. I'm a lowly designer and can't figure out how to make a working updater script.
Thanks in advance.
Click to expand...
Click to collapse
1. grab an old zip for a system/framework file
toss the previous file(s)
toss in your new edited framework res
resign using this and this
flash via recovery
2. let you know when i get a chance to look.
3. grab apk manager.
MagnusRagnarok said:
1. grab an old zip for a system/framework file
toss the previous file(s)
toss in your new edited framework res
resign using this and this
flash via recovery
2. let you know when i get a chance to look.
3. grab apk manager.
Click to expand...
Click to collapse
1 is as simple as that? Sweet.
Also I have apk manager and Update zip packer but they use the old updater script ): But if I can simply use other peoples update script and replace their files with mine then that shouldn't be a problem, thanks for the help.

[MOD/CHEAT][Guide]How To Edit Fieldrunners HD apk for Money & Health

Hello everyone......if youre like me and just want to beat the crap out of a game that ticks you off sometimes then this is for you. This guide will explain how to edit the apk for fieldrunners hd. I will not supply or distribute the apk, so please do not ask.
First you will need the apk file you have purchased from android market. If you have an apk from amazon app store it will not work.
Start by changing the file extension from apk to .zip. Next, extract the contents of the file to a new folder on your desktop. (Folder can be named anything you like)
Open folder Assets>Data>HighResolution>Maps
Here you will find 4 folders....Cave, Crossroads, Drylands, Grasslands
Open the Folder for the level you wish to edit. (I will use grasslands as example for this guide)
Look for the files that have a ~map.mp3 extension. Open this file with a text editor like notepad. A few lines into the file will see this "startingHealth="20" startingResources="15". Change these values to anything you want them to be.
If you would like to modify the specs for the towers you can do this as well. I find it fun to make one weapon that just kills everything in one blow.
Open folder Assets>Data>HighResolution>Towers. Look for the tower you would like modify and open the file with a ~tower.mp3 extension in a text editor like notepad. Each tower will have one of these files for it. When opened look for <minDamage="129" maxDamage="129"> There will be a line like this for each level of tower, 1,2&3. Change he values to whatever you like, the higher the number the stronger the weapon.
Now that you have editied all maps and towers you want to it is time to button this up. Select all the files and folders you extracted from the zip file and create a new zip file. I use winzip with no compression. Name your new file whatever you like and save it to the desktop or a place you can find it. Now change the file extension of the new file from .zip to .apk. You will now need to sign the file, you will have to learn that in a different writeup. Once the file is signed it will install and you will see the changes in the game.
Good luck tinkering, do not post apk's here, and please act responsibly.
jase33 said:
Hello everyone......if youre like me and just want to beat the crap out of a game that ticks you off sometimes then this is for you. This guide will explain how to edit the apk for fieldrunners hd. I will not supply or distribute the apk, so please do not ask.
Good luck tinkering, do not post apk's here, and please act responsibly.
Click to expand...
Click to collapse
Ofcourse, i don't need the APK...i bought the game...But where to find on my device??? I am using a SGSII...thnx. ow...and i did not buy the game on Amazon, but via the Google Market.
the apk can found on your phone at data/app. you must be rooted to get to this. if you bought the game but are not rooted, maybe google can help you.
jase33 said:
the apk can found on your phone at data/app. you must be rooted to get to this. if you bought the game but are not rooted, maybe google can help you.
Click to expand...
Click to collapse
Dude...i have MIUI up and running...it is rooted, i am using root explorer. Everything is working untill i try to install the signed apk. I am using Andoid Commander to sign the apk...it is not working. Btw, i used the apk i found in the MIUI backup folder, because i could not find the APK in data/app...i know, it is strange...
Strange....i just went through MIUI and could not find the installed apk either. I will let you know when i find it.
EDIT - Found the apk in MIUI. Its is mnt/asec/com.subatomicstudios.com.
jase33 said:
Strange....i just went through MIUI and could not fing the installed apk either. I will let you know when i find it.
Click to expand...
Click to collapse
well, i found it in my back ups already...when i install that APK, it works. But when i alter the files and so on, the apk cannot be installed anymore...............
jase33 said:
Strange....i just went through MIUI and could not find the installed apk either. I will let you know when i find it.
EDIT - Found the apk in MIUI. Its is mnt/asec/com.subatomicstudios.com.
Click to expand...
Click to collapse
ok...i will try to alter that one! thnx mate!!!
edit: to be honest, i think that is the same apk as in the back up folder in MIUI...
edit 2: no, it's called different...let's hope it works this time!!! THNX MATE!!!
jase33 said:
Strange....i just went through MIUI and could not find the installed apk either. I will let you know when i find it.
EDIT - Found the apk in MIUI. Its is mnt/asec/com.subatomicstudios.com.
Click to expand...
Click to collapse
So, when i altered the files and so on, do i just deinstall the game? or are there other files i have to remove???
I have the amazon one, and it does not work. can someone pm me to the market version or this version? I've downloaded a few apk's already, and they seem to be the amazon version based on the file contents.
so I have the market apk, but I cannot get it signed properly. Tried zipsign 2, and install went ok, but app could not open. Tried signapk.exe and installed ok, but wont open.
after i re-zip the size changes by over 2mb under and will not install. I have re-signed it. What would cause the size change that much? it should be a few bytes.
Make sure you are zipping with NO compression.
Sent from my HTC HD2 using Tapatalk
I did tons of research and cannot get this guy signed using 7zip, winrar, win zip, droid explorer, ninja morph....
I followed instructions and this will not install. Anyone out there successful?
Sent from my SCH-I500 using XDA App
dr_w said:
I did tons of research and cannot get this guy signed using 7zip, winrar, win zip, droid explorer, ninja morph....
I followed instructions and this will not install. Anyone out there successful?
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
you need a program to sign it. I finally figured out how to do this.
so to recap, after you made changes to all the files like (I just added 99999 starting money):
grasslands_extended~map.mp3
grasslands~map.mp3
crossroads_extended~map.mp3
crossroads~map.mp3
then you zip it with NO COMPRESSION (or "Store" with winrar)
then use this to sign it(This can be used to sign any apk file):
Mirrors
http://www.mediafire.com/?tj2dqjcrqfujxr7
http://www.megaupload.com/?d=GHYX0PRW
http://www.fileserve.com/file/F3GT3bK/SignApk-with-bat.zip
http://www.filesonic.com/file/1878513104/SignApk-with-bat.zip
Download file and extract to C:. You should have a folder called "C:\SignApk"
Here are the instructions I made on how to sign it:
1. Copy the apk file to C:\SignApk
2. Rename apk file to "application.apk", then run the "Sign-application.apk.bat". This will produce a "application-signed.apk" in the same folder.
The batch file can be ran under administrative mode if it does not work the first time.
Requires java, and I assume most people have that on their pc already.
EDIT: it took me a lot of research to figure this out as well. Figure I can provide a simpler walkthrough that people can follow.
I'm just wondering, but wouldn't it be easier to use something like GameCIH? It seems less intrusive and easier. If you've ever used cheat engine before, then gameCIH should be a breeze.
i get this message when i tried instal apk "There is a problem parsing the package"
can you all solve my problem??
Can someone post the modded apk in multiupload ? i'm trying with 1.04 version and it doesn't work. Thanks
Works like a charm. Now even my machine guns can take on the blimps in 1 shot
thanks popp. worked like a champ. fun for about 5 minutes, then you realize after modding the game, it just never ends. Cool to see though, since I couldnt get passed round 400 with the standard setup, now its just a matter of when I quit the game due to being bored
cool to hack as well!
how do you know where to find the address and specific string? for example you have a neew game installed and you want to mod it. how can you trace the source of gold, etc?

Categories

Resources