- 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
318 lines
7.5 KiB
Smali
318 lines
7.5 KiB
Smali
.class public Lcsdk/glucustomersupport/NativeBridge;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcsdk/glucustomersupport/IGluCustomerSupportListener;
|
|
|
|
|
|
# instance fields
|
|
.field private mActivity:Ljava/lang/ref/WeakReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Landroid/app/Activity;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private mNativeData:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(J)V
|
|
.locals 2
|
|
|
|
.line 15
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-wide p1, p0, Lcsdk/glucustomersupport/NativeBridge;->mNativeData:J
|
|
|
|
.line 17
|
|
new-instance p1, Ljava/lang/ref/WeakReference;
|
|
|
|
iget-wide v0, p0, Lcsdk/glucustomersupport/NativeBridge;->mNativeData:J
|
|
|
|
invoke-static {v0, v1}, Lcsdk/glucustomersupport/NativeBridge;->getCurrentActivity(J)Landroid/app/Activity;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object p1, p0, Lcsdk/glucustomersupport/NativeBridge;->mActivity:Ljava/lang/ref/WeakReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$000(Lcsdk/glucustomersupport/NativeBridge;)J
|
|
.locals 2
|
|
|
|
.line 11
|
|
iget-wide v0, p0, Lcsdk/glucustomersupport/NativeBridge;->mNativeData:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static synthetic access$100(Lcsdk/glucustomersupport/NativeBridge;)Ljava/lang/ref/WeakReference;
|
|
.locals 0
|
|
|
|
.line 11
|
|
iget-object p0, p0, Lcsdk/glucustomersupport/NativeBridge;->mActivity:Ljava/lang/ref/WeakReference;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic access$102(Lcsdk/glucustomersupport/NativeBridge;Ljava/lang/ref/WeakReference;)Ljava/lang/ref/WeakReference;
|
|
.locals 0
|
|
|
|
.line 11
|
|
iput-object p1, p0, Lcsdk/glucustomersupport/NativeBridge;->mActivity:Ljava/lang/ref/WeakReference;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static synthetic access$200(J)Landroid/app/Activity;
|
|
.locals 0
|
|
|
|
.line 11
|
|
invoke-static {p0, p1}, Lcsdk/glucustomersupport/NativeBridge;->getCurrentActivity(J)Landroid/app/Activity;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static native destroy(J)V
|
|
.end method
|
|
|
|
.method private static native getCurrentActivity(J)Landroid/app/Activity;
|
|
.end method
|
|
|
|
.method private static native onHelpshiftSessionEnded(JLjava/lang/String;)V
|
|
.end method
|
|
|
|
.method private static native onHelpshiftSessionStarted(JLjava/lang/String;)V
|
|
.end method
|
|
|
|
.method private static native onQueryNotificationCount(JJLjava/lang/String;)V
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public createCustomerSupport(Ljava/lang/String;Ljava/util/Map;)Lcsdk/glucustomersupport/IGluCustomerSupport;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;)",
|
|
"Lcsdk/glucustomersupport/IGluCustomerSupport;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 30
|
|
new-instance v0, Lcsdk/glucustomersupport/NativeBridge$1;
|
|
|
|
invoke-direct {v0, p0}, Lcsdk/glucustomersupport/NativeBridge$1;-><init>(Lcsdk/glucustomersupport/NativeBridge;)V
|
|
|
|
.line 41
|
|
new-instance v1, Lcsdk/glucustomersupport/GluFactory;
|
|
|
|
invoke-direct {v1}, Lcsdk/glucustomersupport/GluFactory;-><init>()V
|
|
|
|
invoke-static {p1}, Lcsdk/glucustomersupport/util/GluUtil;->emptyToNull(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v1, v0, p1, p2}, Lcsdk/glucustomersupport/GluFactory;->createCustomerSupport(Ljava/util/concurrent/Callable;Ljava/lang/String;Ljava/util/Map;)Lcsdk/glucustomersupport/IGluCustomerSupport;
|
|
|
|
move-result-object p1
|
|
|
|
.line 42
|
|
invoke-interface {p1, p0}, Lcsdk/glucustomersupport/IGluCustomerSupport;->setListener(Lcsdk/glucustomersupport/IGluCustomerSupportListener;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public destroy()V
|
|
.locals 4
|
|
|
|
.line 21
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-wide v0, p0, Lcsdk/glucustomersupport/NativeBridge;->mNativeData:J
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
iput-wide v2, p0, Lcsdk/glucustomersupport/NativeBridge;->mNativeData:J
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 25
|
|
invoke-static {v0, v1}, Lcsdk/glucustomersupport/NativeBridge;->destroy(J)V
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
goto :goto_1
|
|
|
|
.line 26
|
|
:cond_0
|
|
:goto_0
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:goto_1
|
|
monitor-exit p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public onHelpshiftSessionEnded(Lcsdk/glucustomersupport/GluCustomerSupportSessionEndedEvent;)V
|
|
.locals 2
|
|
|
|
.line 60
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-wide v0, p0, Lcsdk/glucustomersupport/NativeBridge;->mNativeData:J
|
|
|
|
.line 61
|
|
iget-object p1, p1, Lcsdk/glucustomersupport/GluCustomerSupportSessionEndedEvent;->error:Ljava/lang/Throwable;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v0, v1, p1}, Lcsdk/glucustomersupport/NativeBridge;->onHelpshiftSessionEnded(JLjava/lang/String;)V
|
|
|
|
.line 62
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:goto_1
|
|
monitor-exit p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public onHelpshiftSessionStarted(Lcsdk/glucustomersupport/GluCustomerSupportSessionStartedEvent;)V
|
|
.locals 2
|
|
|
|
.line 54
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-wide v0, p0, Lcsdk/glucustomersupport/NativeBridge;->mNativeData:J
|
|
|
|
.line 55
|
|
iget-object p1, p1, Lcsdk/glucustomersupport/GluCustomerSupportSessionStartedEvent;->error:Ljava/lang/Throwable;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v0, v1, p1}, Lcsdk/glucustomersupport/NativeBridge;->onHelpshiftSessionStarted(JLjava/lang/String;)V
|
|
|
|
.line 56
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:goto_1
|
|
monitor-exit p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public onQueryNotificationCount(Lcsdk/glucustomersupport/NotificationCountEvent;)V
|
|
.locals 4
|
|
|
|
.line 48
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-wide v0, p0, Lcsdk/glucustomersupport/NativeBridge;->mNativeData:J
|
|
|
|
.line 49
|
|
iget v2, p1, Lcsdk/glucustomersupport/NotificationCountEvent;->count:I
|
|
|
|
int-to-long v2, v2
|
|
|
|
iget-object p1, p1, Lcsdk/glucustomersupport/NotificationCountEvent;->error:Ljava/lang/Throwable;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
invoke-static {v0, v1, v2, v3, p1}, Lcsdk/glucustomersupport/NativeBridge;->onQueryNotificationCount(JJLjava/lang/String;)V
|
|
|
|
.line 50
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:goto_1
|
|
monitor-exit p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|