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
This commit is contained in:
2026-02-18 16:13:44 -08:00
parent c080f0d97f
commit f3960ee359
44288 changed files with 10998761 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
.class public Lcom/unity3d/services/ads/gmascar/utils/GMAEventSender;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private final _eventSender:Lcom/unity3d/services/core/webview/bridge/IEventSender;
# direct methods
.method public constructor <init>()V
.locals 1
.line 12
sget-object v0, Lcom/unity3d/services/core/webview/bridge/SharedInstances;->INSTANCE:Lcom/unity3d/services/core/webview/bridge/SharedInstances;
invoke-virtual {v0}, Lcom/unity3d/services/core/webview/bridge/SharedInstances;->getWebViewEventSender()Lcom/unity3d/services/core/webview/bridge/IEventSender;
move-result-object v0
invoke-direct {p0, v0}, Lcom/unity3d/services/ads/gmascar/utils/GMAEventSender;-><init>(Lcom/unity3d/services/core/webview/bridge/IEventSender;)V
return-void
.end method
.method public constructor <init>(Lcom/unity3d/services/core/webview/bridge/IEventSender;)V
.locals 0
.line 15
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/unity3d/services/ads/gmascar/utils/GMAEventSender;->_eventSender:Lcom/unity3d/services/core/webview/bridge/IEventSender;
return-void
.end method
# virtual methods
.method public varargs send(Lcom/unity3d/scar/adapter/common/GMAEvent;[Ljava/lang/Object;)V
.locals 2
iget-object v0, p0, Lcom/unity3d/services/ads/gmascar/utils/GMAEventSender;->_eventSender:Lcom/unity3d/services/core/webview/bridge/IEventSender;
.line 20
sget-object v1, Lcom/unity3d/services/core/webview/WebViewEventCategory;->GMA:Lcom/unity3d/services/core/webview/WebViewEventCategory;
invoke-interface {v0, v1, p1, p2}, Lcom/unity3d/services/core/webview/bridge/IEventSender;->sendEvent(Ljava/lang/Enum;Ljava/lang/Enum;[Ljava/lang/Object;)Z
return-void
.end method
.method public sendVersion(Ljava/lang/String;)V
.locals 3
iget-object v0, p0, Lcom/unity3d/services/ads/gmascar/utils/GMAEventSender;->_eventSender:Lcom/unity3d/services/core/webview/bridge/IEventSender;
.line 24
sget-object v1, Lcom/unity3d/services/core/webview/WebViewEventCategory;->INIT_GMA:Lcom/unity3d/services/core/webview/WebViewEventCategory;
sget-object v2, Lcom/unity3d/scar/adapter/common/GMAEvent;->VERSION:Lcom/unity3d/scar/adapter/common/GMAEvent;
filled-new-array {p1}, [Ljava/lang/Object;
move-result-object p1
invoke-interface {v0, v1, v2, p1}, Lcom/unity3d/services/core/webview/bridge/IEventSender;->sendEvent(Ljava/lang/Enum;Ljava/lang/Enum;[Ljava/lang/Object;)Z
return-void
.end method

View File

@@ -0,0 +1,32 @@
.class public Lcom/unity3d/services/ads/gmascar/utils/ScarConstants;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final BN_SIGNAL_KEY:Ljava/lang/String; = "bn"
.field public static final IDFI_KEY:Ljava/lang/String; = "idfi"
.field public static final IN_SIGNAL_KEY:Ljava/lang/String; = "in"
.field public static final RV_SIGNAL_KEY:Ljava/lang/String; = "rv"
.field public static final SCAR_PRD_BIDDING_ENDPOINT:Ljava/lang/String; = "https://scar.unityads.unity3d.com/v1/capture-scar-signals"
.field public static final SCAR_TOKEN_IDENTIFIER_KEY:Ljava/lang/String; = "scarId"
.field public static final TOKEN_ID_KEY:Ljava/lang/String; = "tid"
.field public static final TOKEN_WITH_SCAR_FORMAT:Ljava/lang/String; = "%s:%s"
# direct methods
.method public constructor <init>()V
.locals 0
.line 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method

View File

@@ -0,0 +1,117 @@
.class public Lcom/unity3d/services/ads/gmascar/utils/ScarRequestHandler;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private final httpClient:Lcom/unity3d/services/core/network/core/HttpClient;
# direct methods
.method public constructor <init>()V
.locals 1
.line 24
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-class v0, Lcom/unity3d/services/core/network/core/HttpClient;
.line 22
invoke-static {v0}, Lcom/unity3d/services/core/misc/Utilities;->getService(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/unity3d/services/core/network/core/HttpClient;
iput-object v0, p0, Lcom/unity3d/services/ads/gmascar/utils/ScarRequestHandler;->httpClient:Lcom/unity3d/services/core/network/core/HttpClient;
return-void
.end method
# virtual methods
.method public makeUploadRequest(Ljava/lang/String;Lcom/unity3d/services/ads/gmascar/models/BiddingSignals;Ljava/lang/String;)V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 28
new-instance v5, Ljava/util/HashMap;
invoke-direct {v5}, Ljava/util/HashMap;-><init>()V
const-string v0, "application/json"
.line 29
invoke-static {v0}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
const-string v1, "Content-Type"
invoke-interface {v5, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 31
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
const-string v1, "idfi"
.line 32
invoke-static {}, Lcom/unity3d/services/core/device/Device;->getIdfi()Ljava/lang/String;
move-result-object v2
invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v1, "tid"
.line 33
invoke-interface {v0, v1, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 34
invoke-virtual {p2}, Lcom/unity3d/services/ads/gmascar/models/BiddingSignals;->getMap()Ljava/util/Map;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/Map;->putAll(Ljava/util/Map;)V
.line 36
new-instance p1, Lcom/unity3d/services/core/network/model/HttpRequest;
const-string v2, ""
sget-object v3, Lcom/unity3d/services/core/network/model/RequestType;->POST:Lcom/unity3d/services/core/network/model/RequestType;
new-instance p2, Lorg/json/JSONObject;
invoke-direct {p2, v0}, Lorg/json/JSONObject;-><init>(Ljava/util/Map;)V
.line 40
invoke-virtual {p2}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
move-result-object p2
sget-object v0, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-virtual {p2, v0}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object v4
move-object v0, p1
move-object v1, p3
invoke-direct/range {v0 .. v5}, Lcom/unity3d/services/core/network/model/HttpRequest;-><init>(Ljava/lang/String;Ljava/lang/String;Lcom/unity3d/services/core/network/model/RequestType;Ljava/lang/Object;Ljava/util/Map;)V
iget-object p2, p0, Lcom/unity3d/services/ads/gmascar/utils/ScarRequestHandler;->httpClient:Lcom/unity3d/services/core/network/core/HttpClient;
.line 43
invoke-interface {p2, p1}, Lcom/unity3d/services/core/network/core/HttpClient;->executeBlocking(Lcom/unity3d/services/core/network/model/HttpRequest;)Lcom/unity3d/services/core/network/model/HttpResponse;
return-void
.end method