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

224 lines
5.4 KiB
Smali

.class public final Lokhttp3/internal/platform/Jdk9Platform;
.super Lokhttp3/internal/platform/Platform;
.source "SourceFile"
# instance fields
.field public final getProtocolMethod:Ljava/lang/reflect/Method;
.field public final setProtocolMethod:Ljava/lang/reflect/Method;
# direct methods
.method public constructor <init>(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)V
.locals 0
.line 33
invoke-direct {p0}, Lokhttp3/internal/platform/Platform;-><init>()V
iput-object p1, p0, Lokhttp3/internal/platform/Jdk9Platform;->setProtocolMethod:Ljava/lang/reflect/Method;
iput-object p2, p0, Lokhttp3/internal/platform/Jdk9Platform;->getProtocolMethod:Ljava/lang/reflect/Method;
return-void
.end method
.method public static buildIfSupported()Lokhttp3/internal/platform/Jdk9Platform;
.locals 5
:try_start_0
const-class v0, Ljavax/net/ssl/SSLParameters;
const-string v1, "setApplicationProtocols"
const/4 v2, 0x1
new-array v2, v2, [Ljava/lang/Class;
const-class v3, [Ljava/lang/String;
const/4 v4, 0x0
aput-object v3, v2, v4
.line 93
invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
const-class v1, Ljavax/net/ssl/SSLSocket;
const-string v2, "getApplicationProtocol"
new-array v3, v4, [Ljava/lang/Class;
.line 94
invoke-virtual {v1, v2, v3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v1
.line 96
new-instance v2, Lokhttp3/internal/platform/Jdk9Platform;
invoke-direct {v2, v0, v1}, Lokhttp3/internal/platform/Jdk9Platform;-><init>(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)V
:try_end_0
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
return-object v2
:catch_0
const/4 v0, 0x0
return-object v0
.end method
# virtual methods
.method public configureTlsExtensions(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V
.locals 3
.line 42
:try_start_0
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getSSLParameters()Ljavax/net/ssl/SSLParameters;
move-result-object p2
.line 44
invoke-static {p3}, Lokhttp3/internal/platform/Platform;->alpnProtocolNames(Ljava/util/List;)Ljava/util/List;
move-result-object p3
iget-object v0, p0, Lokhttp3/internal/platform/Jdk9Platform;->setProtocolMethod:Ljava/lang/reflect/Method;
const/4 v1, 0x1
new-array v1, v1, [Ljava/lang/Object;
.line 47
invoke-interface {p3}, Ljava/util/List;->size()I
move-result v2
new-array v2, v2, [Ljava/lang/String;
invoke-interface {p3, v2}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p3
const/4 v2, 0x0
aput-object p3, v1, v2
.line 46
invoke-virtual {v0, p2, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
.line 49
invoke-virtual {p1, p2}, Ljavax/net/ssl/SSLSocket;->setSSLParameters(Ljavax/net/ssl/SSLParameters;)V
:try_end_0
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
goto :goto_0
:catch_1
move-exception p1
.line 51
:goto_0
new-instance p2, Ljava/lang/AssertionError;
const-string p3, "failed to set SSL parameters"
invoke-direct {p2, p3, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw p2
.end method
.method public getSelectedProtocol(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String;
.locals 4
const-string v0, "failed to get ALPN selected protocol"
const/4 v1, 0x0
:try_start_0
iget-object v2, p0, Lokhttp3/internal/platform/Jdk9Platform;->getProtocolMethod:Ljava/lang/reflect/Method;
const/4 v3, 0x0
new-array v3, v3, [Ljava/lang/Object;
.line 58
invoke-virtual {v2, p1, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/lang/String;
if-eqz p1, :cond_1
const-string v2, ""
.line 62
invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
:try_end_0
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
return-object p1
:catch_0
move-exception p1
goto :goto_1
:catch_1
move-exception p1
goto :goto_2
:cond_1
:goto_0
return-object v1
.line 76
:goto_1
new-instance v1, Ljava/lang/AssertionError;
invoke-direct {v1, v0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.line 68
:goto_2
invoke-virtual {p1}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable;
move-result-object v2
instance-of v2, v2, Ljava/lang/UnsupportedOperationException;
if-eqz v2, :cond_2
return-object v1
.line 74
:cond_2
new-instance v1, Ljava/lang/AssertionError;
invoke-direct {v1, v0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method