Files
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

555 lines
12 KiB
Smali

.class public Lokhttp3/internal/platform/Platform;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final PLATFORM:Lokhttp3/internal/platform/Platform;
.field public static final logger:Ljava/util/logging/Logger;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 79
invoke-static {}, Lokhttp3/internal/platform/Platform;->findPlatform()Lokhttp3/internal/platform/Platform;
move-result-object v0
sput-object v0, Lokhttp3/internal/platform/Platform;->PLATFORM:Lokhttp3/internal/platform/Platform;
const-class v0, Lokhttp3/OkHttpClient;
.line 82
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger;
move-result-object v0
sput-object v0, Lokhttp3/internal/platform/Platform;->logger:Ljava/util/logging/Logger;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 78
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static alpnProtocolNames(Ljava/util/List;)Ljava/util/List;
.locals 5
.line 163
new-instance v0, Ljava/util/ArrayList;
invoke-interface {p0}, Ljava/util/List;->size()I
move-result v1
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
.line 164
invoke-interface {p0}, Ljava/util/List;->size()I
move-result v1
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
.line 165
invoke-interface {p0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lokhttp3/Protocol;
.line 166
sget-object v4, Lokhttp3/Protocol;->HTTP_1_0:Lokhttp3/Protocol;
if-ne v3, v4, :cond_0
goto :goto_1
.line 167
:cond_0
invoke-virtual {v3}, Lokhttp3/Protocol;->toString()Ljava/lang/String;
move-result-object v3
invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:goto_1
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
return-object v0
.end method
.method public static concatLengthPrefixed(Ljava/util/List;)[B
.locals 5
.line 261
new-instance v0, Lokio/Buffer;
invoke-direct {v0}, Lokio/Buffer;-><init>()V
.line 262
invoke-interface {p0}, Ljava/util/List;->size()I
move-result v1
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
.line 263
invoke-interface {p0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lokhttp3/Protocol;
.line 264
sget-object v4, Lokhttp3/Protocol;->HTTP_1_0:Lokhttp3/Protocol;
if-ne v3, v4, :cond_0
goto :goto_1
.line 265
:cond_0
invoke-virtual {v3}, Lokhttp3/Protocol;->toString()Ljava/lang/String;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/String;->length()I
move-result v4
invoke-virtual {v0, v4}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
.line 266
invoke-virtual {v3}, Lokhttp3/Protocol;->toString()Ljava/lang/String;
move-result-object v3
invoke-virtual {v0, v3}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;)Lokio/Buffer;
:goto_1
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 268
:cond_1
invoke-virtual {v0}, Lokio/Buffer;->readByteArray()[B
move-result-object p0
return-object p0
.end method
.method public static findAndroidPlatform()Lokhttp3/internal/platform/Platform;
.locals 2
.line 241
invoke-static {}, Lokhttp3/internal/platform/Android10Platform;->buildIfSupported()Lokhttp3/internal/platform/Platform;
move-result-object v0
if-eqz v0, :cond_0
return-object v0
.line 247
:cond_0
invoke-static {}, Lokhttp3/internal/platform/AndroidPlatform;->buildIfSupported()Lokhttp3/internal/platform/Platform;
move-result-object v0
if-eqz v0, :cond_1
return-object v0
.line 250
:cond_1
new-instance v0, Ljava/lang/NullPointerException;
const-string v1, "No platform found on Android"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static findJvmPlatform()Lokhttp3/internal/platform/Platform;
.locals 1
.line 216
invoke-static {}, Lokhttp3/internal/platform/Platform;->isConscryptPreferred()Z
move-result v0
if-eqz v0, :cond_0
.line 217
invoke-static {}, Lokhttp3/internal/platform/ConscryptPlatform;->buildIfSupported()Lokhttp3/internal/platform/ConscryptPlatform;
move-result-object v0
if-eqz v0, :cond_0
return-object v0
.line 224
:cond_0
invoke-static {}, Lokhttp3/internal/platform/Jdk9Platform;->buildIfSupported()Lokhttp3/internal/platform/Jdk9Platform;
move-result-object v0
if-eqz v0, :cond_1
return-object v0
.line 230
:cond_1
invoke-static {}, Lokhttp3/internal/platform/Jdk8WithJettyBootPlatform;->buildIfSupported()Lokhttp3/internal/platform/Platform;
move-result-object v0
if-eqz v0, :cond_2
return-object v0
.line 237
:cond_2
new-instance v0, Lokhttp3/internal/platform/Platform;
invoke-direct {v0}, Lokhttp3/internal/platform/Platform;-><init>()V
return-object v0
.end method
.method public static findPlatform()Lokhttp3/internal/platform/Platform;
.locals 1
.line 202
invoke-static {}, Lokhttp3/internal/platform/Platform;->isAndroid()Z
move-result v0
if-eqz v0, :cond_0
.line 203
invoke-static {}, Lokhttp3/internal/platform/Platform;->findAndroidPlatform()Lokhttp3/internal/platform/Platform;
move-result-object v0
return-object v0
.line 205
:cond_0
invoke-static {}, Lokhttp3/internal/platform/Platform;->findJvmPlatform()Lokhttp3/internal/platform/Platform;
move-result-object v0
return-object v0
.end method
.method public static get()Lokhttp3/internal/platform/Platform;
.locals 1
sget-object v0, Lokhttp3/internal/platform/Platform;->PLATFORM:Lokhttp3/internal/platform/Platform;
return-object v0
.end method
.method public static isAndroid()Z
.locals 2
const-string v0, "java.vm.name"
.line 212
invoke-static {v0}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "Dalvik"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
return v0
.end method
.method public static isConscryptPreferred()Z
.locals 2
const-string v0, "okhttp.platform"
const/4 v1, 0x0
.line 191
invoke-static {v0, v1}, Lokhttp3/internal/Util;->getSystemProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "conscrypt"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, 0x1
return v0
.line 196
:cond_0
invoke-static {}, Ljava/security/Security;->getProviders()[Ljava/security/Provider;
move-result-object v0
const/4 v1, 0x0
aget-object v0, v0, v1
invoke-virtual {v0}, Ljava/security/Provider;->getName()Ljava/lang/String;
move-result-object v0
const-string v1, "Conscrypt"
.line 197
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
return v0
.end method
# virtual methods
.method public afterHandshake(Ljavax/net/ssl/SSLSocket;)V
.locals 0
return-void
.end method
.method public buildCertificateChainCleaner(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/tls/CertificateChainCleaner;
.locals 1
.line 173
new-instance v0, Lokhttp3/internal/tls/BasicCertificateChainCleaner;
invoke-virtual {p0, p1}, Lokhttp3/internal/platform/Platform;->buildTrustRootIndex(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/tls/TrustRootIndex;
move-result-object p1
invoke-direct {v0, p1}, Lokhttp3/internal/tls/BasicCertificateChainCleaner;-><init>(Lokhttp3/internal/tls/TrustRootIndex;)V
return-object v0
.end method
.method public buildTrustRootIndex(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/tls/TrustRootIndex;
.locals 1
.line 303
new-instance v0, Lokhttp3/internal/tls/BasicTrustRootIndex;
invoke-interface {p1}, Ljavax/net/ssl/X509TrustManager;->getAcceptedIssuers()[Ljava/security/cert/X509Certificate;
move-result-object p1
invoke-direct {v0, p1}, Lokhttp3/internal/tls/BasicTrustRootIndex;-><init>([Ljava/security/cert/X509Certificate;)V
return-object v0
.end method
.method public configureSslSocketFactory(Ljavax/net/ssl/SSLSocketFactory;)V
.locals 0
return-void
.end method
.method public configureTlsExtensions(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V
.locals 0
return-void
.end method
.method public connectSocket(Ljava/net/Socket;Ljava/net/InetSocketAddress;I)V
.locals 0
.line 130
invoke-virtual {p1, p2, p3}, Ljava/net/Socket;->connect(Ljava/net/SocketAddress;I)V
return-void
.end method
.method public getPrefix()Ljava/lang/String;
.locals 1
const-string v0, "OkHttp"
return-object v0
.end method
.method public getSSLContext()Ljavax/net/ssl/SSLContext;
.locals 3
:try_start_0
const-string v0, "TLS"
.line 296
invoke-static {v0}, Ljavax/net/ssl/SSLContext;->getInstance(Ljava/lang/String;)Ljavax/net/ssl/SSLContext;
move-result-object v0
:try_end_0
.catch Ljava/security/NoSuchAlgorithmException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
:catch_0
move-exception v0
.line 298
new-instance v1, Ljava/lang/IllegalStateException;
const-string v2, "No TLS provider"
invoke-direct {v1, v2, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method
.method public getSelectedProtocol(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String;
.locals 0
const/4 p1, 0x0
return-object p1
.end method
.method public getStackTraceForCloseable(Ljava/lang/String;)Ljava/lang/Object;
.locals 2
sget-object v0, Lokhttp3/internal/platform/Platform;->logger:Ljava/util/logging/Logger;
.line 148
sget-object v1, Ljava/util/logging/Level;->FINE:Ljava/util/logging/Level;
invoke-virtual {v0, v1}, Ljava/util/logging/Logger;->isLoggable(Ljava/util/logging/Level;)Z
move-result v0
if-eqz v0, :cond_0
.line 149
new-instance v0, Ljava/lang/Throwable;
invoke-direct {v0, p1}, Ljava/lang/Throwable;-><init>(Ljava/lang/String;)V
return-object v0
:cond_0
const/4 p1, 0x0
return-object p1
.end method
.method public isCleartextTrafficPermitted(Ljava/lang/String;)Z
.locals 0
const/4 p1, 0x1
return p1
.end method
.method public log(ILjava/lang/String;Ljava/lang/Throwable;)V
.locals 1
const/4 v0, 0x5
if-ne p1, v0, :cond_0
.line 134
sget-object p1, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;
goto :goto_0
:cond_0
sget-object p1, Ljava/util/logging/Level;->INFO:Ljava/util/logging/Level;
:goto_0
sget-object v0, Lokhttp3/internal/platform/Platform;->logger:Ljava/util/logging/Logger;
.line 135
invoke-virtual {v0, p1, p2, p3}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
return-void
.end method
.method public logCloseableLeak(Ljava/lang/String;Ljava/lang/Object;)V
.locals 1
if-nez p2, :cond_0
.line 156
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p1, " To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);"
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
:cond_0
const/4 v0, 0x5
.line 159
check-cast p2, Ljava/lang/Throwable;
invoke-virtual {p0, v0, p1, p2}, Lokhttp3/internal/platform/Platform;->log(ILjava/lang/String;Ljava/lang/Throwable;)V
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 1
.line 310
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v0
return-object v0
.end method