Files
rr3-apk/smali_classes2/com/ea/nimble/SynergyNetworkConnection$SynergyOperationalTelemetryDispatch.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

334 lines
8.7 KiB
Smali

.class Lcom/ea/nimble/SynergyNetworkConnection$SynergyOperationalTelemetryDispatch;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/nimble/IOperationalTelemetryDispatch;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/ea/nimble/SynergyNetworkConnection;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "SynergyOperationalTelemetryDispatch"
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/SynergyNetworkConnection;
# direct methods
.method private constructor <init>(Lcom/ea/nimble/SynergyNetworkConnection;)V
.locals 0
iput-object p1, p0, Lcom/ea/nimble/SynergyNetworkConnection$SynergyOperationalTelemetryDispatch;->this$0:Lcom/ea/nimble/SynergyNetworkConnection;
.line 239
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lcom/ea/nimble/SynergyNetworkConnection;Lcom/ea/nimble/SynergyNetworkConnection$1;)V
.locals 0
.line 239
invoke-direct {p0, p1}, Lcom/ea/nimble/SynergyNetworkConnection$SynergyOperationalTelemetryDispatch;-><init>(Lcom/ea/nimble/SynergyNetworkConnection;)V
return-void
.end method
# virtual methods
.method public getEvents(Ljava/lang/String;)Ljava/util/List;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List<",
"Lcom/ea/nimble/OperationalTelemetryEvent;",
">;"
}
.end annotation
.line 293
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
.line 297
invoke-static {}, Lcom/ea/nimble/BaseCore;->getInstance()Lcom/ea/nimble/BaseCore;
move-result-object v0
invoke-virtual {v0}, Lcom/ea/nimble/BaseCore;->isActive()Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "BaseCore not active for operational telemetry logging."
.line 299
invoke-static {p0, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGV(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-object v1
.line 303
:cond_0
invoke-static {}, Lcom/ea/nimble/OperationalTelemetryDispatch;->getComponent()Lcom/ea/nimble/IOperationalTelemetryDispatch;
move-result-object v0
if-nez v0, :cond_1
return-object v1
.line 309
:cond_1
invoke-interface {v0, p1}, Lcom/ea/nimble/IOperationalTelemetryDispatch;->getEvents(Ljava/lang/String;)Ljava/util/List;
move-result-object p1
return-object p1
.end method
.method public getMaxEventCount(Ljava/lang/String;)I
.locals 2
.line 337
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
.line 341
invoke-static {}, Lcom/ea/nimble/BaseCore;->getInstance()Lcom/ea/nimble/BaseCore;
move-result-object v0
invoke-virtual {v0}, Lcom/ea/nimble/BaseCore;->isActive()Z
move-result v0
const/4 v1, -0x1
if-nez v0, :cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string v0, "BaseCore not active for operational telemetry logging."
.line 343
invoke-static {p0, v0, p1}, Lcom/ea/nimble/Log$Helper;->LOGV(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return v1
.line 347
:cond_0
invoke-static {}, Lcom/ea/nimble/OperationalTelemetryDispatch;->getComponent()Lcom/ea/nimble/IOperationalTelemetryDispatch;
move-result-object v0
if-nez v0, :cond_1
return v1
.line 353
:cond_1
invoke-interface {v0, p1}, Lcom/ea/nimble/IOperationalTelemetryDispatch;->getMaxEventCount(Ljava/lang/String;)I
move-result p1
return p1
.end method
.method public logEvent(Ljava/lang/String;Ljava/lang/String;)V
.locals 5
.line 245
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
.line 247
invoke-static {}, Lcom/ea/nimble/BaseCore;->getInstance()Lcom/ea/nimble/BaseCore;
move-result-object v0
invoke-virtual {v0}, Lcom/ea/nimble/BaseCore;->isActive()Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_0
const-string p1, "BaseCore not active for operational telemetry logging."
new-array p2, v1, [Ljava/lang/Object;
.line 249
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGV(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.line 256
:cond_0
:try_start_0
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0, p2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
.line 264
invoke-static {}, Lcom/ea/nimble/OperationalTelemetryDispatch;->getComponent()Lcom/ea/nimble/IOperationalTelemetryDispatch;
move-result-object p2
if-eqz p2, :cond_2
iget-object v2, p0, Lcom/ea/nimble/SynergyNetworkConnection$SynergyOperationalTelemetryDispatch;->this$0:Lcom/ea/nimble/SynergyNetworkConnection;
.line 269
invoke-static {v2}, Lcom/ea/nimble/SynergyNetworkConnection;->access$200(Lcom/ea/nimble/SynergyNetworkConnection;)V
iget-object v2, p0, Lcom/ea/nimble/SynergyNetworkConnection$SynergyOperationalTelemetryDispatch;->this$0:Lcom/ea/nimble/SynergyNetworkConnection;
.line 271
invoke-static {v2}, Lcom/ea/nimble/SynergyNetworkConnection;->access$600(Lcom/ea/nimble/SynergyNetworkConnection;)Lcom/ea/nimble/SynergyResponse;
move-result-object v2
invoke-virtual {v2}, Lcom/ea/nimble/SynergyResponse;->getJsonData()Ljava/util/Map;
move-result-object v2
if-eqz v2, :cond_1
const-string v3, "resultCode"
.line 272
invoke-interface {v2, v3}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_1
.line 274
invoke-interface {v2, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Integer;
:try_start_1
const-string v3, "SYNERGY_RESULT_CODE"
.line 278
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v2
invoke-virtual {v0, v3, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
:try_end_1
.catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0
goto :goto_0
:catch_0
const-string v2, "Failed to add SYNERGY_RESULT_CODE to eventDict."
new-array v1, v1, [Ljava/lang/Object;
.line 282
invoke-static {p0, v2, v1}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 286
:cond_1
:goto_0
invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
move-result-object v0
invoke-interface {p2, p1, v0}, Lcom/ea/nimble/IOperationalTelemetryDispatch;->logEvent(Ljava/lang/String;Ljava/lang/String;)V
:cond_2
return-void
.line 260
:catch_1
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "SynergyOperationalTelemetryDispatch.logEvent(): Failed to build JSONObject from payload: "
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
new-array p2, v1, [Ljava/lang/Object;
invoke-static {p0, p1, p2}, Lcom/ea/nimble/Log$Helper;->LOGE(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public setMaxEventCount(Ljava/lang/String;I)V
.locals 1
.line 315
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGFUNC(Ljava/lang/Object;)V
.line 319
invoke-static {}, Lcom/ea/nimble/BaseCore;->getInstance()Lcom/ea/nimble/BaseCore;
move-result-object v0
invoke-virtual {v0}, Lcom/ea/nimble/BaseCore;->isActive()Z
move-result v0
if-nez v0, :cond_0
const/4 p1, 0x0
new-array p1, p1, [Ljava/lang/Object;
const-string p2, "BaseCore not active for operational telemetry logging."
.line 321
invoke-static {p0, p2, p1}, Lcom/ea/nimble/Log$Helper;->LOGV(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.line 325
:cond_0
invoke-static {}, Lcom/ea/nimble/OperationalTelemetryDispatch;->getComponent()Lcom/ea/nimble/IOperationalTelemetryDispatch;
move-result-object v0
if-nez v0, :cond_1
return-void
.line 331
:cond_1
invoke-interface {v0, p1, p2}, Lcom/ea/nimble/IOperationalTelemetryDispatch;->setMaxEventCount(Ljava/lang/String;I)V
return-void
.end method