- 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
276 lines
5.8 KiB
Smali
276 lines
5.8 KiB
Smali
.class public final Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;
|
|
.super Ljava/io/FilterInputStream;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/firebase/messaging/ByteStreams;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "LimitedInputStream"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public left:J
|
|
|
|
.field public mark:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/io/InputStream;J)V
|
|
.locals 2
|
|
|
|
.line 137
|
|
invoke-direct {p0, p1}, Ljava/io/FilterInputStream;-><init>(Ljava/io/InputStream;)V
|
|
|
|
const-wide/16 v0, -0x1
|
|
|
|
iput-wide v0, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->mark:J
|
|
|
|
iput-wide p2, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->left:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public available()I
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
|
|
|
|
.line 143
|
|
invoke-virtual {v0}, Ljava/io/InputStream;->available()I
|
|
|
|
move-result v0
|
|
|
|
int-to-long v0, v0
|
|
|
|
iget-wide v2, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->left:J
|
|
|
|
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v0
|
|
|
|
long-to-int v0, v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public declared-synchronized mark(I)V
|
|
.locals 2
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
|
|
|
|
.line 149
|
|
invoke-virtual {v0, p1}, Ljava/io/InputStream;->mark(I)V
|
|
|
|
iget-wide v0, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->left:J
|
|
|
|
iput-wide v0, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->mark:J
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 151
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public read()I
|
|
.locals 5
|
|
|
|
iget-wide v0, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->left:J
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
|
|
|
|
.line 159
|
|
invoke-virtual {v0}, Ljava/io/InputStream;->read()I
|
|
|
|
move-result v0
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
iget-wide v1, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->left:J
|
|
|
|
const-wide/16 v3, 0x1
|
|
|
|
sub-long/2addr v1, v3
|
|
|
|
iput-wide v1, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->left:J
|
|
|
|
:cond_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public read([BII)I
|
|
.locals 6
|
|
|
|
iget-wide v0, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->left:J
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
const/4 v3, -0x1
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
return v3
|
|
|
|
:cond_0
|
|
int-to-long v4, p3
|
|
|
|
.line 172
|
|
invoke-static {v4, v5, v0, v1}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v0
|
|
|
|
long-to-int p3, v0
|
|
|
|
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
|
|
|
|
.line 173
|
|
invoke-virtual {v0, p1, p2, p3}, Ljava/io/InputStream;->read([BII)I
|
|
|
|
move-result p1
|
|
|
|
if-eq p1, v3, :cond_1
|
|
|
|
iget-wide p2, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->left:J
|
|
|
|
int-to-long v0, p1
|
|
|
|
sub-long/2addr p2, v0
|
|
|
|
iput-wide p2, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->left:J
|
|
|
|
:cond_1
|
|
return p1
|
|
.end method
|
|
|
|
.method public declared-synchronized reset()V
|
|
.locals 4
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
|
|
|
|
.line 182
|
|
invoke-virtual {v0}, Ljava/io/InputStream;->markSupported()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-wide v0, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->mark:J
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
|
|
|
|
.line 189
|
|
invoke-virtual {v0}, Ljava/io/InputStream;->reset()V
|
|
|
|
iget-wide v0, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->mark:J
|
|
|
|
iput-wide v0, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->left:J
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 191
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
goto :goto_0
|
|
|
|
.line 186
|
|
:cond_0
|
|
:try_start_1
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
const-string v1, "Mark not set"
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
.line 183
|
|
:cond_1
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
const-string v1, "Mark not supported"
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 191
|
|
:goto_0
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public skip(J)J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->left:J
|
|
|
|
.line 195
|
|
invoke-static {p1, p2, v0, v1}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide p1
|
|
|
|
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
|
|
|
|
.line 196
|
|
invoke-virtual {v0, p1, p2}, Ljava/io/InputStream;->skip(J)J
|
|
|
|
move-result-wide p1
|
|
|
|
iget-wide v0, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->left:J
|
|
|
|
sub-long/2addr v0, p1
|
|
|
|
iput-wide v0, p0, Lcom/google/firebase/messaging/ByteStreams$LimitedInputStream;->left:J
|
|
|
|
return-wide p1
|
|
.end method
|