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,151 @@
.class public final Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field public currentRow:I
.field public final height:I
.field public final matrix:[Lcom/google/zxing/pdf417/encoder/BarcodeRow;
.field public final width:I
# direct methods
.method public constructor <init>(II)V
.locals 5
.line 35
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 36
new-array v0, p1, [Lcom/google/zxing/pdf417/encoder/BarcodeRow;
iput-object v0, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->matrix:[Lcom/google/zxing/pdf417/encoder/BarcodeRow;
array-length v0, v0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_0
iget-object v2, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->matrix:[Lcom/google/zxing/pdf417/encoder/BarcodeRow;
.line 39
new-instance v3, Lcom/google/zxing/pdf417/encoder/BarcodeRow;
add-int/lit8 v4, p2, 0x4
mul-int/lit8 v4, v4, 0x11
add-int/lit8 v4, v4, 0x1
invoke-direct {v3, v4}, Lcom/google/zxing/pdf417/encoder/BarcodeRow;-><init>(I)V
aput-object v3, v2, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
mul-int/lit8 p2, p2, 0x11
iput p2, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->width:I
iput p1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->height:I
const/4 p1, -0x1
iput p1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->currentRow:I
return-void
.end method
# virtual methods
.method public getCurrentRow()Lcom/google/zxing/pdf417/encoder/BarcodeRow;
.locals 2
iget-object v0, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->matrix:[Lcom/google/zxing/pdf417/encoder/BarcodeRow;
iget v1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->currentRow:I
.line 61
aget-object v0, v0, v1
return-object v0
.end method
.method public getScaledMatrix(II)[[B
.locals 6
iget v0, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->height:I
mul-int/2addr v0, p2
iget v1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->width:I
mul-int/2addr v1, p1
filled-new-array {v0, v1}, [I
move-result-object v0
sget-object v1, Ljava/lang/Byte;->TYPE:Ljava/lang/Class;
.line 75
invoke-static {v1, v0}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;
move-result-object v0
check-cast v0, [[B
iget v1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->height:I
mul-int/2addr v1, p2
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
sub-int v3, v1, v2
add-int/lit8 v3, v3, -0x1
iget-object v4, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->matrix:[Lcom/google/zxing/pdf417/encoder/BarcodeRow;
.line 78
div-int v5, v2, p2
aget-object v4, v4, v5
invoke-virtual {v4, p1}, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->getScaledRow(I)[B
move-result-object v4
aput-object v4, v0, v3
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object v0
.end method
.method public startRow()V
.locals 1
iget v0, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->currentRow:I
add-int/lit8 v0, v0, 0x1
iput v0, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->currentRow:I
return-void
.end method

View File

@@ -0,0 +1,103 @@
.class public final Lcom/google/zxing/pdf417/encoder/BarcodeRow;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field public currentLocation:I
.field public final row:[B
# direct methods
.method public constructor <init>(I)V
.locals 0
.line 31
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 32
new-array p1, p1, [B
iput-object p1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->row:[B
const/4 p1, 0x0
iput p1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->currentLocation:I
return-void
.end method
# virtual methods
.method public addBar(ZI)V
.locals 3
const/4 v0, 0x0
:goto_0
if-ge v0, p2, :cond_0
iget v1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->currentLocation:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->currentLocation:I
.line 62
invoke-virtual {p0, v1, p1}, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->set(IZ)V
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public getScaledRow(I)[B
.locals 5
iget-object v0, p0, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->row:[B
.line 79
array-length v0, v0
mul-int/2addr v0, p1
new-array v1, v0, [B
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_0
iget-object v3, p0, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->row:[B
.line 81
div-int v4, v2, p1
aget-byte v3, v3, v4
aput-byte v3, v1, v2
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object v1
.end method
.method public final set(IZ)V
.locals 1
iget-object v0, p0, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->row:[B
int-to-byte p2, p2
.line 53
aput-byte p2, v0, p1
return-void
.end method

View File

@@ -0,0 +1,117 @@
.class public final enum Lcom/google/zxing/pdf417/encoder/Compaction;
.super Ljava/lang/Enum;
.source "SourceFile"
# static fields
.field private static final synthetic $VALUES:[Lcom/google/zxing/pdf417/encoder/Compaction;
.field public static final enum AUTO:Lcom/google/zxing/pdf417/encoder/Compaction;
.field public static final enum BYTE:Lcom/google/zxing/pdf417/encoder/Compaction;
.field public static final enum NUMERIC:Lcom/google/zxing/pdf417/encoder/Compaction;
.field public static final enum TEXT:Lcom/google/zxing/pdf417/encoder/Compaction;
# direct methods
.method static constructor <clinit>()V
.locals 6
.line 24
new-instance v0, Lcom/google/zxing/pdf417/encoder/Compaction;
const-string v1, "AUTO"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/google/zxing/pdf417/encoder/Compaction;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/zxing/pdf417/encoder/Compaction;->AUTO:Lcom/google/zxing/pdf417/encoder/Compaction;
.line 25
new-instance v1, Lcom/google/zxing/pdf417/encoder/Compaction;
const-string v2, "TEXT"
const/4 v3, 0x1
invoke-direct {v1, v2, v3}, Lcom/google/zxing/pdf417/encoder/Compaction;-><init>(Ljava/lang/String;I)V
sput-object v1, Lcom/google/zxing/pdf417/encoder/Compaction;->TEXT:Lcom/google/zxing/pdf417/encoder/Compaction;
.line 26
new-instance v2, Lcom/google/zxing/pdf417/encoder/Compaction;
const-string v3, "BYTE"
const/4 v4, 0x2
invoke-direct {v2, v3, v4}, Lcom/google/zxing/pdf417/encoder/Compaction;-><init>(Ljava/lang/String;I)V
sput-object v2, Lcom/google/zxing/pdf417/encoder/Compaction;->BYTE:Lcom/google/zxing/pdf417/encoder/Compaction;
.line 27
new-instance v3, Lcom/google/zxing/pdf417/encoder/Compaction;
const-string v4, "NUMERIC"
const/4 v5, 0x3
invoke-direct {v3, v4, v5}, Lcom/google/zxing/pdf417/encoder/Compaction;-><init>(Ljava/lang/String;I)V
sput-object v3, Lcom/google/zxing/pdf417/encoder/Compaction;->NUMERIC:Lcom/google/zxing/pdf417/encoder/Compaction;
filled-new-array {v0, v1, v2, v3}, [Lcom/google/zxing/pdf417/encoder/Compaction;
move-result-object v0
sput-object v0, Lcom/google/zxing/pdf417/encoder/Compaction;->$VALUES:[Lcom/google/zxing/pdf417/encoder/Compaction;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 22
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/zxing/pdf417/encoder/Compaction;
.locals 1
const-class v0, Lcom/google/zxing/pdf417/encoder/Compaction;
.line 22
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/pdf417/encoder/Compaction;
return-object p0
.end method
.method public static values()[Lcom/google/zxing/pdf417/encoder/Compaction;
.locals 1
sget-object v0, Lcom/google/zxing/pdf417/encoder/Compaction;->$VALUES:[Lcom/google/zxing/pdf417/encoder/Compaction;
.line 22
invoke-virtual {v0}, [Lcom/google/zxing/pdf417/encoder/Compaction;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/zxing/pdf417/encoder/Compaction;
return-object v0
.end method

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,83 @@
.class public abstract synthetic Lcom/google/zxing/pdf417/encoder/PDF417HighLevelEncoder$1;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/zxing/pdf417/encoder/PDF417HighLevelEncoder;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
# static fields
.field public static final synthetic $SwitchMap$com$google$zxing$pdf417$encoder$Compaction:[I
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 183
invoke-static {}, Lcom/google/zxing/pdf417/encoder/Compaction;->values()[Lcom/google/zxing/pdf417/encoder/Compaction;
move-result-object v0
array-length v0, v0
new-array v0, v0, [I
sput-object v0, Lcom/google/zxing/pdf417/encoder/PDF417HighLevelEncoder$1;->$SwitchMap$com$google$zxing$pdf417$encoder$Compaction:[I
:try_start_0
sget-object v1, Lcom/google/zxing/pdf417/encoder/Compaction;->TEXT:Lcom/google/zxing/pdf417/encoder/Compaction;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x1
aput v2, v0, v1
:try_end_0
.catch Ljava/lang/NoSuchFieldError; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
:try_start_1
sget-object v0, Lcom/google/zxing/pdf417/encoder/PDF417HighLevelEncoder$1;->$SwitchMap$com$google$zxing$pdf417$encoder$Compaction:[I
sget-object v1, Lcom/google/zxing/pdf417/encoder/Compaction;->BYTE:Lcom/google/zxing/pdf417/encoder/Compaction;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x2
aput v2, v0, v1
:try_end_1
.catch Ljava/lang/NoSuchFieldError; {:try_start_1 .. :try_end_1} :catch_1
:catch_1
:try_start_2
sget-object v0, Lcom/google/zxing/pdf417/encoder/PDF417HighLevelEncoder$1;->$SwitchMap$com$google$zxing$pdf417$encoder$Compaction:[I
sget-object v1, Lcom/google/zxing/pdf417/encoder/Compaction;->NUMERIC:Lcom/google/zxing/pdf417/encoder/Compaction;
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
move-result v1
const/4 v2, 0x3
aput v2, v0, v1
:try_end_2
.catch Ljava/lang/NoSuchFieldError; {:try_start_2 .. :try_end_2} :catch_2
:catch_2
return-void
.end method

File diff suppressed because it is too large Load Diff