13

I'm developing an android project signing my app (while developing) with the debug.keystore ... Now I need to use the "real" production keystore (the one which I use when I upload my apk to the play store), while developing to test some in app purchases things.

So it would be great to use the production keystore in eclipse to start the app on my device, so I could use the eclipse debugger etc.

After finishing this testing I want to switch back to the debug.keystore .

So I tried to replace the debug.keystore file in the .android folder, but then I get the error:

Keystore was tampered with, or password was incorrect

since I have not entered the password yet. Where do I enter the password in eclipse (juno)?

Or is there better way (in a wizzard for example) in eclipse, without replacing the debug.keystore file directly, to specify the current keystore that should be used when launching my android application from eclipse run button?

Sachin Prasad
  • 5,365
  • 12
  • 54
  • 101
sockeqwe
  • 15,574
  • 24
  • 88
  • 144

4 Answers4

6

Change the password to default password i.e. android.

here is the SO link . how to Change the Keystore password

Community
  • 1
  • 1
Rahul Baradia
  • 11,802
  • 17
  • 73
  • 121
  • hi, sry, but i cant do that, because my app is already in the store (im developing an update) with the signed production key – sockeqwe Jan 07 '13 at 13:26
  • 1
    Default password ll be android. Try once. Might your prblm get solved – Rahul Baradia Jan 07 '13 at 13:28
  • 1
    But changing the password will change the keystore, doesnt it? And the keystore would not be recorgnized as the same as Im already in the play store ... – sockeqwe Jan 07 '13 at 13:35
  • if you have not changed previously. Then there ll be no problem I think. – Rahul Baradia Jan 07 '13 at 14:02
  • Changing the password of the keystore itself should not change the signature key within the keystore so you should be ok. – MikeL Nov 25 '13 at 07:56
1

I would like to just enter the password in eclipse for the release keystore (like in the export dialog).

Since there is no dialog & I don't want to mess with eclipse internal configuration I use a custom keystore as a work-around.

Read this answer for how to use your release keystore for debugging

Community
  • 1
  • 1
Thorsten Niehues
  • 13,712
  • 22
  • 78
  • 113
0

If you have taken the backup of the debug.keystore and replaced it then it should not be a issue in replacing it back, However you can specify the debug.keystore from

Eclipse tool bar > Windows> Preference> Android> Build> Custom Keystore.

Also if you want the Keystore to be recreated simply delete it, eclipse will recreated on next run.

Nimish Choudhary
  • 2,048
  • 18
  • 17
  • 1
    Thank you, that looks good: Now i can specify the path to the keystore, however i can't set the corresponding password. I can't see a password input field ... – sockeqwe Jan 07 '13 at 13:33
  • it only allows debug keystore, i.e default password is "android". For production builds you need to use Export Android Application – Nimish Choudhary Jan 07 '13 at 13:40
0

If you specify a custom keystore, you have to make sure that the entries are what the eclipse environment expects. Maybe they're not lining up with those requirements? Check out the docs

specifically the Signing in Debug Mode section for details

wkhatch
  • 2,664
  • 7
  • 36
  • 45