- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
821 lines
20 KiB
Smali
821 lines
20 KiB
Smali
.class public final Lcom/fyber/inneractive/sdk/network/i;
|
|
.super Lcom/fyber/inneractive/sdk/network/h;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/fyber/inneractive/sdk/network/g;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/fyber/inneractive/sdk/network/i$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/fyber/inneractive/sdk/network/h;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Lcom/fyber/inneractive/sdk/network/c0;Ljava/util/ArrayList;Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;)Landroid/util/Pair;
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/fyber/inneractive/sdk/network/b;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "http"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 54
|
|
:try_start_0
|
|
invoke-virtual {p2}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Lcom/google/firebase/perf/network/FirebasePerfUrlConnection;->instrument(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/net/URLConnection;
|
|
|
|
check-cast v2, Ljava/net/HttpURLConnection;
|
|
|
|
.line 55
|
|
invoke-interface {p0}, Lcom/fyber/inneractive/sdk/network/c0;->e()Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
.line 56
|
|
invoke-virtual {v2, v1}, Ljava/net/HttpURLConnection;->setInstanceFollowRedirects(Z)V
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
goto/16 :goto_5
|
|
|
|
.line 57
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {p0}, Lcom/fyber/inneractive/sdk/network/c0;->f()Lcom/fyber/inneractive/sdk/network/u0;
|
|
|
|
move-result-object v3
|
|
|
|
.line 58
|
|
iget v4, v3, Lcom/fyber/inneractive/sdk/network/u0;->a:I
|
|
|
|
.line 59
|
|
invoke-virtual {v2, v4}, Ljava/net/URLConnection;->setConnectTimeout(I)V
|
|
|
|
.line 60
|
|
iget v3, v3, Lcom/fyber/inneractive/sdk/network/u0;->b:I
|
|
|
|
.line 61
|
|
invoke-virtual {v2, v3}, Ljava/net/URLConnection;->setReadTimeout(I)V
|
|
|
|
const-string v3, "User-Agent"
|
|
|
|
.line 62
|
|
invoke-static {v2, v3, p3}, Lcom/fyber/inneractive/sdk/network/i;->a(Ljava/net/HttpURLConnection;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string v3, "If-Modified-Since"
|
|
|
|
.line 63
|
|
invoke-static {v2, v3, p4}, Lcom/fyber/inneractive/sdk/network/i;->a(Ljava/net/HttpURLConnection;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string v3, "Accept-Encoding"
|
|
|
|
const-string v4, "gzip"
|
|
|
|
.line 64
|
|
invoke-static {v2, v3, v4}, Lcom/fyber/inneractive/sdk/network/i;->a(Ljava/net/HttpURLConnection;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 65
|
|
invoke-interface {p0}, Lcom/fyber/inneractive/sdk/network/c0;->k()Ljava/util/Map;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 67
|
|
invoke-interface {v3}, Ljava/util/Map;->keySet()Ljava/util/Set;
|
|
|
|
move-result-object v4
|
|
|
|
.line 68
|
|
invoke-interface {v4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v4
|
|
|
|
:goto_1
|
|
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Ljava/lang/String;
|
|
|
|
.line 69
|
|
invoke-interface {v3, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Ljava/lang/String;
|
|
|
|
invoke-static {v2, v5, v6}, Lcom/fyber/inneractive/sdk/network/i;->a(Ljava/net/HttpURLConnection;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 70
|
|
:cond_1
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-interface {p0, v3, v4}, Lcom/fyber/inneractive/sdk/network/c0;->b(J)V
|
|
|
|
.line 71
|
|
invoke-interface {p0}, Lcom/fyber/inneractive/sdk/network/c0;->getMethod()Lcom/fyber/inneractive/sdk/network/z;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v4, Lcom/fyber/inneractive/sdk/network/z;->POST:Lcom/fyber/inneractive/sdk/network/z;
|
|
|
|
if-eq v3, v4, :cond_3
|
|
|
|
.line 72
|
|
invoke-interface {p0}, Lcom/fyber/inneractive/sdk/network/c0;->getMethod()Lcom/fyber/inneractive/sdk/network/z;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v4, Lcom/fyber/inneractive/sdk/network/z;->PUT:Lcom/fyber/inneractive/sdk/network/z;
|
|
|
|
if-ne v3, v4, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
.line 75
|
|
:cond_2
|
|
invoke-virtual {v2}, Ljava/net/URLConnection;->connect()V
|
|
|
|
goto :goto_3
|
|
|
|
.line 76
|
|
:cond_3
|
|
:goto_2
|
|
invoke-static {v2, p0}, Lcom/fyber/inneractive/sdk/network/i;->a(Ljava/net/HttpURLConnection;Lcom/fyber/inneractive/sdk/network/c0;)V
|
|
|
|
.line 81
|
|
:goto_3
|
|
invoke-virtual {v2}, Ljava/net/HttpURLConnection;->getResponseCode()I
|
|
|
|
move-result v3
|
|
|
|
.line 82
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-interface {p0, v4, v5}, Lcom/fyber/inneractive/sdk/network/c0;->a(J)V
|
|
|
|
const-string v4, "%s (%s) response code - %d"
|
|
|
|
const/4 v5, 0x3
|
|
|
|
new-array v6, v5, [Ljava/lang/Object;
|
|
|
|
.line 83
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
aput-object v7, v6, v1
|
|
|
|
const/4 v7, 0x1
|
|
|
|
aput-object p2, v6, v7
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p2
|
|
|
|
const/4 v8, 0x2
|
|
|
|
aput-object p2, v6, v8
|
|
|
|
invoke-static {v4, v6}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
.line 84
|
|
invoke-interface {p0}, Lcom/fyber/inneractive/sdk/network/c0;->e()Z
|
|
|
|
move-result p2
|
|
|
|
if-nez p2, :cond_a
|
|
|
|
const/16 p2, 0x12c
|
|
|
|
if-le v3, p2, :cond_4
|
|
|
|
const/16 p2, 0x130
|
|
|
|
if-lt v3, p2, :cond_5
|
|
|
|
:cond_4
|
|
const/16 p2, 0x133
|
|
|
|
if-eq v3, p2, :cond_5
|
|
|
|
const/16 p2, 0x134
|
|
|
|
if-ne v3, p2, :cond_a
|
|
|
|
:cond_5
|
|
const-string p2, "Location"
|
|
|
|
.line 88
|
|
invoke-virtual {v2, p2}, Ljava/net/URLConnection;->getHeaderField(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_a
|
|
|
|
.line 90
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_7
|
|
|
|
const-string v2, "://"
|
|
|
|
invoke-virtual {p2, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_7
|
|
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v2
|
|
|
|
if-lez v2, :cond_7
|
|
|
|
.line 91
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v2, v7
|
|
|
|
invoke-virtual {p1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
.line 92
|
|
invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "/"
|
|
|
|
.line 93
|
|
invoke-virtual {p2, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
const-string v3, "%s://%s%s"
|
|
|
|
goto :goto_4
|
|
|
|
:cond_6
|
|
const-string v3, "%s://%s/%s"
|
|
|
|
:goto_4
|
|
new-array v4, v5, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v2}, Landroid/net/Uri;->getScheme()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
aput-object v5, v4, v1
|
|
|
|
invoke-virtual {v2}, Landroid/net/Uri;->getHost()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v4, v7
|
|
|
|
aput-object p2, v4, v8
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
.line 95
|
|
:cond_7
|
|
invoke-virtual {p1, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 96
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v2
|
|
|
|
const/16 v3, 0x14
|
|
|
|
if-gt v2, v3, :cond_9
|
|
|
|
.line 99
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
.line 100
|
|
new-instance v0, Ljava/net/URL;
|
|
|
|
invoke-direct {v0, p2}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-static {p0, p1, v0, p3, p4}, Lcom/fyber/inneractive/sdk/network/i;->a(Lcom/fyber/inneractive/sdk/network/c0;Ljava/util/ArrayList;Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;)Landroid/util/Pair;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_8
|
|
const/4 p2, 0x0
|
|
|
|
.line 103
|
|
invoke-static {p1, p2}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 104
|
|
:cond_9
|
|
new-instance p1, Lcom/fyber/inneractive/sdk/network/b;
|
|
|
|
const-string p2, "Url chain too big for us"
|
|
|
|
invoke-direct {p1, p2}, Lcom/fyber/inneractive/sdk/network/b;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 115
|
|
:cond_a
|
|
new-instance p2, Landroid/util/Pair;
|
|
|
|
invoke-direct {p2, p1, v2}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p2
|
|
|
|
.line 119
|
|
:goto_5
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide p2
|
|
|
|
invoke-interface {p0, p2, p3}, Lcom/fyber/inneractive/sdk/network/c0;->a(J)V
|
|
|
|
new-array p0, v1, [Ljava/lang/Object;
|
|
|
|
const-string p2, "failed executing network request"
|
|
|
|
.line 120
|
|
invoke-static {p2, p1, p0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
|
|
|
|
.line 121
|
|
new-instance p0, Lcom/fyber/inneractive/sdk/network/b;
|
|
|
|
invoke-direct {p0, p1}, Lcom/fyber/inneractive/sdk/network/b;-><init>(Ljava/lang/Exception;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static a(Ljava/net/HttpURLConnection;Lcom/fyber/inneractive/sdk/network/c0;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Exception;
|
|
}
|
|
.end annotation
|
|
|
|
.line 122
|
|
invoke-interface {p1}, Lcom/fyber/inneractive/sdk/network/c0;->getMethod()Lcom/fyber/inneractive/sdk/network/z;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v0, v0, Lcom/fyber/inneractive/sdk/network/z;->key:Ljava/lang/String;
|
|
|
|
invoke-virtual {p0, v0}, Ljava/net/HttpURLConnection;->setRequestMethod(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 123
|
|
invoke-virtual {p0, v0}, Ljava/net/URLConnection;->setDoInput(Z)V
|
|
|
|
.line 124
|
|
invoke-virtual {p0, v0}, Ljava/net/URLConnection;->setDoOutput(Z)V
|
|
|
|
.line 125
|
|
invoke-interface {p1}, Lcom/fyber/inneractive/sdk/network/c0;->r()[B
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 126
|
|
array-length v1, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 127
|
|
:goto_0
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, ""
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "Content-Length"
|
|
|
|
invoke-virtual {p0, v2, v1}, Ljava/net/URLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 128
|
|
invoke-interface {p1}, Lcom/fyber/inneractive/sdk/network/c0;->q()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "Content-Type"
|
|
|
|
invoke-virtual {p0, v1, p1}, Ljava/net/URLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 129
|
|
invoke-virtual {p0}, Ljava/net/URLConnection;->connect()V
|
|
|
|
.line 130
|
|
invoke-virtual {p0}, Ljava/net/URLConnection;->getOutputStream()Ljava/io/OutputStream;
|
|
|
|
move-result-object p0
|
|
|
|
.line 131
|
|
invoke-virtual {p0, v0}, Ljava/io/OutputStream;->write([B)V
|
|
|
|
.line 134
|
|
:try_start_0
|
|
invoke-virtual {p0}, Ljava/io/OutputStream;->close()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:catchall_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Ljava/net/HttpURLConnection;Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
.line 135
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 137
|
|
invoke-virtual {p0, p1, p2}, Ljava/net/URLConnection;->addRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lcom/fyber/inneractive/sdk/network/c0;Ljava/lang/String;Ljava/lang/String;)Lcom/fyber/inneractive/sdk/network/j;
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lcom/fyber/inneractive/sdk/network/c0<",
|
|
"TT;>;",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
")",
|
|
"Lcom/fyber/inneractive/sdk/network/j;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Exception;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "HttpExecutorImpl"
|
|
|
|
filled-new-array {v0}, [Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "%s hurl network stack is in use"
|
|
|
|
.line 1
|
|
invoke-static {v1, v0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
.line 2
|
|
new-instance v0, Ljava/net/URL;
|
|
|
|
invoke-interface {p1}, Lcom/fyber/inneractive/sdk/network/c0;->getUrl()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 3
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 4
|
|
invoke-interface {p1}, Lcom/fyber/inneractive/sdk/network/c0;->getUrl()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 5
|
|
invoke-static {p1, v1, v0, p2, p3}, Lcom/fyber/inneractive/sdk/network/i;->a(Lcom/fyber/inneractive/sdk/network/c0;Ljava/util/ArrayList;Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;)Landroid/util/Pair;
|
|
|
|
move-result-object p1
|
|
|
|
.line 6
|
|
iget-object p2, p1, Landroid/util/Pair;->second:Ljava/lang/Object;
|
|
|
|
move-object v1, p2
|
|
|
|
check-cast v1, Ljava/net/HttpURLConnection;
|
|
|
|
iget-object p1, p1, Landroid/util/Pair;->first:Ljava/lang/Object;
|
|
|
|
check-cast p1, Ljava/util/List;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 7
|
|
:try_start_0
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result p3
|
|
|
|
if-lez p3, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 24
|
|
:cond_0
|
|
new-instance p1, Lcom/fyber/inneractive/sdk/network/x0;
|
|
|
|
invoke-direct {p1}, Lcom/fyber/inneractive/sdk/network/x0;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
goto/16 :goto_5
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
goto/16 :goto_6
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p3, 0x0
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
const-string v0, ""
|
|
|
|
const/16 v2, 0xc8
|
|
|
|
.line 25
|
|
invoke-static {p3, v2, v0, p3, p3}, Lcom/fyber/inneractive/sdk/network/h;->a(Ljava/io/FilterInputStream;ILjava/lang/String;Ljava/util/Map;Ljava/lang/String;)Lcom/fyber/inneractive/sdk/network/j;
|
|
|
|
move-result-object p3
|
|
:try_end_0
|
|
.catch Ljava/net/SocketTimeoutException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_3
|
|
|
|
.line 26
|
|
:cond_2
|
|
:try_start_1
|
|
invoke-virtual {v1}, Ljava/net/URLConnection;->getInputStream()Ljava/io/InputStream;
|
|
|
|
move-result-object v0
|
|
|
|
.line 27
|
|
invoke-virtual {v1}, Ljava/net/URLConnection;->getContentEncoding()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "gzip"
|
|
|
|
invoke-static {v3, v2}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
const-string v2, "HttpExecutorBase: getInputStream found gzip encoding"
|
|
|
|
new-array v3, p2, [Ljava/lang/Object;
|
|
|
|
.line 28
|
|
invoke-static {v2, v3}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
.line 29
|
|
new-instance v2, Ljava/util/zip/GZIPInputStream;
|
|
|
|
invoke-direct {v2, v0}, Ljava/util/zip/GZIPInputStream;-><init>(Ljava/io/InputStream;)V
|
|
|
|
:goto_1
|
|
move-object p3, v2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const-string v2, "HttpExecutorBase: getInputStream no gzip encoding"
|
|
|
|
new-array v3, p2, [Ljava/lang/Object;
|
|
|
|
.line 31
|
|
invoke-static {v2, v3}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
.line 32
|
|
new-instance v2, Ljava/io/BufferedInputStream;
|
|
|
|
invoke-direct {v2, v0}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;)V
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2
|
|
|
|
goto :goto_1
|
|
|
|
.line 33
|
|
:catch_2
|
|
:goto_2
|
|
:try_start_2
|
|
invoke-virtual {v1}, Ljava/net/HttpURLConnection;->getResponseCode()I
|
|
|
|
move-result v0
|
|
|
|
.line 34
|
|
invoke-virtual {v1}, Ljava/net/HttpURLConnection;->getResponseMessage()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
.line 35
|
|
invoke-virtual {v1}, Ljava/net/URLConnection;->getHeaderFields()Ljava/util/Map;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "Last-Modified"
|
|
|
|
.line 36
|
|
invoke-virtual {v1, v4}, Ljava/net/URLConnection;->getHeaderField(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
.line 37
|
|
invoke-static {p3, v0, v2, v3, v4}, Lcom/fyber/inneractive/sdk/network/h;->a(Ljava/io/FilterInputStream;ILjava/lang/String;Ljava/util/Map;Ljava/lang/String;)Lcom/fyber/inneractive/sdk/network/j;
|
|
|
|
move-result-object p3
|
|
|
|
.line 43
|
|
:goto_3
|
|
new-instance v6, Lcom/fyber/inneractive/sdk/network/i$a;
|
|
|
|
.line 44
|
|
iget v2, p3, Lcom/fyber/inneractive/sdk/network/j;->a:I
|
|
|
|
.line 45
|
|
iget-object v3, p3, Lcom/fyber/inneractive/sdk/network/j;->c:Ljava/io/InputStream;
|
|
|
|
.line 46
|
|
iget-object v4, p3, Lcom/fyber/inneractive/sdk/network/j;->d:Ljava/util/Map;
|
|
|
|
.line 47
|
|
iget-object v5, p3, Lcom/fyber/inneractive/sdk/network/j;->e:Ljava/lang/String;
|
|
|
|
move-object v0, v6
|
|
|
|
.line 48
|
|
invoke-direct/range {v0 .. v5}, Lcom/fyber/inneractive/sdk/network/i$a;-><init>(Ljava/net/HttpURLConnection;ILjava/io/InputStream;Ljava/util/Map;Ljava/lang/String;)V
|
|
|
|
.line 49
|
|
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_4
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_4
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object p3
|
|
|
|
check-cast p3, Ljava/lang/String;
|
|
|
|
iget-object v0, v6, Lcom/fyber/inneractive/sdk/network/j;->f:Ljava/util/ArrayList;
|
|
|
|
.line 50
|
|
invoke-virtual {v0, p3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
:try_end_2
|
|
.catch Ljava/net/SocketTimeoutException; {:try_start_2 .. :try_end_2} :catch_1
|
|
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
return-object v6
|
|
|
|
:goto_5
|
|
new-array p2, p2, [Ljava/lang/Object;
|
|
|
|
const-string p3, "failed reading network response"
|
|
|
|
.line 51
|
|
invoke-static {p3, p1, p2}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
|
|
|
|
.line 52
|
|
new-instance p2, Lcom/fyber/inneractive/sdk/network/x0;
|
|
|
|
invoke-direct {p2, p1}, Lcom/fyber/inneractive/sdk/network/x0;-><init>(Ljava/lang/Exception;)V
|
|
|
|
throw p2
|
|
|
|
.line 53
|
|
:goto_6
|
|
new-instance p2, Lcom/fyber/inneractive/sdk/network/a1;
|
|
|
|
invoke-direct {p2, p1}, Lcom/fyber/inneractive/sdk/network/a1;-><init>(Ljava/lang/Exception;)V
|
|
|
|
throw p2
|
|
.end method
|
|
|
|
.method public final a()V
|
|
.locals 0
|
|
|
|
.line 0
|
|
return-void
|
|
.end method
|