Fix code to install GMS_Conscrypt

This commit is contained in:
topjohnwu 2019-05-12 16:19:27 -07:00
parent e7339ba619
commit 89275270f3

View File

@ -43,7 +43,7 @@ public class Networking {
gms.getClassLoader() gms.getClassLoader()
.loadClass("com.google.android.gms.common.security.ProviderInstallerImpl") .loadClass("com.google.android.gms.common.security.ProviderInstallerImpl")
.getMethod("insertProvider", Context.class) .getMethod("insertProvider", Context.class)
.invoke(null, context); .invoke(null, gms);
} catch (Exception e) { } catch (Exception e) {
// Failed to update SSL provider, use NoSSLv3SocketFactory on SDK < 21 // Failed to update SSL provider, use NoSSLv3SocketFactory on SDK < 21
if (Build.VERSION.SDK_INT < 21) if (Build.VERSION.SDK_INT < 21)