- 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
157 lines
5.9 KiB
Smali
157 lines
5.9 KiB
Smali
.class Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/ea/eadp/pushnotification/services/AndroidPushService;->startWithConfig(Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;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$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/ea/eadp/pushnotification/services/AndroidPushService;Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()V"
|
|
}
|
|
.end annotation
|
|
|
|
iput-object p1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
|
|
|
|
iput-object p2, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
|
|
|
|
.line 155
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public run()V
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
|
|
|
|
.line 159
|
|
invoke-static {v0}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->access$000(Lcom/ea/eadp/pushnotification/services/AndroidPushService;)Z
|
|
|
|
move-result v0
|
|
|
|
const-string v1, "client_register_failure"
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const-string v4, "PushManager"
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "Attempt to register device with FCM"
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
.line 162
|
|
invoke-static {v4, v0, v3}, Lcom/ea/nimble/Log$Helper;->LOGIS(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
.line 165
|
|
:try_start_0
|
|
invoke-static {}, Lcom/google/firebase/messaging/FirebaseMessaging;->getInstance()Lcom/google/firebase/messaging/FirebaseMessaging;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/google/firebase/messaging/FirebaseMessaging;->getToken()Lcom/google/android/gms/tasks/Task;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v3, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;
|
|
|
|
invoke-direct {v3, p0}, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2$1;-><init>(Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;)V
|
|
|
|
invoke-virtual {v0, v3}, Lcom/google/android/gms/tasks/Task;->addOnCompleteListener(Lcom/google/android/gms/tasks/OnCompleteListener;)Lcom/google/android/gms/tasks/Task;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 200
|
|
invoke-virtual {v0}, Ljava/lang/Throwable;->getLocalizedMessage()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
filled-new-array {v0}, [Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v3, "Failed to get registration ID from FCM: %s"
|
|
|
|
invoke-static {v4, v3, v0}, 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$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
|
|
|
|
.line 201
|
|
invoke-virtual {v0, v2}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabled(Z)V
|
|
|
|
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
|
|
|
|
.line 202
|
|
invoke-virtual {v0, v1}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabledReason(Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
|
|
|
|
iget-object v1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
|
|
|
|
.line 203
|
|
invoke-virtual {v0, v1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->registerDevice(Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v0, "Failed to find appropriate Google Play Service SDK on device."
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
.line 209
|
|
invoke-static {v4, v0, v3}, 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$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
|
|
|
|
.line 210
|
|
invoke-virtual {v0, v2}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabled(Z)V
|
|
|
|
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
|
|
|
|
.line 211
|
|
invoke-virtual {v0, v1}, Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;->setDisabledReason(Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->this$0:Lcom/ea/eadp/pushnotification/services/AndroidPushService;
|
|
|
|
iget-object v1, p0, Lcom/ea/eadp/pushnotification/services/AndroidPushService$2;->val$config:Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;
|
|
|
|
.line 212
|
|
invoke-virtual {v0, v1}, Lcom/ea/eadp/pushnotification/services/AndroidPushService;->registerDevice(Lcom/ea/eadp/pushnotification/models/PushNotificationConfig;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|