- 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
199 lines
4.6 KiB
Smali
199 lines
4.6 KiB
Smali
.class public Lcom/ea/nimble/HttpRequest;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/ea/nimble/IHttpRequest;
|
|
|
|
|
|
# static fields
|
|
.field private static DEFAULT_NETWORK_TIMEOUT:I = 0x1e
|
|
|
|
|
|
# instance fields
|
|
.field public data:Ljava/io/ByteArrayOutputStream;
|
|
|
|
.field public headers:Ljava/util/HashMap;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/HashMap<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public method:Lcom/ea/nimble/IHttpRequest$Method;
|
|
|
|
.field public runInBackground:Z
|
|
|
|
.field public targetFilePath:Ljava/lang/String;
|
|
|
|
.field public timeout:D
|
|
|
|
.field public url:Ljava/net/URL;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 3
|
|
|
|
.line 14
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/ea/nimble/HttpRequest;->url:Ljava/net/URL;
|
|
|
|
.line 16
|
|
sget-object v1, Lcom/ea/nimble/IHttpRequest$Method;->GET:Lcom/ea/nimble/IHttpRequest$Method;
|
|
|
|
iput-object v1, p0, Lcom/ea/nimble/HttpRequest;->method:Lcom/ea/nimble/IHttpRequest$Method;
|
|
|
|
.line 17
|
|
new-instance v1, Ljava/io/ByteArrayOutputStream;
|
|
|
|
invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V
|
|
|
|
iput-object v1, p0, Lcom/ea/nimble/HttpRequest;->data:Ljava/io/ByteArrayOutputStream;
|
|
|
|
.line 18
|
|
new-instance v1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object v1, p0, Lcom/ea/nimble/HttpRequest;->headers:Ljava/util/HashMap;
|
|
|
|
sget v1, Lcom/ea/nimble/HttpRequest;->DEFAULT_NETWORK_TIMEOUT:I
|
|
|
|
int-to-double v1, v1
|
|
|
|
iput-wide v1, p0, Lcom/ea/nimble/HttpRequest;->timeout:D
|
|
|
|
iput-object v0, p0, Lcom/ea/nimble/HttpRequest;->targetFilePath:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/net/URL;)V
|
|
.locals 0
|
|
|
|
.line 25
|
|
invoke-direct {p0}, Lcom/ea/nimble/HttpRequest;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/ea/nimble/HttpRequest;->url:Ljava/net/URL;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getData()[B
|
|
.locals 1
|
|
|
|
.line 45
|
|
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
|
|
|
|
iget-object v0, p0, Lcom/ea/nimble/HttpRequest;->data:Ljava/io/ByteArrayOutputStream;
|
|
|
|
.line 46
|
|
invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getHeaders()Ljava/util/HashMap;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/HashMap<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 52
|
|
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
|
|
|
|
iget-object v0, p0, Lcom/ea/nimble/HttpRequest;->headers:Ljava/util/HashMap;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic getHeaders()Ljava/util/Map;
|
|
.locals 1
|
|
|
|
.line 9
|
|
invoke-virtual {p0}, Lcom/ea/nimble/HttpRequest;->getHeaders()Ljava/util/HashMap;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getMethod()Lcom/ea/nimble/IHttpRequest$Method;
|
|
.locals 1
|
|
|
|
.line 38
|
|
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
|
|
|
|
iget-object v0, p0, Lcom/ea/nimble/HttpRequest;->method:Lcom/ea/nimble/IHttpRequest$Method;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getRunInBackground()Z
|
|
.locals 1
|
|
|
|
.line 73
|
|
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
|
|
|
|
iget-boolean v0, p0, Lcom/ea/nimble/HttpRequest;->runInBackground:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTargetFilePath()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 66
|
|
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
|
|
|
|
iget-object v0, p0, Lcom/ea/nimble/HttpRequest;->targetFilePath:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTimeout()D
|
|
.locals 2
|
|
|
|
.line 59
|
|
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
|
|
|
|
iget-wide v0, p0, Lcom/ea/nimble/HttpRequest;->timeout:D
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public getUrl()Ljava/net/URL;
|
|
.locals 1
|
|
|
|
.line 31
|
|
invoke-static {p0}, Lcom/ea/nimble/Log$Helper;->LOGPUBLICFUNC(Ljava/lang/Object;)V
|
|
|
|
iget-object v0, p0, Lcom/ea/nimble/HttpRequest;->url:Ljava/net/URL;
|
|
|
|
return-object v0
|
|
.end method
|