- 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
227 lines
6.4 KiB
Smali
227 lines
6.4 KiB
Smali
.class public final Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;
|
|
.super Ljava/io/InputStream;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field private closed:Z
|
|
|
|
.field private final dataSource:Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSource;
|
|
|
|
.field private final dataSpec:Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSpec;
|
|
|
|
.field private opened:Z
|
|
|
|
.field private final singleByteArray:[B
|
|
|
|
.field private totalBytesRead:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSource;Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSpec;)V
|
|
.locals 1
|
|
|
|
.line 22
|
|
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->opened:Z
|
|
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->closed:Z
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->dataSource:Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSource;
|
|
|
|
iput-object p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->dataSpec:Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSpec;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
new-array p1, p1, [B
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->singleByteArray:[B
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private checkOpened()V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->opened:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->dataSource:Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSource;
|
|
|
|
iget-object v1, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->dataSpec:Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSpec;
|
|
|
|
.line 72
|
|
invoke-interface {v0, v1}, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSource;->open(Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSpec;)J
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->opened:Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final bytesRead()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->totalBytesRead:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final close()V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->closed:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->dataSource:Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSource;
|
|
|
|
.line 65
|
|
invoke-interface {v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSource;->close()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->closed:Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final open()V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 35
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->checkOpened()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final read()I
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->singleByteArray:[B
|
|
|
|
.line 40
|
|
invoke-virtual {p0, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->read([B)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->singleByteArray:[B
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 41
|
|
aget-byte v0, v0, v1
|
|
|
|
and-int/lit16 v1, v0, 0xff
|
|
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public final read([B)I
|
|
.locals 2
|
|
.param p1 # [B
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 46
|
|
array-length v0, p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p0, p1, v1, v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->read([BII)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final read([BII)I
|
|
.locals 2
|
|
.param p1 # [B
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->closed:Z
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
.line 51
|
|
invoke-static {v0}, Lcom/mbridge/msdk/playercommon/exoplayer2/util/Assertions;->checkState(Z)V
|
|
|
|
.line 52
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->checkOpened()V
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->dataSource:Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSource;
|
|
|
|
.line 53
|
|
invoke-interface {v0, p1, p2, p3}, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSource;->read([BII)I
|
|
|
|
move-result p1
|
|
|
|
const/4 p2, -0x1
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
return p2
|
|
|
|
:cond_0
|
|
iget-wide p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->totalBytesRead:J
|
|
|
|
int-to-long v0, p1
|
|
|
|
add-long/2addr p2, v0
|
|
|
|
iput-wide p2, p0, Lcom/mbridge/msdk/playercommon/exoplayer2/upstream/DataSourceInputStream;->totalBytesRead:J
|
|
|
|
return p1
|
|
.end method
|