Files
rr3-apk/smali_classes2/com/fyber/inneractive/sdk/network/v.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

573 lines
14 KiB
Smali

.class public final Lcom/fyber/inneractive/sdk/network/v;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/fyber/inneractive/sdk/network/v$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<ResultData:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
.field public final a:Landroid/content/Context;
.field public final b:Lcom/fyber/inneractive/sdk/cache/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/fyber/inneractive/sdk/cache/a<",
"TResultData;>;"
}
.end annotation
.end field
.field public c:Landroid/content/SharedPreferences;
# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/fyber/inneractive/sdk/cache/a;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lcom/fyber/inneractive/sdk/cache/a<",
"TResultData;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/fyber/inneractive/sdk/network/v;->a:Landroid/content/Context;
iput-object p2, p0, Lcom/fyber/inneractive/sdk/network/v;->b:Lcom/fyber/inneractive/sdk/cache/a;
return-void
.end method
# virtual methods
.method public final a()Lcom/fyber/inneractive/sdk/cache/k;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/fyber/inneractive/sdk/cache/k<",
"TResultData;>;"
}
.end annotation
const-string v0, "IAConfigurationPreferences"
const/4 v1, 0x0
:try_start_0
iget-object v2, p0, Lcom/fyber/inneractive/sdk/network/v;->b:Lcom/fyber/inneractive/sdk/cache/a;
.line 1
invoke-interface {v2}, Lcom/fyber/inneractive/sdk/cache/a;->c()Z
move-result v2
if-nez v2, :cond_0
.line 2
new-instance v2, Lcom/fyber/inneractive/sdk/network/v$a;
invoke-direct {v2}, Lcom/fyber/inneractive/sdk/network/v$a;-><init>()V
.line 3
new-instance v2, Lcom/fyber/inneractive/sdk/cache/k;
invoke-direct {v2}, Lcom/fyber/inneractive/sdk/cache/k;-><init>()V
return-object v2
:cond_0
iget-object v2, p0, Lcom/fyber/inneractive/sdk/network/v;->b:Lcom/fyber/inneractive/sdk/cache/a;
.line 4
invoke-interface {v2}, Lcom/fyber/inneractive/sdk/cache/a;->b()Ljava/lang/String;
move-result-object v2
invoke-virtual {p0, v2}, Lcom/fyber/inneractive/sdk/network/v;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
iget-object v3, p0, Lcom/fyber/inneractive/sdk/network/v;->b:Lcom/fyber/inneractive/sdk/cache/a;
.line 5
invoke-interface {v3, v2}, Lcom/fyber/inneractive/sdk/cache/a;->a(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v2
iget-object v3, p0, Lcom/fyber/inneractive/sdk/network/v;->c:Landroid/content/SharedPreferences;
if-nez v3, :cond_1
iget-object v3, p0, Lcom/fyber/inneractive/sdk/network/v;->a:Landroid/content/Context;
.line 7
invoke-virtual {v3, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v3
iput-object v3, p0, Lcom/fyber/inneractive/sdk/network/v;->c:Landroid/content/SharedPreferences;
:cond_1
iget-object v3, p0, Lcom/fyber/inneractive/sdk/network/v;->c:Landroid/content/SharedPreferences;
iget-object v4, p0, Lcom/fyber/inneractive/sdk/network/v;->b:Lcom/fyber/inneractive/sdk/cache/a;
.line 9
invoke-interface {v4}, Lcom/fyber/inneractive/sdk/cache/a;->a()Ljava/lang/String;
move-result-object v4
const/4 v5, 0x0
invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
.line 10
new-instance v4, Lcom/fyber/inneractive/sdk/cache/k;
invoke-direct {v4, v2, v3}, Lcom/fyber/inneractive/sdk/cache/k;-><init>(Ljava/lang/Object;Ljava/lang/String;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-object v4
:catch_0
iget-object v2, p0, Lcom/fyber/inneractive/sdk/network/v;->c:Landroid/content/SharedPreferences;
if-nez v2, :cond_2
iget-object v2, p0, Lcom/fyber/inneractive/sdk/network/v;->a:Landroid/content/Context;
.line 12
invoke-virtual {v2, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v0
iput-object v0, p0, Lcom/fyber/inneractive/sdk/network/v;->c:Landroid/content/SharedPreferences;
:cond_2
iget-object v0, p0, Lcom/fyber/inneractive/sdk/network/v;->c:Landroid/content/SharedPreferences;
.line 14
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v0
iget-object v1, p0, Lcom/fyber/inneractive/sdk/network/v;->b:Lcom/fyber/inneractive/sdk/cache/a;
invoke-interface {v1}, Lcom/fyber/inneractive/sdk/cache/a;->a()Ljava/lang/String;
move-result-object v1
invoke-interface {v0, v1}, Landroid/content/SharedPreferences$Editor;->remove(Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
move-result-object v0
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->apply()V
.line 15
new-instance v0, Lcom/fyber/inneractive/sdk/cache/k;
invoke-direct {v0}, Lcom/fyber/inneractive/sdk/cache/k;-><init>()V
return-object v0
.end method
.method public final a(Ljava/lang/String;)Ljava/lang/String;
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/FileNotFoundException;
}
.end annotation
const-string v0, "Failed closing local file: %s"
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object v1
const-string v2, "reading local file: %s"
.line 48
invoke-static {v2, v1}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
const/4 v1, 0x0
:try_start_0
iget-object v2, p0, Lcom/fyber/inneractive/sdk/network/v;->a:Landroid/content/Context;
.line 53
invoke-virtual {v2, p1}, Landroid/content/Context;->openFileInput(Ljava/lang/String;)Ljava/io/FileInputStream;
move-result-object v2
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2
.catchall {:try_start_0 .. :try_end_0} :catchall_1
.line 54
:try_start_1
invoke-virtual {v2}, Ljava/io/FileInputStream;->available()I
move-result v3
.line 55
new-array v3, v3, [B
.line 56
invoke-virtual {v2, v3}, Ljava/io/FileInputStream;->read([B)I
.line 58
new-instance v4, Ljava/lang/String;
const-string v5, "UTF-8"
invoke-direct {v4, v3, v5}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 69
:try_start_2
invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V
:try_end_2
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
goto :goto_0
:catch_0
move-exception v1
.line 71
invoke-virtual {v1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v1
filled-new-array {v1}, [Ljava/lang/Object;
move-result-object v1
invoke-static {v0, v1}, Lcom/fyber/inneractive/sdk/util/IAlog;->f(Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
move-object v1, v4
goto :goto_2
:catchall_0
move-exception p1
move-object v1, v2
goto :goto_3
:catch_1
move-exception v3
goto :goto_1
:catchall_1
move-exception p1
goto :goto_3
:catch_2
move-exception v3
move-object v2, v1
.line 72
:goto_1
:try_start_3
instance-of v4, v3, Ljava/io/FileNotFoundException;
if-nez v4, :cond_1
const-string v4, "Failed reading local file: %s"
const/4 v5, 0x1
new-array v5, v5, [Ljava/lang/Object;
.line 76
invoke-virtual {v3}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v3
const/4 v6, 0x0
aput-object v3, v5, v6
invoke-static {v4, v5}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
if-eqz v2, :cond_0
.line 81
:try_start_4
invoke-virtual {v2}, Ljava/io/FileInputStream;->close()V
:try_end_4
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_3
goto :goto_2
:catch_3
move-exception v2
.line 83
invoke-virtual {v2}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v2
filled-new-array {v2}, [Ljava/lang/Object;
move-result-object v2
invoke-static {v0, v2}, Lcom/fyber/inneractive/sdk/util/IAlog;->f(Ljava/lang/String;[Ljava/lang/Object;)V
:cond_0
:goto_2
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
const-string v0, "local file %s read successfully"
.line 88
invoke-static {v0, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
return-object v1
.line 89
:cond_1
:try_start_5
new-instance p1, Ljava/io/FileNotFoundException;
invoke-direct {p1}, Ljava/io/FileNotFoundException;-><init>()V
throw p1
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_0
:goto_3
if-eqz v1, :cond_2
.line 97
:try_start_6
invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V
:try_end_6
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_4
goto :goto_4
:catch_4
move-exception v1
.line 99
invoke-virtual {v1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object v1
filled-new-array {v1}, [Ljava/lang/Object;
move-result-object v1
invoke-static {v0, v1}, Lcom/fyber/inneractive/sdk/util/IAlog;->f(Ljava/lang/String;[Ljava/lang/Object;)V
.line 102
:cond_2
:goto_4
throw p1
.end method
.method public final a(Ljava/lang/String;Ljava/lang/String;)Z
.locals 5
const-string v0, "Failed closing cache file: %s"
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object v1
const-string v2, "caching file %s"
.line 16
invoke-static {v2, v1}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
const/4 v1, 0x1
const/4 v2, 0x0
const/4 v3, 0x0
:try_start_0
iget-object v4, p0, Lcom/fyber/inneractive/sdk/network/v;->a:Landroid/content/Context;
.line 20
invoke-virtual {v4, p1, v3}, Landroid/content/Context;->openFileOutput(Ljava/lang/String;I)Ljava/io/FileOutputStream;
move-result-object v2
.line 21
invoke-virtual {p2}, Ljava/lang/String;->getBytes()[B
move-result-object p1
invoke-virtual {v2, p1}, Ljava/io/FileOutputStream;->write([B)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:try_start_1
const-string p1, "File cached successfully"
new-array p2, v3, [Ljava/lang/Object;
.line 24
invoke-static {p1, p2}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 31
:try_start_2
invoke-virtual {v2}, Ljava/io/FileOutputStream;->close()V
:try_end_2
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
goto :goto_2
:catch_0
move-exception p1
.line 33
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p1
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
invoke-static {v0, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->f(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_2
:catchall_0
move-exception p1
goto :goto_3
:catch_1
move-exception p1
move p2, v1
goto :goto_0
:catch_2
move-exception p1
move p2, v3
:goto_0
:try_start_3
const-string v4, "Failed caching file: %s"
new-array v1, v1, [Ljava/lang/Object;
.line 34
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p1
aput-object p1, v1, v3
invoke-static {v4, v1}, Lcom/fyber/inneractive/sdk/util/IAlog;->f(Ljava/lang/String;[Ljava/lang/Object;)V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
if-eqz v2, :cond_0
.line 39
:try_start_4
invoke-virtual {v2}, Ljava/io/FileOutputStream;->close()V
:try_end_4
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_3
goto :goto_1
:catch_3
move-exception p1
.line 41
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p1
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
invoke-static {v0, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->f(Ljava/lang/String;[Ljava/lang/Object;)V
:cond_0
:goto_1
move v1, p2
:goto_2
return v1
:goto_3
if-eqz v2, :cond_1
.line 42
:try_start_5
invoke-virtual {v2}, Ljava/io/FileOutputStream;->close()V
:try_end_5
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_4
goto :goto_4
:catch_4
move-exception p2
.line 44
invoke-virtual {p2}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p2
filled-new-array {p2}, [Ljava/lang/Object;
move-result-object p2
invoke-static {v0, p2}, Lcom/fyber/inneractive/sdk/util/IAlog;->f(Ljava/lang/String;[Ljava/lang/Object;)V
.line 47
:cond_1
:goto_4
throw p1
.end method