Unity - Manual: Android Keystore Manager (2024)

  • Unity User Manual 2020.2
  • Platform development
  • Android
  • Android Keystore Manager

The Keystore Manager is a window which allows you to create, configure or load Android keystoresAn Android system that lets you store cryptographic key entries for enhanced device security. More info
See in Glossary
and keys. For further information see Android’s Keys, Certificates and Keystores documentation.

To open the Keystore Manager, open the Android publishing window and select the Keystore Manager button.

Unity - Manual: Android Keystore Manager (1)
PropertyDescription
Keystore dropdownUse the Keystore dropdown to create a new keystore or select an existing one.
Select Create New to create a new keystore. Select Anywhere to save the keystore file in your Project folder, or In Dedicated Location to create and save it to a different directory.
Select Select Existing > Browse to select a keystore you already have.
See Choosing your keystore location for more details.
PasswordEnter your keystore password. If you are creating a new keystore, use this field to create a password.
Confirm Password (only required when you create a new keystore)Use this to confirm the password for your new keystore.
Existing keysThe Keystore Manager window automatically populates the Existing Keys field when you load an existing keystore into your project.
New Key ValuesIf you have created a new key, you need to complete these fields. If you have loaded existing keys, you do not need to complete these fields.
The New Key Values fields request the same information that Android Studio requests when you generate a key or keystore.
This information is not displayed in your app, but is included in your certificate as part of the Android Package (APK).
For further information, see Android’s Generate an upload key and keystore documentation.
Unity does not validate this information. If you leave these fields blank, Unity uses empty values. This might affect the validity of your key.
AliasEnter an identifying name for your key.
PasswordChoose and enter a password for your key.
Confirm passwordEnter the password for your key again.
Validity (years)Enter an amount of time (in years) that your key is valid for. This should exceed the amount of time you expect to manage your application for, so that you can use the same key to sign application updates.
The default validity is 25 years.
First and Last NameEnter your first and last name.
Organizational UnitEnter your organizational unit. Organizational units are the different divisions within an organization. For example: Android development team.
OrganizationEnter the organization that manages your application. For example: your company name.
City or LocalityEnter your city or locality.
State or ProvinceEnter your state or province.
Country CodeEnter your country code.

Note: You cannot change this keystore, key or certificate information once you sign your Android app.

Creating a new keystore

Use the Keystore dropdown to create a new keystore.

  1. From inside the dropdown, click Create New.
  2. Select Anywhere or In Dedicated Location.
  3. Enter a password in Keystore password.
  4. Re-enter the password in Confirm password.

Creating a new keystore automatically creates a new key. Fill in the New Key fields in the keystore manager.

Choosing your keystore location

When you create a new keystore, the storage location you choose changes the default location that Unity opens your file explorer in to save your file. You can still change this after the file explorer opens.- Choose Anywhere to open the file explorer. By default, Unity stores your keystore inside your project folder. However, you can store this anywhere on your machine. If you store your keystore outside of your project folder, Unity saves an absolute path.- Choose In Dedicated Location to open the file explorer in a custom default location. By default, this path points to $HOME/ on MacOS and to %USER_HOME%\ on Windows.

To define a new project-wide dedicated location, go to Unity > Preferences > External Tools > Android > Keystores Dedicated Location, then click Browse to select a location or enter a path in the text box.

If you store a keystore to a dedicated location, Unity saves a relative path. This relative path is equal to the dedicated location paths on other machines. Therefore, the folders don’t need to be in the same place on both machines.

Note that if you save the new keystore outside of your project folder or a shared directory, collaborators on your project might not have access to it.

Loading an existing keystore within the Keystore Manager

Use the Keystore dropdown to load an existing keystore.

  1. Select Select Existing.
  2. Select Browse to load a keystore from your file system, or select a keystore stored in a Dedicated Location from below the partition.
  3. Enter the password in Keystore password.
  4. Select Load Keys.

If you have multiple keys in your keystore, select a key for your project in the Android Publishing Settings Project Key fields.

Note: You can also choose an existing keystore directly from the Android Publishing Settings, without using the Keystore Manager window.

Adding a new key to an existing keystore

Use the following steps to store multiple keys in a keystore.

  1. Load an existing keystore (see Loading an existing keystore within the Keystore Manager).
  2. Fill in the New Key Values.
  3. Select Add Key. A Key and Keystore Created dialogue window appears.
  4. Select the new key as your project key.

Android Player settings

Building apps for Android

Unity - Manual:  Android Keystore Manager (2024)

FAQs

Where is Android keystore Unity? ›

By default, Unity stores your keystore inside your project folder. However, you can store this anywhere on your machine. If you store your keystore outside of your project folder, Unity saves an absolute path. - Choose In Dedicated Location to open the file explorer in a custom default location.

What is keystore manager? ›

