I'm trying to set up SSL (with SSL resumption) using
Do it by getting the class:
Class<?> sslClass = Class.forName("android.net.SSLCertificateSocketFactory"); Field classField = sslClass.getDeclaredField("defaultTrustManager"); classField.setAccessible(true); classField.set(null /*If Feild is static*/, youObjectHere /*Needs casting*/); classField.set(objectInstance /*If Feild is not static*/, youObjectHere /*Needs casting*/);
Override these with you own variables. This will allow for SSL resumption for Android API 14 and above (I tested on 14).
You'd need to maintain this code and keep up with any changes Google might do.
Hope it helped! Good luck!