.class final Lokhttp3/internal/g/a; .super Lokhttp3/internal/g/f; .source "AndroidPlatform.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lokhttp3/internal/g/a$b;, Lokhttp3/internal/g/a$c;, Lokhttp3/internal/g/a$a; } .end annotation # instance fields .field private final bwR:Ljava/lang/Class; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Class<", "*>;" } .end annotation .end field .field private final bwS:Lokhttp3/internal/g/e; .annotation system Ldalvik/annotation/Signature; value = { "Lokhttp3/internal/g/e<", "Ljava/net/Socket;", ">;" } .end annotation .end field .field private final bwT:Lokhttp3/internal/g/e; .annotation system Ldalvik/annotation/Signature; value = { "Lokhttp3/internal/g/e<", "Ljava/net/Socket;", ">;" } .end annotation .end field .field private final bwU:Lokhttp3/internal/g/e; .annotation system Ldalvik/annotation/Signature; value = { "Lokhttp3/internal/g/e<", "Ljava/net/Socket;", ">;" } .end annotation .end field .field private final bwV:Lokhttp3/internal/g/e; .annotation system Ldalvik/annotation/Signature; value = { "Lokhttp3/internal/g/e<", "Ljava/net/Socket;", ">;" } .end annotation .end field .field private final bwW:Lokhttp3/internal/g/a$c; # direct methods .method private constructor (Ljava/lang/Class;Lokhttp3/internal/g/e;Lokhttp3/internal/g/e;Lokhttp3/internal/g/e;Lokhttp3/internal/g/e;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "*>;", "Lokhttp3/internal/g/e<", "Ljava/net/Socket;", ">;", "Lokhttp3/internal/g/e<", "Ljava/net/Socket;", ">;", "Lokhttp3/internal/g/e<", "Ljava/net/Socket;", ">;", "Lokhttp3/internal/g/e<", "Ljava/net/Socket;", ">;)V" } .end annotation invoke-direct {p0}, Lokhttp3/internal/g/f;->()V invoke-static {}, Lokhttp3/internal/g/a$c;->GN()Lokhttp3/internal/g/a$c; move-result-object v0 iput-object v0, p0, Lokhttp3/internal/g/a;->bwW:Lokhttp3/internal/g/a$c; iput-object p1, p0, Lokhttp3/internal/g/a;->bwR:Ljava/lang/Class; iput-object p2, p0, Lokhttp3/internal/g/a;->bwS:Lokhttp3/internal/g/e; iput-object p3, p0, Lokhttp3/internal/g/a;->bwT:Lokhttp3/internal/g/e; iput-object p4, p0, Lokhttp3/internal/g/a;->bwU:Lokhttp3/internal/g/e; iput-object p5, p0, Lokhttp3/internal/g/a;->bwV:Lokhttp3/internal/g/e; return-void .end method .method private static GK()Z .locals 2 const-string v0, "GMSCore_OpenSSL" invoke-static {v0}, Ljava/security/Security;->getProvider(Ljava/lang/String;)Ljava/security/Provider; move-result-object v0 const/4 v1, 0x1 if-eqz v0, :cond_0 return v1 :cond_0 :try_start_0 const-string v0, "android.net.Network" invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; :try_end_0 .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 return v1 :catch_0 const/4 v0, 0x0 return v0 .end method .method public static GL()Lokhttp3/internal/g/f; .locals 10 const-class v0, [B const/4 v1, 0x0 :try_start_0 const-string v2, "com.android.org.conscrypt.SSLParametersImpl" invoke-static {v2}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; move-result-object v2 :try_end_0 .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 :goto_0 move-object v4, v2 goto :goto_1 :catch_0 :try_start_1 const-string v2, "org.apache.harmony.xnet.provider.jsse.SSLParametersImpl" invoke-static {v2}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; move-result-object v2 goto :goto_0 :goto_1 new-instance v5, Lokhttp3/internal/g/e; const-string v2, "setUseSessionTickets" const/4 v3, 0x1 new-array v6, v3, [Ljava/lang/Class; sget-object v7, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class; const/4 v8, 0x0 aput-object v7, v6, v8 invoke-direct {v5, v1, v2, v6}, Lokhttp3/internal/g/e;->(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)V new-instance v6, Lokhttp3/internal/g/e; const-string v2, "setHostname" new-array v7, v3, [Ljava/lang/Class; const-class v9, Ljava/lang/String; aput-object v9, v7, v8 invoke-direct {v6, v1, v2, v7}, Lokhttp3/internal/g/e;->(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)V invoke-static {}, Lokhttp3/internal/g/a;->GK()Z move-result v2 if-eqz v2, :cond_0 new-instance v2, Lokhttp3/internal/g/e; const-string v7, "getAlpnSelectedProtocol" new-array v9, v8, [Ljava/lang/Class; invoke-direct {v2, v0, v7, v9}, Lokhttp3/internal/g/e;->(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)V new-instance v7, Lokhttp3/internal/g/e; const-string v9, "setAlpnProtocols" new-array v3, v3, [Ljava/lang/Class; aput-object v0, v3, v8 invoke-direct {v7, v1, v9, v3}, Lokhttp3/internal/g/e;->(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)V move-object v8, v7 move-object v7, v2 goto :goto_2 :cond_0 move-object v7, v1 move-object v8, v7 :goto_2 new-instance v0, Lokhttp3/internal/g/a; move-object v3, v0 invoke-direct/range {v3 .. v8}, Lokhttp3/internal/g/a;->(Ljava/lang/Class;Lokhttp3/internal/g/e;Lokhttp3/internal/g/e;Lokhttp3/internal/g/e;Lokhttp3/internal/g/e;)V :try_end_1 .catch Ljava/lang/ClassNotFoundException; {:try_start_1 .. :try_end_1} :catch_1 return-object v0 :catch_1 return-object v1 .end method .method private a(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/String;", "Ljava/lang/Class<", "*>;", "Ljava/lang/Object;", ")Z" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/reflect/InvocationTargetException;, Ljava/lang/IllegalAccessException; } .end annotation :try_start_0 const-string v0, "isCleartextTrafficPermitted" const/4 v1, 0x1 new-array v2, v1, [Ljava/lang/Class; const-class v3, Ljava/lang/String; const/4 v4, 0x0 aput-object v3, v2, v4 invoke-virtual {p2, v0, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; move-result-object v0 new-array v1, v1, [Ljava/lang/Object; aput-object p1, v1, v4 invoke-virtual {v0, p3, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/lang/Boolean; invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z move-result p1 :try_end_0 .catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0 return p1 :catch_0 invoke-direct {p0, p1, p2, p3}, Lokhttp3/internal/g/a;->b(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z move-result p1 return p1 .end method .method private b(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/String;", "Ljava/lang/Class<", "*>;", "Ljava/lang/Object;", ")Z" } .end annotation .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/reflect/InvocationTargetException;, Ljava/lang/IllegalAccessException; } .end annotation :try_start_0 const-string v0, "isCleartextTrafficPermitted" const/4 v1, 0x0 new-array v2, v1, [Ljava/lang/Class; invoke-virtual {p2, v0, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; move-result-object p2 new-array v0, v1, [Ljava/lang/Object; invoke-virtual {p2, p3, v0}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; move-result-object p2 check-cast p2, Ljava/lang/Boolean; invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z move-result p1 :try_end_0 .catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0 return p1 :catch_0 invoke-super {p0, p1}, Lokhttp3/internal/g/f;->ee(Ljava/lang/String;)Z move-result p1 return p1 .end method # virtual methods .method public final GM()Ljavax/net/ssl/SSLContext; .locals 3 const/4 v0, 0x1 :try_start_0 sget v1, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v2, 0x10 if-lt v1, v2, :cond_0 sget v1, Landroid/os/Build$VERSION;->SDK_INT:I :try_end_0 .catch Ljava/lang/NoClassDefFoundError; {:try_start_0 .. :try_end_0} :catch_0 const/16 v2, 0x16 if-ge v1, v2, :cond_0 goto :goto_0 :cond_0 const/4 v0, 0x0 goto :goto_0 :catch_0 nop :goto_0 if-eqz v0, :cond_1 :try_start_1 const-string v0, "TLSv1.2" invoke-static {v0}, Ljavax/net/ssl/SSLContext;->getInstance(Ljava/lang/String;)Ljavax/net/ssl/SSLContext; move-result-object v0 :try_end_1 .catch Ljava/security/NoSuchAlgorithmException; {:try_start_1 .. :try_end_1} :catch_1 return-object v0 :catch_1 :cond_1 :try_start_2 const-string v0, "TLS" invoke-static {v0}, Ljavax/net/ssl/SSLContext;->getInstance(Ljava/lang/String;)Ljavax/net/ssl/SSLContext; move-result-object v0 :try_end_2 .catch Ljava/security/NoSuchAlgorithmException; {:try_start_2 .. :try_end_2} :catch_2 return-object v0 :catch_2 move-exception v0 new-instance v1, Ljava/lang/IllegalStateException; const-string v2, "No TLS provider" invoke-direct {v1, v2, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;Ljava/lang/Throwable;)V throw v1 .end method .method public final a(ILjava/lang/String;Ljava/lang/Throwable;)V .locals 5 .param p3 # Ljava/lang/Throwable; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param const/4 v0, 0x5 if-ne p1, v0, :cond_0 goto :goto_0 :cond_0 const/4 v0, 0x3 :goto_0 const/16 p1, 0xa if-eqz p3, :cond_1 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; invoke-static {p3}, Landroid/util/Log;->getStackTraceString(Ljava/lang/Throwable;)Ljava/lang/String; move-result-object p2 invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p2 :cond_1 const/4 p3, 0x0 invoke-virtual {p2}, Ljava/lang/String;->length()I move-result v1 :goto_1 if-ge p3, v1, :cond_4 invoke-virtual {p2, p1, p3}, Ljava/lang/String;->indexOf(II)I move-result v2 const/4 v3, -0x1 if-eq v2, v3, :cond_2 goto :goto_2 :cond_2 move v2, v1 :goto_2 add-int/lit16 v3, p3, 0xfa0 invoke-static {v2, v3}, Ljava/lang/Math;->min(II)I move-result v3 invoke-virtual {p2, p3, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String; move-result-object p3 const-string v4, "OkHttp" invoke-static {v0, v4, p3}, Landroid/util/Log;->println(ILjava/lang/String;Ljava/lang/String;)I if-lt v3, v2, :cond_3 add-int/lit8 p3, v3, 0x1 goto :goto_1 :cond_3 move p3, v3 goto :goto_2 :cond_4 return-void .end method .method public final a(Ljava/net/Socket;Ljava/net/InetSocketAddress;I)V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "Exception in connect" :try_start_0 invoke-virtual {p1, p2, p3}, Ljava/net/Socket;->connect(Ljava/net/SocketAddress;I)V :try_end_0 .catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_2 .catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_1 .catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0 return-void :catch_0 move-exception p1 sget p2, Landroid/os/Build$VERSION;->SDK_INT:I const/16 p3, 0x1a if-ne p2, p3, :cond_0 new-instance p2, Ljava/io/IOException; invoke-direct {p2, v0}, Ljava/io/IOException;->(Ljava/lang/String;)V invoke-virtual {p2, p1}, Ljava/io/IOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable; throw p2 :cond_0 throw p1 :catch_1 move-exception p1 new-instance p2, Ljava/io/IOException; invoke-direct {p2, v0}, Ljava/io/IOException;->(Ljava/lang/String;)V invoke-virtual {p2, p1}, Ljava/io/IOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable; throw p2 :catch_2 move-exception p1 invoke-static {p1}, Lokhttp3/internal/c;->a(Ljava/lang/AssertionError;)Z move-result p2 if-eqz p2, :cond_1 new-instance p2, Ljava/io/IOException; invoke-direct {p2, p1}, Ljava/io/IOException;->(Ljava/lang/Throwable;)V throw p2 :cond_1 throw p1 .end method .method public final a(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V .locals 6 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljavax/net/ssl/SSLSocket;", "Ljava/lang/String;", "Ljava/util/List<", "Lokhttp3/u;", ">;)V" } .end annotation const/4 v0, 0x0 const/4 v1, 0x1 if-eqz p2, :cond_0 iget-object v2, p0, Lokhttp3/internal/g/a;->bwS:Lokhttp3/internal/g/e; new-array v3, v1, [Ljava/lang/Object; sget-object v4, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean; aput-object v4, v3, v0 invoke-virtual {v2, p1, v3}, Lokhttp3/internal/g/e;->b(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; iget-object v2, p0, Lokhttp3/internal/g/a;->bwT:Lokhttp3/internal/g/e; new-array v3, v1, [Ljava/lang/Object; aput-object p2, v3, v0 invoke-virtual {v2, p1, v3}, Lokhttp3/internal/g/e;->b(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; :cond_0 iget-object p2, p0, Lokhttp3/internal/g/a;->bwV:Lokhttp3/internal/g/e; if-eqz p2, :cond_3 invoke-virtual {p2, p1}, Lokhttp3/internal/g/e;->bk(Ljava/lang/Object;)Z move-result p2 if-eqz p2, :cond_3 new-array p2, v1, [Ljava/lang/Object; new-instance v1, Lokio/c; invoke-direct {v1}, Lokio/c;->()V invoke-interface {p3}, Ljava/util/List;->size()I move-result v2 const/4 v3, 0x0 :goto_0 if-ge v3, v2, :cond_2 invoke-interface {p3, v3}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v4 check-cast v4, Lokhttp3/u; sget-object v5, Lokhttp3/u;->brV:Lokhttp3/u; if-eq v4, v5, :cond_1 invoke-virtual {v4}, Lokhttp3/u;->toString()Ljava/lang/String; move-result-object v5 invoke-virtual {v5}, Ljava/lang/String;->length()I move-result v5 invoke-virtual {v1, v5}, Lokio/c;->du(I)Lokio/c; invoke-virtual {v4}, Lokhttp3/u;->toString()Ljava/lang/String; move-result-object v4 invoke-virtual {v1, v4}, Lokio/c;->ei(Ljava/lang/String;)Lokio/c; :cond_1 add-int/lit8 v3, v3, 0x1 goto :goto_0 :cond_2 invoke-virtual {v1}, Lokio/c;->readByteArray()[B move-result-object p3 aput-object p3, p2, v0 iget-object p3, p0, Lokhttp3/internal/g/a;->bwV:Lokhttp3/internal/g/e; invoke-virtual {p3, p1, p2}, Lokhttp3/internal/g/e;->d(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; :cond_3 return-void .end method .method protected final b(Ljavax/net/ssl/SSLSocketFactory;)Ljavax/net/ssl/X509TrustManager; .locals 4 .annotation runtime Ljavax/annotation/Nullable; .end annotation iget-object v0, p0, Lokhttp3/internal/g/a;->bwR:Ljava/lang/Class; const-string v1, "sslParameters" invoke-static {p1, v0, v1}, Lokhttp3/internal/g/a;->a(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object; move-result-object v0 if-nez v0, :cond_0 :try_start_0 const-string v0, "com.google.android.gms.org.conscrypt.SSLParametersImpl" const/4 v2, 0x0 invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v3 invoke-virtual {v3}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader; move-result-object v3 invoke-static {v0, v2, v3}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class; move-result-object v0 invoke-static {p1, v0, v1}, Lokhttp3/internal/g/a;->a(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object; move-result-object v0 :try_end_0 .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 goto :goto_0 :catch_0 invoke-super {p0, p1}, Lokhttp3/internal/g/f;->b(Ljavax/net/ssl/SSLSocketFactory;)Ljavax/net/ssl/X509TrustManager; move-result-object p1 return-object p1 :cond_0 :goto_0 const-class p1, Ljavax/net/ssl/X509TrustManager; const-string v1, "x509TrustManager" invoke-static {v0, p1, v1}, Lokhttp3/internal/g/a;->a(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object; move-result-object p1 check-cast p1, Ljavax/net/ssl/X509TrustManager; if-eqz p1, :cond_1 return-object p1 :cond_1 const-class p1, Ljavax/net/ssl/X509TrustManager; const-string v1, "trustManager" invoke-static {v0, p1, v1}, Lokhttp3/internal/g/a;->a(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object; move-result-object p1 check-cast p1, Ljavax/net/ssl/X509TrustManager; return-object p1 .end method .method public final b(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/i/c; .locals 7 :try_start_0 const-string v0, "android.net.http.X509TrustManagerExtensions" invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; move-result-object v0 const/4 v1, 0x1 new-array v2, v1, [Ljava/lang/Class; const-class v3, Ljavax/net/ssl/X509TrustManager; const/4 v4, 0x0 aput-object v3, v2, v4 invoke-virtual {v0, v2}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor; move-result-object v2 new-array v3, v1, [Ljava/lang/Object; aput-object p1, v3, v4 invoke-virtual {v2, v3}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object; move-result-object v2 const-string v3, "checkServerTrusted" const/4 v5, 0x3 new-array v5, v5, [Ljava/lang/Class; const-class v6, [Ljava/security/cert/X509Certificate; aput-object v6, v5, v4 const-class v4, Ljava/lang/String; aput-object v4, v5, v1 const/4 v1, 0x2 const-class v4, Ljava/lang/String; aput-object v4, v5, v1 invoke-virtual {v0, v3, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; move-result-object v0 new-instance v1, Lokhttp3/internal/g/a$a; invoke-direct {v1, v2, v0}, Lokhttp3/internal/g/a$a;->(Ljava/lang/Object;Ljava/lang/reflect/Method;)V :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 return-object v1 :catch_0 invoke-super {p0, p1}, Lokhttp3/internal/g/f;->b(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/i/c; move-result-object p1 return-object p1 .end method .method public final c(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/i/e; .locals 6 :try_start_0 invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v0 const-string v1, "findTrustAnchorByIssuerAndSignature" const/4 v2, 0x1 new-array v3, v2, [Ljava/lang/Class; const/4 v4, 0x0 const-class v5, Ljava/security/cert/X509Certificate; aput-object v5, v3, v4 invoke-virtual {v0, v1, v3}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; move-result-object v0 invoke-virtual {v0, v2}, Ljava/lang/reflect/Method;->setAccessible(Z)V new-instance v1, Lokhttp3/internal/g/a$b; invoke-direct {v1, p1, v0}, Lokhttp3/internal/g/a$b;->(Ljavax/net/ssl/X509TrustManager;Ljava/lang/reflect/Method;)V :try_end_0 .catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0 return-object v1 :catch_0 invoke-super {p0, p1}, Lokhttp3/internal/g/f;->c(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/i/e; move-result-object p1 return-object p1 .end method .method public final e(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String; .locals 3 .annotation runtime Ljavax/annotation/Nullable; .end annotation iget-object v0, p0, Lokhttp3/internal/g/a;->bwU:Lokhttp3/internal/g/e; const/4 v1, 0x0 if-nez v0, :cond_0 return-object v1 :cond_0 invoke-virtual {v0, p1}, Lokhttp3/internal/g/e;->bk(Ljava/lang/Object;)Z move-result v0 if-nez v0, :cond_1 return-object v1 :cond_1 iget-object v0, p0, Lokhttp3/internal/g/a;->bwU:Lokhttp3/internal/g/e; const/4 v2, 0x0 new-array v2, v2, [Ljava/lang/Object; invoke-virtual {v0, p1, v2}, Lokhttp3/internal/g/e;->d(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; move-result-object p1 check-cast p1, [B if-eqz p1, :cond_2 new-instance v0, Ljava/lang/String; sget-object v1, Lokhttp3/internal/c;->tx:Ljava/nio/charset/Charset; invoke-direct {v0, p1, v1}, Ljava/lang/String;->([BLjava/nio/charset/Charset;)V return-object v0 :cond_2 return-object v1 .end method .method public final ed(Ljava/lang/String;)Ljava/lang/Object; .locals 1 iget-object v0, p0, Lokhttp3/internal/g/a;->bwW:Lokhttp3/internal/g/a$c; invoke-virtual {v0, p1}, Lokhttp3/internal/g/a$c;->ef(Ljava/lang/String;)Ljava/lang/Object; move-result-object p1 return-object p1 .end method .method public final ee(Ljava/lang/String;)Z .locals 4 :try_start_0 const-string v0, "android.security.NetworkSecurityPolicy" invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; move-result-object v0 const-string v1, "getInstance" const/4 v2, 0x0 new-array v3, v2, [Ljava/lang/Class; invoke-virtual {v0, v1, v3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; move-result-object v1 const/4 v3, 0x0 new-array v2, v2, [Ljava/lang/Object; invoke-virtual {v1, v3, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; move-result-object v1 invoke-direct {p0, p1, v0, v1}, Lokhttp3/internal/g/a;->a(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)Z move-result p1 :try_end_0 .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_3 .catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_3 .catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_2 .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_1 .catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0 return p1 :catch_0 move-exception p1 goto :goto_0 :catch_1 move-exception p1 goto :goto_0 :catch_2 move-exception p1 :goto_0 const-string v0, "unable to determine cleartext support" invoke-static {v0, p1}, Lokhttp3/internal/c;->a(Ljava/lang/String;Ljava/lang/Exception;)Ljava/lang/AssertionError; move-result-object p1 throw p1 :catch_3 invoke-super {p0, p1}, Lokhttp3/internal/g/f;->ee(Ljava/lang/String;)Z move-result p1 return p1 .end method .method public final u(Ljava/lang/String;Ljava/lang/Object;)V .locals 1 iget-object v0, p0, Lokhttp3/internal/g/a;->bwW:Lokhttp3/internal/g/a$c; invoke-virtual {v0, p2}, Lokhttp3/internal/g/a$c;->bj(Ljava/lang/Object;)Z move-result p2 if-nez p2, :cond_0 const/4 p2, 0x5 const/4 v0, 0x0 invoke-virtual {p0, p2, p1, v0}, Lokhttp3/internal/g/a;->a(ILjava/lang/String;Ljava/lang/Throwable;)V :cond_0 return-void .end method