Files
rr3-apk/smali_classes2/com/fyber/inneractive/sdk/network/k0.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- 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
2026-02-18 16:13:44 -08:00

325 lines
7.8 KiB
Smali

.class public final Lcom/fyber/inneractive/sdk/network/k0;
.super Lcom/fyber/inneractive/sdk/network/f0;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/fyber/inneractive/sdk/network/f0<",
"Lcom/fyber/inneractive/sdk/ignite/IgniteResponseOuterClass$IgniteResponse;",
">;"
}
.end annotation
# instance fields
.field public final p:[B
.field public final q:Ljava/util/concurrent/atomic/AtomicInteger;
# direct methods
.method public constructor <init>(Lcom/fyber/inneractive/sdk/ignite/b;[BLcom/fyber/inneractive/sdk/network/g;Lcom/fyber/inneractive/sdk/config/global/s;)V
.locals 0
.line 1
invoke-direct {p0, p1, p3, p4}, Lcom/fyber/inneractive/sdk/network/f0;-><init>(Lcom/fyber/inneractive/sdk/network/w;Lcom/fyber/inneractive/sdk/network/g;Lcom/fyber/inneractive/sdk/config/global/s;)V
.line 2
new-instance p1, Ljava/util/concurrent/atomic/AtomicInteger;
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
iput-object p1, p0, Lcom/fyber/inneractive/sdk/network/k0;->q:Ljava/util/concurrent/atomic/AtomicInteger;
iput-object p2, p0, Lcom/fyber/inneractive/sdk/network/k0;->p:[B
return-void
.end method
# virtual methods
.method public final a(Lcom/fyber/inneractive/sdk/network/j;Ljava/util/Map;I)Lcom/fyber/inneractive/sdk/network/b0;
.locals 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/fyber/inneractive/sdk/network/j;",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/util/List<",
"Ljava/lang/String;",
">;>;I)",
"Lcom/fyber/inneractive/sdk/network/b0;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
const-string p2, "failed parse ignite network request"
const/4 p3, 0x0
.line 1
:try_start_0
new-instance v0, Lcom/fyber/inneractive/sdk/network/b0;
invoke-direct {v0}, Lcom/fyber/inneractive/sdk/network/b0;-><init>()V
.line 2
iget-object p1, p1, Lcom/fyber/inneractive/sdk/network/j;->c:Ljava/io/InputStream;
if-eqz p1, :cond_3
.line 3
sget-object v1, Lcom/fyber/inneractive/sdk/util/g;->b:Lcom/fyber/inneractive/sdk/util/g;
.line 4
iget-object v1, v1, Lcom/fyber/inneractive/sdk/util/g;->a:Ljava/util/concurrent/ConcurrentLinkedQueue;
.line 5
invoke-virtual {v1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->poll()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/nio/ByteBuffer;
if-nez v1, :cond_0
const/16 v1, 0x4000
.line 6
invoke-static {v1}, Ljava/nio/ByteBuffer;->allocateDirect(I)Ljava/nio/ByteBuffer;
move-result-object v1
goto :goto_0
:catchall_0
move-exception p1
goto :goto_2
:catch_0
move-exception p1
goto :goto_3
.line 7
:cond_0
:goto_0
new-instance v2, Ljava/io/ByteArrayOutputStream;
invoke-direct {v2}, Ljava/io/ByteArrayOutputStream;-><init>()V
if-eqz v1, :cond_1
.line 8
invoke-virtual {v1}, Ljava/nio/ByteBuffer;->hasArray()Z
move-result v3
if-eqz v3, :cond_1
.line 9
invoke-virtual {v1}, Ljava/nio/ByteBuffer;->array()[B
move-result-object v3
goto :goto_1
:cond_1
const/16 v3, 0x2000
new-array v3, v3, [B
.line 12
:goto_1
array-length v4, v3
invoke-virtual {p1, v3, p3, v4}, Ljava/io/InputStream;->read([BII)I
move-result v4
const/4 v5, -0x1
if-eq v4, v5, :cond_2
.line 13
invoke-virtual {v2, v3, p3, v4}, Ljava/io/ByteArrayOutputStream;->write([BII)V
goto :goto_1
.line 16
:cond_2
invoke-virtual {v2}, Ljava/io/OutputStream;->flush()V
.line 17
invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object p1
.line 18
invoke-static {v2}, Lcom/fyber/inneractive/sdk/util/t;->b(Ljava/io/Closeable;)V
.line 19
sget-object v2, Lcom/fyber/inneractive/sdk/util/g;->b:Lcom/fyber/inneractive/sdk/util/g;
.line 20
iget-object v2, v2, Lcom/fyber/inneractive/sdk/util/g;->a:Ljava/util/concurrent/ConcurrentLinkedQueue;
.line 21
invoke-virtual {v2, v1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->offer(Ljava/lang/Object;)Z
.line 22
new-instance v1, Ljava/lang/String;
const-string v2, "UTF-8"
invoke-direct {v1, p1, v2}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
.line 23
invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B
move-result-object p1
invoke-static {p1}, Lcom/fyber/inneractive/sdk/ignite/IgniteResponseOuterClass$IgniteResponse;->parseFrom([B)Lcom/fyber/inneractive/sdk/ignite/IgniteResponseOuterClass$IgniteResponse;
move-result-object p1
iput-object v1, v0, Lcom/fyber/inneractive/sdk/network/b0;->b:Ljava/lang/String;
iput-object p1, v0, Lcom/fyber/inneractive/sdk/network/b0;->a:Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:cond_3
return-object v0
:goto_2
new-array p3, p3, [Ljava/lang/Object;
.line 26
invoke-static {p2, p1, p3}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
.line 27
new-instance p1, Lcom/fyber/inneractive/sdk/network/a0;
const-string p2, "failed to parse ignite network request"
invoke-direct {p1, p2}, Lcom/fyber/inneractive/sdk/network/a0;-><init>(Ljava/lang/String;)V
throw p1
:goto_3
new-array p3, p3, [Ljava/lang/Object;
.line 28
invoke-static {p2, p1, p3}, Lcom/fyber/inneractive/sdk/util/IAlog;->a(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
.line 29
new-instance p2, Lcom/fyber/inneractive/sdk/network/a0;
invoke-direct {p2, p1}, Lcom/fyber/inneractive/sdk/network/a0;-><init>(Ljava/lang/Exception;)V
throw p2
.end method
.method public final d()Lcom/fyber/inneractive/sdk/network/p0;
.locals 1
.line 1
sget-object v0, Lcom/fyber/inneractive/sdk/network/p0;->HIGH:Lcom/fyber/inneractive/sdk/network/p0;
return-object v0
.end method
.method public final g()Z
.locals 2
iget-object v0, p0, Lcom/fyber/inneractive/sdk/network/k0;->q:Ljava/util/concurrent/atomic/AtomicInteger;
.line 1
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
move-result v0
const/4 v1, 0x4
if-ge v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public final getMethod()Lcom/fyber/inneractive/sdk/network/z;
.locals 1
.line 1
sget-object v0, Lcom/fyber/inneractive/sdk/network/z;->POST:Lcom/fyber/inneractive/sdk/network/z;
return-object v0
.end method
.method public final getUrl()Ljava/lang/String;
.locals 1
const-string v0, "https://init-mp.fyber.com/init"
return-object v0
.end method
.method public final q()Ljava/lang/String;
.locals 1
const-string v0, "application/x-protobuf; messageType=IgniteRequest"
return-object v0
.end method
.method public final r()[B
.locals 1
iget-object v0, p0, Lcom/fyber/inneractive/sdk/network/k0;->p:[B
return-object v0
.end method
.method public final s()I
.locals 4
iget-object v0, p0, Lcom/fyber/inneractive/sdk/network/k0;->q:Ljava/util/concurrent/atomic/AtomicInteger;
.line 1
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
move-result v0
int-to-double v0, v0
const-wide/high16 v2, 0x4000000000000000L # 2.0
invoke-static {v2, v3, v0, v1}, Ljava/lang/Math;->pow(DD)D
move-result-wide v0
double-to-int v0, v0
mul-int/lit16 v0, v0, 0x3e8
return v0
.end method