- 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
420 lines
11 KiB
Smali
420 lines
11 KiB
Smali
.class public final Lcom/facebook/ProgressOutputStream;
|
|
.super Ljava/io/FilterOutputStream;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/facebook/RequestOutputStream;
|
|
|
|
|
|
# instance fields
|
|
.field private batchProgress:J
|
|
|
|
.field private currentRequestProgress:Lcom/facebook/RequestProgress;
|
|
|
|
.field private lastReportedProgress:J
|
|
|
|
.field private final maxProgress:J
|
|
|
|
.field private final progressMap:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Lcom/facebook/GraphRequest;",
|
|
"Lcom/facebook/RequestProgress;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final requests:Lcom/facebook/GraphRequestBatch;
|
|
|
|
.field private final threshold:J
|
|
|
|
|
|
# direct methods
|
|
.method public static synthetic $r8$lambda$bypiO_m060nfwEkvF3Oj-1QAeG4(Lcom/facebook/GraphRequestBatch$Callback;Lcom/facebook/ProgressOutputStream;)V
|
|
.locals 0
|
|
|
|
.line 0
|
|
invoke-static {p0, p1}, Lcom/facebook/ProgressOutputStream;->reportBatchProgress$lambda-0(Lcom/facebook/GraphRequestBatch$Callback;Lcom/facebook/ProgressOutputStream;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/io/OutputStream;Lcom/facebook/GraphRequestBatch;Ljava/util/Map;J)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/io/OutputStream;",
|
|
"Lcom/facebook/GraphRequestBatch;",
|
|
"Ljava/util/Map<",
|
|
"Lcom/facebook/GraphRequest;",
|
|
"Lcom/facebook/RequestProgress;",
|
|
">;J)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "out"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "requests"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "progressMap"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 20
|
|
invoke-direct {p0, p1}, Ljava/io/FilterOutputStream;-><init>(Ljava/io/OutputStream;)V
|
|
|
|
iput-object p2, p0, Lcom/facebook/ProgressOutputStream;->requests:Lcom/facebook/GraphRequestBatch;
|
|
|
|
iput-object p3, p0, Lcom/facebook/ProgressOutputStream;->progressMap:Ljava/util/Map;
|
|
|
|
iput-wide p4, p0, Lcom/facebook/ProgressOutputStream;->maxProgress:J
|
|
|
|
.line 21
|
|
invoke-static {}, Lcom/facebook/FacebookSdk;->getOnProgressThreshold()J
|
|
|
|
move-result-wide p1
|
|
|
|
iput-wide p1, p0, Lcom/facebook/ProgressOutputStream;->threshold:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final addProgress(J)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/facebook/ProgressOutputStream;->currentRequestProgress:Lcom/facebook/RequestProgress;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 28
|
|
:cond_0
|
|
invoke-virtual {v0, p1, p2}, Lcom/facebook/RequestProgress;->addProgress(J)V
|
|
|
|
:goto_0
|
|
iget-wide v0, p0, Lcom/facebook/ProgressOutputStream;->batchProgress:J
|
|
|
|
add-long/2addr v0, p1
|
|
|
|
iput-wide v0, p0, Lcom/facebook/ProgressOutputStream;->batchProgress:J
|
|
|
|
iget-wide p1, p0, Lcom/facebook/ProgressOutputStream;->lastReportedProgress:J
|
|
|
|
iget-wide v2, p0, Lcom/facebook/ProgressOutputStream;->threshold:J
|
|
|
|
add-long/2addr p1, v2
|
|
|
|
cmp-long p1, v0, p1
|
|
|
|
if-gez p1, :cond_1
|
|
|
|
iget-wide p1, p0, Lcom/facebook/ProgressOutputStream;->maxProgress:J
|
|
|
|
cmp-long p1, v0, p1
|
|
|
|
if-ltz p1, :cond_2
|
|
|
|
.line 31
|
|
:cond_1
|
|
invoke-direct {p0}, Lcom/facebook/ProgressOutputStream;->reportBatchProgress()V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method private final reportBatchProgress()V
|
|
.locals 9
|
|
|
|
iget-wide v0, p0, Lcom/facebook/ProgressOutputStream;->batchProgress:J
|
|
|
|
iget-wide v2, p0, Lcom/facebook/ProgressOutputStream;->lastReportedProgress:J
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-lez v0, :cond_3
|
|
|
|
iget-object v0, p0, Lcom/facebook/ProgressOutputStream;->requests:Lcom/facebook/GraphRequestBatch;
|
|
|
|
.line 37
|
|
invoke-virtual {v0}, Lcom/facebook/GraphRequestBatch;->getCallbacks()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/facebook/GraphRequestBatch$Callback;
|
|
|
|
.line 38
|
|
instance-of v2, v1, Lcom/facebook/GraphRequestBatch$OnProgressCallback;
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
iget-object v2, p0, Lcom/facebook/ProgressOutputStream;->requests:Lcom/facebook/GraphRequestBatch;
|
|
|
|
.line 39
|
|
invoke-virtual {v2}, Lcom/facebook/GraphRequestBatch;->getCallbackHandler()Landroid/os/Handler;
|
|
|
|
move-result-object v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
new-instance v3, Lcom/facebook/ProgressOutputStream$$ExternalSyntheticLambda0;
|
|
|
|
invoke-direct {v3, v1, p0}, Lcom/facebook/ProgressOutputStream$$ExternalSyntheticLambda0;-><init>(Lcom/facebook/GraphRequestBatch$Callback;Lcom/facebook/ProgressOutputStream;)V
|
|
|
|
invoke-virtual {v2, v3}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v2
|
|
|
|
:goto_1
|
|
if-nez v2, :cond_0
|
|
|
|
.line 42
|
|
move-object v3, v1
|
|
|
|
check-cast v3, Lcom/facebook/GraphRequestBatch$OnProgressCallback;
|
|
|
|
iget-object v4, p0, Lcom/facebook/ProgressOutputStream;->requests:Lcom/facebook/GraphRequestBatch;
|
|
|
|
iget-wide v5, p0, Lcom/facebook/ProgressOutputStream;->batchProgress:J
|
|
|
|
iget-wide v7, p0, Lcom/facebook/ProgressOutputStream;->maxProgress:J
|
|
|
|
invoke-interface/range {v3 .. v8}, Lcom/facebook/GraphRequestBatch$OnProgressCallback;->onBatchProgress(Lcom/facebook/GraphRequestBatch;JJ)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iget-wide v0, p0, Lcom/facebook/ProgressOutputStream;->batchProgress:J
|
|
|
|
iput-wide v0, p0, Lcom/facebook/ProgressOutputStream;->lastReportedProgress:J
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method private static final reportBatchProgress$lambda-0(Lcom/facebook/GraphRequestBatch$Callback;Lcom/facebook/ProgressOutputStream;)V
|
|
.locals 7
|
|
|
|
const-string v0, "$callback"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "this$0"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 40
|
|
move-object v1, p0
|
|
|
|
check-cast v1, Lcom/facebook/GraphRequestBatch$OnProgressCallback;
|
|
|
|
iget-object v2, p1, Lcom/facebook/ProgressOutputStream;->requests:Lcom/facebook/GraphRequestBatch;
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/ProgressOutputStream;->getBatchProgress()J
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/ProgressOutputStream;->getMaxProgress()J
|
|
|
|
move-result-wide v5
|
|
|
|
invoke-interface/range {v1 .. v6}, Lcom/facebook/GraphRequestBatch$OnProgressCallback;->onBatchProgress(Lcom/facebook/GraphRequestBatch;JJ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public close()V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 73
|
|
invoke-super {p0}, Ljava/io/FilterOutputStream;->close()V
|
|
|
|
iget-object v0, p0, Lcom/facebook/ProgressOutputStream;->progressMap:Ljava/util/Map;
|
|
|
|
.line 74
|
|
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/facebook/RequestProgress;
|
|
|
|
.line 75
|
|
invoke-virtual {v1}, Lcom/facebook/RequestProgress;->reportProgress()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 77
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/facebook/ProgressOutputStream;->reportBatchProgress()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final getBatchProgress()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/facebook/ProgressOutputStream;->batchProgress:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final getMaxProgress()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/facebook/ProgressOutputStream;->maxProgress:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public setCurrentRequest(Lcom/facebook/GraphRequest;)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/facebook/ProgressOutputStream;->progressMap:Ljava/util/Map;
|
|
|
|
.line 50
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/facebook/RequestProgress;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
iput-object p1, p0, Lcom/facebook/ProgressOutputStream;->currentRequestProgress:Lcom/facebook/RequestProgress;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public write(I)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Ljava/io/FilterOutputStream;->out:Ljava/io/OutputStream;
|
|
|
|
.line 67
|
|
invoke-virtual {v0, p1}, Ljava/io/OutputStream;->write(I)V
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
.line 68
|
|
invoke-direct {p0, v0, v1}, Lcom/facebook/ProgressOutputStream;->addProgress(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public write([B)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "buffer"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Ljava/io/FilterOutputStream;->out:Ljava/io/OutputStream;
|
|
|
|
.line 55
|
|
invoke-virtual {v0, p1}, Ljava/io/OutputStream;->write([B)V
|
|
|
|
.line 56
|
|
array-length p1, p1
|
|
|
|
int-to-long v0, p1
|
|
|
|
invoke-direct {p0, v0, v1}, Lcom/facebook/ProgressOutputStream;->addProgress(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public write([BII)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "buffer"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Ljava/io/FilterOutputStream;->out:Ljava/io/OutputStream;
|
|
|
|
.line 61
|
|
invoke-virtual {v0, p1, p2, p3}, Ljava/io/OutputStream;->write([BII)V
|
|
|
|
int-to-long p1, p3
|
|
|
|
.line 62
|
|
invoke-direct {p0, p1, p2}, Lcom/facebook/ProgressOutputStream;->addProgress(J)V
|
|
|
|
return-void
|
|
.end method
|