Files
rr3-apk/smali_classes2/com/fyber/inneractive/sdk/util/s.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- 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
2026-02-18 16:13:44 -08:00

347 lines
8.1 KiB
Smali

.class public final Lcom/fyber/inneractive/sdk/util/s;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static a(Ljava/net/HttpURLConnection;)Ljava/io/FilterInputStream;
.locals 2
.line 41
:try_start_0
invoke-virtual {p0}, Ljava/net/URLConnection;->getInputStream()Ljava/io/InputStream;
move-result-object v0
.line 42
invoke-virtual {p0}, Ljava/net/URLConnection;->getContentEncoding()Ljava/lang/String;
move-result-object p0
const-string v1, "gzip"
invoke-static {v1, p0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
move-result p0
if-eqz p0, :cond_0
.line 43
new-instance p0, Ljava/util/zip/GZIPInputStream;
invoke-direct {p0, v0}, Ljava/util/zip/GZIPInputStream;-><init>(Ljava/io/InputStream;)V
goto :goto_0
.line 45
:cond_0
new-instance p0, Ljava/io/BufferedInputStream;
invoke-direct {p0, v0}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
const/4 p0, 0x0
:goto_0
return-object p0
.end method
.method public static a(Ljava/lang/String;II)Ljava/lang/String;
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
const/4 v0, 0x0
const/4 v1, 0x0
.line 4
:try_start_0
new-instance v2, Ljava/net/URL;
invoke-direct {v2, p0}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
.line 5
invoke-virtual {v2}, 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;
.line 7
invoke-virtual {p0, p1}, Ljava/net/URLConnection;->setConnectTimeout(I)V
.line 8
invoke-virtual {p0, p2}, Ljava/net/URLConnection;->setReadTimeout(I)V
.line 10
invoke-virtual {p0}, Ljava/net/URLConnection;->connect()V
.line 11
invoke-static {p0}, Lcom/fyber/inneractive/sdk/util/s;->a(Ljava/net/HttpURLConnection;)Ljava/io/FilterInputStream;
move-result-object v2
.line 12
invoke-static {p0}, Lcom/fyber/inneractive/sdk/util/s;->b(Ljava/net/HttpURLConnection;)Ljava/lang/String;
move-result-object v3
.line 13
invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v4
if-nez v4, :cond_0
.line 20
invoke-virtual {p0}, Ljava/net/HttpURLConnection;->disconnect()V
.line 21
invoke-static {v3, p2, p1}, Lcom/fyber/inneractive/sdk/util/s;->a(Ljava/lang/String;II)Ljava/lang/String;
move-result-object p0
return-object p0
:catchall_0
move-exception p0
goto :goto_1
:catch_0
move-exception p0
goto :goto_2
.line 25
:cond_0
invoke-static {p0}, Lcom/fyber/inneractive/sdk/util/s;->c(Ljava/net/HttpURLConnection;)Z
move-result p1
if-eqz p1, :cond_1
.line 26
invoke-static {v2}, Lcom/fyber/inneractive/sdk/util/t;->a(Ljava/io/InputStream;)Ljava/lang/StringBuffer;
move-result-object p1
.line 27
invoke-virtual {p1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;
move-result-object p1
goto :goto_0
:cond_1
move-object p1, v1
.line 30
:goto_0
invoke-virtual {p0}, Ljava/net/HttpURLConnection;->disconnect()V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return-object p1
:goto_1
new-array p1, v0, [Ljava/lang/Object;
const-string p2, "getBodyFromUrl failed with error"
.line 38
invoke-static {p2, p0, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
return-object v1
:goto_2
new-array p1, v0, [Ljava/lang/Object;
const-string p2, "getBodyFromUrl failed with exception"
.line 39
invoke-static {p2, p0, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
.line 40
throw p0
.end method
.method public static a()Z
.locals 1
.annotation build Landroid/annotation/TargetApi;
value = 0x17
.end annotation
.line 2
invoke-static {}, Landroid/security/NetworkSecurityPolicy;->getInstance()Landroid/security/NetworkSecurityPolicy;
move-result-object v0
.line 3
invoke-virtual {v0}, Landroid/security/NetworkSecurityPolicy;->isCleartextTrafficPermitted()Z
move-result v0
return v0
.end method
.method public static b(Ljava/net/HttpURLConnection;)Ljava/lang/String;
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 1
invoke-virtual {p0}, Ljava/net/HttpURLConnection;->getResponseCode()I
move-result v0
const/16 v1, 0x12e
if-eq v0, v1, :cond_1
const/16 v1, 0x12f
if-eq v0, v1, :cond_1
const/16 v1, 0x133
if-ne v0, v1, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
return-object p0
.line 4
:cond_1
:goto_0
invoke-static {v0}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
move-result-object v1
filled-new-array {v1}, [Ljava/lang/Object;
move-result-object v1
const-string v2, "getRedirectUrl: received redirect code %s"
invoke-static {v2, v1}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
.line 5
sget-object v1, Lcom/fyber/inneractive/sdk/network/m;->LOCATION:Lcom/fyber/inneractive/sdk/network/m;
invoke-virtual {v1}, Lcom/fyber/inneractive/sdk/network/m;->e()Ljava/lang/String;
move-result-object v1
invoke-virtual {p0, v1}, Ljava/net/URLConnection;->getHeaderField(Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
.line 6
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_2
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object v0
const-string v1, "getRedirectUrl: redirecting target url: %s"
.line 7
invoke-static {v1, v0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
return-object p0
.line 11
:cond_2
new-instance p0, Ljava/lang/Exception;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Server returned HTTP "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-static {v0}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, " with empty location header!"
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/lang/Exception;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static c(Ljava/net/HttpURLConnection;)Z
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 1
invoke-virtual {p0}, Ljava/net/HttpURLConnection;->getResponseCode()I
move-result p0
const/16 v0, 0xc8
if-eq p0, v0, :cond_0
.line 4
invoke-static {p0}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
move-result-object p0
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
const-string v0, "isResponseValid: found invalid response status: %s"
invoke-static {v0, p0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
const/4 p0, 0x0
return p0
:cond_0
const/4 p0, 0x1
return p0
.end method