jos
jos

Reputation: 37

How Install the APK signed with your PRODUCTION certificate to a test device?

I'm trying to test google in app purchase system.

I think its because when running through android studio on test device its not signed. how do i do that ?

Upvotes: 0

Views: 161

Answers (1)

fcortell
fcortell

Reputation: 107

You need to sign it manually with your production keystore:

jarsigner -sigalg MD5withRSA -digestalg SHA1 -keystore "PATH" -storepass KEYSTORE_FILE app-unsigned.apk ALIAS_NAME

Then you maybe need to zipalign:

zipalign "-v" "4" "PATH TO SIGNED APK" out.apk

Upvotes: 1

Related Questions