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
This commit is contained in:
2026-02-18 16:13:44 -08:00
parent c080f0d97f
commit f3960ee359
44288 changed files with 10998761 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
.class public Lcom/helpshift/exception/HSUncaughtExceptionHandler$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Thread$UncaughtExceptionHandler;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/helpshift/exception/HSUncaughtExceptionHandler;->init()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic val$defaultUncaughtExceptionHandler:Ljava/lang/Thread$UncaughtExceptionHandler;
# direct methods
.method public constructor <init>(Ljava/lang/Thread$UncaughtExceptionHandler;)V
.locals 0
iput-object p1, p0, Lcom/helpshift/exception/HSUncaughtExceptionHandler$1;->val$defaultUncaughtExceptionHandler:Ljava/lang/Thread$UncaughtExceptionHandler;
.line 27
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V
.locals 2
.line 32
invoke-static {p2}, Lcom/helpshift/exception/HSUncaughtExceptionHandler;->isCausedByHelpshift(Ljava/lang/Throwable;)Z
move-result v0
if-eqz v0, :cond_0
const-string v0, "UncghtExptnHndlr"
const-string v1, "UNCAUGHT EXCEPTION "
.line 33
invoke-static {v0, v1, p2}, Lcom/helpshift/log/HSLogger;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:cond_0
iget-object v0, p0, Lcom/helpshift/exception/HSUncaughtExceptionHandler$1;->val$defaultUncaughtExceptionHandler:Ljava/lang/Thread$UncaughtExceptionHandler;
if-eqz v0, :cond_1
.line 38
invoke-interface {v0, p1, p2}, Ljava/lang/Thread$UncaughtExceptionHandler;->uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V
:cond_1
return-void
.end method

View File

@@ -0,0 +1,72 @@
.class public abstract Lcom/helpshift/exception/HSUncaughtExceptionHandler;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static init()V
.locals 2
.line 24
invoke-static {}, Ljava/lang/Thread;->getDefaultUncaughtExceptionHandler()Ljava/lang/Thread$UncaughtExceptionHandler;
move-result-object v0
.line 27
new-instance v1, Lcom/helpshift/exception/HSUncaughtExceptionHandler$1;
invoke-direct {v1, v0}, Lcom/helpshift/exception/HSUncaughtExceptionHandler$1;-><init>(Ljava/lang/Thread$UncaughtExceptionHandler;)V
invoke-static {v1}, Ljava/lang/Thread;->setDefaultUncaughtExceptionHandler(Ljava/lang/Thread$UncaughtExceptionHandler;)V
return-void
.end method
.method public static isCausedByHelpshift(Ljava/lang/Throwable;)Z
.locals 3
const/4 v0, 0x0
if-nez p0, :cond_0
return v0
.line 56
:cond_0
:try_start_0
invoke-static {p0}, Landroid/util/Log;->getStackTraceString(Ljava/lang/Throwable;)Ljava/lang/String;
move-result-object p0
const-class v1, Lcom/helpshift/Helpshift;
.line 58
invoke-virtual {v1}, Ljava/lang/Class;->getPackage()Ljava/lang/Package;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Package;->getName()Ljava/lang/String;
move-result-object v1
.line 59
invoke-virtual {p0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result p0
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return p0
:catch_0
move-exception p0
const-string v1, "UncghtExptnHndlr"
const-string v2, "Error determining crash from Helpshift"
.line 61
invoke-static {v1, v2, p0}, Lcom/helpshift/log/HSLogger;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
return v0
.end method