Only show SafetyNet when GMS exists

This commit is contained in:
topjohnwu
2020-08-09 04:39:12 -07:00
parent 11222c89d4
commit 15b1215972
5 changed files with 22 additions and 11 deletions

View File

@ -47,10 +47,9 @@ public class Networking {
} catch (Exception e) {
if (Build.VERSION.SDK_INT < 21) {
// Failed to update SSL provider, use NoSSLv3SocketFactory on SDK < 21
// and return false to notify potential issues
HttpsURLConnection.setDefaultSSLSocketFactory(new NoSSLv3SocketFactory());
return false;
}
return false;
}
return true;
}