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,167 @@
.class public final enum Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.super Ljava/lang/Enum;
.source "SourceFile"
# static fields
.field private static final synthetic $VALUES:[Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.field private static final FOR_BITS:[Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.field public static final enum H:Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.field public static final enum L:Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.field public static final enum M:Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.field public static final enum Q:Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
# instance fields
.field private final bits:I
# direct methods
.method static constructor <clinit>()V
.locals 7
.line 28
new-instance v0, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
const-string v1, "L"
const/4 v2, 0x0
const/4 v3, 0x1
invoke-direct {v0, v1, v2, v3}, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;->L:Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.line 30
new-instance v1, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
const-string v4, "M"
invoke-direct {v1, v4, v3, v2}, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;-><init>(Ljava/lang/String;II)V
sput-object v1, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;->M:Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.line 32
new-instance v2, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
const-string v3, "Q"
const/4 v4, 0x2
const/4 v5, 0x3
invoke-direct {v2, v3, v4, v5}, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;-><init>(Ljava/lang/String;II)V
sput-object v2, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;->Q:Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.line 34
new-instance v3, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
const-string v6, "H"
invoke-direct {v3, v6, v5, v4}, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;-><init>(Ljava/lang/String;II)V
sput-object v3, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;->H:Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
filled-new-array {v0, v1, v2, v3}, [Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
move-result-object v4
sput-object v4, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;->$VALUES:[Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
filled-new-array {v1, v0, v3, v2}, [Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
move-result-object v0
sput-object v0, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;->FOR_BITS:[Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 40
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;->bits:I
return-void
.end method
.method public static forBits(I)Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.locals 2
if-ltz p0, :cond_0
sget-object v0, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;->FOR_BITS:[Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.line 53
array-length v1, v0
if-ge p0, v1, :cond_0
.line 56
aget-object p0, v0, p0
return-object p0
.line 54
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
throw p0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.locals 1
const-class v0, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.line 25
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
return-object p0
.end method
.method public static values()[Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.locals 1
sget-object v0, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;->$VALUES:[Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.line 25
invoke-virtual {v0}, [Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
return-object v0
.end method
# virtual methods
.method public getBits()I
.locals 1
iget v0, p0, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;->bits:I
return v0
.end method

View File

@@ -0,0 +1,425 @@
.class public final enum Lcom/google/zxing/qrcode/decoder/Mode;
.super Ljava/lang/Enum;
.source "SourceFile"
# static fields
.field private static final synthetic $VALUES:[Lcom/google/zxing/qrcode/decoder/Mode;
.field public static final enum ALPHANUMERIC:Lcom/google/zxing/qrcode/decoder/Mode;
.field public static final enum BYTE:Lcom/google/zxing/qrcode/decoder/Mode;
.field public static final enum ECI:Lcom/google/zxing/qrcode/decoder/Mode;
.field public static final enum FNC1_FIRST_POSITION:Lcom/google/zxing/qrcode/decoder/Mode;
.field public static final enum FNC1_SECOND_POSITION:Lcom/google/zxing/qrcode/decoder/Mode;
.field public static final enum HANZI:Lcom/google/zxing/qrcode/decoder/Mode;
.field public static final enum KANJI:Lcom/google/zxing/qrcode/decoder/Mode;
.field public static final enum NUMERIC:Lcom/google/zxing/qrcode/decoder/Mode;
.field public static final enum STRUCTURED_APPEND:Lcom/google/zxing/qrcode/decoder/Mode;
.field public static final enum TERMINATOR:Lcom/google/zxing/qrcode/decoder/Mode;
# instance fields
.field private final bits:I
.field private final characterCountBitsForVersions:[I
# direct methods
.method static constructor <clinit>()V
.locals 16
.line 27
new-instance v0, Lcom/google/zxing/qrcode/decoder/Mode;
const/4 v1, 0x0
filled-new-array {v1, v1, v1}, [I
move-result-object v2
const-string v3, "TERMINATOR"
invoke-direct {v0, v3, v1, v2, v1}, Lcom/google/zxing/qrcode/decoder/Mode;-><init>(Ljava/lang/String;I[II)V
sput-object v0, Lcom/google/zxing/qrcode/decoder/Mode;->TERMINATOR:Lcom/google/zxing/qrcode/decoder/Mode;
.line 28
new-instance v2, Lcom/google/zxing/qrcode/decoder/Mode;
const/16 v3, 0xe
const/16 v4, 0xa
const/16 v5, 0xc
filled-new-array {v4, v5, v3}, [I
move-result-object v3
const-string v6, "NUMERIC"
const/4 v7, 0x1
invoke-direct {v2, v6, v7, v3, v7}, Lcom/google/zxing/qrcode/decoder/Mode;-><init>(Ljava/lang/String;I[II)V
sput-object v2, Lcom/google/zxing/qrcode/decoder/Mode;->NUMERIC:Lcom/google/zxing/qrcode/decoder/Mode;
.line 29
new-instance v3, Lcom/google/zxing/qrcode/decoder/Mode;
const/16 v6, 0x9
const/16 v7, 0xb
const/16 v8, 0xd
filled-new-array {v6, v7, v8}, [I
move-result-object v7
const-string v9, "ALPHANUMERIC"
const/4 v10, 0x2
invoke-direct {v3, v9, v10, v7, v10}, Lcom/google/zxing/qrcode/decoder/Mode;-><init>(Ljava/lang/String;I[II)V
sput-object v3, Lcom/google/zxing/qrcode/decoder/Mode;->ALPHANUMERIC:Lcom/google/zxing/qrcode/decoder/Mode;
.line 30
new-instance v7, Lcom/google/zxing/qrcode/decoder/Mode;
const/4 v9, 0x3
filled-new-array {v1, v1, v1}, [I
move-result-object v10
const-string v11, "STRUCTURED_APPEND"
invoke-direct {v7, v11, v9, v10, v9}, Lcom/google/zxing/qrcode/decoder/Mode;-><init>(Ljava/lang/String;I[II)V
sput-object v7, Lcom/google/zxing/qrcode/decoder/Mode;->STRUCTURED_APPEND:Lcom/google/zxing/qrcode/decoder/Mode;
.line 31
new-instance v9, Lcom/google/zxing/qrcode/decoder/Mode;
const/16 v10, 0x10
const/16 v11, 0x8
filled-new-array {v11, v10, v10}, [I
move-result-object v10
const-string v12, "BYTE"
const/4 v13, 0x4
invoke-direct {v9, v12, v13, v10, v13}, Lcom/google/zxing/qrcode/decoder/Mode;-><init>(Ljava/lang/String;I[II)V
sput-object v9, Lcom/google/zxing/qrcode/decoder/Mode;->BYTE:Lcom/google/zxing/qrcode/decoder/Mode;
.line 32
new-instance v10, Lcom/google/zxing/qrcode/decoder/Mode;
filled-new-array {v1, v1, v1}, [I
move-result-object v12
const-string v13, "ECI"
const/4 v14, 0x5
const/4 v15, 0x7
invoke-direct {v10, v13, v14, v12, v15}, Lcom/google/zxing/qrcode/decoder/Mode;-><init>(Ljava/lang/String;I[II)V
sput-object v10, Lcom/google/zxing/qrcode/decoder/Mode;->ECI:Lcom/google/zxing/qrcode/decoder/Mode;
.line 33
new-instance v12, Lcom/google/zxing/qrcode/decoder/Mode;
const/4 v13, 0x6
filled-new-array {v11, v4, v5}, [I
move-result-object v8
const-string v4, "KANJI"
invoke-direct {v12, v4, v13, v8, v11}, Lcom/google/zxing/qrcode/decoder/Mode;-><init>(Ljava/lang/String;I[II)V
sput-object v12, Lcom/google/zxing/qrcode/decoder/Mode;->KANJI:Lcom/google/zxing/qrcode/decoder/Mode;
.line 34
new-instance v8, Lcom/google/zxing/qrcode/decoder/Mode;
const-string v4, "FNC1_FIRST_POSITION"
filled-new-array {v1, v1, v1}, [I
move-result-object v13
invoke-direct {v8, v4, v15, v13, v14}, Lcom/google/zxing/qrcode/decoder/Mode;-><init>(Ljava/lang/String;I[II)V
sput-object v8, Lcom/google/zxing/qrcode/decoder/Mode;->FNC1_FIRST_POSITION:Lcom/google/zxing/qrcode/decoder/Mode;
.line 35
new-instance v13, Lcom/google/zxing/qrcode/decoder/Mode;
const-string v4, "FNC1_SECOND_POSITION"
filled-new-array {v1, v1, v1}, [I
move-result-object v1
invoke-direct {v13, v4, v11, v1, v6}, Lcom/google/zxing/qrcode/decoder/Mode;-><init>(Ljava/lang/String;I[II)V
sput-object v13, Lcom/google/zxing/qrcode/decoder/Mode;->FNC1_SECOND_POSITION:Lcom/google/zxing/qrcode/decoder/Mode;
.line 37
new-instance v14, Lcom/google/zxing/qrcode/decoder/Mode;
const-string v1, "HANZI"
const/16 v4, 0xa
filled-new-array {v11, v4, v5}, [I
move-result-object v4
const/16 v5, 0xd
invoke-direct {v14, v1, v6, v4, v5}, Lcom/google/zxing/qrcode/decoder/Mode;-><init>(Ljava/lang/String;I[II)V
sput-object v14, Lcom/google/zxing/qrcode/decoder/Mode;->HANZI:Lcom/google/zxing/qrcode/decoder/Mode;
move-object v1, v2
move-object v2, v3
move-object v3, v7
move-object v4, v9
move-object v5, v10
move-object v6, v12
move-object v7, v8
move-object v8, v13
move-object v9, v14
filled-new-array/range {v0 .. v9}, [Lcom/google/zxing/qrcode/decoder/Mode;
move-result-object v0
sput-object v0, Lcom/google/zxing/qrcode/decoder/Mode;->$VALUES:[Lcom/google/zxing/qrcode/decoder/Mode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I[II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"([II)V"
}
.end annotation
.line 42
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput-object p3, p0, Lcom/google/zxing/qrcode/decoder/Mode;->characterCountBitsForVersions:[I
iput p4, p0, Lcom/google/zxing/qrcode/decoder/Mode;->bits:I
return-void
.end method
.method public static forBits(I)Lcom/google/zxing/qrcode/decoder/Mode;
.locals 1
if-eqz p0, :cond_9
const/4 v0, 0x1
if-eq p0, v0, :cond_8
const/4 v0, 0x2
if-eq p0, v0, :cond_7
const/4 v0, 0x3
if-eq p0, v0, :cond_6
const/4 v0, 0x4
if-eq p0, v0, :cond_5
const/4 v0, 0x5
if-eq p0, v0, :cond_4
const/4 v0, 0x7
if-eq p0, v0, :cond_3
const/16 v0, 0x8
if-eq p0, v0, :cond_2
const/16 v0, 0x9
if-eq p0, v0, :cond_1
const/16 v0, 0xd
if-ne p0, v0, :cond_0
sget-object p0, Lcom/google/zxing/qrcode/decoder/Mode;->HANZI:Lcom/google/zxing/qrcode/decoder/Mode;
return-object p0
.line 76
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
throw p0
:cond_1
sget-object p0, Lcom/google/zxing/qrcode/decoder/Mode;->FNC1_SECOND_POSITION:Lcom/google/zxing/qrcode/decoder/Mode;
return-object p0
:cond_2
sget-object p0, Lcom/google/zxing/qrcode/decoder/Mode;->KANJI:Lcom/google/zxing/qrcode/decoder/Mode;
return-object p0
:cond_3
sget-object p0, Lcom/google/zxing/qrcode/decoder/Mode;->ECI:Lcom/google/zxing/qrcode/decoder/Mode;
return-object p0
:cond_4
sget-object p0, Lcom/google/zxing/qrcode/decoder/Mode;->FNC1_FIRST_POSITION:Lcom/google/zxing/qrcode/decoder/Mode;
return-object p0
:cond_5
sget-object p0, Lcom/google/zxing/qrcode/decoder/Mode;->BYTE:Lcom/google/zxing/qrcode/decoder/Mode;
return-object p0
:cond_6
sget-object p0, Lcom/google/zxing/qrcode/decoder/Mode;->STRUCTURED_APPEND:Lcom/google/zxing/qrcode/decoder/Mode;
return-object p0
:cond_7
sget-object p0, Lcom/google/zxing/qrcode/decoder/Mode;->ALPHANUMERIC:Lcom/google/zxing/qrcode/decoder/Mode;
return-object p0
:cond_8
sget-object p0, Lcom/google/zxing/qrcode/decoder/Mode;->NUMERIC:Lcom/google/zxing/qrcode/decoder/Mode;
return-object p0
:cond_9
sget-object p0, Lcom/google/zxing/qrcode/decoder/Mode;->TERMINATOR:Lcom/google/zxing/qrcode/decoder/Mode;
return-object p0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/zxing/qrcode/decoder/Mode;
.locals 1
const-class v0, Lcom/google/zxing/qrcode/decoder/Mode;
.line 25
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/zxing/qrcode/decoder/Mode;
return-object p0
.end method
.method public static values()[Lcom/google/zxing/qrcode/decoder/Mode;
.locals 1
sget-object v0, Lcom/google/zxing/qrcode/decoder/Mode;->$VALUES:[Lcom/google/zxing/qrcode/decoder/Mode;
.line 25
invoke-virtual {v0}, [Lcom/google/zxing/qrcode/decoder/Mode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/zxing/qrcode/decoder/Mode;
return-object v0
.end method
# virtual methods
.method public getBits()I
.locals 1
iget v0, p0, Lcom/google/zxing/qrcode/decoder/Mode;->bits:I
return v0
.end method
.method public getCharacterCountBits(Lcom/google/zxing/qrcode/decoder/Version;)I
.locals 1
.line 86
invoke-virtual {p1}, Lcom/google/zxing/qrcode/decoder/Version;->getVersionNumber()I
move-result p1
const/16 v0, 0x9
if-gt p1, v0, :cond_0
const/4 p1, 0x0
goto :goto_0
:cond_0
const/16 v0, 0x1a
if-gt p1, v0, :cond_1
const/4 p1, 0x1
goto :goto_0
:cond_1
const/4 p1, 0x2
:goto_0
iget-object v0, p0, Lcom/google/zxing/qrcode/decoder/Mode;->characterCountBitsForVersions:[I
.line 95
aget p1, v0, p1
return p1
.end method

View File

@@ -0,0 +1,53 @@
.class public final Lcom/google/zxing/qrcode/decoder/Version$ECB;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/zxing/qrcode/decoder/Version;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "ECB"
.end annotation
# instance fields
.field public final count:I
.field public final dataCodewords:I
# direct methods
.method public constructor <init>(II)V
.locals 0
.line 223
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Lcom/google/zxing/qrcode/decoder/Version$ECB;->count:I
iput p2, p0, Lcom/google/zxing/qrcode/decoder/Version$ECB;->dataCodewords:I
return-void
.end method
# virtual methods
.method public getCount()I
.locals 1
iget v0, p0, Lcom/google/zxing/qrcode/decoder/Version$ECB;->count:I
return v0
.end method
.method public getDataCodewords()I
.locals 1
iget v0, p0, Lcom/google/zxing/qrcode/decoder/Version$ECB;->dataCodewords:I
return v0
.end method

View File

@@ -0,0 +1,100 @@
.class public final Lcom/google/zxing/qrcode/decoder/Version$ECBlocks;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/zxing/qrcode/decoder/Version;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "ECBlocks"
.end annotation
# instance fields
.field public final ecBlocks:[Lcom/google/zxing/qrcode/decoder/Version$ECB;
.field public final ecCodewordsPerBlock:I
# direct methods
.method public varargs constructor <init>(I[Lcom/google/zxing/qrcode/decoder/Version$ECB;)V
.locals 0
.line 188
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Lcom/google/zxing/qrcode/decoder/Version$ECBlocks;->ecCodewordsPerBlock:I
iput-object p2, p0, Lcom/google/zxing/qrcode/decoder/Version$ECBlocks;->ecBlocks:[Lcom/google/zxing/qrcode/decoder/Version$ECB;
return-void
.end method
# virtual methods
.method public getECBlocks()[Lcom/google/zxing/qrcode/decoder/Version$ECB;
.locals 1
iget-object v0, p0, Lcom/google/zxing/qrcode/decoder/Version$ECBlocks;->ecBlocks:[Lcom/google/zxing/qrcode/decoder/Version$ECB;
return-object v0
.end method
.method public getECCodewordsPerBlock()I
.locals 1
iget v0, p0, Lcom/google/zxing/qrcode/decoder/Version$ECBlocks;->ecCodewordsPerBlock:I
return v0
.end method
.method public getNumBlocks()I
.locals 5
iget-object v0, p0, Lcom/google/zxing/qrcode/decoder/Version$ECBlocks;->ecBlocks:[Lcom/google/zxing/qrcode/decoder/Version$ECB;
.line 199
array-length v1, v0
const/4 v2, 0x0
move v3, v2
:goto_0
if-ge v2, v1, :cond_0
aget-object v4, v0, v2
.line 200
invoke-virtual {v4}, Lcom/google/zxing/qrcode/decoder/Version$ECB;->getCount()I
move-result v4
add-int/2addr v3, v4
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return v3
.end method
.method public getTotalECCodewords()I
.locals 2
iget v0, p0, Lcom/google/zxing/qrcode/decoder/Version$ECBlocks;->ecCodewordsPerBlock:I
.line 206
invoke-virtual {p0}, Lcom/google/zxing/qrcode/decoder/Version$ECBlocks;->getNumBlocks()I
move-result v1
mul-int/2addr v0, v1
return v0
.end method

File diff suppressed because it is too large Load Diff