Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set a custom keystore for debugging in eclipse for android

I have a custom keystore that I use for signing my apk. now I want to use the same keystore for debugging. when I go to eclipse->windows->preferences->android->build and set my custom key store I get "Keystore was tampered with, or password was incorrect"?

like image 815
user2234091 Avatar asked Apr 02 '13 00:04

user2234091


People also ask

How do I change the debug keystore?

All you need to do is goto command prompt and cd C:\Program Files\Java\jdk-10.0. 2\bin> where jdk-10.0. 2 or full path can be different in your case. once you are in the bin, enter this code keytool -keystore C:\Users\GB\.

Where is the keystore file in Android?

The default location is /Users/<username>/. android/debug. keystore.

How do I get debug keystore?

Inside Tasks, navigate to “android” and double click on the signing report option. After clicking on this option you will get to see the path for your debug. keystore file.

What is password for debug keystore in Android?

Usually the debug. keystore password is just "android". You can delete it and Eclipse will automatically generate a new one, as described here.

What is keystore used for Android?

The Android Keystore system lets you store cryptographic keys in a container to make it more difficult to extract from the device. Once keys are in the keystore, they can be used for cryptographic operations with the key material remaining non-exportable.


2 Answers

Simplest way to set custom keystor.

No need of commands.

Steps (for ADT):

1.Export any project (It will show you an option to create custom keystore).

enter image description here

create your keystore with an extention ".keystore" and give password android and press next.

2.enter image description here

give alias name = androiddebugkey and password = android

now press finish and your keystore is ready.

1.Go to windows -> preference

and give the path of your custom keystore file

enter image description here

like image 44
Vibhor Bhardwaj Avatar answered Sep 22 '22 19:09

Vibhor Bhardwaj


I had the same issue and here are the steps to properly create a custom keystore that can be used for debugging in Eclipse:

Basically what you should do is that change both storepasswd and keypasswd for the alias androiddebugkey to "android".

Here are the commands:

keytool -changealias -keystore mykeystore.keystore -alias [old alias] -destalias androiddebugkey
keytool -keypasswd -keystore mykeystore.keystore -alias androiddebugkey
keytool -storepasswd -keystore mykeystore.keystore

If you don't know your old alias, look it up using

keytool -list -v -keystore mykeystore.keystore

in Command prompt not able to enter the password

like image 144
Saeid Farivar Avatar answered Sep 19 '22 19:09

Saeid Farivar