Skip to content

Instantly share code, notes, and snippets.

@ptkdev
Last active March 28, 2023 15:51
Show Gist options
  • Select an option

  • Save ptkdev/55df4423c840058ff5380aa161f7dff1 to your computer and use it in GitHub Desktop.

Select an option

Save ptkdev/55df4423c840058ff5380aa161f7dff1 to your computer and use it in GitHub Desktop.

Revisions

  1. ptkdev revised this gist Jul 25, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion android-restore-password-keystore-jks.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## Guide: Sign app with new keystore file if you missing password or lost jks file.
    ## Sign android app with new keystore file if you missing password or lost jks file.

    1. Create new keystore.jks file with comand line (not android studio build menu)

  2. ptkdev revised this gist Jul 25, 2018. No changes.
  3. ptkdev revised this gist Jul 25, 2018. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions android-restore-password-keystore-jks.md
    Original file line number Diff line number Diff line change
    @@ -2,15 +2,15 @@

    1. Create new keystore.jks file with comand line (not android studio build menu)

    Linux: `keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks`
    Linux: `keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks`

    Windows: `"C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore "C:\keystore_new.jks"`
    Windows: `"C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore "C:\keystore_new.jks"`

    2. Generate a .pem file from new keystore

    Linux: `keytool -export -rfc -alias upload -file upload_certificate.pem -keystore keystore.jks`
    Linux: `keytool -export -rfc -alias upload -file upload_certificate.pem -keystore keystore.jks`

    Windows: `"C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -export -rfc -alias upload -file "C:\upload_cert.pem" -keystore "C:\keystore_new.jks"`
    Windows: `"C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -export -rfc -alias upload -file "C:\upload_cert.pem" -keystore "C:\keystore_new.jks"`

    3. Use this support form, set "keystore problem" and with attachment add .pem file: https://support.google.com/googleplay/android-developer/contact/otherbugs

  4. ptkdev revised this gist Jul 25, 2018. 1 changed file with 6 additions and 8 deletions.
    14 changes: 6 additions & 8 deletions android-restore-password-keystore-jks.md
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,16 @@
    ## Guide: Sign app with new keystore file if you missing password or lost jks file.

    1. Create new keystore.jks file with comand line (not android studio build menu)
    Linux:
    `keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks`

    Linux: `keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks`

    Windows:
    `"C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore "C:\keystore_new.jks"`
    Windows: `"C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore "C:\keystore_new.jks"`

    2. Generate a .pem file from new keystore
    Linux:
    `keytool -export -rfc -alias upload -file upload_certificate.pem -keystore keystore.jks`

    Linux: `keytool -export -rfc -alias upload -file upload_certificate.pem -keystore keystore.jks`

    Windows:
    `"C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -export -rfc -alias upload -file "C:\upload_cert.pem" -keystore "C:\keystore_new.jks"`
    Windows: `"C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -export -rfc -alias upload -file "C:\upload_cert.pem" -keystore "C:\keystore_new.jks"`

    3. Use this support form, set "keystore problem" and with attachment add .pem file: https://support.google.com/googleplay/android-developer/contact/otherbugs

  5. ptkdev revised this gist Jul 25, 2018. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions android-restore-password-keystore-jks.md
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,17 @@
    ## Guide: Sign app with new keystore file if you missing password or lost jks file.

    1. Create new keystore.jks file with comand line (not android studio build menu)
    Linux:
    Linux:
    `keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks`
    Windows:

    Windows:
    `"C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore "C:\keystore_new.jks"`

    2. Generate a .pem file from new keystore
    Linux:
    Linux:
    `keytool -export -rfc -alias upload -file upload_certificate.pem -keystore keystore.jks`
    Windows:

    Windows:
    `"C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -export -rfc -alias upload -file "C:\upload_cert.pem" -keystore "C:\keystore_new.jks"`

    3. Use this support form, set "keystore problem" and with attachment add .pem file: https://support.google.com/googleplay/android-developer/contact/otherbugs
  6. ptkdev revised this gist Jul 25, 2018. 1 changed file with 4 additions and 6 deletions.
    10 changes: 4 additions & 6 deletions android-restore-password-keystore-jks.md
    Original file line number Diff line number Diff line change
    @@ -1,17 +1,15 @@
    ## Guide: Sign app with new keystore file if you missing password or lost jks file.

    1. Create new keystore.jks file with comand line (not android studio build menu)

    Linux:
    `keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks`

    #### Windows example:
    Windows:
    `"C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore "C:\keystore_new.jks"`

    2. Generate a .pem file from new keystore

    Linux:
    `keytool -export -rfc -alias upload -file upload_certificate.pem -keystore keystore.jks`

    #### Windows example:
    Windows:
    `"C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -export -rfc -alias upload -file "C:\upload_cert.pem" -keystore "C:\keystore_new.jks"`

    3. Use this support form, set "keystore problem" and with attachment add .pem file: https://support.google.com/googleplay/android-developer/contact/otherbugs
  7. ptkdev revised this gist Jul 25, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion android-restore-password-keystore-jks.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Guide: Sign app with new keystore file if you missing password or lost jks file.
    ## Guide: Sign app with new keystore file if you missing password or lost jks file.

    1. Create new keystore.jks file with comand line (not android studio build menu)

  8. ptkdev created this gist Jul 25, 2018.
    19 changes: 19 additions & 0 deletions android-restore-password-keystore-jks.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # Guide: Sign app with new keystore file if you missing password or lost jks file.

    1. Create new keystore.jks file with comand line (not android studio build menu)

    `keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks`

    #### Windows example:
    `"C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore "C:\keystore_new.jks"`

    2. Generate a .pem file from new keystore

    `keytool -export -rfc -alias upload -file upload_certificate.pem -keystore keystore.jks`

    #### Windows example:
    `"C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -export -rfc -alias upload -file "C:\upload_cert.pem" -keystore "C:\keystore_new.jks"`

    3. Use this support form, set "keystore problem" and with attachment add .pem file: https://support.google.com/googleplay/android-developer/contact/otherbugs

    4. 12-48h you new keystore is enabled. Update your app on playstore with new apk signed with new keystore :D