From 89275270f3fe61ab88fe0fc40283a1501e7ac39a Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 12 May 2019 16:19:27 -0700 Subject: [PATCH] Fix code to install GMS_Conscrypt --- net/src/main/java/com/topjohnwu/net/Networking.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/src/main/java/com/topjohnwu/net/Networking.java b/net/src/main/java/com/topjohnwu/net/Networking.java index 2b7c3bbc6..c06faa382 100644 --- a/net/src/main/java/com/topjohnwu/net/Networking.java +++ b/net/src/main/java/com/topjohnwu/net/Networking.java @@ -43,7 +43,7 @@ public class Networking { gms.getClassLoader() .loadClass("com.google.android.gms.common.security.ProviderInstallerImpl") .getMethod("insertProvider", Context.class) - .invoke(null, context); + .invoke(null, gms); } catch (Exception e) { // Failed to update SSL provider, use NoSSLv3SocketFactory on SDK < 21 if (Build.VERSION.SDK_INT < 21)