Files
rr3-apk/smali_classes4/com/unity3d/services/ads/api/Token.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

158 lines
4.7 KiB
Smali

.class public Lcom/unity3d/services/ads/api/Token;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final tokenStorage:Lcom/unity3d/services/ads/token/TokenStorage;
# direct methods
.method static constructor <clinit>()V
.locals 1
const-class v0, Lcom/unity3d/services/ads/token/TokenStorage;
.line 13
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/ads/token/TokenStorage;
sput-object v0, Lcom/unity3d/services/ads/api/Token;->tokenStorage:Lcom/unity3d/services/ads/token/TokenStorage;
return-void
.end method
.method public constructor <init>()V
.locals 0
.line 12
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static appendTokens(Lorg/json/JSONArray;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
:try_start_0
sget-object v0, Lcom/unity3d/services/ads/api/Token;->tokenStorage:Lcom/unity3d/services/ads/token/TokenStorage;
.line 30
invoke-interface {v0, p0}, Lcom/unity3d/services/ads/token/TokenStorage;->appendTokens(Lorg/json/JSONArray;)V
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 36
invoke-virtual {p1, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
:catch_0
move-exception p0
.line 32
sget-object v0, Lcom/unity3d/services/ads/token/TokenError;->JSON_EXCEPTION:Lcom/unity3d/services/ads/token/TokenError;
invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p0
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
invoke-virtual {p1, v0, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
return-void
.end method
.method public static createTokens(Lorg/json/JSONArray;Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
:try_start_0
sget-object v0, Lcom/unity3d/services/ads/api/Token;->tokenStorage:Lcom/unity3d/services/ads/token/TokenStorage;
.line 18
invoke-interface {v0, p0}, Lcom/unity3d/services/ads/token/TokenStorage;->createTokens(Lorg/json/JSONArray;)V
:try_end_0
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
const/4 p0, 0x0
new-array p0, p0, [Ljava/lang/Object;
.line 24
invoke-virtual {p1, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
:catch_0
move-exception p0
.line 20
sget-object v0, Lcom/unity3d/services/ads/token/TokenError;->JSON_EXCEPTION:Lcom/unity3d/services/ads/token/TokenError;
invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p0
filled-new-array {p0}, [Ljava/lang/Object;
move-result-object p0
invoke-virtual {p1, v0, p0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->error(Ljava/lang/Enum;[Ljava/lang/Object;)V
return-void
.end method
.method public static deleteTokens(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/ads/api/Token;->tokenStorage:Lcom/unity3d/services/ads/token/TokenStorage;
.line 41
invoke-interface {v0}, Lcom/unity3d/services/ads/token/TokenStorage;->deleteTokens()V
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
.line 43
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method
.method public static getNativeGeneratedToken(Lcom/unity3d/services/core/webview/bridge/WebViewCallback;)V
.locals 1
.annotation runtime Lcom/unity3d/services/core/webview/bridge/WebViewExposed;
.end annotation
sget-object v0, Lcom/unity3d/services/ads/api/Token;->tokenStorage:Lcom/unity3d/services/ads/token/TokenStorage;
.line 48
invoke-interface {v0}, Lcom/unity3d/services/ads/token/TokenStorage;->getNativeGeneratedToken()Lkotlin/Unit;
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
.line 50
invoke-virtual {p0, v0}, Lcom/unity3d/services/core/webview/bridge/WebViewCallback;->invoke([Ljava/lang/Object;)V
return-void
.end method