- 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
240 lines
6.2 KiB
Smali
240 lines
6.2 KiB
Smali
.class public final Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/mbridge/msdk/thrid/okhttp/FormBody;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Builder"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final charset:Ljava/nio/charset/Charset;
|
|
|
|
.field private final names:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final values:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 111
|
|
invoke-direct {p0, v0}, Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;-><init>(Ljava/nio/charset/Charset;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/nio/charset/Charset;)V
|
|
.locals 1
|
|
|
|
.line 114
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 106
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;->names:Ljava/util/List;
|
|
|
|
.line 107
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;->values:Ljava/util/List;
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;->charset:Ljava/nio/charset/Charset;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public add(Ljava/lang/String;Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;
|
|
.locals 8
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;->names:Ljava/util/List;
|
|
|
|
const-string v2, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x1
|
|
|
|
iget-object v7, p0, Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;->charset:Ljava/nio/charset/Charset;
|
|
|
|
move-object v1, p1
|
|
|
|
.line 122
|
|
invoke-static/range {v1 .. v7}, Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;->canonicalize(Ljava/lang/String;Ljava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;->values:Ljava/util/List;
|
|
|
|
const-string v1, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
iget-object v6, p0, Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;->charset:Ljava/nio/charset/Charset;
|
|
|
|
move-object v0, p2
|
|
|
|
.line 123
|
|
invoke-static/range {v0 .. v6}, Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;->canonicalize(Ljava/lang/String;Ljava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
return-object p0
|
|
|
|
.line 120
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
const-string p2, "value == null"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 119
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
const-string p2, "name == null"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public addEncoded(Ljava/lang/String;Ljava/lang/String;)Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;
|
|
.locals 8
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;->names:Ljava/util/List;
|
|
|
|
const-string v2, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
|
|
|
|
const/4 v3, 0x1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x1
|
|
|
|
iget-object v7, p0, Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;->charset:Ljava/nio/charset/Charset;
|
|
|
|
move-object v1, p1
|
|
|
|
.line 131
|
|
invoke-static/range {v1 .. v7}, Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;->canonicalize(Ljava/lang/String;Ljava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
iget-object p1, p0, Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;->values:Ljava/util/List;
|
|
|
|
const-string v1, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
iget-object v6, p0, Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;->charset:Ljava/nio/charset/Charset;
|
|
|
|
move-object v0, p2
|
|
|
|
.line 132
|
|
invoke-static/range {v0 .. v6}, Lcom/mbridge/msdk/thrid/okhttp/HttpUrl;->canonicalize(Ljava/lang/String;Ljava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
return-object p0
|
|
|
|
.line 129
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
const-string p2, "value == null"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 128
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
const-string p2, "name == null"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public build()Lcom/mbridge/msdk/thrid/okhttp/FormBody;
|
|
.locals 3
|
|
|
|
.line 137
|
|
new-instance v0, Lcom/mbridge/msdk/thrid/okhttp/FormBody;
|
|
|
|
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;->names:Ljava/util/List;
|
|
|
|
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okhttp/FormBody$Builder;->values:Ljava/util/List;
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/mbridge/msdk/thrid/okhttp/FormBody;-><init>(Ljava/util/List;Ljava/util/List;)V
|
|
|
|
return-object v0
|
|
.end method
|