- 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
196 lines
4.9 KiB
Smali
196 lines
4.9 KiB
Smali
.class public final Lcom/facebook/ProgressNoopOutputStream;
|
|
.super Ljava/io/OutputStream;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/facebook/RequestOutputStream;
|
|
|
|
|
|
# instance fields
|
|
.field private final callbackHandler:Landroid/os/Handler;
|
|
|
|
.field private currentRequest:Lcom/facebook/GraphRequest;
|
|
|
|
.field private currentRequestProgress:Lcom/facebook/RequestProgress;
|
|
|
|
.field private maxProgress:I
|
|
|
|
.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
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/os/Handler;)V
|
|
.locals 0
|
|
|
|
.line 15
|
|
invoke-direct {p0}, Ljava/io/OutputStream;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/facebook/ProgressNoopOutputStream;->callbackHandler:Landroid/os/Handler;
|
|
|
|
.line 16
|
|
new-instance p1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/facebook/ProgressNoopOutputStream;->progressMap:Ljava/util/Map;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final addProgress(J)V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/facebook/ProgressNoopOutputStream;->currentRequest:Lcom/facebook/GraphRequest;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/facebook/ProgressNoopOutputStream;->currentRequestProgress:Lcom/facebook/RequestProgress;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 33
|
|
new-instance v1, Lcom/facebook/RequestProgress;
|
|
|
|
iget-object v2, p0, Lcom/facebook/ProgressNoopOutputStream;->callbackHandler:Landroid/os/Handler;
|
|
|
|
invoke-direct {v1, v2, v0}, Lcom/facebook/RequestProgress;-><init>(Landroid/os/Handler;Lcom/facebook/GraphRequest;)V
|
|
|
|
iput-object v1, p0, Lcom/facebook/ProgressNoopOutputStream;->currentRequestProgress:Lcom/facebook/RequestProgress;
|
|
|
|
iget-object v2, p0, Lcom/facebook/ProgressNoopOutputStream;->progressMap:Ljava/util/Map;
|
|
|
|
.line 35
|
|
invoke-interface {v2, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/facebook/ProgressNoopOutputStream;->currentRequestProgress:Lcom/facebook/RequestProgress;
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
.line 37
|
|
:cond_2
|
|
invoke-virtual {v0, p1, p2}, Lcom/facebook/RequestProgress;->addToMax(J)V
|
|
|
|
:goto_0
|
|
iget v0, p0, Lcom/facebook/ProgressNoopOutputStream;->maxProgress:I
|
|
|
|
long-to-int p1, p1
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
iput v0, p0, Lcom/facebook/ProgressNoopOutputStream;->maxProgress:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final getMaxProgress()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/facebook/ProgressNoopOutputStream;->maxProgress:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getProgressMap()Ljava/util/Map;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Map<",
|
|
"Lcom/facebook/GraphRequest;",
|
|
"Lcom/facebook/RequestProgress;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/facebook/ProgressNoopOutputStream;->progressMap:Ljava/util/Map;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public setCurrentRequest(Lcom/facebook/GraphRequest;)V
|
|
.locals 1
|
|
|
|
iput-object p1, p0, Lcom/facebook/ProgressNoopOutputStream;->currentRequest:Lcom/facebook/GraphRequest;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/facebook/ProgressNoopOutputStream;->progressMap:Ljava/util/Map;
|
|
|
|
.line 24
|
|
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/ProgressNoopOutputStream;->currentRequestProgress:Lcom/facebook/RequestProgress;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public write(I)V
|
|
.locals 2
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
.line 50
|
|
invoke-virtual {p0, v0, v1}, Lcom/facebook/ProgressNoopOutputStream;->addProgress(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public write([B)V
|
|
.locals 2
|
|
|
|
const-string v0, "buffer"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 42
|
|
array-length p1, p1
|
|
|
|
int-to-long v0, p1
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/facebook/ProgressNoopOutputStream;->addProgress(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public write([BII)V
|
|
.locals 0
|
|
|
|
const-string p2, "buffer"
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
int-to-long p1, p3
|
|
|
|
.line 46
|
|
invoke-virtual {p0, p1, p2}, Lcom/facebook/ProgressNoopOutputStream;->addProgress(J)V
|
|
|
|
return-void
|
|
.end method
|