I received Notification from Google saying: Security alert
Your app is using an unsafe implementation of HostnameVerifier. Please see this Google Help Center article for details, including the deadline for fixing the vulnerability.
Did anyone received this alert and if so how did you solve it?
I am having HostnameVeriefier class as follows:
public class NullHostNameVerifier implements HostnameVerifier {
public boolean verify(String hostname, SSLSession session) {
Log.i("UtilImpl", "Approving certificate for " + hostname);
return true;
}
}
Please, help me in finding whats wrong with this code? and how to solve it?
If you know that it won't hurt your user's data privacy and want just to bypass this check, try something like
The idea is to make
verify
not to return true obviously, so automatic check will be unable to detect it