- 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
488 lines
12 KiB
Smali
488 lines
12 KiB
Smali
.class public final Lcom/vungle/ads/internal/network/OkHttpCall;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/vungle/ads/internal/network/Call;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/vungle/ads/internal/network/OkHttpCall$NoContentResponseBody;,
|
|
Lcom/vungle/ads/internal/network/OkHttpCall$ExceptionCatchingResponseBody;,
|
|
Lcom/vungle/ads/internal/network/OkHttpCall$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lcom/vungle/ads/internal/network/Call<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final Companion:Lcom/vungle/ads/internal/network/OkHttpCall$Companion;
|
|
|
|
.field private static final TAG:Ljava/lang/String; = "OkHttpCall"
|
|
|
|
|
|
# instance fields
|
|
.field private volatile canceled:Z
|
|
|
|
.field private final rawCall:Lokhttp3/Call;
|
|
|
|
.field private final responseConverter:Lcom/vungle/ads/internal/network/converters/Converter;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/vungle/ads/internal/network/converters/Converter<",
|
|
"Lokhttp3/ResponseBody;",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lcom/vungle/ads/internal/network/OkHttpCall$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/vungle/ads/internal/network/OkHttpCall$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/vungle/ads/internal/network/OkHttpCall;->Companion:Lcom/vungle/ads/internal/network/OkHttpCall$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lokhttp3/Call;Lcom/vungle/ads/internal/network/converters/Converter;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lokhttp3/Call;",
|
|
"Lcom/vungle/ads/internal/network/converters/Converter<",
|
|
"Lokhttp3/ResponseBody;",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "rawCall"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "responseConverter"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 32
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/vungle/ads/internal/network/OkHttpCall;->rawCall:Lokhttp3/Call;
|
|
|
|
iput-object p2, p0, Lcom/vungle/ads/internal/network/OkHttpCall;->responseConverter:Lcom/vungle/ads/internal/network/converters/Converter;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final buffer(Lokhttp3/ResponseBody;)Lokhttp3/ResponseBody;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 125
|
|
new-instance v0, Lokio/Buffer;
|
|
|
|
invoke-direct {v0}, Lokio/Buffer;-><init>()V
|
|
|
|
.line 126
|
|
invoke-virtual {p1}, Lokhttp3/ResponseBody;->source()Lokio/BufferedSource;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v1, v0}, Lokio/BufferedSource;->readAll(Lokio/Sink;)J
|
|
|
|
.line 127
|
|
sget-object v1, Lokhttp3/ResponseBody;->Companion:Lokhttp3/ResponseBody$Companion;
|
|
|
|
invoke-virtual {p1}, Lokhttp3/ResponseBody;->contentType()Lokhttp3/MediaType;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p1}, Lokhttp3/ResponseBody;->contentLength()J
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-virtual {v1, v0, v2, v3, v4}, Lokhttp3/ResponseBody$Companion;->create(Lokio/BufferedSource;Lokhttp3/MediaType;J)Lokhttp3/ResponseBody;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public cancel()V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lcom/vungle/ads/internal/network/OkHttpCall;->canceled:Z
|
|
|
|
.line 133
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/vungle/ads/internal/network/OkHttpCall;->rawCall:Lokhttp3/Call;
|
|
|
|
sget-object v1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
.line 134
|
|
invoke-interface {v0}, Lokhttp3/Call;->cancel()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
.line 133
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public enqueue(Lcom/vungle/ads/internal/network/Callback;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/vungle/ads/internal/network/Callback<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "callback"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "callback == null"
|
|
|
|
.line 39
|
|
invoke-static {p1, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 41
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/vungle/ads/internal/network/OkHttpCall;->rawCall:Lokhttp3/Call;
|
|
|
|
sget-object v1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
iget-boolean v1, p0, Lcom/vungle/ads/internal/network/OkHttpCall;->canceled:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 43
|
|
invoke-interface {v0}, Lokhttp3/Call;->cancel()V
|
|
|
|
.line 46
|
|
:cond_0
|
|
new-instance v1, Lcom/vungle/ads/internal/network/OkHttpCall$enqueue$2;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/vungle/ads/internal/network/OkHttpCall$enqueue$2;-><init>(Lcom/vungle/ads/internal/network/OkHttpCall;Lcom/vungle/ads/internal/network/Callback;)V
|
|
|
|
.line 45
|
|
invoke-interface {v0, v1}, Lokhttp3/Call;->enqueue(Lokhttp3/Callback;)V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 41
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public execute()Lcom/vungle/ads/internal/network/Response;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/vungle/ads/internal/network/Response<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 84
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/vungle/ads/internal/network/OkHttpCall;->rawCall:Lokhttp3/Call;
|
|
|
|
sget-object v1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
iget-boolean v1, p0, Lcom/vungle/ads/internal/network/OkHttpCall;->canceled:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 86
|
|
invoke-interface {v0}, Lokhttp3/Call;->cancel()V
|
|
|
|
.line 88
|
|
:cond_0
|
|
invoke-interface {v0}, Lokhttp3/Call;->execute()Lokhttp3/Response;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/vungle/ads/internal/network/OkHttpCall;->parseResponse(Lokhttp3/Response;)Lcom/vungle/ads/internal/network/Response;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
.line 84
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public isCanceled()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/vungle/ads/internal/network/OkHttpCall;->canceled:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
.line 141
|
|
:cond_0
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/vungle/ads/internal/network/OkHttpCall;->rawCall:Lokhttp3/Call;
|
|
|
|
invoke-interface {v0}, Lokhttp3/Call;->isCanceled()Z
|
|
|
|
move-result v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return v0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
monitor-exit p0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final parseResponse(Lokhttp3/Response;)Lcom/vungle/ads/internal/network/Response;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lokhttp3/Response;",
|
|
")",
|
|
"Lcom/vungle/ads/internal/network/Response<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "rawResp"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 93
|
|
invoke-virtual {p1}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-object v1
|
|
|
|
.line 96
|
|
:cond_0
|
|
invoke-virtual {p1}, Lokhttp3/Response;->newBuilder()Lokhttp3/Response$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
.line 97
|
|
new-instance v2, Lcom/vungle/ads/internal/network/OkHttpCall$NoContentResponseBody;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/ResponseBody;->contentType()Lokhttp3/MediaType;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0}, Lokhttp3/ResponseBody;->contentLength()J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-direct {v2, v3, v4, v5}, Lcom/vungle/ads/internal/network/OkHttpCall$NoContentResponseBody;-><init>(Lokhttp3/MediaType;J)V
|
|
|
|
invoke-virtual {p1, v2}, Lokhttp3/Response$Builder;->body(Lokhttp3/ResponseBody;)Lokhttp3/Response$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
.line 98
|
|
invoke-virtual {p1}, Lokhttp3/Response$Builder;->build()Lokhttp3/Response;
|
|
|
|
move-result-object p1
|
|
|
|
.line 99
|
|
invoke-virtual {p1}, Lokhttp3/Response;->code()I
|
|
|
|
move-result v2
|
|
|
|
const/16 v3, 0xc8
|
|
|
|
if-lt v2, v3, :cond_3
|
|
|
|
const/16 v3, 0x12c
|
|
|
|
if-lt v2, v3, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/16 v3, 0xcc
|
|
|
|
if-eq v2, v3, :cond_2
|
|
|
|
const/16 v3, 0xcd
|
|
|
|
if-eq v2, v3, :cond_2
|
|
|
|
.line 111
|
|
new-instance v1, Lcom/vungle/ads/internal/network/OkHttpCall$ExceptionCatchingResponseBody;
|
|
|
|
invoke-direct {v1, v0}, Lcom/vungle/ads/internal/network/OkHttpCall$ExceptionCatchingResponseBody;-><init>(Lokhttp3/ResponseBody;)V
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/vungle/ads/internal/network/OkHttpCall;->responseConverter:Lcom/vungle/ads/internal/network/converters/Converter;
|
|
|
|
.line 113
|
|
invoke-interface {v0, v1}, Lcom/vungle/ads/internal/network/converters/Converter;->convert(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
.line 114
|
|
sget-object v2, Lcom/vungle/ads/internal/network/Response;->Companion:Lcom/vungle/ads/internal/network/Response$Companion;
|
|
|
|
invoke-virtual {v2, v0, p1}, Lcom/vungle/ads/internal/network/Response$Companion;->success(Ljava/lang/Object;Lokhttp3/Response;)Lcom/vungle/ads/internal/network/Response;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p1
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 118
|
|
invoke-virtual {v1}, Lcom/vungle/ads/internal/network/OkHttpCall$ExceptionCatchingResponseBody;->throwIfCaught()V
|
|
|
|
.line 119
|
|
throw p1
|
|
|
|
.line 108
|
|
:cond_2
|
|
invoke-virtual {v0}, Lokhttp3/ResponseBody;->close()V
|
|
|
|
.line 109
|
|
sget-object v0, Lcom/vungle/ads/internal/network/Response;->Companion:Lcom/vungle/ads/internal/network/Response$Companion;
|
|
|
|
invoke-virtual {v0, v1, p1}, Lcom/vungle/ads/internal/network/Response$Companion;->success(Ljava/lang/Object;Lokhttp3/Response;)Lcom/vungle/ads/internal/network/Response;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 103
|
|
:cond_3
|
|
:goto_0
|
|
:try_start_1
|
|
invoke-direct {p0, v0}, Lcom/vungle/ads/internal/network/OkHttpCall;->buffer(Lokhttp3/ResponseBody;)Lokhttp3/ResponseBody;
|
|
|
|
move-result-object v2
|
|
|
|
.line 104
|
|
sget-object v3, Lcom/vungle/ads/internal/network/Response;->Companion:Lcom/vungle/ads/internal/network/Response$Companion;
|
|
|
|
invoke-virtual {v3, v2, p1}, Lcom/vungle/ads/internal/network/Response$Companion;->error(Lokhttp3/ResponseBody;Lokhttp3/Response;)Lcom/vungle/ads/internal/network/Response;
|
|
|
|
move-result-object p1
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 101
|
|
invoke-static {v0, v1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
:try_start_2
|
|
throw p1
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception v1
|
|
|
|
invoke-static {v0, p1}, Lkotlin/io/CloseableKt;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
.end method
|