title: Is there any way of keeping a AndroidKeyStoreEntry even if the App is uninstalled?
body: <p>Is there any way of keeping a KeyStoreEntry of an App even if the App is uninstalled?</p>
  
  <p>We are generating a RSA-KeyPair for a secure device identification, which is stored on the KeyStore. The PublicKey is stored on the backend.</p>
  
  <pre><code> val generator = KeyPairGenerator.getInstance(KeyProperties.KEY_ALGORITHM_RSA, ANDROID_KEYSTORE)
          if (isSDKVersionEqualOrHigherThan23()) {
              generator.initialize(KeyGenParameterSpec.Builder(
                  "keystoreAlias",
                  KeyProperties.PURPOSE_SIGN)
                  .setDigests(KeyProperties.DIGEST_SHA256)
                  .setSignaturePaddings(KeyProperties.SIGNATURE_PADDING_RSA_PKCS1)
                  .build())
          } 
  </code></pre>
  
  <p>If the user is now uninstalling and then reinstalling the app, the RSA-KeyPair changes, and the PublicKey check on the backend fails.</p>
  
  <p>Is there a way to either keep the KeyStore entry on uninstall OR make sure that the same KeyPair is generated again on the same device (e.g. by adding a parameter?)</p>