scottyab / safetynethelper

SafetyNet Helper wraps the Google Play Services SafetyNet.API and verifies Safety Net API response with the Android Device Verification API.
333 stars 79 forks source link

problem validating JWS Message #33

Open cagataymuhammet opened 7 years ago

cagataymuhammet commented 7 years ago

Hi i get

AndroidDeviceVerifier: # problem validating JWS Message :https://www.googleapis.com/androidcheck/v1/attestations/verify?key=AIzaSyCpapomZLaBOMBwn-bkeXTtdjjTVd9eleY

java.io.FileNotFoundException: https://www.googleapis.com/androidcheck/v1/attestations/verify?key=AIzaSyCpapomZLaBOMBwn-bkeXTtdjjTVd9eleY

error

soenkegissel commented 5 years ago

I had this problem too. To fix it I had to change the restriction. See the screenshot. image

ben-j69 commented 2 years ago

It is possible to auth as an Android app by changing headers like:

 headers.put("X-Android-Package", packageName);
 headers.put("X-Android-Cert", signature);

But the library does not allow to do this so you have no choice to use another key no restricted on Android app but I advise you to restrict API access.