- 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
257 lines
6.0 KiB
Smali
257 lines
6.0 KiB
Smali
.class public final Lokhttp3/internal/http2/Http2Reader$ContinuationSource;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lokio/Source;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/internal/http2/Http2Reader;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "ContinuationSource"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public flags:B
|
|
|
|
.field public left:I
|
|
|
|
.field public length:I
|
|
|
|
.field public padding:S
|
|
|
|
.field public final source:Lokio/BufferedSource;
|
|
|
|
.field public streamId:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lokio/BufferedSource;)V
|
|
.locals 0
|
|
|
|
.line 360
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->source:Lokio/BufferedSource;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public close()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public read(Lokio/Buffer;J)J
|
|
.locals 6
|
|
|
|
:goto_0
|
|
iget v0, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->left:I
|
|
|
|
const-wide/16 v1, -0x1
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->source:Lokio/BufferedSource;
|
|
|
|
iget-short v3, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->padding:S
|
|
|
|
int-to-long v3, v3
|
|
|
|
.line 366
|
|
invoke-interface {v0, v3, v4}, Lokio/BufferedSource;->skip(J)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-short v0, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->padding:S
|
|
|
|
iget-byte v0, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->flags:B
|
|
|
|
and-int/lit8 v0, v0, 0x4
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-wide v1
|
|
|
|
.line 369
|
|
:cond_0
|
|
invoke-virtual {p0}, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->readContinuationHeader()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object v3, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->source:Lokio/BufferedSource;
|
|
|
|
int-to-long v4, v0
|
|
|
|
.line 373
|
|
invoke-static {p2, p3, v4, v5}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide p2
|
|
|
|
invoke-interface {v3, p1, p2, p3}, Lokio/Source;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide p1
|
|
|
|
cmp-long p3, p1, v1
|
|
|
|
if-nez p3, :cond_2
|
|
|
|
return-wide v1
|
|
|
|
:cond_2
|
|
iget p3, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->left:I
|
|
|
|
int-to-long v0, p3
|
|
|
|
sub-long/2addr v0, p1
|
|
|
|
long-to-int p3, v0
|
|
|
|
iput p3, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->left:I
|
|
|
|
return-wide p1
|
|
.end method
|
|
|
|
.method public final readContinuationHeader()V
|
|
.locals 7
|
|
|
|
iget v0, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->streamId:I
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->source:Lokio/BufferedSource;
|
|
|
|
.line 389
|
|
invoke-static {v1}, Lokhttp3/internal/http2/Http2Reader;->readMedium(Lokio/BufferedSource;)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->left:I
|
|
|
|
iput v1, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->length:I
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->source:Lokio/BufferedSource;
|
|
|
|
.line 390
|
|
invoke-interface {v1}, Lokio/BufferedSource;->readByte()B
|
|
|
|
move-result v1
|
|
|
|
and-int/lit16 v1, v1, 0xff
|
|
|
|
int-to-byte v1, v1
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->source:Lokio/BufferedSource;
|
|
|
|
.line 391
|
|
invoke-interface {v2}, Lokio/BufferedSource;->readByte()B
|
|
|
|
move-result v2
|
|
|
|
and-int/lit16 v2, v2, 0xff
|
|
|
|
int-to-byte v2, v2
|
|
|
|
iput-byte v2, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->flags:B
|
|
|
|
.line 392
|
|
sget-object v2, Lokhttp3/internal/http2/Http2Reader;->logger:Ljava/util/logging/Logger;
|
|
|
|
sget-object v3, Ljava/util/logging/Level;->FINE:Ljava/util/logging/Level;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/logging/Logger;->isLoggable(Ljava/util/logging/Level;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
iget v3, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->streamId:I
|
|
|
|
iget v4, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->length:I
|
|
|
|
iget-byte v5, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->flags:B
|
|
|
|
const/4 v6, 0x1
|
|
|
|
invoke-static {v6, v3, v4, v1, v5}, Lokhttp3/internal/http2/Http2;->frameLog(ZIIBB)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/logging/Logger;->fine(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
iget-object v2, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->source:Lokio/BufferedSource;
|
|
|
|
.line 393
|
|
invoke-interface {v2}, Lokio/BufferedSource;->readInt()I
|
|
|
|
move-result v2
|
|
|
|
const v3, 0x7fffffff
|
|
|
|
and-int/2addr v2, v3
|
|
|
|
iput v2, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->streamId:I
|
|
|
|
const/16 v3, 0x9
|
|
|
|
if-ne v1, v3, :cond_2
|
|
|
|
if-ne v2, v0, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
const-string v1, "TYPE_CONTINUATION streamId changed"
|
|
|
|
.line 395
|
|
invoke-static {v1, v0}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
.line 394
|
|
:cond_2
|
|
invoke-static {v1}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
|
|
|
|
move-result-object v0
|
|
|
|
filled-new-array {v0}, [Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "%s != TYPE_CONTINUATION"
|
|
|
|
invoke-static {v1, v0}, Lokhttp3/internal/http2/Http2;->ioException(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/IOException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public timeout()Lokio/Timeout;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/http2/Http2Reader$ContinuationSource;->source:Lokio/BufferedSource;
|
|
|
|
.line 380
|
|
invoke-interface {v0}, Lokio/Source;->timeout()Lokio/Timeout;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|