Search code examples
androidcompilationapkdigital-signaturecode-signing

Compile an APK from two different geographic sites


Possible Duplicate:
Developing same app on two different computers

For professional reasons, I have to compile my code from one PC and sometimes from one other.

The main issue of that manipulation is that my APKs are only of the same signature once every two times.

Is it possible to compile my code so the signature of my APK are exactly the sames from one PC and from one other geographically distant?

I tried to sign my APK as if I put it on Google Play but the problem is that such a process is very long and I compile really often, so this is, to me, not an ergonomic solution.


Solution

  • This is the basic steps signing an APK.

    1. Generate a private key using keytool
    2. Export unsigned APK from Eclipse
    3. Sign the APK with the generated private keystore in step 1
    4. Verify the APK
    5. Align final APK

    When you move from one PC to another, just make sure you are using the same exact keystore in step 1 to sign the APK. I think it should not be a problem.