- 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
336 lines
11 KiB
Smali
336 lines
11 KiB
Smali
.class Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/ea/eadp/pushnotification/services/AndroidPushService;->getInAppNotifications(Ljava/lang/String;Ljava/lang/String;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
|
|
|
|
.field final synthetic val$clientToken:Ljava/lang/String;
|
|
|
|
.field final synthetic val$userAlias:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/ea/eadp/pushnotification/services/AndroidPushService;Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()V"
|
|
}
|
|
.end annotation
|
|
|
|
iput-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
|
|
|
|
iput-object p2, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->val$userAlias:Ljava/lang/String;
|
|
|
|
iput-object p3, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->val$clientToken:Ljava/lang/String;
|
|
|
|
.line 446
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public run()V
|
|
.locals 8
|
|
|
|
const-string v0, "PushManager"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:try_start_0
|
|
const-string v2, "%s/games/%s/users/%s/inapp"
|
|
|
|
const/4 v3, 0x3
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
iget-object v4, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
|
|
|
|
.line 453
|
|
invoke-static {v4}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$400(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
aput-object v4, v3, v1
|
|
|
|
iget-object v4, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
|
|
|
|
invoke-static {v4}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$500(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
const/4 v5, 0x1
|
|
|
|
aput-object v4, v3, v5
|
|
|
|
iget-object v4, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->val$userAlias:Ljava/lang/String;
|
|
|
|
const/4 v6, 0x2
|
|
|
|
aput-object v4, v3, v6
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
|
|
|
|
.line 454
|
|
invoke-static {v3}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$600(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/http/services/HttpService;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v3, v2}, Lcom/ea/eadp/http/services/HttpService;->getResource(Ljava/lang/String;)Lcom/ea/eadp/http/models/HttpRequest;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->val$clientToken:Ljava/lang/String;
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
const-string v3, "Authorization"
|
|
|
|
.line 457
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v7, "Bearer "
|
|
|
|
invoke-virtual {v4, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v7, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->val$clientToken:Ljava/lang/String;
|
|
|
|
invoke-virtual {v4, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v2, v3, v4}, Lcom/ea/eadp/http/models/HttpRequest;->setHeader(Ljava/lang/String;Ljava/lang/String;)Lcom/ea/eadp/http/models/HttpRequest;
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v2
|
|
|
|
move v3, v1
|
|
|
|
goto/16 :goto_1
|
|
|
|
.line 459
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {v2}, Lcom/ea/eadp/http/models/HttpRequest;->get()Lcom/ea/eadp/http/models/HttpResponse;
|
|
|
|
move-result-object v2
|
|
|
|
.line 460
|
|
invoke-interface {v2}, Lcom/ea/eadp/http/models/HttpResponse;->getCode()I
|
|
|
|
move-result v3
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
const/16 v4, 0xc8
|
|
|
|
if-lt v3, v4, :cond_1
|
|
|
|
const/16 v4, 0x12c
|
|
|
|
if-ge v3, v4, :cond_1
|
|
|
|
:try_start_1
|
|
const-string v4, "Get In-App Notification request successful!"
|
|
|
|
new-array v5, v1, [Ljava/lang/Object;
|
|
|
|
.line 463
|
|
invoke-static {v0, v4, v5}, Lcom/ea/nimble/Log$Helper;->LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
.line 464
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v5, "response: "
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-interface {v2}, Lcom/ea/eadp/http/models/HttpResponse;->getBody()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
new-array v5, v1, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v4, v5}, Lcom/ea/nimble/Log$Helper;->LOGDS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
iget-object v4, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
|
|
|
|
.line 466
|
|
invoke-static {v4}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
iget-object v4, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
|
|
|
|
.line 468
|
|
invoke-static {v4}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v2}, Lcom/ea/eadp/http/models/HttpResponse;->getBody()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v4, v3, v2}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onGetInAppSuccess(ILjava/lang/String;)V
|
|
|
|
goto :goto_2
|
|
|
|
:catch_1
|
|
move-exception v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-string v4, "Get In-App Notification request failed! Status: %s, Message: %s"
|
|
|
|
new-array v6, v6, [Ljava/lang/Object;
|
|
|
|
.line 473
|
|
invoke-interface {v2}, Lcom/ea/eadp/http/models/HttpResponse;->getCode()I
|
|
|
|
move-result v7
|
|
|
|
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v7
|
|
|
|
aput-object v7, v6, v1
|
|
|
|
invoke-interface {v2}, Lcom/ea/eadp/http/models/HttpResponse;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
aput-object v7, v6, v5
|
|
|
|
invoke-static {v4, v6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
new-array v6, v1, [Ljava/lang/Object;
|
|
|
|
.line 474
|
|
invoke-static {v0, v4, v6}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
const-string v6, "response: %s"
|
|
|
|
new-array v5, v5, [Ljava/lang/Object;
|
|
|
|
.line 475
|
|
invoke-interface {v2}, Lcom/ea/eadp/http/models/HttpResponse;->getBody()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v5, v1
|
|
|
|
invoke-static {v6, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
new-array v5, v1, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, v2, v5}, Lcom/ea/nimble/Log$Helper;->LOGDS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
iget-object v2, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
|
|
|
|
.line 477
|
|
invoke-static {v2}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
iget-object v2, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
|
|
|
|
.line 479
|
|
invoke-static {v2}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v2, v3, v4}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onConnectionError(ILjava/lang/String;)V
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
goto :goto_2
|
|
|
|
.line 485
|
|
:goto_1
|
|
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
|
|
|
|
const-string v4, "In-App Notification request failed with Exception: %s"
|
|
|
|
invoke-static {v4, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
.line 486
|
|
invoke-static {v0, v2, v1}, Lcom/ea/nimble/Log$Helper;->LOGES(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
|
|
|
|
.line 488
|
|
invoke-static {v0}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$5;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
|
|
|
|
.line 490
|
|
invoke-static {v0}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$300(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Lcom/ea/eadp/pushnotification/listeners/IPushListener;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0, v3, v2}, Lcom/ea/eadp/pushnotification/listeners/IPushListener;->onConnectionError(ILjava/lang/String;)V
|
|
|
|
:cond_2
|
|
:goto_2
|
|
return-void
|
|
.end method
|