Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Signed APK Wizard Relative Path to Keystore

I want to store my key store in my Android studio Project so that I can use a relative path in the Generate Signed APK Wizard. But I cant see to figure out where the Signed APK Wizard is looking.

How can I use a relative path to my android studio project to my keystore for use with the Generate Signed APK Wizard?

like image 375
Mr. MonoChrome Avatar asked Apr 15 '15 14:04

Mr. MonoChrome


People also ask

Where is signed APK located?

Select Locate and you will find the APK file location. The Signed APK file is by default named app-release. apk. You will find it in the project folder in the app/release directory.

How do I find my APK keystore?

Alternatively, you can use Java 7's Key and Certificate Management Tool keytool to check the signature of a keystore or an APK without extracting any files. The output will reveal the signature owner/issuer and MD5, SHA1 and SHA256 fingerprints of the APK file app. apk or AAB file app.

What is the path of keystore?

KeyStore path : select a path in your system (Create a path in any drive eg: *F:\AndroidKeys*)give a name to your key(eg:game). save in here with the specific name for your project (F:\AndroidKeys\game.

Where are Android keystore files stored?

Keystore file is stored and secured in Google play. Your APKs will be signed by Google Play with app signing key and published to users. Even if you lost your upload key you can contact with Google and you can update your application after validating your account.


1 Answers

I just tried in Android Studio 1.4 and it seems that the wizard uses paths relative to the project directory.

Example:

  • project directory /home/dev/project
  • module name app
  • keystore file /home/dev/project/app/keystores/debug.keystore

In the wizard following works for me app/keystores/debug.keystore (notice that path is relative - without leading slash).

Adding following to the build.gradle in module will use relative path to the debug.keystore as well (notice that the module name is not listed there as we are already inside the app module)

android {
    signingConfigs {
        debug {
            keyAlias 'androiddebugkey'
            keyPassword 'android'
            storeFile file('keystore/debug.keystore')
            storePassword 'android'
        }
    }
...
}
like image 67
Tono Wiedermann Avatar answered Oct 03 '22 16:10

Tono Wiedermann