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,24 @@
.class public interface abstract Landroidx/work/impl/foreground/ForegroundProcessor;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
# virtual methods
.method public abstract startForeground(Ljava/lang/String;Landroidx/work/ForegroundInfo;)V
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroidx/work/ForegroundInfo;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.end method

View File

@@ -0,0 +1,144 @@
.class Landroidx/work/impl/foreground/SystemForegroundDispatcher$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/work/impl/foreground/SystemForegroundDispatcher;->handleStartForeground(Landroid/content/Intent;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field final synthetic this$0:Landroidx/work/impl/foreground/SystemForegroundDispatcher;
.field final synthetic val$workSpecId:Ljava/lang/String;
# direct methods
.method public constructor <init>(Landroidx/work/impl/foreground/SystemForegroundDispatcher;Ljava/lang/String;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Landroidx/work/impl/foreground/SystemForegroundDispatcher$1;->this$0:Landroidx/work/impl/foreground/SystemForegroundDispatcher;
iput-object p2, p0, Landroidx/work/impl/foreground/SystemForegroundDispatcher$1;->val$workSpecId:Ljava/lang/String;
.line 262
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 5
iget-object v0, p0, Landroidx/work/impl/foreground/SystemForegroundDispatcher$1;->this$0:Landroidx/work/impl/foreground/SystemForegroundDispatcher;
.line 265
invoke-static {v0}, Landroidx/work/impl/foreground/SystemForegroundDispatcher;->access$000(Landroidx/work/impl/foreground/SystemForegroundDispatcher;)Landroidx/work/impl/WorkManagerImpl;
move-result-object v0
invoke-virtual {v0}, Landroidx/work/impl/WorkManagerImpl;->getProcessor()Landroidx/work/impl/Processor;
move-result-object v0
iget-object v1, p0, Landroidx/work/impl/foreground/SystemForegroundDispatcher$1;->val$workSpecId:Ljava/lang/String;
invoke-virtual {v0, v1}, Landroidx/work/impl/Processor;->getRunningWorkSpec(Ljava/lang/String;)Landroidx/work/impl/model/WorkSpec;
move-result-object v0
if-eqz v0, :cond_0
.line 268
invoke-virtual {v0}, Landroidx/work/impl/model/WorkSpec;->hasConstraints()Z
move-result v1
if-eqz v1, :cond_0
iget-object v1, p0, Landroidx/work/impl/foreground/SystemForegroundDispatcher$1;->this$0:Landroidx/work/impl/foreground/SystemForegroundDispatcher;
.line 269
iget-object v1, v1, Landroidx/work/impl/foreground/SystemForegroundDispatcher;->mLock:Ljava/lang/Object;
monitor-enter v1
:try_start_0
iget-object v2, p0, Landroidx/work/impl/foreground/SystemForegroundDispatcher$1;->this$0:Landroidx/work/impl/foreground/SystemForegroundDispatcher;
.line 270
iget-object v2, v2, Landroidx/work/impl/foreground/SystemForegroundDispatcher;->mWorkSpecById:Ljava/util/Map;
invoke-static {v0}, Landroidx/work/impl/model/WorkSpecKt;->generationalId(Landroidx/work/impl/model/WorkSpec;)Landroidx/work/impl/model/WorkGenerationalId;
move-result-object v3
invoke-interface {v2, v3, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v2, p0, Landroidx/work/impl/foreground/SystemForegroundDispatcher$1;->this$0:Landroidx/work/impl/foreground/SystemForegroundDispatcher;
.line 271
iget-object v3, v2, Landroidx/work/impl/foreground/SystemForegroundDispatcher;->mConstraintsTracker:Landroidx/work/impl/constraints/WorkConstraintsTracker;
.line 272
invoke-static {v2}, Landroidx/work/impl/foreground/SystemForegroundDispatcher;->access$100(Landroidx/work/impl/foreground/SystemForegroundDispatcher;)Landroidx/work/impl/utils/taskexecutor/TaskExecutor;
move-result-object v2
invoke-interface {v2}, Landroidx/work/impl/utils/taskexecutor/TaskExecutor;->getTaskCoroutineDispatcher()Lkotlinx/coroutines/CoroutineDispatcher;
move-result-object v2
iget-object v4, p0, Landroidx/work/impl/foreground/SystemForegroundDispatcher$1;->this$0:Landroidx/work/impl/foreground/SystemForegroundDispatcher;
.line 271
invoke-static {v3, v0, v2, v4}, Landroidx/work/impl/constraints/WorkConstraintsTrackerKt;->listen(Landroidx/work/impl/constraints/WorkConstraintsTracker;Landroidx/work/impl/model/WorkSpec;Lkotlinx/coroutines/CoroutineDispatcher;Landroidx/work/impl/constraints/OnConstraintsStateChangedListener;)Lkotlinx/coroutines/Job;
move-result-object v2
iget-object v3, p0, Landroidx/work/impl/foreground/SystemForegroundDispatcher$1;->this$0:Landroidx/work/impl/foreground/SystemForegroundDispatcher;
.line 275
iget-object v3, v3, Landroidx/work/impl/foreground/SystemForegroundDispatcher;->mTrackedWorkSpecs:Ljava/util/Map;
invoke-static {v0}, Landroidx/work/impl/model/WorkSpecKt;->generationalId(Landroidx/work/impl/model/WorkSpec;)Landroidx/work/impl/model/WorkGenerationalId;
move-result-object v0
invoke-interface {v3, v0, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 276
monitor-exit v1
goto :goto_0
:catchall_0
move-exception v0
monitor-exit v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
:cond_0
:goto_0
return-void
.end method

View File

@@ -0,0 +1,44 @@
.class interface abstract Landroidx/work/impl/foreground/SystemForegroundDispatcher$Callback;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/work/impl/foreground/SystemForegroundDispatcher;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "Callback"
.end annotation
# virtual methods
.method public abstract cancelNotification(I)V
.annotation build Landroidx/annotation/MainThread;
.end annotation
.end method
.method public abstract notify(ILandroid/app/Notification;)V
.param p2 # Landroid/app/Notification;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/MainThread;
.end annotation
.end method
.method public abstract startForeground(IILandroid/app/Notification;)V
.param p3 # Landroid/app/Notification;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/MainThread;
.end annotation
.end method
.method public abstract stop()V
.annotation build Landroidx/annotation/MainThread;
.end annotation
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,38 @@
.class Landroidx/work/impl/foreground/SystemForegroundService$Api29Impl;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x1d
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/work/impl/foreground/SystemForegroundService;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Api29Impl"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 171
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static startForeground(Landroid/app/Service;ILandroid/app/Notification;I)V
.locals 0
.line 177
invoke-virtual {p0, p1, p2, p3}, Landroid/app/Service;->startForeground(ILandroid/app/Notification;I)V
return-void
.end method

View File

@@ -0,0 +1,77 @@
.class Landroidx/work/impl/foreground/SystemForegroundService$Api31Impl;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x1f
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/work/impl/foreground/SystemForegroundService;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Api31Impl"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 183
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static startForeground(Landroid/app/Service;ILandroid/app/Notification;I)V
.locals 1
const-string v0, "Unable to start foreground service"
.line 190
:try_start_0
invoke-virtual {p0, p1, p2, p3}, Landroid/app/Service;->startForeground(ILandroid/app/Notification;I)V
:try_end_0
.catch Landroid/app/ForegroundServiceStartNotAllowedException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p0
.line 200
invoke-static {}, Landroidx/work/Logger;->get()Landroidx/work/Logger;
move-result-object p1
invoke-static {}, Landroidx/work/impl/foreground/SystemForegroundService;->access$000()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2, v0, p0}, Landroidx/work/Logger;->warning(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
goto :goto_0
:catch_1
move-exception p0
.line 195
invoke-static {}, Landroidx/work/Logger;->get()Landroidx/work/Logger;
move-result-object p1
invoke-static {}, Landroidx/work/impl/foreground/SystemForegroundService;->access$000()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2, v0, p0}, Landroidx/work/Logger;->warning(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:goto_0
return-void
.end method

View File

@@ -0,0 +1,342 @@
.class public Landroidx/work/impl/foreground/SystemForegroundService;
.super Landroidx/lifecycle/LifecycleService;
.source "SourceFile"
# interfaces
.implements Landroidx/work/impl/foreground/SystemForegroundDispatcher$Callback;
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/work/impl/foreground/SystemForegroundService$Api31Impl;,
Landroidx/work/impl/foreground/SystemForegroundService$Api29Impl;
}
.end annotation
# static fields
.field private static final TAG:Ljava/lang/String;
.field private static sForegroundService:Landroidx/work/impl/foreground/SystemForegroundService;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
# instance fields
.field mDispatcher:Landroidx/work/impl/foreground/SystemForegroundDispatcher;
.field private mIsShutdown:Z
.field mNotificationManager:Landroid/app/NotificationManager;
# direct methods
.method static constructor <clinit>()V
.locals 1
const-string v0, "SystemFgService"
.line 45
invoke-static {v0}, Landroidx/work/Logger;->tagWithPrefix(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
sput-object v0, Landroidx/work/impl/foreground/SystemForegroundService;->TAG:Ljava/lang/String;
const/4 v0, 0x0
sput-object v0, Landroidx/work/impl/foreground/SystemForegroundService;->sForegroundService:Landroidx/work/impl/foreground/SystemForegroundService;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 42
invoke-direct {p0}, Landroidx/lifecycle/LifecycleService;-><init>()V
return-void
.end method
.method public static synthetic access$000()Ljava/lang/String;
.locals 1
sget-object v0, Landroidx/work/impl/foreground/SystemForegroundService;->TAG:Ljava/lang/String;
return-object v0
.end method
.method public static getInstance()Landroidx/work/impl/foreground/SystemForegroundService;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
sget-object v0, Landroidx/work/impl/foreground/SystemForegroundService;->sForegroundService:Landroidx/work/impl/foreground/SystemForegroundService;
return-object v0
.end method
.method private initializeDispatcher()V
.locals 2
.annotation build Landroidx/annotation/MainThread;
.end annotation
.line 96
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
const-string v1, "notification"
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/NotificationManager;
iput-object v0, p0, Landroidx/work/impl/foreground/SystemForegroundService;->mNotificationManager:Landroid/app/NotificationManager;
.line 97
new-instance v0, Landroidx/work/impl/foreground/SystemForegroundDispatcher;
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v1
invoke-direct {v0, v1}, Landroidx/work/impl/foreground/SystemForegroundDispatcher;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Landroidx/work/impl/foreground/SystemForegroundService;->mDispatcher:Landroidx/work/impl/foreground/SystemForegroundDispatcher;
.line 98
invoke-virtual {v0, p0}, Landroidx/work/impl/foreground/SystemForegroundDispatcher;->setCallback(Landroidx/work/impl/foreground/SystemForegroundDispatcher$Callback;)V
return-void
.end method
# virtual methods
.method public cancelNotification(I)V
.locals 1
.annotation build Landroidx/annotation/MainThread;
.end annotation
iget-object v0, p0, Landroidx/work/impl/foreground/SystemForegroundService;->mNotificationManager:Landroid/app/NotificationManager;
.line 158
invoke-virtual {v0, p1}, Landroid/app/NotificationManager;->cancel(I)V
return-void
.end method
.method public notify(ILandroid/app/Notification;)V
.locals 1
.param p2 # Landroid/app/Notification;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation build Landroidx/annotation/RequiresPermission;
value = "android.permission.POST_NOTIFICATIONS"
.end annotation
iget-object v0, p0, Landroidx/work/impl/foreground/SystemForegroundService;->mNotificationManager:Landroid/app/NotificationManager;
.line 152
invoke-virtual {v0, p1, p2}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
return-void
.end method
.method public onCreate()V
.locals 0
.line 59
invoke-super {p0}, Landroidx/lifecycle/LifecycleService;->onCreate()V
sput-object p0, Landroidx/work/impl/foreground/SystemForegroundService;->sForegroundService:Landroidx/work/impl/foreground/SystemForegroundService;
.line 61
invoke-direct {p0}, Landroidx/work/impl/foreground/SystemForegroundService;->initializeDispatcher()V
return-void
.end method
.method public onDestroy()V
.locals 1
.line 89
invoke-super {p0}, Landroidx/lifecycle/LifecycleService;->onDestroy()V
iget-object v0, p0, Landroidx/work/impl/foreground/SystemForegroundService;->mDispatcher:Landroidx/work/impl/foreground/SystemForegroundDispatcher;
.line 90
invoke-virtual {v0}, Landroidx/work/impl/foreground/SystemForegroundDispatcher;->onDestroy()V
return-void
.end method
.method public onStartCommand(Landroid/content/Intent;II)I
.locals 1
.param p1 # Landroid/content/Intent;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.line 66
invoke-super {p0, p1, p2, p3}, Landroidx/lifecycle/LifecycleService;->onStartCommand(Landroid/content/Intent;II)I
iget-boolean p2, p0, Landroidx/work/impl/foreground/SystemForegroundService;->mIsShutdown:Z
if-eqz p2, :cond_0
.line 68
invoke-static {}, Landroidx/work/Logger;->get()Landroidx/work/Logger;
move-result-object p2
sget-object p3, Landroidx/work/impl/foreground/SystemForegroundService;->TAG:Ljava/lang/String;
const-string v0, "Re-initializing SystemForegroundService after a request to shut-down."
invoke-virtual {p2, p3, v0}, Landroidx/work/Logger;->info(Ljava/lang/String;Ljava/lang/String;)V
iget-object p2, p0, Landroidx/work/impl/foreground/SystemForegroundService;->mDispatcher:Landroidx/work/impl/foreground/SystemForegroundDispatcher;
.line 72
invoke-virtual {p2}, Landroidx/work/impl/foreground/SystemForegroundDispatcher;->onDestroy()V
.line 74
invoke-direct {p0}, Landroidx/work/impl/foreground/SystemForegroundService;->initializeDispatcher()V
const/4 p2, 0x0
iput-boolean p2, p0, Landroidx/work/impl/foreground/SystemForegroundService;->mIsShutdown:Z
:cond_0
if-eqz p1, :cond_1
iget-object p2, p0, Landroidx/work/impl/foreground/SystemForegroundService;->mDispatcher:Landroidx/work/impl/foreground/SystemForegroundDispatcher;
.line 80
invoke-virtual {p2, p1}, Landroidx/work/impl/foreground/SystemForegroundDispatcher;->onStartCommand(Landroid/content/Intent;)V
:cond_1
const/4 p1, 0x3
return p1
.end method
.method public onTimeout(I)V
.locals 2
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x23
if-lt v0, v1, :cond_0
return-void
:cond_0
iget-object v0, p0, Landroidx/work/impl/foreground/SystemForegroundService;->mDispatcher:Landroidx/work/impl/foreground/SystemForegroundDispatcher;
const/16 v1, 0x800
.line 123
invoke-virtual {v0, p1, v1}, Landroidx/work/impl/foreground/SystemForegroundDispatcher;->onTimeout(II)V
return-void
.end method
.method public onTimeout(II)V
.locals 1
iget-object v0, p0, Landroidx/work/impl/foreground/SystemForegroundService;->mDispatcher:Landroidx/work/impl/foreground/SystemForegroundDispatcher;
.line 128
invoke-virtual {v0, p1, p2}, Landroidx/work/impl/foreground/SystemForegroundDispatcher;->onTimeout(II)V
return-void
.end method
.method public startForeground(IILandroid/app/Notification;)V
.locals 2
.param p3 # Landroid/app/Notification;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/MainThread;
.end annotation
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1f
if-lt v0, v1, :cond_0
.line 138
invoke-static {p0, p1, p3, p2}, Landroidx/work/impl/foreground/SystemForegroundService$Api31Impl;->startForeground(Landroid/app/Service;ILandroid/app/Notification;I)V
goto :goto_0
:cond_0
const/16 v1, 0x1d
if-lt v0, v1, :cond_1
.line 141
invoke-static {p0, p1, p3, p2}, Landroidx/work/impl/foreground/SystemForegroundService$Api29Impl;->startForeground(Landroid/app/Service;ILandroid/app/Notification;I)V
goto :goto_0
.line 144
:cond_1
invoke-virtual {p0, p1, p3}, Landroid/app/Service;->startForeground(ILandroid/app/Notification;)V
:goto_0
return-void
.end method
.method public stop()V
.locals 4
.annotation build Landroidx/annotation/MainThread;
.end annotation
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/work/impl/foreground/SystemForegroundService;->mIsShutdown:Z
.line 105
invoke-static {}, Landroidx/work/Logger;->get()Landroidx/work/Logger;
move-result-object v1
sget-object v2, Landroidx/work/impl/foreground/SystemForegroundService;->TAG:Ljava/lang/String;
const-string v3, "Shutting down."
invoke-virtual {v1, v2, v3}, Landroidx/work/Logger;->debug(Ljava/lang/String;Ljava/lang/String;)V
.line 109
invoke-virtual {p0, v0}, Landroid/app/Service;->stopForeground(Z)V
const/4 v0, 0x0
sput-object v0, Landroidx/work/impl/foreground/SystemForegroundService;->sForegroundService:Landroidx/work/impl/foreground/SystemForegroundService;
.line 112
invoke-virtual {p0}, Landroid/app/Service;->stopSelf()V
return-void
.end method