title: Google Play App Signing - KeyHash Mismatch
body: <p>I'am using the new Google Play App Signing to sign my application and there is a mismatch key-hash.</p>
  
  <p>I integrated Facebook Login in my app and it said keyhash invalid. 
  The keyhash release of my APK is different of the keyhash release created by the process of Google Play App Signing. </p>
  
  <p>EDIT : Step i did:</p>
  
  <p>1) Created a jks keystore file.</p>
  
  <p>2) Created a apk release signed with the jks file.</p>
  
  <p>3) Imported the APK in Google Console Developer, with the subscription to Google Play App Signing which modify the signed key.</p>
  
  <p>4) Once online, i download and open the app, Facebook initialization say : Invalid Key hash</p>
  
  <p>When i check the hashkey in the app via the code below, the hash key is different of the invalid hashkey said by Facebook:</p>
  
  <pre><code>  try {
          PackageInfo info = getPackageManager().getPackageInfo(
                  "com.package",
                  PackageManager.GET_SIGNATURES);
          for (Signature signature : info.signatures) {
              MessageDigest md = MessageDigest.getInstance("SHA");
              md.update(signature.toByteArray());
              Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT));
          }
      } catch (PackageManager.NameNotFoundException e) {
  
      } catch (NoSuchAlgorithmException e) {
  
      }
  </code></pre>
  
  <p>Even if i put the hashkey said by Facebook in the Facebook dashboard, it don't work. 
  It seems Google Play App Signing modify the hashkey during signing process. 
  Do you have an idea to resolve it?</p>