The Keystore. More info. See in Glossary Manager is a window which allows you to create, configure or load Android keystores and keys. For further information see Android's Keys, Certificates and Keystores documentation.

How to create new keystore in Unity Android? ›

Create a new keystore
  1. Open the Keystore Manager window.
  2. In the top-left of the window, select Keystore > Create New.
  3. Select Anywhere and save the keystore file in your Project folder, or select In Dedicated Location and save the keystore to a different directory on your computer.

How do I change the keystore in Unity? ›

While in Unity, go to Edit > Project Settings From the left-hand side, locate Player and select the Android tab. In the Keystore Manager, you can use the dropdown to create a new Keystore or select an exisiting one.

Where is my Android keystore file? ›

The first time you run or debug your project in Android Studio, the IDE automatically creates the debug keystore and certificate in $HOME/.android/debug.keystore , and sets the keystore and key passwords.

How do I access keystore files? ›

Open an Existing KeyStore
  1. From the File menu, choose Open. ...
  2. The Open KeyStore dialog will appear.
  3. Select the drive and folder where the KeyStore file is stored.
  4. Click on the required KeyStore file or type the filename into the File Name text box.
  5. Click on the Open button.
  6. The Unlock KeyStore dialog will appear.

How safe is Android keystore? ›

Security features. The Android Keystore system protects key material from unauthorized use in two ways. First, it reduces the risk of unauthorized use of key material from outside the Android device by preventing the extraction of the key material from application processes and from the Android device as a whole.

What is Unity keystore for? ›

For those unfamiliar, Unity Keystore is a powerful tool that allows you to sign and publish your Unity-built applications securely. It provides a secure mechanism for storing your cryptographic keys and certificates, ensuring the integrity and authenticity of your apps.

What is the default keystore password for Android? ›

The default keystore password is android . After entering, hit Enter to proceed. You will then be asked to enter your new key password.

How to create keystore file for Android app? ›

Creating a Keystore File
  1. Select Tools > Options > Environment Options > Provisioning.
  2. In the Build Type field, select the Android - Application Store build type.
  3. Click New Keystore.

What is keystore in Android? ›

KeyStore can be defined as a database, API or even a class depending on the context. To make it simple, KeyStore can be defined as a secure collection of aliased keys and certificates. Typically, KeyStores are saved in the file storage, protected with password.

How to change keystore file in Android? ›

If you are unable to recover or reset your keystore, you will need to republish your app as a new app with a new package name and key (and unpublish the old app). If yes, you should be able to reset your upload key by going to Release > Setup > App Signing, then clicking Request upload key reset.

Where is the debug keystore in Unity? ›

The unsigned debug keystore is located by default at ~/. android/debug. keystore on MacOS and %USERPROFILE%. android\debug.

How do I edit keystore? ›

Expand the menu options icon , in the title bar, and select Administration.
  1. Select Security > Keystore/Truststore.
  2. Click the keystore alias to be updated.
  3. Modify the fields as required.
  4. Click Save.
  5. Type a password for the alias to be configured.
  6. Click Save.

What is an alias in Unity keystore? ›

New Key Values
PropertyDescription
AliasAn identifying name for the key.
PasswordThe password to use for the key.
Confirm passwordThe confirmed password for the key. Set the value of this property to the same as Password.
7 more rows

Where is Android SDK located Unity? ›

Unity installs Android SDK & NDK Tools and OpenJDK respectively in the SDK , NDK , and OpenJDK folders under /[EditorVersion]/Editor/Data/PlaybackEngines/AndroidPlayer/

Where is the Android manifest file located Unity? ›

To use an Android Manifest that you have created outside of Unity, import your Android Manifest file to the following location: Assets/Plugins/Android/AndroidManifest.

Where is Android Logcat in Unity? ›

First things first – how do you access Unity Android Logcat? Fear not, it's simpler than you think! Connect your Android device to your development machine, open Unity, go to the “Window” menu, and click on “Analysis > Android Logcat.” 🔄 Voila! The window into the soul of your Unity Android project is now open.

What is the default keystore location in Android Studio? ›

keystore file may also be found in the location where you have installed Android Studio. The default keystore file: debug. keystore is present in the folder . android which is usually located in the default home folder of your operating system of the user who installed that Android SDK.

Top Articles
Latest Posts
Article information

Author: Melvina Ondricka

Last Updated:

Views: 6680

Rating: 4.8 / 5 (68 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Melvina Ondricka

Birthday: 2000-12-23

Address: Suite 382 139 Shaniqua Locks, Paulaborough, UT 90498

Phone: +636383657021

Job: Dynamic Government Specialist

Hobby: Kite flying, Watching movies, Knitting, Model building, Reading, Wood carving, Paintball

Introduction: My name is Melvina Ondricka, I am a helpful, fancy, friendly, innocent, outstanding, courageous, thoughtful person who loves writing and wants to share my knowledge and understanding with you.