- 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
705 lines
18 KiB
Smali
705 lines
18 KiB
Smali
.class public Lcom/ironsource/mediationsdk/server/HttpFunctions;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final ERROR_PREFIX:Ljava/lang/String; = "ERROR:"
|
|
|
|
.field private static final a:I = 0x3a98
|
|
|
|
.field private static final b:Ljava/lang/String; = "GET"
|
|
|
|
.field private static final c:Ljava/lang/String; = "POST"
|
|
|
|
.field private static final d:Ljava/lang/String; = "UTF-8"
|
|
|
|
.field private static final e:Ljava/lang/String; = "Bad Request - 400"
|
|
|
|
.field private static final f:Ljava/util/concurrent/ExecutorService;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadExecutor()Ljava/util/concurrent/ExecutorService;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/ironsource/mediationsdk/server/HttpFunctions;->f:Ljava/util/concurrent/ExecutorService;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static a(Ljava/io/BufferedReader;)Ljava/lang/String;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 0
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const/4 p0, 0x0
|
|
|
|
:cond_1
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic a(Ljava/lang/String;)Ljava/net/HttpURLConnection;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 0
|
|
invoke-static {p0}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->b(Ljava/lang/String;)Ljava/net/HttpURLConnection;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic a(Ljava/io/OutputStream;Ljava/net/HttpURLConnection;Ljava/io/BufferedReader;)V
|
|
.locals 0
|
|
|
|
.line 0
|
|
invoke-static {p0, p1, p2}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->b(Ljava/io/OutputStream;Ljava/net/HttpURLConnection;Ljava/io/BufferedReader;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic a(Ljava/lang/String;Ljava/io/OutputStream;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 0
|
|
invoke-static {p0, p1}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->b(Ljava/lang/String;Ljava/io/OutputStream;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static b(Ljava/lang/String;)Ljava/net/HttpURLConnection;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 0
|
|
new-instance v0, Ljava/net/URL;
|
|
|
|
invoke-direct {v0, p0}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lcom/google/firebase/perf/network/FirebasePerfUrlConnection;->instrument(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/net/URLConnection;
|
|
|
|
check-cast p0, Ljava/net/HttpURLConnection;
|
|
|
|
const/16 v0, 0x3a98
|
|
|
|
invoke-virtual {p0, v0}, Ljava/net/URLConnection;->setReadTimeout(I)V
|
|
|
|
invoke-virtual {p0, v0}, Ljava/net/URLConnection;->setConnectTimeout(I)V
|
|
|
|
const-string v0, "POST"
|
|
|
|
invoke-virtual {p0, v0}, Ljava/net/HttpURLConnection;->setRequestMethod(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-virtual {p0, v0}, Ljava/net/URLConnection;->setDoInput(Z)V
|
|
|
|
invoke-virtual {p0, v0}, Ljava/net/URLConnection;->setDoOutput(Z)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static b(Ljava/io/OutputStream;Ljava/net/HttpURLConnection;Ljava/io/BufferedReader;)V
|
|
.locals 3
|
|
|
|
.line 0
|
|
if-eqz p0, :cond_0
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Ljava/io/OutputStream;->close()V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
invoke-static {}, Lcom/ironsource/i9;->d()Lcom/ironsource/i9;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/ironsource/i9;->a(Ljava/lang/Throwable;)V
|
|
|
|
sget-object v0, Lcom/ironsource/mediationsdk/logger/IronLog;->INTERNAL:Lcom/ironsource/mediationsdk/logger/IronLog;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "exception while closing output stream "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/ironsource/mediationsdk/logger/IronLog;->error(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
:goto_0
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {p1}, Ljava/net/HttpURLConnection;->disconnect()V
|
|
|
|
:cond_1
|
|
if-eqz p2, :cond_2
|
|
|
|
:try_start_1
|
|
invoke-virtual {p2}, Ljava/io/BufferedReader;->close()V
|
|
:try_end_1
|
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
goto :goto_1
|
|
|
|
:catch_1
|
|
move-exception p0
|
|
|
|
invoke-static {}, Lcom/ironsource/i9;->d()Lcom/ironsource/i9;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p0}, Lcom/ironsource/i9;->a(Ljava/lang/Throwable;)V
|
|
|
|
sget-object p1, Lcom/ironsource/mediationsdk/logger/IronLog;->INTERNAL:Lcom/ironsource/mediationsdk/logger/IronLog;
|
|
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v0, "exception while closing reader "
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p1, p0}, Lcom/ironsource/mediationsdk/logger/IronLog;->error(Ljava/lang/String;)V
|
|
|
|
:cond_2
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private static b(Ljava/lang/String;Ljava/io/OutputStream;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 0
|
|
new-instance v0, Ljava/io/BufferedWriter;
|
|
|
|
new-instance v1, Ljava/io/OutputStreamWriter;
|
|
|
|
const-string v2, "UTF-8"
|
|
|
|
invoke-direct {v1, p1, v2}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;Ljava/lang/String;)V
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;)V
|
|
|
|
invoke-virtual {v0, p0}, Ljava/io/Writer;->write(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0}, Ljava/io/BufferedWriter;->flush()V
|
|
|
|
invoke-virtual {v0}, Ljava/io/BufferedWriter;->close()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getStringFromURL(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Exception;
|
|
}
|
|
.end annotation
|
|
|
|
.line 0
|
|
const/4 v0, 0x0
|
|
|
|
invoke-static {p0, v0}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->getStringFromURL(Ljava/lang/String;Lcom/ironsource/mediationsdk/p$c;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getStringFromURL(Ljava/lang/String;Lcom/ironsource/mediationsdk/p$c;)Ljava/lang/String;
|
|
.locals 4
|
|
|
|
.line 0
|
|
const/4 v0, 0x0
|
|
|
|
:try_start_0
|
|
new-instance v1, Ljava/net/URL;
|
|
|
|
invoke-direct {v1, p0}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1}, Ljava/net/URL;->openConnection()Ljava/net/URLConnection;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lcom/google/firebase/perf/network/FirebasePerfUrlConnection;->instrument(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/net/URLConnection;
|
|
|
|
check-cast p0, Ljava/net/HttpURLConnection;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_2
|
|
|
|
const/16 v1, 0x3a98
|
|
|
|
:try_start_1
|
|
invoke-virtual {p0, v1}, Ljava/net/URLConnection;->setReadTimeout(I)V
|
|
|
|
invoke-virtual {p0, v1}, Ljava/net/URLConnection;->setConnectTimeout(I)V
|
|
|
|
const-string v1, "GET"
|
|
|
|
invoke-virtual {p0, v1}, Ljava/net/HttpURLConnection;->setRequestMethod(Ljava/lang/String;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {p0, v1}, Ljava/net/URLConnection;->setDoInput(Z)V
|
|
|
|
invoke-virtual {p0}, Ljava/net/URLConnection;->connect()V
|
|
|
|
invoke-virtual {p0}, Ljava/net/HttpURLConnection;->getResponseCode()I
|
|
|
|
move-result v1
|
|
|
|
const/16 v2, 0x190
|
|
|
|
if-ne v1, v2, :cond_1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const-string v1, "Bad Request - 400"
|
|
|
|
invoke-interface {p1, v1}, Lcom/ironsource/mediationsdk/p$c;->a(Ljava/lang/String;)V
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
move-object v1, v0
|
|
|
|
goto :goto_3
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-static {v0, p0, v0}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->b(Ljava/io/OutputStream;Ljava/net/HttpURLConnection;Ljava/io/BufferedReader;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
:try_start_2
|
|
new-instance p1, Ljava/io/BufferedReader;
|
|
|
|
new-instance v1, Ljava/io/InputStreamReader;
|
|
|
|
invoke-virtual {p0}, Ljava/net/URLConnection;->getInputStream()Ljava/io/InputStream;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V
|
|
|
|
invoke-direct {p1, v1}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
|
|
:try_end_2
|
|
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
:try_start_3
|
|
invoke-static {p1}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->a(Ljava/io/BufferedReader;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
:try_end_3
|
|
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
|
|
|
invoke-static {v0, p0, p1}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->b(Ljava/io/OutputStream;Ljava/net/HttpURLConnection;Ljava/io/BufferedReader;)V
|
|
|
|
return-object v1
|
|
|
|
:catchall_1
|
|
move-exception v1
|
|
|
|
goto :goto_4
|
|
|
|
:catch_1
|
|
move-exception v1
|
|
|
|
goto :goto_2
|
|
|
|
:catchall_2
|
|
move-exception p1
|
|
|
|
move-object p0, v0
|
|
|
|
move-object v1, p0
|
|
|
|
goto :goto_3
|
|
|
|
:catch_2
|
|
move-exception p1
|
|
|
|
move-object p0, v0
|
|
|
|
:goto_1
|
|
move-object v1, p1
|
|
|
|
move-object p1, v0
|
|
|
|
:goto_2
|
|
:try_start_4
|
|
invoke-static {}, Lcom/ironsource/i9;->d()Lcom/ironsource/i9;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v1}, Lcom/ironsource/i9;->a(Ljava/lang/Throwable;)V
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_3
|
|
|
|
invoke-static {v0, p0, p1}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->b(Ljava/io/OutputStream;Ljava/net/HttpURLConnection;Ljava/io/BufferedReader;)V
|
|
|
|
return-object v0
|
|
|
|
:catchall_3
|
|
move-exception v1
|
|
|
|
move-object v3, v1
|
|
|
|
move-object v1, p1
|
|
|
|
move-object p1, v3
|
|
|
|
:goto_3
|
|
move-object v3, v1
|
|
|
|
move-object v1, p1
|
|
|
|
move-object p1, v3
|
|
|
|
:goto_4
|
|
invoke-static {v0, p0, p1}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->b(Ljava/io/OutputStream;Ljava/net/HttpURLConnection;Ljava/io/BufferedReader;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public static sendPostRequest(Ljava/lang/String;Ljava/lang/String;Lcom/ironsource/mediationsdk/p$c;)Ljava/lang/String;
|
|
.locals 5
|
|
|
|
.line 0
|
|
const/4 v0, 0x0
|
|
|
|
:try_start_0
|
|
invoke-static {p0}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->b(Ljava/lang/String;)Ljava/net/HttpURLConnection;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_3
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_3
|
|
|
|
:try_start_1
|
|
const-string v1, "Content-Type"
|
|
|
|
const-string v2, "application/json; charset=utf-8"
|
|
|
|
invoke-virtual {p0, v1, v2}, Ljava/net/URLConnection;->setRequestProperty(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Ljava/net/URLConnection;->getOutputStream()Ljava/io/OutputStream;
|
|
|
|
move-result-object v1
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_2
|
|
|
|
:try_start_2
|
|
invoke-static {p1, v1}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->b(Ljava/lang/String;Ljava/io/OutputStream;)V
|
|
|
|
invoke-virtual {p0}, Ljava/net/HttpURLConnection;->getResponseCode()I
|
|
|
|
move-result p1
|
|
|
|
const/16 v2, 0xc8
|
|
|
|
if-ne p1, v2, :cond_0
|
|
|
|
new-instance p1, Ljava/io/BufferedReader;
|
|
|
|
new-instance p2, Ljava/io/InputStreamReader;
|
|
|
|
invoke-virtual {p0}, Ljava/net/URLConnection;->getInputStream()Ljava/io/InputStream;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {p2, v2}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V
|
|
|
|
invoke-direct {p1, p2}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
|
|
:try_end_2
|
|
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
:try_start_3
|
|
invoke-static {p1}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->a(Ljava/io/BufferedReader;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
:try_end_3
|
|
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
invoke-static {v1, p0, p1}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->b(Ljava/io/OutputStream;Ljava/net/HttpURLConnection;Ljava/io/BufferedReader;)V
|
|
|
|
return-object p2
|
|
|
|
:catchall_0
|
|
move-exception p2
|
|
|
|
goto/16 :goto_4
|
|
|
|
:catch_0
|
|
move-exception p2
|
|
|
|
goto :goto_2
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
move-object p2, p1
|
|
|
|
move-object p1, v0
|
|
|
|
:goto_0
|
|
move-object v0, p0
|
|
|
|
goto :goto_3
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
move-object p2, p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/16 v2, 0x190
|
|
|
|
if-ne p1, v2, :cond_1
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
:try_start_4
|
|
const-string p1, "Bad Request - 400"
|
|
|
|
invoke-interface {p2, p1}, Lcom/ironsource/mediationsdk/p$c;->a(Ljava/lang/String;)V
|
|
:try_end_4
|
|
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_1
|
|
|
|
:cond_1
|
|
invoke-static {v1, p0, v0}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->b(Ljava/io/OutputStream;Ljava/net/HttpURLConnection;Ljava/io/BufferedReader;)V
|
|
|
|
return-object v0
|
|
|
|
:catchall_2
|
|
move-exception p1
|
|
|
|
move-object p2, p1
|
|
|
|
move-object p1, v0
|
|
|
|
move-object v1, p1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_2
|
|
move-exception p1
|
|
|
|
move-object p2, p1
|
|
|
|
move-object v1, v0
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_3
|
|
move-exception p0
|
|
|
|
move-object p2, p0
|
|
|
|
move-object p1, v0
|
|
|
|
move-object v1, p1
|
|
|
|
goto :goto_3
|
|
|
|
:catch_3
|
|
move-exception p0
|
|
|
|
move-object p2, p0
|
|
|
|
move-object p0, v0
|
|
|
|
move-object v1, p0
|
|
|
|
:goto_1
|
|
move-object p1, v0
|
|
|
|
:goto_2
|
|
:try_start_5
|
|
invoke-static {}, Lcom/ironsource/i9;->d()Lcom/ironsource/i9;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, p2}, Lcom/ironsource/i9;->a(Ljava/lang/Throwable;)V
|
|
|
|
sget-object v2, Lcom/ironsource/mediationsdk/logger/IronLog;->INTERNAL:Lcom/ironsource/mediationsdk/logger/IronLog;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v4, "exception while sending request "
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {v2, p2}, Lcom/ironsource/mediationsdk/logger/IronLog;->error(Ljava/lang/String;)V
|
|
:try_end_5
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_4
|
|
|
|
invoke-static {v1, p0, p1}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->b(Ljava/io/OutputStream;Ljava/net/HttpURLConnection;Ljava/io/BufferedReader;)V
|
|
|
|
return-object v0
|
|
|
|
:catchall_4
|
|
move-exception p2
|
|
|
|
goto :goto_0
|
|
|
|
:goto_3
|
|
move-object p0, v0
|
|
|
|
:goto_4
|
|
invoke-static {v1, p0, p1}, Lcom/ironsource/mediationsdk/server/HttpFunctions;->b(Ljava/io/OutputStream;Ljava/net/HttpURLConnection;Ljava/io/BufferedReader;)V
|
|
|
|
throw p2
|
|
.end method
|
|
|
|
.method public static sendPostRequest(Ljava/lang/String;Ljava/lang/String;Lcom/ironsource/pd;)V
|
|
.locals 2
|
|
|
|
.line 0
|
|
sget-object v0, Lcom/ironsource/mediationsdk/server/HttpFunctions;->f:Ljava/util/concurrent/ExecutorService;
|
|
|
|
new-instance v1, Lcom/ironsource/mediationsdk/server/HttpFunctions$a;
|
|
|
|
invoke-direct {v1, p0, p1, p2}, Lcom/ironsource/mediationsdk/server/HttpFunctions$a;-><init>(Ljava/lang/String;Ljava/lang/String;Lcom/ironsource/pd;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
|
|
|
|
return-void
|
|
.end method
|