Files
rr3-apk/smali_classes5/okhttp3/RequestBody$3.smali
Daniel Elliott f3960ee359 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
2026-02-18 16:13:44 -08:00

115 lines
2.4 KiB
Smali

.class public Lokhttp3/RequestBody$3;
.super Lokhttp3/RequestBody;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lokhttp3/RequestBody;->create(Lokhttp3/MediaType;Ljava/io/File;)Lokhttp3/RequestBody;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic val$contentType:Lokhttp3/MediaType;
.field public final synthetic val$file:Ljava/io/File;
# direct methods
.method public constructor <init>(Lokhttp3/MediaType;Ljava/io/File;)V
.locals 0
iput-object p1, p0, Lokhttp3/RequestBody$3;->val$contentType:Lokhttp3/MediaType;
iput-object p2, p0, Lokhttp3/RequestBody$3;->val$file:Ljava/io/File;
.line 160
invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
return-void
.end method
# virtual methods
.method public contentLength()J
.locals 2
iget-object v0, p0, Lokhttp3/RequestBody$3;->val$file:Ljava/io/File;
.line 166
invoke-virtual {v0}, Ljava/io/File;->length()J
move-result-wide v0
return-wide v0
.end method
.method public contentType()Lokhttp3/MediaType;
.locals 1
iget-object v0, p0, Lokhttp3/RequestBody$3;->val$contentType:Lokhttp3/MediaType;
return-object v0
.end method
.method public writeTo(Lokio/BufferedSink;)V
.locals 2
iget-object v0, p0, Lokhttp3/RequestBody$3;->val$file:Ljava/io/File;
.line 170
invoke-static {v0}, Lokio/Okio;->source(Ljava/io/File;)Lokio/Source;
move-result-object v0
.line 171
:try_start_0
invoke-interface {p1, v0}, Lokio/BufferedSink;->writeAll(Lokio/Source;)J
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
.line 172
invoke-interface {v0}, Lokio/Source;->close()V
:cond_0
return-void
:catchall_0
move-exception p1
.line 170
:try_start_1
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:catchall_1
move-exception v1
if-eqz v0, :cond_1
.line 172
:try_start_2
invoke-interface {v0}, Lokio/Source;->close()V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_2
goto :goto_0
:catchall_2
move-exception v0
invoke-virtual {p1, v0}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
:cond_1
:goto_0
throw v1
.end method