views:

155

answers:

1

If I have an apk can I remove the current signing and some how resign it with a different .keystore file and still have the application install?

Update: I managed to get it to work with Jorgesys' solution and where I messed up before was that I unzipped the .apk then rezipped it after removing the META-INF folder and changed the file extension back into .apk. What I should have done is simply opened it with winzip and delete the folder inside of winzip.

+2  A: 

try this

1)change the extension of your .apk to .zip

2)Open and remove the folder META-INF

3)change the extension to .apk

4)Use the jarsinger and zipalign with your new keystore.

hope it helps

Jorgesys
I gave that a go, but when I try to install the app it throws a parse exception.
Anton
hi Anton post your stacktrace
Jorgesys
i posted the result in my question
Anton
Sounds like you deleted `AndroidManifest.xml` from the root of the APK file, rather than only the `META-INF`.
Christopher
hehe =) java.io.FileNotFoundException: AndroidManifest.xml
Jorgesys
Nope I didn't. I did exactly those 4 steps.
Anton
Well I don't really have experience with what you're doing, but the /data directory has permissions 770, so you can't even list the contents of the /data directory.
Falmarri