Files
rr3-apk/smali_classes3/com/google/firebase/perf/network/FirebasePerfUrlConnection.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

495 lines
17 KiB
Smali

.class public Lcom/google/firebase/perf/network/FirebasePerfUrlConnection;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public static getContent(Lcom/google/firebase/perf/util/URLWrapper;Lcom/google/firebase/perf/transport/TransportManager;Lcom/google/firebase/perf/util/Timer;)Ljava/lang/Object;
.locals 4
.line 120
invoke-virtual {p2}, Lcom/google/firebase/perf/util/Timer;->reset()V
.line 121
invoke-virtual {p2}, Lcom/google/firebase/perf/util/Timer;->getMicros()J
move-result-wide v0
.line 122
invoke-static {p1}, Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;->builder(Lcom/google/firebase/perf/transport/TransportManager;)Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;
move-result-object p1
.line 124
:try_start_0
invoke-virtual {p0}, Lcom/google/firebase/perf/util/URLWrapper;->openConnection()Ljava/net/URLConnection;
move-result-object v2
.line 125
instance-of v3, v2, Ljavax/net/ssl/HttpsURLConnection;
if-eqz v3, :cond_0
.line 126
new-instance v3, Lcom/google/firebase/perf/network/InstrHttpsURLConnection;
check-cast v2, Ljavax/net/ssl/HttpsURLConnection;
invoke-direct {v3, v2, p2, p1}, Lcom/google/firebase/perf/network/InstrHttpsURLConnection;-><init>(Ljavax/net/ssl/HttpsURLConnection;Lcom/google/firebase/perf/util/Timer;Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;)V
.line 127
invoke-virtual {v3}, Lcom/google/firebase/perf/network/InstrHttpsURLConnection;->getContent()Ljava/lang/Object;
move-result-object p0
return-object p0
:catch_0
move-exception v2
goto :goto_0
.line 128
:cond_0
instance-of v3, v2, Ljava/net/HttpURLConnection;
if-eqz v3, :cond_1
.line 129
new-instance v3, Lcom/google/firebase/perf/network/InstrHttpURLConnection;
check-cast v2, Ljava/net/HttpURLConnection;
invoke-direct {v3, v2, p2, p1}, Lcom/google/firebase/perf/network/InstrHttpURLConnection;-><init>(Ljava/net/HttpURLConnection;Lcom/google/firebase/perf/util/Timer;Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;)V
.line 130
invoke-virtual {v3}, Lcom/google/firebase/perf/network/InstrHttpURLConnection;->getContent()Ljava/lang/Object;
move-result-object p0
return-object p0
.line 132
:cond_1
invoke-virtual {v2}, Ljava/net/URLConnection;->getContent()Ljava/lang/Object;
move-result-object p0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
.line 134
:goto_0
invoke-virtual {p1, v0, v1}, Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;->setRequestStartTimeMicros(J)Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;
.line 135
invoke-virtual {p2}, Lcom/google/firebase/perf/util/Timer;->getDurationMicros()J
move-result-wide v0
invoke-virtual {p1, v0, v1}, Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;->setTimeToResponseCompletedMicros(J)Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;
.line 136
invoke-virtual {p0}, Lcom/google/firebase/perf/util/URLWrapper;->toString()Ljava/lang/String;
move-result-object p0
invoke-virtual {p1, p0}, Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;->setUrl(Ljava/lang/String;)Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;
.line 137
invoke-static {p1}, Lcom/google/firebase/perf/network/NetworkRequestMetricBuilderUtil;->logError(Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;)V
.line 138
throw v2
.end method
.method public static getContent(Lcom/google/firebase/perf/util/URLWrapper;[Ljava/lang/Class;Lcom/google/firebase/perf/transport/TransportManager;Lcom/google/firebase/perf/util/Timer;)Ljava/lang/Object;
.locals 4
.line 155
invoke-virtual {p3}, Lcom/google/firebase/perf/util/Timer;->reset()V
.line 156
invoke-virtual {p3}, Lcom/google/firebase/perf/util/Timer;->getMicros()J
move-result-wide v0
.line 157
invoke-static {p2}, Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;->builder(Lcom/google/firebase/perf/transport/TransportManager;)Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;
move-result-object p2
.line 159
:try_start_0
invoke-virtual {p0}, Lcom/google/firebase/perf/util/URLWrapper;->openConnection()Ljava/net/URLConnection;
move-result-object v2
.line 160
instance-of v3, v2, Ljavax/net/ssl/HttpsURLConnection;
if-eqz v3, :cond_0
.line 161
new-instance v3, Lcom/google/firebase/perf/network/InstrHttpsURLConnection;
check-cast v2, Ljavax/net/ssl/HttpsURLConnection;
invoke-direct {v3, v2, p3, p2}, Lcom/google/firebase/perf/network/InstrHttpsURLConnection;-><init>(Ljavax/net/ssl/HttpsURLConnection;Lcom/google/firebase/perf/util/Timer;Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;)V
.line 162
invoke-virtual {v3, p1}, Lcom/google/firebase/perf/network/InstrHttpsURLConnection;->getContent([Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p0
return-object p0
:catch_0
move-exception p1
goto :goto_0
.line 163
:cond_0
instance-of v3, v2, Ljava/net/HttpURLConnection;
if-eqz v3, :cond_1
.line 164
new-instance v3, Lcom/google/firebase/perf/network/InstrHttpURLConnection;
check-cast v2, Ljava/net/HttpURLConnection;
invoke-direct {v3, v2, p3, p2}, Lcom/google/firebase/perf/network/InstrHttpURLConnection;-><init>(Ljava/net/HttpURLConnection;Lcom/google/firebase/perf/util/Timer;Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;)V
.line 165
invoke-virtual {v3, p1}, Lcom/google/firebase/perf/network/InstrHttpURLConnection;->getContent([Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p0
return-object p0
.line 167
:cond_1
invoke-virtual {v2, p1}, Ljava/net/URLConnection;->getContent([Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
.line 169
:goto_0
invoke-virtual {p2, v0, v1}, Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;->setRequestStartTimeMicros(J)Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;
.line 170
invoke-virtual {p3}, Lcom/google/firebase/perf/util/Timer;->getDurationMicros()J
move-result-wide v0
invoke-virtual {p2, v0, v1}, Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;->setTimeToResponseCompletedMicros(J)Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;
.line 171
invoke-virtual {p0}, Lcom/google/firebase/perf/util/URLWrapper;->toString()Ljava/lang/String;
move-result-object p0
invoke-virtual {p2, p0}, Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;->setUrl(Ljava/lang/String;)Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;
.line 172
invoke-static {p2}, Lcom/google/firebase/perf/network/NetworkRequestMetricBuilderUtil;->logError(Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;)V
.line 173
throw p1
.end method
.method public static getContent(Ljava/net/URL;)Ljava/lang/Object;
.locals 2
.annotation build Landroidx/annotation/Keep;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 95
new-instance v0, Lcom/google/firebase/perf/util/URLWrapper;
invoke-direct {v0, p0}, Lcom/google/firebase/perf/util/URLWrapper;-><init>(Ljava/net/URL;)V
invoke-static {}, Lcom/google/firebase/perf/transport/TransportManager;->getInstance()Lcom/google/firebase/perf/transport/TransportManager;
move-result-object p0
new-instance v1, Lcom/google/firebase/perf/util/Timer;
invoke-direct {v1}, Lcom/google/firebase/perf/util/Timer;-><init>()V
invoke-static {v0, p0, v1}, Lcom/google/firebase/perf/network/FirebasePerfUrlConnection;->getContent(Lcom/google/firebase/perf/util/URLWrapper;Lcom/google/firebase/perf/transport/TransportManager;Lcom/google/firebase/perf/util/Timer;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public static getContent(Ljava/net/URL;[Ljava/lang/Class;)Ljava/lang/Object;
.locals 2
.annotation build Landroidx/annotation/Keep;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 108
new-instance v0, Lcom/google/firebase/perf/util/URLWrapper;
invoke-direct {v0, p0}, Lcom/google/firebase/perf/util/URLWrapper;-><init>(Ljava/net/URL;)V
invoke-static {}, Lcom/google/firebase/perf/transport/TransportManager;->getInstance()Lcom/google/firebase/perf/transport/TransportManager;
move-result-object p0
new-instance v1, Lcom/google/firebase/perf/util/Timer;
invoke-direct {v1}, Lcom/google/firebase/perf/util/Timer;-><init>()V
invoke-static {v0, p1, p0, v1}, Lcom/google/firebase/perf/network/FirebasePerfUrlConnection;->getContent(Lcom/google/firebase/perf/util/URLWrapper;[Ljava/lang/Class;Lcom/google/firebase/perf/transport/TransportManager;Lcom/google/firebase/perf/util/Timer;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public static instrument(Ljava/lang/Object;)Ljava/lang/Object;
.locals 3
.annotation build Landroidx/annotation/Keep;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 185
instance-of v0, p0, Ljavax/net/ssl/HttpsURLConnection;
if-eqz v0, :cond_0
.line 186
new-instance v0, Lcom/google/firebase/perf/network/InstrHttpsURLConnection;
check-cast p0, Ljavax/net/ssl/HttpsURLConnection;
new-instance v1, Lcom/google/firebase/perf/util/Timer;
invoke-direct {v1}, Lcom/google/firebase/perf/util/Timer;-><init>()V
.line 189
invoke-static {}, Lcom/google/firebase/perf/transport/TransportManager;->getInstance()Lcom/google/firebase/perf/transport/TransportManager;
move-result-object v2
invoke-static {v2}, Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;->builder(Lcom/google/firebase/perf/transport/TransportManager;)Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;
move-result-object v2
invoke-direct {v0, p0, v1, v2}, Lcom/google/firebase/perf/network/InstrHttpsURLConnection;-><init>(Ljavax/net/ssl/HttpsURLConnection;Lcom/google/firebase/perf/util/Timer;Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;)V
return-object v0
.line 190
:cond_0
instance-of v0, p0, Ljava/net/HttpURLConnection;
if-eqz v0, :cond_1
.line 191
new-instance v0, Lcom/google/firebase/perf/network/InstrHttpURLConnection;
check-cast p0, Ljava/net/HttpURLConnection;
new-instance v1, Lcom/google/firebase/perf/util/Timer;
invoke-direct {v1}, Lcom/google/firebase/perf/util/Timer;-><init>()V
.line 194
invoke-static {}, Lcom/google/firebase/perf/transport/TransportManager;->getInstance()Lcom/google/firebase/perf/transport/TransportManager;
move-result-object v2
invoke-static {v2}, Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;->builder(Lcom/google/firebase/perf/transport/TransportManager;)Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;
move-result-object v2
invoke-direct {v0, p0, v1, v2}, Lcom/google/firebase/perf/network/InstrHttpURLConnection;-><init>(Ljava/net/HttpURLConnection;Lcom/google/firebase/perf/util/Timer;Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;)V
return-object v0
:cond_1
return-object p0
.end method
.method public static openStream(Lcom/google/firebase/perf/util/URLWrapper;Lcom/google/firebase/perf/transport/TransportManager;Lcom/google/firebase/perf/util/Timer;)Ljava/io/InputStream;
.locals 4
.line 61
invoke-static {}, Lcom/google/firebase/perf/transport/TransportManager;->getInstance()Lcom/google/firebase/perf/transport/TransportManager;
move-result-object v0
invoke-virtual {v0}, Lcom/google/firebase/perf/transport/TransportManager;->isInitialized()Z
move-result v0
if-nez v0, :cond_0
.line 62
invoke-virtual {p0}, Lcom/google/firebase/perf/util/URLWrapper;->openConnection()Ljava/net/URLConnection;
move-result-object p0
invoke-virtual {p0}, Ljava/net/URLConnection;->getInputStream()Ljava/io/InputStream;
move-result-object p0
return-object p0
.line 64
:cond_0
invoke-virtual {p2}, Lcom/google/firebase/perf/util/Timer;->reset()V
.line 65
invoke-virtual {p2}, Lcom/google/firebase/perf/util/Timer;->getMicros()J
move-result-wide v0
.line 66
invoke-static {p1}, Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;->builder(Lcom/google/firebase/perf/transport/TransportManager;)Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;
move-result-object p1
.line 68
:try_start_0
invoke-virtual {p0}, Lcom/google/firebase/perf/util/URLWrapper;->openConnection()Ljava/net/URLConnection;
move-result-object v2
.line 69
instance-of v3, v2, Ljavax/net/ssl/HttpsURLConnection;
if-eqz v3, :cond_1
.line 70
new-instance v3, Lcom/google/firebase/perf/network/InstrHttpsURLConnection;
check-cast v2, Ljavax/net/ssl/HttpsURLConnection;
invoke-direct {v3, v2, p2, p1}, Lcom/google/firebase/perf/network/InstrHttpsURLConnection;-><init>(Ljavax/net/ssl/HttpsURLConnection;Lcom/google/firebase/perf/util/Timer;Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;)V
.line 71
invoke-virtual {v3}, Lcom/google/firebase/perf/network/InstrHttpsURLConnection;->getInputStream()Ljava/io/InputStream;
move-result-object p0
return-object p0
:catch_0
move-exception v2
goto :goto_0
.line 72
:cond_1
instance-of v3, v2, Ljava/net/HttpURLConnection;
if-eqz v3, :cond_2
.line 73
new-instance v3, Lcom/google/firebase/perf/network/InstrHttpURLConnection;
check-cast v2, Ljava/net/HttpURLConnection;
invoke-direct {v3, v2, p2, p1}, Lcom/google/firebase/perf/network/InstrHttpURLConnection;-><init>(Ljava/net/HttpURLConnection;Lcom/google/firebase/perf/util/Timer;Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;)V
.line 74
invoke-virtual {v3}, Lcom/google/firebase/perf/network/InstrHttpURLConnection;->getInputStream()Ljava/io/InputStream;
move-result-object p0
return-object p0
.line 76
:cond_2
invoke-virtual {v2}, Ljava/net/URLConnection;->getInputStream()Ljava/io/InputStream;
move-result-object p0
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
.line 78
:goto_0
invoke-virtual {p1, v0, v1}, Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;->setRequestStartTimeMicros(J)Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;
.line 79
invoke-virtual {p2}, Lcom/google/firebase/perf/util/Timer;->getDurationMicros()J
move-result-wide v0
invoke-virtual {p1, v0, v1}, Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;->setTimeToResponseCompletedMicros(J)Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;
.line 80
invoke-virtual {p0}, Lcom/google/firebase/perf/util/URLWrapper;->toString()Ljava/lang/String;
move-result-object p0
invoke-virtual {p1, p0}, Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;->setUrl(Ljava/lang/String;)Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;
.line 81
invoke-static {p1}, Lcom/google/firebase/perf/network/NetworkRequestMetricBuilderUtil;->logError(Lcom/google/firebase/perf/metrics/NetworkRequestMetricBuilder;)V
.line 82
throw v2
.end method
.method public static openStream(Ljava/net/URL;)Ljava/io/InputStream;
.locals 2
.annotation build Landroidx/annotation/Keep;
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 47
new-instance v0, Lcom/google/firebase/perf/util/URLWrapper;
invoke-direct {v0, p0}, Lcom/google/firebase/perf/util/URLWrapper;-><init>(Ljava/net/URL;)V
invoke-static {}, Lcom/google/firebase/perf/transport/TransportManager;->getInstance()Lcom/google/firebase/perf/transport/TransportManager;
move-result-object p0
new-instance v1, Lcom/google/firebase/perf/util/Timer;
invoke-direct {v1}, Lcom/google/firebase/perf/util/Timer;-><init>()V
invoke-static {v0, p0, v1}, Lcom/google/firebase/perf/network/FirebasePerfUrlConnection;->openStream(Lcom/google/firebase/perf/util/URLWrapper;Lcom/google/firebase/perf/transport/TransportManager;Lcom/google/firebase/perf/util/Timer;)Ljava/io/InputStream;
move-result-object p0
return-object p0
.end method