- 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
205 lines
6.1 KiB
Smali
205 lines
6.1 KiB
Smali
.class public Lcom/unity3d/services/ads/adunit/AdUnitOpen;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field private static _configuration:Lcom/unity3d/services/core/configuration/Configuration;
|
|
|
|
.field private static final _sdkMetricsSender:Lcom/unity3d/services/core/request/metrics/SDKMetricsSender;
|
|
|
|
.field private static _waitShowStatus:Landroid/os/ConditionVariable;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
const-class v0, Lcom/unity3d/services/core/request/metrics/SDKMetricsSender;
|
|
|
|
.line 20
|
|
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/request/metrics/SDKMetricsSender;
|
|
|
|
sput-object v0, Lcom/unity3d/services/ads/adunit/AdUnitOpen;->_sdkMetricsSender:Lcom/unity3d/services/core/request/metrics/SDKMetricsSender;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 17
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static declared-synchronized open(Ljava/lang/String;Lorg/json/JSONObject;)Z
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/NoSuchMethodException;
|
|
}
|
|
.end annotation
|
|
|
|
const-class v0, Lcom/unity3d/services/ads/adunit/AdUnitOpen;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
const-class v1, Lcom/unity3d/services/ads/adunit/AdUnitOpen;
|
|
|
|
const-string v2, "showCallback"
|
|
|
|
const/4 v3, 0x1
|
|
|
|
new-array v3, v3, [Ljava/lang/Class;
|
|
|
|
const-class v4, Lcom/unity3d/services/core/webview/bridge/CallbackStatus;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
aput-object v4, v3, v5
|
|
|
|
.line 23
|
|
invoke-virtual {v1, v2, v3}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v1
|
|
|
|
.line 24
|
|
new-instance v2, Landroid/os/ConditionVariable;
|
|
|
|
invoke-direct {v2}, Landroid/os/ConditionVariable;-><init>()V
|
|
|
|
sput-object v2, Lcom/unity3d/services/ads/adunit/AdUnitOpen;->_waitShowStatus:Landroid/os/ConditionVariable;
|
|
|
|
sget-object v2, Lcom/unity3d/services/ads/adunit/AdUnitOpen;->_configuration:Lcom/unity3d/services/core/configuration/Configuration;
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
.line 26
|
|
new-instance v2, Lcom/unity3d/services/core/configuration/Configuration;
|
|
|
|
invoke-direct {v2}, Lcom/unity3d/services/core/configuration/Configuration;-><init>()V
|
|
|
|
sput-object v2, Lcom/unity3d/services/ads/adunit/AdUnitOpen;->_configuration:Lcom/unity3d/services/core/configuration/Configuration;
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
goto :goto_1
|
|
|
|
.line 28
|
|
:cond_0
|
|
:goto_0
|
|
invoke-static {}, Lcom/unity3d/services/core/webview/WebViewApp;->getCurrentApp()Lcom/unity3d/services/core/webview/WebViewApp;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "webview"
|
|
|
|
const-string v4, "show"
|
|
|
|
filled-new-array {p0, p1}, [Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v2, v3, v4, v1, p0}, Lcom/unity3d/services/core/webview/WebViewApp;->invokeMethod(Ljava/lang/String;Ljava/lang/String;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Z
|
|
|
|
sget-object p0, Lcom/unity3d/services/ads/adunit/AdUnitOpen;->_waitShowStatus:Landroid/os/ConditionVariable;
|
|
|
|
sget-object p1, Lcom/unity3d/services/ads/adunit/AdUnitOpen;->_configuration:Lcom/unity3d/services/core/configuration/Configuration;
|
|
|
|
.line 29
|
|
invoke-virtual {p1}, Lcom/unity3d/services/core/configuration/Configuration;->getShowTimeout()I
|
|
|
|
move-result p1
|
|
|
|
int-to-long v1, p1
|
|
|
|
invoke-virtual {p0, v1, v2}, Landroid/os/ConditionVariable;->block(J)Z
|
|
|
|
move-result p0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
sput-object p1, Lcom/unity3d/services/ads/adunit/AdUnitOpen;->_waitShowStatus:Landroid/os/ConditionVariable;
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
sget-object p1, Lcom/unity3d/services/ads/adunit/AdUnitOpen;->_sdkMetricsSender:Lcom/unity3d/services/core/request/metrics/SDKMetricsSender;
|
|
|
|
.line 32
|
|
sget-object v1, Lcom/unity3d/services/core/request/metrics/AdOperationError;->timeout:Lcom/unity3d/services/core/request/metrics/AdOperationError;
|
|
|
|
sget-object v2, Lcom/unity3d/services/ads/adunit/AdUnitOpen;->_configuration:Lcom/unity3d/services/core/configuration/Configuration;
|
|
|
|
invoke-virtual {v2}, Lcom/unity3d/services/core/configuration/Configuration;->getShowTimeout()I
|
|
|
|
move-result v2
|
|
|
|
int-to-long v2, v2
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v1, v2}, Lcom/unity3d/services/core/request/metrics/AdOperationMetric;->newAdShowFailure(Lcom/unity3d/services/core/request/metrics/AdOperationError;Ljava/lang/Long;)Lcom/unity3d/services/core/request/metrics/Metric;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {p1, v1}, Lcom/unity3d/services/core/request/metrics/SDKMetricsSender;->sendMetric(Lcom/unity3d/services/core/request/metrics/Metric;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 34
|
|
:cond_1
|
|
monitor-exit v0
|
|
|
|
return p0
|
|
|
|
:goto_1
|
|
monitor-exit v0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static setConfiguration(Lcom/unity3d/services/core/configuration/Configuration;)V
|
|
.locals 0
|
|
|
|
sput-object p0, Lcom/unity3d/services/ads/adunit/AdUnitOpen;->_configuration:Lcom/unity3d/services/core/configuration/Configuration;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static showCallback(Lcom/unity3d/services/core/webview/bridge/CallbackStatus;)V
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/unity3d/services/ads/adunit/AdUnitOpen;->_waitShowStatus:Landroid/os/ConditionVariable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 38
|
|
sget-object v0, Lcom/unity3d/services/core/webview/bridge/CallbackStatus;->OK:Lcom/unity3d/services/core/webview/bridge/CallbackStatus;
|
|
|
|
invoke-virtual {p0, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
sget-object p0, Lcom/unity3d/services/ads/adunit/AdUnitOpen;->_waitShowStatus:Landroid/os/ConditionVariable;
|
|
|
|
.line 39
|
|
invoke-virtual {p0}, Landroid/os/ConditionVariable;->open()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|