Several small snet fixes

This commit is contained in:
topjohnwu
2017-10-07 20:47:44 +08:00
parent 48f9b27381
commit e986332bf2
3 changed files with 8 additions and 6 deletions
@@ -43,7 +43,7 @@ public class SafetyNetHelper
}
// Entry point to start test
public void requestTest() {
public void attest() {
// Connect Google Service
GoogleApiClient.Builder builder = new GoogleApiClient.Builder(mActivity);
try {
@@ -92,7 +92,7 @@ public class SafetyNetHelper
responseCode |= decoded.getBoolean("ctsProfileMatch") ? CTS_PASS : 0;
responseCode |= decoded.getBoolean("basicIntegrity") ? BASIC_PASS : 0;
} catch (JSONException e) {
responseCode |= RESPONSE_ERR;
cb.onResponse(RESPONSE_ERR);
return;
}
// Disconnect