- 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
220 lines
5.3 KiB
Smali
220 lines
5.3 KiB
Smali
.class final Lcom/mbridge/msdk/thrid/okio/Okio$2;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/mbridge/msdk/thrid/okio/Source;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/mbridge/msdk/thrid/okio/Okio;->source(Ljava/io/InputStream;Lcom/mbridge/msdk/thrid/okio/Timeout;)Lcom/mbridge/msdk/thrid/okio/Source;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic val$in:Ljava/io/InputStream;
|
|
|
|
.field final synthetic val$timeout:Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okio/Timeout;Ljava/io/InputStream;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okio/Okio$2;->val$timeout:Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
|
|
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okio/Okio$2;->val$in:Ljava/io/InputStream;
|
|
|
|
.line 131
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public close()V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/Okio$2;->val$in:Ljava/io/InputStream;
|
|
|
|
.line 151
|
|
invoke-virtual {v0}, Ljava/io/InputStream;->close()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public read(Lcom/mbridge/msdk/thrid/okio/Buffer;J)J
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p2, v0
|
|
|
|
if-ltz v2, :cond_3
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
return-wide v0
|
|
|
|
:cond_0
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/Okio$2;->val$timeout:Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
|
|
.line 136
|
|
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Timeout;->throwIfReached()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 137
|
|
invoke-virtual {p1, v0}, Lcom/mbridge/msdk/thrid/okio/Buffer;->writableSegment(I)Lcom/mbridge/msdk/thrid/okio/Segment;
|
|
|
|
move-result-object v0
|
|
|
|
.line 138
|
|
iget v1, v0, Lcom/mbridge/msdk/thrid/okio/Segment;->limit:I
|
|
|
|
rsub-int v1, v1, 0x2000
|
|
|
|
int-to-long v1, v1
|
|
|
|
invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide p2
|
|
|
|
long-to-int p2, p2
|
|
|
|
iget-object p3, p0, Lcom/mbridge/msdk/thrid/okio/Okio$2;->val$in:Ljava/io/InputStream;
|
|
|
|
.line 139
|
|
iget-object v1, v0, Lcom/mbridge/msdk/thrid/okio/Segment;->data:[B
|
|
|
|
iget v2, v0, Lcom/mbridge/msdk/thrid/okio/Segment;->limit:I
|
|
|
|
invoke-virtual {p3, v1, v2, p2}, Ljava/io/InputStream;->read([BII)I
|
|
|
|
move-result p2
|
|
|
|
const/4 p3, -0x1
|
|
|
|
if-ne p2, p3, :cond_1
|
|
|
|
const-wide/16 p1, -0x1
|
|
|
|
return-wide p1
|
|
|
|
.line 141
|
|
:cond_1
|
|
iget p3, v0, Lcom/mbridge/msdk/thrid/okio/Segment;->limit:I
|
|
|
|
add-int/2addr p3, p2
|
|
|
|
iput p3, v0, Lcom/mbridge/msdk/thrid/okio/Segment;->limit:I
|
|
|
|
.line 142
|
|
iget-wide v0, p1, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
|
|
|
|
int-to-long p2, p2
|
|
|
|
add-long/2addr v0, p2
|
|
|
|
iput-wide v0, p1, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
|
|
:try_end_0
|
|
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-wide p2
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 145
|
|
invoke-static {p1}, Lcom/mbridge/msdk/thrid/okio/Okio;->isAndroidGetsocknameError(Ljava/lang/AssertionError;)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
new-instance p2, Ljava/io/IOException;
|
|
|
|
invoke-direct {p2, p1}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw p2
|
|
|
|
.line 146
|
|
:cond_2
|
|
throw p1
|
|
|
|
.line 133
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "byteCount < 0: "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/Okio$2;->val$timeout:Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 159
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "source("
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/Okio$2;->val$in:Ljava/io/InputStream;
|
|
|
|
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
|