Files
rr3-apk/smali_classes2/com/ea/nimble/pushtng/PushNotificationImpl$3.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

260 lines
8.5 KiB
Smali

.class Lcom/ea/nimble/pushtng/PushNotificationImpl$3;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/ea/eadp/pushnotification/listeners/IPushListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/ea/nimble/pushtng/PushNotificationImpl;->startWithConfig(Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;Lcom/ea/eadp/pushnotification/listeners/IPushListener;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/ea/nimble/pushtng/PushNotificationImpl;
.field final synthetic val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
.field final synthetic val$context:Landroid/content/Context;
.field final synthetic val$listener:Lcom/ea/eadp/pushnotification/listeners/IPushListener;
# direct methods
.method public constructor <init>(Lcom/ea/nimble/pushtng/PushNotificationImpl;Lcom/ea/eadp/pushnotification/listeners/IPushListener;Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;Landroid/content/Context;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->this$0:Lcom/ea/nimble/pushtng/PushNotificationImpl;
iput-object p2, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->val$listener:Lcom/ea/eadp/pushnotification/listeners/IPushListener;
iput-object p3, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
iput-object p4, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->val$context:Landroid/content/Context;
.line 300
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onConnectionError(ILjava/lang/String;)V
.locals 3
.line 348
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "onConnectionError: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
new-array v2, v1, [Ljava/lang/Object;
invoke-static {p0, v0, v2}, Lcom/ea/nimble/Log$Helper;->LOGW(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v0, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->val$listener:Lcom/ea/eadp/pushnotification/listeners/IPushListener;
if-eqz v0, :cond_0
.line 351
invoke-interface {v0, p1, p2}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onConnectionError(ILjava/lang/String;)V
:cond_0
iget-object p1, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->this$0:Lcom/ea/nimble/pushtng/PushNotificationImpl;
.line 353
invoke-static {p1, v1}, Lcom/ea/nimble/pushtng/PushNotificationImpl;->access$302(Lcom/ea/nimble/pushtng/PushNotificationImpl;Z)Z
return-void
.end method
.method public onGetInAppSuccess(ILjava/lang/String;)V
.locals 1
iget-object v0, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->val$listener:Lcom/ea/eadp/pushnotification/listeners/IPushListener;
if-eqz v0, :cond_0
.line 341
invoke-interface {v0, p1, p2}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onGetInAppSuccess(ILjava/lang/String;)V
:cond_0
return-void
.end method
.method public onRegistrationSuccess(ILjava/lang/String;)V
.locals 4
.line 313
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "onRegistrationSuccess: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
new-array v2, v1, [Ljava/lang/Object;
invoke-static {p0, v0, v2}, Lcom/ea/nimble/Log$Helper;->LOGD(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)V
.line 315
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iget-object v2, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
.line 316
invoke-virtual {v2}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->getDateOfBirth()Ljava/lang/String;
move-result-object v2
const-string v3, "NIMBLESTANDARD::KEY_PN_DATE_OF_BIRTH"
invoke-interface {v0, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v2, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
.line 317
invoke-virtual {v2}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->isDisabled()Z
move-result v2
if-eqz v2, :cond_0
const-string v2, "true"
goto :goto_0
:cond_0
const-string v2, "false"
:goto_0
const-string v3, "NIMBLESTANDARD::KEY_PN_DISABLED_FLAG"
invoke-interface {v0, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v2, "trackingType"
const-string v3, "NIMBLESTANDARD::PN_DEVICE_REGISTERED"
.line 318
invoke-interface {v0, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v2, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->this$0:Lcom/ea/nimble/pushtng/PushNotificationImpl;
iget-object v3, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
.line 319
invoke-virtual {v3}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->isDisabled()Z
move-result v3
if-eqz v3, :cond_1
iget-object v3, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
invoke-virtual {v3}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->getDisabledReason()Ljava/lang/String;
move-result-object v3
goto :goto_1
:cond_1
const/4 v3, 0x0
:goto_1
invoke-static {v2, v3}, Lcom/ea/nimble/pushtng/PushNotificationImpl;->access$202(Lcom/ea/nimble/pushtng/PushNotificationImpl;Ljava/lang/String;)Ljava/lang/String;
iget-object v2, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->this$0:Lcom/ea/nimble/pushtng/PushNotificationImpl;
const/16 v3, 0xc8
if-lt p1, v3, :cond_2
const/16 v3, 0x12c
if-ge p1, v3, :cond_2
const/4 v1, 0x1
.line 320
:cond_2
invoke-static {v2, v1}, Lcom/ea/nimble/pushtng/PushNotificationImpl;->access$302(Lcom/ea/nimble/pushtng/PushNotificationImpl;Z)Z
iget-object v1, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->val$context:Landroid/content/Context;
.line 322
invoke-static {v1, v0, p2}, Lcom/ea/nimble/pushtng/PushNotificationImpl;->persistTrackingData(Landroid/content/Context;Ljava/util/Map;Ljava/lang/String;)V
.line 325
invoke-static {}, Lcom/ea/nimble/ApplicationEnvironment;->isMainApplicationRunning()Z
move-result v0
if-eqz v0, :cond_3
iget-object v0, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->this$0:Lcom/ea/nimble/pushtng/PushNotificationImpl;
.line 327
invoke-virtual {v0}, Lcom/ea/nimble/pushtng/PushNotificationImpl;->sendPendingTrackingRequests()V
:cond_3
iget-object v0, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->val$listener:Lcom/ea/eadp/pushnotification/listeners/IPushListener;
if-eqz v0, :cond_4
.line 332
invoke-interface {v0, p1, p2}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onRegistrationSuccess(ILjava/lang/String;)V
:cond_4
return-void
.end method
.method public onTrackingSuccess(ILjava/lang/String;)V
.locals 1
iget-object v0, p0, Lcom/ea/nimble/pushtng/PushNotificationImpl$3;->val$listener:Lcom/ea/eadp/pushnotification/listeners/IPushListener;
if-eqz v0, :cond_0
.line 306
invoke-interface {v0, p1, p2}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onTrackingSuccess(ILjava/lang/String;)V
:cond_0
return-void
.end method