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,188 @@
.class public final Lokio/Okio$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lokio/Sink;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lokio/Okio;->sink(Ljava/io/OutputStream;Lokio/Timeout;)Lokio/Sink;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic val$out:Ljava/io/OutputStream;
.field public final synthetic val$timeout:Lokio/Timeout;
# direct methods
.method public constructor <init>(Lokio/Timeout;Ljava/io/OutputStream;)V
.locals 0
iput-object p1, p0, Lokio/Okio$1;->val$timeout:Lokio/Timeout;
iput-object p2, p0, Lokio/Okio$1;->val$out:Ljava/io/OutputStream;
.line 72
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public close()V
.locals 1
iget-object v0, p0, Lokio/Okio$1;->val$out:Ljava/io/OutputStream;
.line 97
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
return-void
.end method
.method public flush()V
.locals 1
iget-object v0, p0, Lokio/Okio$1;->val$out:Ljava/io/OutputStream;
.line 93
invoke-virtual {v0}, Ljava/io/OutputStream;->flush()V
return-void
.end method
.method public timeout()Lokio/Timeout;
.locals 1
iget-object v0, p0, Lokio/Okio$1;->val$timeout:Lokio/Timeout;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 105
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "sink("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokio/Okio$1;->val$out:Ljava/io/OutputStream;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public write(Lokio/Buffer;J)V
.locals 7
.line 74
iget-wide v0, p1, Lokio/Buffer;->size:J
const-wide/16 v2, 0x0
move-wide v4, p2
invoke-static/range {v0 .. v5}, Lokio/Util;->checkOffsetAndCount(JJJ)V
:cond_0
:goto_0
const-wide/16 v0, 0x0
cmp-long v0, p2, v0
if-lez v0, :cond_1
iget-object v0, p0, Lokio/Okio$1;->val$timeout:Lokio/Timeout;
.line 76
invoke-virtual {v0}, Lokio/Timeout;->throwIfReached()V
.line 77
iget-object v0, p1, Lokio/Buffer;->head:Lokio/Segment;
.line 78
iget v1, v0, Lokio/Segment;->limit:I
iget v2, v0, Lokio/Segment;->pos:I
sub-int/2addr v1, v2
int-to-long v1, v1
invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J
move-result-wide v1
long-to-int v1, v1
iget-object v2, p0, Lokio/Okio$1;->val$out:Ljava/io/OutputStream;
.line 79
iget-object v3, v0, Lokio/Segment;->data:[B
iget v4, v0, Lokio/Segment;->pos:I
invoke-virtual {v2, v3, v4, v1}, Ljava/io/OutputStream;->write([BII)V
.line 81
iget v2, v0, Lokio/Segment;->pos:I
add-int/2addr v2, v1
iput v2, v0, Lokio/Segment;->pos:I
int-to-long v3, v1
sub-long/2addr p2, v3
.line 83
iget-wide v5, p1, Lokio/Buffer;->size:J
sub-long/2addr v5, v3
iput-wide v5, p1, Lokio/Buffer;->size:J
.line 85
iget v1, v0, Lokio/Segment;->limit:I
if-ne v2, v1, :cond_0
.line 86
invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment;
move-result-object v1
iput-object v1, p1, Lokio/Buffer;->head:Lokio/Segment;
.line 87
invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V
goto :goto_0
:cond_1
return-void
.end method