Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Compiling My Android App On A Different Computer Create A New Signing Certificate?

I created an app on my Windows PC and from that PC I published the app to the Google Play Store. I have migrated(transferred via external hard drive) all my projects from my PC to my Mac.

I am now wondering will compiling that same app on the Mac cause it to create a new certificate?

The reason I would like to know is because I want to publish an update and would prefer to work on the project on the Mac but I don't want a problem to occur, that when I decide to publish the app from the Mac the Play Store will see a different certificate and the app will be published as if it were a totally brand new APK.

like image 255
Equivocal Avatar asked Feb 09 '16 21:02

Equivocal


3 Answers

No, it is not computer-dependent.

Make sure you copy the Keystore you've been using to sign it from your old computer to the new one and everything will be exactly the same.

The Keystore is (just) the file in which all your keys are saved (and usually has a .jks extension).

The main documentation states:

A keystore is a binary file that contains a set of private keys. You must keep your keystore in a safe and secure place.

A private key represents the entity to be identified with the app, such as a person or a company.

So as long as you are identified with the same private key (located in your keystore), you will be fine.

like image 180
Evin1_ Avatar answered Sep 26 '22 19:09

Evin1_


Every installation of Android Studio has it's own debug signing key which is used to install apps on your device. However, when you sign an app for distribution on Google Play, you're supposed to use a separate keystore that you've generated and password protected. The overview of this process is here: http://developer.android.com/tools/publishing/app-signing.html

The good news is, you can then move that release keystore to any computer you want and use it to sign release builds for the Play Store.

like image 38
Matt Hall Avatar answered Sep 23 '22 19:09

Matt Hall


If you copy the signing certificate you used on the first machine to the second machine, there will be no problem. The build and sign process should be platform agnostic (unless your build code makes assumptions about the host platform).

like image 26
Doug Stevenson Avatar answered Sep 25 '22 19:09

Doug Stevenson