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,8 @@
.class public interface abstract Lcom/helpshift/concurrency/HSThreader;
.super Ljava/lang/Object;
.source "SourceFile"
# virtual methods
.method public abstract submit(Ljava/lang/Runnable;)V
.end method

View File

@@ -0,0 +1,57 @@
.class public Lcom/helpshift/concurrency/HSThreadingService$2;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/helpshift/concurrency/HSThreadingService;->runOnUIThread(Ljava/lang/Runnable;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/helpshift/concurrency/HSThreadingService;
.field public final synthetic val$runnable:Ljava/lang/Runnable;
# direct methods
.method public constructor <init>(Lcom/helpshift/concurrency/HSThreadingService;Ljava/lang/Runnable;)V
.locals 0
iput-object p1, p0, Lcom/helpshift/concurrency/HSThreadingService$2;->this$0:Lcom/helpshift/concurrency/HSThreadingService;
iput-object p2, p0, Lcom/helpshift/concurrency/HSThreadingService$2;->val$runnable:Ljava/lang/Runnable;
.line 47
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
iget-object v0, p0, Lcom/helpshift/concurrency/HSThreadingService$2;->this$0:Lcom/helpshift/concurrency/HSThreadingService;
.line 50
invoke-static {v0}, Lcom/helpshift/concurrency/HSThreadingService;->access$000(Lcom/helpshift/concurrency/HSThreadingService;)Lcom/helpshift/concurrency/HSThreader;
move-result-object v0
iget-object v1, p0, Lcom/helpshift/concurrency/HSThreadingService$2;->val$runnable:Ljava/lang/Runnable;
invoke-interface {v0, v1}, Lcom/helpshift/concurrency/HSThreader;->submit(Ljava/lang/Runnable;)V
return-void
.end method

View File

@@ -0,0 +1,117 @@
.class public Lcom/helpshift/concurrency/HSThreadingService;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field public final hsuiThreader:Lcom/helpshift/concurrency/HSThreader;
.field public final networkService:Lcom/helpshift/concurrency/HSThreader;
.field public final serialQueue:Lcom/helpshift/concurrency/HSThreader;
.field public final syncLock:Ljava/lang/Object;
# direct methods
.method public constructor <init>(Lcom/helpshift/concurrency/HSThreader;Lcom/helpshift/concurrency/HSThreader;Lcom/helpshift/concurrency/HSThreader;)V
.locals 1
.line 16
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 12
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
iput-object v0, p0, Lcom/helpshift/concurrency/HSThreadingService;->syncLock:Ljava/lang/Object;
iput-object p1, p0, Lcom/helpshift/concurrency/HSThreadingService;->networkService:Lcom/helpshift/concurrency/HSThreader;
iput-object p2, p0, Lcom/helpshift/concurrency/HSThreadingService;->serialQueue:Lcom/helpshift/concurrency/HSThreader;
iput-object p3, p0, Lcom/helpshift/concurrency/HSThreadingService;->hsuiThreader:Lcom/helpshift/concurrency/HSThreader;
return-void
.end method
.method public static synthetic access$000(Lcom/helpshift/concurrency/HSThreadingService;)Lcom/helpshift/concurrency/HSThreader;
.locals 0
.line 7
iget-object p0, p0, Lcom/helpshift/concurrency/HSThreadingService;->hsuiThreader:Lcom/helpshift/concurrency/HSThreader;
return-object p0
.end method
# virtual methods
.method public getNetworkService()Lcom/helpshift/concurrency/HSThreader;
.locals 1
iget-object v0, p0, Lcom/helpshift/concurrency/HSThreadingService;->networkService:Lcom/helpshift/concurrency/HSThreader;
return-object v0
.end method
.method public runOnUIThread(Ljava/lang/Runnable;)V
.locals 2
iget-object v0, p0, Lcom/helpshift/concurrency/HSThreadingService;->serialQueue:Lcom/helpshift/concurrency/HSThreader;
.line 47
new-instance v1, Lcom/helpshift/concurrency/HSThreadingService$2;
invoke-direct {v1, p0, p1}, Lcom/helpshift/concurrency/HSThreadingService$2;-><init>(Lcom/helpshift/concurrency/HSThreadingService;Ljava/lang/Runnable;)V
invoke-interface {v0, v1}, Lcom/helpshift/concurrency/HSThreader;->submit(Ljava/lang/Runnable;)V
return-void
.end method
.method public runSerial(Ljava/lang/Runnable;)V
.locals 1
iget-object v0, p0, Lcom/helpshift/concurrency/HSThreadingService;->serialQueue:Lcom/helpshift/concurrency/HSThreader;
.line 27
invoke-interface {v0, p1}, Lcom/helpshift/concurrency/HSThreader;->submit(Ljava/lang/Runnable;)V
return-void
.end method
.method public runSync(Ljava/lang/Runnable;)V
.locals 1
.line 31
new-instance v0, Lcom/helpshift/concurrency/NotifyingRunnable;
invoke-direct {v0, p1}, Lcom/helpshift/concurrency/NotifyingRunnable;-><init>(Ljava/lang/Runnable;)V
iget-object p1, p0, Lcom/helpshift/concurrency/HSThreadingService;->syncLock:Ljava/lang/Object;
.line 32
monitor-enter p1
.line 33
:try_start_0
invoke-virtual {p0, v0}, Lcom/helpshift/concurrency/HSThreadingService;->runSerial(Ljava/lang/Runnable;)V
.line 34
invoke-virtual {v0}, Lcom/helpshift/concurrency/NotifyingRunnable;->waitForCompletion()V
.line 35
monitor-exit p1
return-void
:catchall_0
move-exception v0
monitor-exit p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
.end method

View File

@@ -0,0 +1,58 @@
.class public Lcom/helpshift/concurrency/HSUIThreader;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/helpshift/concurrency/HSThreader;
# direct methods
.method public constructor <init>()V
.locals 0
.line 11
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public submit(Ljava/lang/Runnable;)V
.locals 2
.line 16
new-instance v0, Lcom/helpshift/util/SafeWrappedRunnable;
invoke-direct {v0, p1}, Lcom/helpshift/util/SafeWrappedRunnable;-><init>(Ljava/lang/Runnable;)V
.line 18
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
move-result-object p1
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
if-ne p1, v1, :cond_0
.line 19
invoke-interface {v0}, Ljava/lang/Runnable;->run()V
return-void
.line 23
:cond_0
new-instance p1, Landroid/os/Handler;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
invoke-direct {p1, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
invoke-virtual {p1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
return-void
.end method

View File

@@ -0,0 +1,56 @@
.class public Lcom/helpshift/concurrency/HSWorkerThreader;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/helpshift/concurrency/HSThreader;
# instance fields
.field public executorService:Ljava/util/concurrent/ExecutorService;
# direct methods
.method public constructor <init>(Ljava/util/concurrent/ExecutorService;)V
.locals 0
.line 17
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/helpshift/concurrency/HSWorkerThreader;->executorService:Ljava/util/concurrent/ExecutorService;
return-void
.end method
# virtual methods
.method public submit(Ljava/lang/Runnable;)V
.locals 2
:try_start_0
iget-object v0, p0, Lcom/helpshift/concurrency/HSWorkerThreader;->executorService:Ljava/util/concurrent/ExecutorService;
.line 24
new-instance v1, Lcom/helpshift/util/SafeWrappedRunnable;
invoke-direct {v1, p1}, Lcom/helpshift/util/SafeWrappedRunnable;-><init>(Ljava/lang/Runnable;)V
invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p1
const-string v0, "HSThreader"
const-string v1, "Error while submitting request."
.line 27
invoke-static {v0, v1, p1}, Lcom/helpshift/log/HSLogger;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,175 @@
.class public Lcom/helpshift/concurrency/NotifyingRunnable;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public isFinished:Ljava/util/concurrent/atomic/AtomicBoolean;
.field public final runnable:Ljava/lang/Runnable;
.field public final syncLock:Ljava/lang/Object;
# direct methods
.method public constructor <init>(Ljava/lang/Runnable;)V
.locals 2
.line 14
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 11
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
iput-object v0, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->syncLock:Ljava/lang/Object;
.line 12
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v1, 0x0
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
iput-object v0, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->isFinished:Ljava/util/concurrent/atomic/AtomicBoolean;
iput-object p1, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->runnable:Ljava/lang/Runnable;
return-void
.end method
# virtual methods
.method public run()V
.locals 4
iget-object v0, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->syncLock:Ljava/lang/Object;
.line 37
monitor-enter v0
const/4 v1, 0x1
:try_start_0
iget-object v2, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->runnable:Ljava/lang/Runnable;
.line 39
invoke-interface {v2}, Ljava/lang/Runnable;->run()V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
iget-object v2, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->isFinished:Ljava/util/concurrent/atomic/AtomicBoolean;
.line 42
invoke-virtual {v2, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
iget-object v1, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->syncLock:Ljava/lang/Object;
.line 43
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
.line 45
monitor-exit v0
return-void
:catchall_0
move-exception v1
goto :goto_0
:catchall_1
move-exception v2
iget-object v3, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->isFinished:Ljava/util/concurrent/atomic/AtomicBoolean;
.line 42
invoke-virtual {v3, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
iget-object v1, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->syncLock:Ljava/lang/Object;
.line 43
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
.line 44
throw v2
.line 45
:goto_0
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v1
.end method
.method public waitForCompletion()V
.locals 4
iget-object v0, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->syncLock:Ljava/lang/Object;
.line 20
monitor-enter v0
:goto_0
:try_start_0
iget-object v1, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->isFinished:Ljava/util/concurrent/atomic/AtomicBoolean;
.line 24
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
move-result v1
if-nez v1, :cond_0
iget-object v1, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->syncLock:Ljava/lang/Object;
.line 25
invoke-virtual {v1}, Ljava/lang/Object;->wait()V
:try_end_0
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception v1
goto :goto_1
:catch_0
move-exception v1
:try_start_1
const-string v2, "NotifyingRunnable"
const-string v3, "Exception in NotifyingRunnable"
.line 29
invoke-static {v2, v3, v1}, Lcom/helpshift/log/HSLogger;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
.line 30
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
.line 32
:cond_0
monitor-exit v0
return-void
:goto_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v1
.end method