XploitSPY/app/factory/decompiled/smali/b/a/c/k.smali

966 lines
18 KiB
Smali
Raw Normal View History

2020-01-11 23:35:37 +08:00
.class public final Lb/a/c/k;
.super Ljava/lang/Object;
.source ""
# interfaces
.implements Lb/x;
# instance fields
.field private final a:Lb/A;
.field private final b:Z
.field private c:Lb/a/b/g;
.field private d:Ljava/lang/Object;
.field private volatile e:Z
# direct methods
.method public constructor <init>(Lb/A;Z)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lb/a/c/k;->a:Lb/A;
iput-boolean p2, p0, Lb/a/c/k;->b:Z
return-void
.end method
.method private a(Lb/G;)Lb/D;
.locals 7
if-eqz p1, :cond_10
iget-object v0, p0, Lb/a/c/k;->c:Lb/a/b/g;
invoke-virtual {v0}, Lb/a/b/g;->c()Lb/a/b/c;
move-result-object v0
const/4 v1, 0x0
if-eqz v0, :cond_0
invoke-interface {v0}, Lb/j;->a()Lb/J;
move-result-object v0
goto :goto_0
:cond_0
move-object v0, v1
:goto_0
invoke-virtual {p1}, Lb/G;->l()I
move-result v2
invoke-virtual {p1}, Lb/G;->r()Lb/D;
move-result-object v3
invoke-virtual {v3}, Lb/D;->e()Ljava/lang/String;
move-result-object v3
const/16 v4, 0x133
const-string v5, "GET"
if-eq v2, v4, :cond_6
const/16 v4, 0x134
if-eq v2, v4, :cond_6
const/16 v4, 0x191
if-eq v2, v4, :cond_5
const/16 v4, 0x197
if-eq v2, v4, :cond_2
const/16 v0, 0x198
if-eq v2, v0, :cond_1
packed-switch v2, :pswitch_data_0
return-object v1
:cond_1
invoke-virtual {p1}, Lb/G;->r()Lb/D;
move-result-object v0
invoke-virtual {v0}, Lb/D;->a()Lb/F;
invoke-virtual {p1}, Lb/G;->r()Lb/D;
move-result-object p1
return-object p1
:cond_2
if-eqz v0, :cond_3
invoke-virtual {v0}, Lb/J;->b()Ljava/net/Proxy;
move-result-object v1
goto :goto_1
:cond_3
iget-object v1, p0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v1}, Lb/A;->r()Ljava/net/Proxy;
move-result-object v1
:goto_1
invoke-virtual {v1}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object v1
sget-object v2, Ljava/net/Proxy$Type;->HTTP:Ljava/net/Proxy$Type;
if-ne v1, v2, :cond_4
iget-object v1, p0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v1}, Lb/A;->s()Lb/c;
move-result-object v1
invoke-interface {v1, v0, p1}, Lb/c;->a(Lb/J;Lb/G;)Lb/D;
move-result-object p1
return-object p1
:cond_4
new-instance p1, Ljava/net/ProtocolException;
const-string v0, "Received HTTP_PROXY_AUTH (407) code while not using proxy"
invoke-direct {p1, v0}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw p1
:cond_5
iget-object v1, p0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v1}, Lb/A;->a()Lb/c;
move-result-object v1
invoke-interface {v1, v0, p1}, Lb/c;->a(Lb/J;Lb/G;)Lb/D;
move-result-object p1
return-object p1
:cond_6
invoke-virtual {v3, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_7
const-string v0, "HEAD"
invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_7
return-object v1
:cond_7
:pswitch_0
iget-object v0, p0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v0}, Lb/A;->i()Z
move-result v0
if-nez v0, :cond_8
return-object v1
:cond_8
const-string v0, "Location"
invoke-virtual {p1, v0}, Lb/G;->b(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
if-nez v0, :cond_9
return-object v1
:cond_9
invoke-virtual {p1}, Lb/G;->r()Lb/D;
move-result-object v2
invoke-virtual {v2}, Lb/D;->g()Lb/w;
move-result-object v2
invoke-virtual {v2, v0}, Lb/w;->e(Ljava/lang/String;)Lb/w;
move-result-object v0
if-nez v0, :cond_a
return-object v1
:cond_a
invoke-virtual {v0}, Lb/w;->m()Ljava/lang/String;
move-result-object v2
invoke-virtual {p1}, Lb/G;->r()Lb/D;
move-result-object v4
invoke-virtual {v4}, Lb/D;->g()Lb/w;
move-result-object v4
invoke-virtual {v4}, Lb/w;->m()Ljava/lang/String;
move-result-object v4
invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_b
iget-object v2, p0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v2}, Lb/A;->j()Z
move-result v2
if-nez v2, :cond_b
return-object v1
:cond_b
invoke-virtual {p1}, Lb/G;->r()Lb/D;
move-result-object v2
invoke-virtual {v2}, Lb/D;->f()Lb/D$a;
move-result-object v2
invoke-static {v3}, Lb/a/c/g;->b(Ljava/lang/String;)Z
move-result v4
if-eqz v4, :cond_e
invoke-static {v3}, Lb/a/c/g;->d(Ljava/lang/String;)Z
move-result v4
invoke-static {v3}, Lb/a/c/g;->c(Ljava/lang/String;)Z
move-result v6
if-eqz v6, :cond_c
invoke-virtual {v2, v5, v1}, Lb/D$a;->a(Ljava/lang/String;Lb/F;)Lb/D$a;
goto :goto_2
:cond_c
if-eqz v4, :cond_d
invoke-virtual {p1}, Lb/G;->r()Lb/D;
move-result-object v1
invoke-virtual {v1}, Lb/D;->a()Lb/F;
move-result-object v1
:cond_d
invoke-virtual {v2, v3, v1}, Lb/D$a;->a(Ljava/lang/String;Lb/F;)Lb/D$a;
:goto_2
if-nez v4, :cond_e
const-string v1, "Transfer-Encoding"
invoke-virtual {v2, v1}, Lb/D$a;->a(Ljava/lang/String;)Lb/D$a;
const-string v1, "Content-Length"
invoke-virtual {v2, v1}, Lb/D$a;->a(Ljava/lang/String;)Lb/D$a;
const-string v1, "Content-Type"
invoke-virtual {v2, v1}, Lb/D$a;->a(Ljava/lang/String;)Lb/D$a;
:cond_e
invoke-direct {p0, p1, v0}, Lb/a/c/k;->a(Lb/G;Lb/w;)Z
move-result p1
if-nez p1, :cond_f
const-string p1, "Authorization"
invoke-virtual {v2, p1}, Lb/D$a;->a(Ljava/lang/String;)Lb/D$a;
:cond_f
invoke-virtual {v2, v0}, Lb/D$a;->a(Lb/w;)Lb/D$a;
invoke-virtual {v2}, Lb/D$a;->a()Lb/D;
move-result-object p1
return-object p1
:cond_10
new-instance p1, Ljava/lang/IllegalStateException;
invoke-direct {p1}, Ljava/lang/IllegalStateException;-><init>()V
throw p1
:pswitch_data_0
.packed-switch 0x12c
:pswitch_0
:pswitch_0
:pswitch_0
:pswitch_0
.end packed-switch
.end method
.method private a(Lb/w;)Lb/a;
.locals 17
move-object/from16 v0, p0
invoke-virtual/range {p1 .. p1}, Lb/w;->h()Z
move-result v1
const/4 v2, 0x0
if-eqz v1, :cond_0
iget-object v1, v0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v1}, Lb/A;->x()Ljavax/net/ssl/SSLSocketFactory;
move-result-object v2
iget-object v1, v0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v1}, Lb/A;->k()Ljavax/net/ssl/HostnameVerifier;
move-result-object v1
iget-object v3, v0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v3}, Lb/A;->b()Lb/h;
move-result-object v3
move-object v10, v1
move-object v9, v2
move-object v11, v3
goto :goto_0
:cond_0
move-object v9, v2
move-object v10, v9
move-object v11, v10
:goto_0
new-instance v1, Lb/a;
invoke-virtual/range {p1 .. p1}, Lb/w;->g()Ljava/lang/String;
move-result-object v5
invoke-virtual/range {p1 .. p1}, Lb/w;->j()I
move-result v6
iget-object v2, v0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v2}, Lb/A;->h()Lb/t;
move-result-object v7
iget-object v2, v0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v2}, Lb/A;->w()Ljavax/net/SocketFactory;
move-result-object v8
iget-object v2, v0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v2}, Lb/A;->s()Lb/c;
move-result-object v12
iget-object v2, v0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v2}, Lb/A;->r()Ljava/net/Proxy;
move-result-object v13
iget-object v2, v0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v2}, Lb/A;->q()Ljava/util/List;
move-result-object v14
iget-object v2, v0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v2}, Lb/A;->e()Ljava/util/List;
move-result-object v15
iget-object v2, v0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v2}, Lb/A;->t()Ljava/net/ProxySelector;
move-result-object v16
move-object v4, v1
invoke-direct/range {v4 .. v16}, Lb/a;-><init>(Ljava/lang/String;ILb/t;Ljavax/net/SocketFactory;Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/HostnameVerifier;Lb/h;Lb/c;Ljava/net/Proxy;Ljava/util/List;Ljava/util/List;Ljava/net/ProxySelector;)V
return-object v1
.end method
.method private a(Lb/G;Lb/w;)Z
.locals 2
invoke-virtual {p1}, Lb/G;->r()Lb/D;
move-result-object p1
invoke-virtual {p1}, Lb/D;->g()Lb/w;
move-result-object p1
invoke-virtual {p1}, Lb/w;->g()Ljava/lang/String;
move-result-object v0
invoke-virtual {p2}, Lb/w;->g()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
invoke-virtual {p1}, Lb/w;->j()I
move-result v0
invoke-virtual {p2}, Lb/w;->j()I
move-result v1
if-ne v0, v1, :cond_0
invoke-virtual {p1}, Lb/w;->m()Ljava/lang/String;
move-result-object p1
invoke-virtual {p2}, Lb/w;->m()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method private a(Ljava/io/IOException;Z)Z
.locals 3
instance-of v0, p1, Ljava/net/ProtocolException;
const/4 v1, 0x0
if-eqz v0, :cond_0
return v1
:cond_0
instance-of v0, p1, Ljava/io/InterruptedIOException;
const/4 v2, 0x1
if-eqz v0, :cond_2
instance-of p1, p1, Ljava/net/SocketTimeoutException;
if-eqz p1, :cond_1
if-nez p2, :cond_1
const/4 v1, 0x1
:cond_1
return v1
:cond_2
instance-of p2, p1, Ljavax/net/ssl/SSLHandshakeException;
if-eqz p2, :cond_3
invoke-virtual {p1}, Ljava/io/IOException;->getCause()Ljava/lang/Throwable;
move-result-object p2
instance-of p2, p2, Ljava/security/cert/CertificateException;
if-eqz p2, :cond_3
return v1
:cond_3
instance-of p1, p1, Ljavax/net/ssl/SSLPeerUnverifiedException;
if-eqz p1, :cond_4
return v1
:cond_4
return v2
.end method
.method private a(Ljava/io/IOException;ZLb/D;)Z
.locals 2
iget-object v0, p0, Lb/a/c/k;->c:Lb/a/b/g;
invoke-virtual {v0, p1}, Lb/a/b/g;->a(Ljava/io/IOException;)V
iget-object v0, p0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v0}, Lb/A;->v()Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_0
return v1
:cond_0
if-eqz p2, :cond_1
invoke-virtual {p3}, Lb/D;->a()Lb/F;
:cond_1
invoke-direct {p0, p1, p2}, Lb/a/c/k;->a(Ljava/io/IOException;Z)Z
move-result p1
if-nez p1, :cond_2
return v1
:cond_2
iget-object p1, p0, Lb/a/c/k;->c:Lb/a/b/g;
invoke-virtual {p1}, Lb/a/b/g;->d()Z
move-result p1
if-nez p1, :cond_3
return v1
:cond_3
const/4 p1, 0x1
return p1
.end method
# virtual methods
.method public a(Lb/x$a;)Lb/G;
.locals 9
invoke-interface {p1}, Lb/x$a;->a()Lb/D;
move-result-object v0
new-instance v1, Lb/a/b/g;
iget-object v2, p0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v2}, Lb/A;->d()Lb/l;
move-result-object v2
invoke-virtual {v0}, Lb/D;->g()Lb/w;
move-result-object v3
invoke-direct {p0, v3}, Lb/a/c/k;->a(Lb/w;)Lb/a;
move-result-object v3
iget-object v4, p0, Lb/a/c/k;->d:Ljava/lang/Object;
invoke-direct {v1, v2, v3, v4}, Lb/a/b/g;-><init>(Lb/l;Lb/a;Ljava/lang/Object;)V
iput-object v1, p0, Lb/a/c/k;->c:Lb/a/b/g;
const/4 v1, 0x0
const/4 v2, 0x0
move-object v3, v2
const/4 v4, 0x0
:goto_0
iget-boolean v5, p0, Lb/a/c/k;->e:Z
if-nez v5, :cond_9
:try_start_0
move-object v5, p1
check-cast v5, Lb/a/c/h;
iget-object v6, p0, Lb/a/c/k;->c:Lb/a/b/g;
invoke-virtual {v5, v0, v6, v2, v2}, Lb/a/c/h;->a(Lb/D;Lb/a/b/g;Lb/a/c/c;Lb/j;)Lb/G;
move-result-object v0
:try_end_0
.catch Lb/a/b/e; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v3, :cond_0
invoke-virtual {v0}, Lb/G;->p()Lb/G$a;
move-result-object v0
invoke-virtual {v3}, Lb/G;->p()Lb/G$a;
move-result-object v3
invoke-virtual {v3, v2}, Lb/G$a;->a(Lb/I;)Lb/G$a;
invoke-virtual {v3}, Lb/G$a;->a()Lb/G;
move-result-object v3
invoke-virtual {v0, v3}, Lb/G$a;->c(Lb/G;)Lb/G$a;
invoke-virtual {v0}, Lb/G$a;->a()Lb/G;
move-result-object v0
:cond_0
move-object v3, v0
invoke-direct {p0, v3}, Lb/a/c/k;->a(Lb/G;)Lb/D;
move-result-object v0
if-nez v0, :cond_2
iget-boolean p1, p0, Lb/a/c/k;->b:Z
if-nez p1, :cond_1
iget-object p1, p0, Lb/a/c/k;->c:Lb/a/b/g;
invoke-virtual {p1}, Lb/a/b/g;->f()V
:cond_1
return-object v3
:cond_2
invoke-virtual {v3}, Lb/G;->j()Lb/I;
move-result-object v5
invoke-static {v5}, Lb/a/d;->a(Ljava/io/Closeable;)V
add-int/lit8 v4, v4, 0x1
const/16 v5, 0x14
if-gt v4, v5, :cond_5
invoke-virtual {v0}, Lb/D;->a()Lb/F;
invoke-virtual {v0}, Lb/D;->g()Lb/w;
move-result-object v5
invoke-direct {p0, v3, v5}, Lb/a/c/k;->a(Lb/G;Lb/w;)Z
move-result v5
if-nez v5, :cond_3
iget-object v5, p0, Lb/a/c/k;->c:Lb/a/b/g;
invoke-virtual {v5}, Lb/a/b/g;->f()V
new-instance v5, Lb/a/b/g;
iget-object v6, p0, Lb/a/c/k;->a:Lb/A;
invoke-virtual {v6}, Lb/A;->d()Lb/l;
move-result-object v6
invoke-virtual {v0}, Lb/D;->g()Lb/w;
move-result-object v7
invoke-direct {p0, v7}, Lb/a/c/k;->a(Lb/w;)Lb/a;
move-result-object v7
iget-object v8, p0, Lb/a/c/k;->d:Ljava/lang/Object;
invoke-direct {v5, v6, v7, v8}, Lb/a/b/g;-><init>(Lb/l;Lb/a;Ljava/lang/Object;)V
iput-object v5, p0, Lb/a/c/k;->c:Lb/a/b/g;
goto :goto_0
:cond_3
iget-object v5, p0, Lb/a/c/k;->c:Lb/a/b/g;
invoke-virtual {v5}, Lb/a/b/g;->b()Lb/a/c/c;
move-result-object v5
if-nez v5, :cond_4
goto :goto_0
:cond_4
new-instance p1, Ljava/lang/IllegalStateException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Closing the body of "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, " didn\'t close its backing stream. Bad interceptor?"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_5
iget-object p1, p0, Lb/a/c/k;->c:Lb/a/b/g;
invoke-virtual {p1}, Lb/a/b/g;->f()V
new-instance p1, Ljava/net/ProtocolException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Too many follow-up requests: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw p1
:catchall_0
move-exception p1
goto :goto_2
:catch_0
move-exception v5
:try_start_1
instance-of v6, v5, Lb/a/e/a;
if-nez v6, :cond_6
const/4 v6, 0x1
goto :goto_1
:cond_6
const/4 v6, 0x0
:goto_1
invoke-direct {p0, v5, v6, v0}, Lb/a/c/k;->a(Ljava/io/IOException;ZLb/D;)Z
move-result v6
if-eqz v6, :cond_7
goto/16 :goto_0
:cond_7
throw v5
:catch_1
move-exception v5
invoke-virtual {v5}, Lb/a/b/e;->a()Ljava/io/IOException;
move-result-object v6
invoke-direct {p0, v6, v1, v0}, Lb/a/c/k;->a(Ljava/io/IOException;ZLb/D;)Z
move-result v6
if-eqz v6, :cond_8
goto/16 :goto_0
:cond_8
invoke-virtual {v5}, Lb/a/b/e;->a()Ljava/io/IOException;
move-result-object p1
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:goto_2
iget-object v0, p0, Lb/a/c/k;->c:Lb/a/b/g;
invoke-virtual {v0, v2}, Lb/a/b/g;->a(Ljava/io/IOException;)V
iget-object v0, p0, Lb/a/c/k;->c:Lb/a/b/g;
invoke-virtual {v0}, Lb/a/b/g;->f()V
throw p1
:cond_9
iget-object p1, p0, Lb/a/c/k;->c:Lb/a/b/g;
invoke-virtual {p1}, Lb/a/b/g;->f()V
new-instance p1, Ljava/io/IOException;
const-string v0, "Canceled"
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
goto :goto_4
:goto_3
throw p1
:goto_4
goto :goto_3
.end method
.method public a()V
.locals 1
const/4 v0, 0x1
iput-boolean v0, p0, Lb/a/c/k;->e:Z
iget-object v0, p0, Lb/a/c/k;->c:Lb/a/b/g;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lb/a/b/g;->a()V
:cond_0
return-void
.end method
.method public a(Ljava/lang/Object;)V
.locals 0
iput-object p1, p0, Lb/a/c/k;->d:Ljava/lang/Object;
return-void
.end method
.method public b()Z
.locals 1
iget-boolean v0, p0, Lb/a/c/k;->e:Z
return v0
.end method
.method public c()Lb/a/b/g;
.locals 1
iget-object v0, p0, Lb/a/c/k;->c:Lb/a/b/g;
return-object v0
.end method