keystore file exists but its empty in android key store - android

I'm trying to get keyhash for facebook application.For this i've installed openssl.and now trying to get hash key from command line.I've also generated .apk file and keystore for an app.
But when i try i' getting java.lang.Exception: Keystore file exists, but is empty: E:\key
where E:\key is folder where i've generated my keystore.
E:\apk is folder where my apk file is kept.
Please help me...This is first time i'm doing this and not getting it
Thanks in advance...

Related

Huawei App Signing can not create zip file

In Huawei App Gallery I have to update an existing aab application. Site redirects me to App signing page and there are steps that I have to follow in order to sign the app successfully. These are the steps provided:
Obtain the pepk.jar file from the Internet or another legitimate source.
Export and encrypt your private key and public key certificate into a ZIP file. Parameters in bold must be replaced as needed. Then, enter your data storage location and key password as prompted.
java -jar pepk.jar --keystore test.jks --alias test --output=output.zip --encryptionkey=<some_encryption_key> --include-cert
Upload the ZIP file containing the private key and public key certificate. (The ZIP file contains only certificate.pem and encryptedPrivateKey.)
Now I have 2 problems.
First one is, when I run the code in 2nd step in CMD. I get include-cert flag is not provided error. However when I write --include-cert=certificate.pem or --include-cert certificate.pem it says flag is unrecognized.
Second one is, I put certificate.pem and private key to folder and then turn it into ZIP. But when I click on submit it gives me Make sure the package contains only the certificate.pem and encryptedPrivateKey files error. Is not encryptedPrivateKey is the file that is exported by AndroidStudio when you generate an app bundle or Apk into the same location with .pepk extension?
I don't know what am I missing in order to sign my application. Any help would be appreciated, thanks in advance
If "No value provided for flag: include-cert" is displayed, the pepk.jar file is incorrect. You need to replace it with a correct one.
https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-appsigning-faq-0000001052944432
I get include-cert flag is not provided error. However when I write --include-cert=certificate.pem or --include-cert certificate.pem it says flag is unrecognized.
It is recommended that you do not change the command and follow the commands in the document.
You could click here to try out.
And this is the App Signing Operation Guide video for reference.

Can't generate another debug keystore error : Missing keystore

I'm trying to generate another debug keystore for my app, I have created a dev keystore and assigned the store file inside .android and with the name dev.keystore, then I assigned this new keystore to my debug build variant
Then asigned this dev key to the debug build variant
But when I try to get the sha1 of this key this happens
I have been all day long trying to generate a new sha1 key with this and I cant
Any help is appreciated, thanks

cant generate sign apk

I can't generate signed apk with android studio 2.1.3 after installing new windows 10.
I have my password and I'm sure the password is correct but when I try to generate signed apk I get this error:
Keystore was tampered with, or password was incorrect
for checking if my password is true or not I downloaded Android_Keystore_Password_Recover_1.07.jar from here and after trying recover my password I got this message:
Start dictionary attack on key!!
Current Pass: || est. 0 Pass/Sec
Got Password in 0 seconds
Password is: ********** for alias grammar
(I replaced my real password with **********)
What am I doing wrong?
just download Signapk.zip and unzip wherever you wish, paste your apk inside the signapk folder.
open cmd / terminal , change directory to signapk folder
java -jar signapk.jar testkey.x509.pem testkey.pk8 test.apk test-signed.apk
copy and replace with you existing file name (test.apk) and output file (test-signed.apk )
[signapk.zip][1] https://github.com/ahamedansaf/Signapk/

I forgot my keystore credentials ,how can I submit an update now?

So I just posted an app about 15 days before and now I want to upload a new update but while generating the Signed Apk Android studio is asking me for key store credentials... and I read that I have to provide the same credentials that I used on first submission (I did not remember anything about that)
Somehow I managed to get an backup of keystore.store file (which is stored at my project's directory inside a folder named KEY_STORE ) now when I'm putting the suspected alias and passwords I'm getting this error :
Failed to read key from myalias from store /mypath/for/keystore cannot recover key
Now what I can do to get back my credentials ???
You can't recover credentials.
The only way to do this is to try a tool like
http://maxcamillo.github.io/android-keystore-password-recover/
I've never use it.
I think it will try to brute force your credentials.
UPDATE:
I've tested it and it works.
Go to
http://maxcamillo.github.io/android-keystore-password-recover/
Add java files download from the url to a new Java Project (ex. using ItelliJ IDEA)
Add the keystore file to the root of the project
Add this option to program args in this way
-m 1 -k keystorefilename
Run the program
Alternatively, run the jar download from the url and use the same args.
Sorry bro, no way to recover now, you have to have the correct credentials. All you can do is publish a new application in the same name.

Android Facebook Integration Hash & Release key Error

When I run from directly eclipse it successfully work but when I export sign in application package and install exported app then it will give following errors:
invalid key hash.the hash key uR+29vKBjrnn3baLc4CBwhtmJdk does not match any stored key hash.configure your app key hashes at http://developers.facebook.com/APPID
When I put this uR+29vKBjrnn3baLc4CBwhtmJdk in release key then give error like....configure your app key hashes at http://developers.facebook.com/APPID
So what is issues here and hash key n release key different in every time?
You need to create a new Key for your application and it will be created using the Sha1 key of your signed application.The new sha1 key is generated whenever you create a new signed application.Use that sha key
During the process of signing, output similar to that outlined below will appear within the Console panel:
[2013-06-13 10:34:39 - ReleaseTest] New keystore C:\Users\nadags\Documents\AndroidReleaseAPK\ReleaseTest.apk has been created.
[2013-06-13 10:34:39 - ReleaseTest] Certificate fingerprints:
[2013-06-13 10:34:39 - ReleaseTest] MD5 : FA:65:D--------------
[2013-06-13 10:34:39 - ReleaseTest] SHA1: D1:E-------------------
or it will also appear on the popup where you will name your build finally before signing it.
Use this SHA1 to create new key at facebook developer console and include that in your app.
After you have followed the above procedure, do not right click and run the project again from eclipse, that will make the app to load from its default sha1 key. After you sign the app, manually copy paste the signed .apk to your device. That will make it work.
Note:-
For signing your app in android studio and obtaining new key,you can use THIS and THIS .

Categories

Resources