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

385 lines
10 KiB
Smali

.class public final Lcom/fyber/inneractive/sdk/network/u;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/fyber/inneractive/sdk/network/u$a;
}
.end annotation
# instance fields
.field public a:Landroid/content/SharedPreferences;
# direct methods
.method public constructor <init>()V
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/fyber/inneractive/sdk/network/u;->a:Landroid/content/SharedPreferences;
return-void
.end method
.method public static a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/fyber/inneractive/sdk/flow/q;)V
.locals 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Lcom/fyber/inneractive/sdk/flow/q<",
"+",
"Lcom/fyber/inneractive/sdk/response/e;",
">;)V"
}
.end annotation
const-string v0, "Got exception adding param to json object: %s, %s"
const/4 v1, 0x0
if-eqz p0, :cond_6
if-eqz p1, :cond_6
.line 1
invoke-virtual {p3}, Lcom/fyber/inneractive/sdk/flow/q;->d()Lcom/fyber/inneractive/sdk/response/e;
move-result-object v2
if-nez v2, :cond_0
goto/16 :goto_7
.line 7
:cond_0
sget-object v2, Lcom/fyber/inneractive/sdk/network/u$a;->a:Lcom/fyber/inneractive/sdk/network/u;
.line 8
iget-object v3, v2, Lcom/fyber/inneractive/sdk/network/u;->a:Landroid/content/SharedPreferences;
if-eqz v3, :cond_1
goto :goto_0
:cond_1
const-string v3, "AutoWebActionPrefs"
.line 12
invoke-virtual {p0, v3, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object p0
iput-object p0, v2, Lcom/fyber/inneractive/sdk/network/u;->a:Landroid/content/SharedPreferences;
:goto_0
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p0
const-string v3, "IAautoWebActionReporter: reporting action: %s"
.line 13
invoke-static {v3, p0}, Lcom/fyber/inneractive/sdk/util/IAlog;->e(Ljava/lang/String;[Ljava/lang/Object;)V
filled-new-array {p2}, [Ljava/lang/Object;
move-result-object p0
const-string v3, "IAautoWebActionReporter: url: %s"
.line 14
invoke-static {v3, p0}, Lcom/fyber/inneractive/sdk/util/IAlog;->e(Ljava/lang/String;[Ljava/lang/Object;)V
.line 15
sget-object p0, Lcom/fyber/inneractive/sdk/config/IAConfigManager;->L:Lcom/fyber/inneractive/sdk/config/IAConfigManager;
iget-object v3, p0, Lcom/fyber/inneractive/sdk/config/IAConfigManager;->i:Lcom/fyber/inneractive/sdk/config/w;
.line 16
iget-boolean v3, v3, Lcom/fyber/inneractive/sdk/config/w;->c:Z
if-nez v3, :cond_2
new-array p0, v1, [Ljava/lang/Object;
const-string p1, "IAautoWebActionReporter: Report of Non user web actions disabled!"
.line 17
invoke-static {p1, p0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
goto/16 :goto_6
.line 23
:cond_2
new-instance v3, Lcom/fyber/inneractive/sdk/network/s$a;
sget-object v4, Lcom/fyber/inneractive/sdk/network/q;->MRAID_AUTO_ACTION_DETECTED:Lcom/fyber/inneractive/sdk/network/q;
.line 24
iget-object v5, p3, Lcom/fyber/inneractive/sdk/flow/q;->a:Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest;
.line 25
invoke-virtual {p3}, Lcom/fyber/inneractive/sdk/flow/q;->d()Lcom/fyber/inneractive/sdk/response/e;
move-result-object v6
.line 26
iget-object p3, p3, Lcom/fyber/inneractive/sdk/flow/q;->c:Lcom/fyber/inneractive/sdk/config/global/s;
.line 27
invoke-virtual {p3}, Lcom/fyber/inneractive/sdk/config/global/s;->c()Lorg/json/JSONArray;
move-result-object p3
invoke-direct {v3, v4, v5, v6, p3}, Lcom/fyber/inneractive/sdk/network/s$a;-><init>(Lcom/fyber/inneractive/sdk/network/q;Lcom/fyber/inneractive/sdk/external/InneractiveAdRequest;Lcom/fyber/inneractive/sdk/response/e;Lorg/json/JSONArray;)V
.line 28
new-instance p3, Lorg/json/JSONObject;
invoke-direct {p3}, Lorg/json/JSONObject;-><init>()V
const-string v4, "action"
.line 30
:try_start_0
invoke-virtual {p3, v4, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_1
:catch_0
filled-new-array {v4, p1}, [Ljava/lang/Object;
move-result-object p1
.line 32
invoke-static {v0, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->f(Ljava/lang/String;[Ljava/lang/Object;)V
.line 33
:goto_1
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result p1
if-nez p1, :cond_3
const-string p1, "url"
.line 35
:try_start_1
invoke-virtual {p3, p1, p2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
goto :goto_2
:catch_1
filled-new-array {p1, p2}, [Ljava/lang/Object;
move-result-object p1
.line 37
invoke-static {v0, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->f(Ljava/lang/String;[Ljava/lang/Object;)V
.line 38
:cond_3
:goto_2
iget-object p1, v2, Lcom/fyber/inneractive/sdk/network/u;->a:Landroid/content/SharedPreferences;
const-string p2, "lastReportTS"
const-wide/16 v4, 0x0
invoke-interface {p1, p2, v4, v5}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J
move-result-wide v6
const-string p1, "UTC"
.line 40
invoke-static {p1}, Ljava/util/TimeZone;->getTimeZone(Ljava/lang/String;)Ljava/util/TimeZone;
move-result-object p1
.line 41
invoke-static {p1}, Ljava/util/Calendar;->getInstance(Ljava/util/TimeZone;)Ljava/util/Calendar;
move-result-object v8
.line 42
invoke-static {p1}, Ljava/util/Calendar;->getInstance(Ljava/util/TimeZone;)Ljava/util/Calendar;
move-result-object p1
.line 43
invoke-virtual {p1, v6, v7}, Ljava/util/Calendar;->setTimeInMillis(J)V
cmp-long v4, v6, v4
const-string v5, "numReportsToday"
if-lez v4, :cond_4
const/4 v4, 0x6
.line 47
invoke-virtual {v8, v4}, Ljava/util/Calendar;->get(I)I
move-result v6
invoke-virtual {p1, v4}, Ljava/util/Calendar;->get(I)I
move-result p1
if-ne v6, p1, :cond_4
new-array p1, v1, [Ljava/lang/Object;
const-string v4, "IAautoWebActionReporter: encountered same date"
.line 48
invoke-static {v4, p1}, Lcom/fyber/inneractive/sdk/util/IAlog;->e(Ljava/lang/String;[Ljava/lang/Object;)V
.line 50
iget-object p1, v2, Lcom/fyber/inneractive/sdk/network/u;->a:Landroid/content/SharedPreferences;
invoke-interface {p1, v5, v1}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I
move-result p1
goto :goto_3
:cond_4
move p1, v1
.line 51
:goto_3
iget-object p0, p0, Lcom/fyber/inneractive/sdk/config/IAConfigManager;->i:Lcom/fyber/inneractive/sdk/config/w;
.line 52
iget p0, p0, Lcom/fyber/inneractive/sdk/config/w;->d:I
add-int/lit8 v4, p1, 0x1
.line 53
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v6
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
filled-new-array {v6, v7}, [Ljava/lang/Object;
move-result-object v6
const-string v7, "IAautoWebActionReporter: day counter: %d max: %d"
invoke-static {v7, v6}, Lcom/fyber/inneractive/sdk/util/IAlog;->e(Ljava/lang/String;[Ljava/lang/Object;)V
if-ge p1, p0, :cond_5
new-array p0, v1, [Ljava/lang/Object;
const-string p1, "IAautoWebActionReporter: adding ad data"
.line 56
invoke-static {p1, p0}, Lcom/fyber/inneractive/sdk/util/IAlog;->e(Ljava/lang/String;[Ljava/lang/Object;)V
const/4 p0, 0x1
iput-boolean p0, v3, Lcom/fyber/inneractive/sdk/network/s$a;->g:Z
goto :goto_4
:cond_5
new-array p0, v1, [Ljava/lang/Object;
const-string p1, "IAautoWebActionReporter: not adding ad data"
.line 58
invoke-static {p1, p0}, Lcom/fyber/inneractive/sdk/util/IAlog;->e(Ljava/lang/String;[Ljava/lang/Object;)V
:goto_4
const-string p0, "daily_count"
.line 61
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
.line 62
:try_start_2
invoke-virtual {p3, p0, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_2
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2
goto :goto_5
:catch_2
filled-new-array {p0, p1}, [Ljava/lang/Object;
move-result-object p0
.line 64
invoke-static {v0, p0}, Lcom/fyber/inneractive/sdk/util/IAlog;->f(Ljava/lang/String;[Ljava/lang/Object;)V
:goto_5
iget-object p0, v3, Lcom/fyber/inneractive/sdk/network/s$a;->f:Lorg/json/JSONArray;
.line 65
invoke-virtual {p0, p3}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
const/4 p0, 0x0
.line 66
invoke-virtual {v3, p0}, Lcom/fyber/inneractive/sdk/network/s$a;->a(Ljava/lang/String;)V
.line 67
iget-object p0, v2, Lcom/fyber/inneractive/sdk/network/u;->a:Landroid/content/SharedPreferences;
invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object p0
.line 68
invoke-virtual {v8}, Ljava/util/Calendar;->getTimeInMillis()J
move-result-wide v0
invoke-interface {p0, p2, v0, v1}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;
.line 69
invoke-interface {p0, v5, v4}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;
.line 70
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->apply()V
:goto_6
return-void
:cond_6
:goto_7
new-array p0, v1, [Ljava/lang/Object;
const-string p1, "Invalid report request parameters!"
.line 71
invoke-static {p1, p0}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method