- 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
387 lines
10 KiB
Smali
387 lines
10 KiB
Smali
.class public abstract Lcom/tapjoy/m1;
|
|
.super Lcom/tapjoy/internal/p2;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public b:Lcom/tapjoy/TJCurrency;
|
|
|
|
.field public final c:Ljava/util/concurrent/ExecutorService;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/tapjoy/internal/p2;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/tapjoy/m1;->b:Lcom/tapjoy/TJCurrency;
|
|
|
|
.line 6
|
|
invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadExecutor()Ljava/util/concurrent/ExecutorService;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/tapjoy/m1;->c:Ljava/util/concurrent/ExecutorService;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic a(Ljava/lang/String;Lcom/tapjoy/TJSetUserIDListener;)V
|
|
.locals 1
|
|
|
|
.line 72
|
|
sget-object v0, Lcom/tapjoy/TJUser;->INSTANCE:Lcom/tapjoy/TJUser;
|
|
|
|
invoke-virtual {v0, p0, p1}, Lcom/tapjoy/TJUser;->setUserIdRequest(Ljava/lang/String;Lcom/tapjoy/TJSetUserIDListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/String;)Z
|
|
.locals 2
|
|
|
|
.line 73
|
|
invoke-static {}, Lcom/tapjoy/TapjoyConnectCore;->getInstance()Lcom/tapjoy/TapjoyConnectCore;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/tapjoy/TapjoyConnectCore;->isConnected()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 74
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "Can not call "
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, " because Tapjoy SDK has not successfully connected."
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "TapjoyAPI"
|
|
|
|
invoke-static {v0, p0}, Lcom/tapjoy/TapjoyLog;->w(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public declared-synchronized a(Landroid/content/Context;Ljava/lang/String;Ljava/util/Hashtable;Lcom/tapjoy/TJConnectListener;)Z
|
|
.locals 5
|
|
|
|
monitor-enter p0
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
:try_start_0
|
|
const-string v0, "TJC_OPTION_ENABLE_LOGGING"
|
|
|
|
.line 6
|
|
invoke-virtual {p3, v0}, Ljava/util/Hashtable;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 8
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "true"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Lcom/tapjoy/TapjoyLog;->setDebugEnabled(Z)V
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_0
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
.line 13
|
|
new-instance p1, Lcom/tapjoy/TapjoyErrorMessage;
|
|
|
|
sget-object p2, Lcom/tapjoy/TapjoyErrorMessage$ErrorType;->INTEGRATION_ERROR:Lcom/tapjoy/TapjoyErrorMessage$ErrorType;
|
|
|
|
const-string p3, "The application context is NULL"
|
|
|
|
invoke-direct {p1, p2, p3}, Lcom/tapjoy/TapjoyErrorMessage;-><init>(Lcom/tapjoy/TapjoyErrorMessage$ErrorType;Ljava/lang/String;)V
|
|
|
|
const-string p2, "TapjoyAPI"
|
|
|
|
invoke-static {p2, p1}, Lcom/tapjoy/TapjoyLog;->e(Ljava/lang/String;Lcom/tapjoy/TapjoyErrorMessage;)V
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
const-string p1, "The application context is NULL"
|
|
|
|
.line 15
|
|
check-cast p4, Lcom/tapjoy/internal/u2;
|
|
|
|
.line 16
|
|
iget-object p2, p4, Lcom/tapjoy/internal/u2;->a:Lcom/tapjoy/internal/q2;
|
|
|
|
invoke-virtual {p2, v1, p1}, Lcom/tapjoy/internal/z2;->c(ILjava/lang/String;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:cond_1
|
|
monitor-exit p0
|
|
|
|
return v0
|
|
|
|
.line 17
|
|
:cond_2
|
|
:try_start_1
|
|
invoke-static {p1}, Lcom/tapjoy/internal/j;->a(Landroid/content/Context;)V
|
|
|
|
.line 19
|
|
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
.line 20
|
|
new-instance p1, Lcom/tapjoy/TapjoyErrorMessage;
|
|
|
|
sget-object p2, Lcom/tapjoy/TapjoyErrorMessage$ErrorType;->INTEGRATION_ERROR:Lcom/tapjoy/TapjoyErrorMessage$ErrorType;
|
|
|
|
const-string p3, "The SDK key is NULL. A valid SDK key is required to connect successfully to Tapjoy"
|
|
|
|
invoke-direct {p1, p2, p3}, Lcom/tapjoy/TapjoyErrorMessage;-><init>(Lcom/tapjoy/TapjoyErrorMessage$ErrorType;Ljava/lang/String;)V
|
|
|
|
const-string p2, "TapjoyAPI"
|
|
|
|
invoke-static {p2, p1}, Lcom/tapjoy/TapjoyLog;->e(Ljava/lang/String;Lcom/tapjoy/TapjoyErrorMessage;)V
|
|
|
|
if-eqz p4, :cond_3
|
|
|
|
const-string p1, "The SDK key is NULL. A valid SDK key is required to connect successfully to Tapjoy"
|
|
|
|
.line 22
|
|
check-cast p4, Lcom/tapjoy/internal/u2;
|
|
|
|
.line 23
|
|
iget-object p2, p4, Lcom/tapjoy/internal/u2;->a:Lcom/tapjoy/internal/q2;
|
|
|
|
invoke-virtual {p2, v1, p1}, Lcom/tapjoy/internal/z2;->c(ILjava/lang/String;)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:cond_3
|
|
monitor-exit p0
|
|
|
|
return v0
|
|
|
|
.line 24
|
|
:cond_4
|
|
:try_start_2
|
|
invoke-static {p1}, Lcom/tapjoy/TapjoyAppSettings;->init(Landroid/content/Context;)V
|
|
|
|
.line 25
|
|
new-instance v2, Lcom/tapjoy/TJCurrency;
|
|
|
|
invoke-direct {v2, p1}, Lcom/tapjoy/TJCurrency;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v2, p0, Lcom/tapjoy/m1;->b:Lcom/tapjoy/TJCurrency;
|
|
|
|
.line 28
|
|
invoke-static {}, Lcom/tapjoy/TapjoyConnectCore;->getInstance()Lcom/tapjoy/TapjoyConnectCore;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v3, Lcom/tapjoy/l1;
|
|
|
|
move-object v4, p4
|
|
|
|
check-cast v4, Lcom/tapjoy/internal/u2;
|
|
|
|
invoke-direct {v3, v4}, Lcom/tapjoy/l1;-><init>(Lcom/tapjoy/internal/u2;)V
|
|
|
|
invoke-virtual {v2, p1, p2, p3, v3}, Lcom/tapjoy/TapjoyConnectCore;->requestTapjoyConnect(Landroid/content/Context;Ljava/lang/String;Ljava/util/Hashtable;Lcom/tapjoy/TJConnectListener;)V
|
|
:try_end_2
|
|
.catch Lcom/tapjoy/TapjoyIntegrationException; {:try_start_2 .. :try_end_2} :catch_1
|
|
.catch Lcom/tapjoy/TapjoyException; {:try_start_2 .. :try_end_2} :catch_0
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
.line 63
|
|
:try_start_3
|
|
sget-object p2, Lcom/tapjoy/TJSession;->INSTANCE:Lcom/tapjoy/TJSession;
|
|
|
|
invoke-virtual {p2, p1, p3}, Lcom/tapjoy/TJSession;->setAutomaticSessionTracking(Landroid/content/Context;Ljava/util/Hashtable;)V
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
monitor-exit p0
|
|
|
|
return v1
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
goto :goto_1
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
goto :goto_2
|
|
|
|
.line 64
|
|
:goto_1
|
|
:try_start_4
|
|
new-instance p2, Lcom/tapjoy/TapjoyErrorMessage;
|
|
|
|
sget-object p3, Lcom/tapjoy/TapjoyErrorMessage$ErrorType;->SDK_ERROR:Lcom/tapjoy/TapjoyErrorMessage$ErrorType;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {p2, p3, v2}, Lcom/tapjoy/TapjoyErrorMessage;-><init>(Lcom/tapjoy/TapjoyErrorMessage$ErrorType;Ljava/lang/String;)V
|
|
|
|
const-string p3, "TapjoyAPI"
|
|
|
|
invoke-static {p3, p2}, Lcom/tapjoy/TapjoyLog;->e(Ljava/lang/String;Lcom/tapjoy/TapjoyErrorMessage;)V
|
|
|
|
if-eqz p4, :cond_5
|
|
|
|
.line 66
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p4, Lcom/tapjoy/internal/u2;
|
|
|
|
.line 67
|
|
iget-object p2, p4, Lcom/tapjoy/internal/u2;->a:Lcom/tapjoy/internal/q2;
|
|
|
|
invoke-virtual {p2, v1, p1}, Lcom/tapjoy/internal/z2;->c(ILjava/lang/String;)V
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_0
|
|
|
|
:cond_5
|
|
monitor-exit p0
|
|
|
|
return v0
|
|
|
|
.line 68
|
|
:goto_2
|
|
:try_start_5
|
|
new-instance p2, Lcom/tapjoy/TapjoyErrorMessage;
|
|
|
|
sget-object p3, Lcom/tapjoy/TapjoyErrorMessage$ErrorType;->INTEGRATION_ERROR:Lcom/tapjoy/TapjoyErrorMessage$ErrorType;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {p2, p3, v2}, Lcom/tapjoy/TapjoyErrorMessage;-><init>(Lcom/tapjoy/TapjoyErrorMessage$ErrorType;Ljava/lang/String;)V
|
|
|
|
const-string p3, "TapjoyAPI"
|
|
|
|
invoke-static {p3, p2}, Lcom/tapjoy/TapjoyLog;->e(Ljava/lang/String;Lcom/tapjoy/TapjoyErrorMessage;)V
|
|
|
|
if-eqz p4, :cond_6
|
|
|
|
.line 70
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p4, Lcom/tapjoy/internal/u2;
|
|
|
|
.line 71
|
|
iget-object p2, p4, Lcom/tapjoy/internal/u2;->a:Lcom/tapjoy/internal/q2;
|
|
|
|
invoke-virtual {p2, v1, p1}, Lcom/tapjoy/internal/z2;->c(ILjava/lang/String;)V
|
|
:try_end_5
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_0
|
|
|
|
:cond_6
|
|
monitor-exit p0
|
|
|
|
return v0
|
|
|
|
:goto_3
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final b(Ljava/lang/String;Lcom/tapjoy/TJSetUserIDListener;)V
|
|
.locals 2
|
|
|
|
const-string v0, "setUserID"
|
|
|
|
.line 1
|
|
invoke-static {v0}, Lcom/tapjoy/m1;->a(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/m1;->c:Ljava/util/concurrent/ExecutorService;
|
|
|
|
.line 2
|
|
new-instance v1, Lcom/tapjoy/m1$$ExternalSyntheticLambda0;
|
|
|
|
invoke-direct {v1, p1, p2}, Lcom/tapjoy/m1$$ExternalSyntheticLambda0;-><init>(Ljava/lang/String;Lcom/tapjoy/TJSetUserIDListener;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-eqz p2, :cond_1
|
|
|
|
const-string p1, "Tapjoy SDK is not connected"
|
|
|
|
.line 5
|
|
invoke-interface {p2, p1}, Lcom/tapjoy/TJSetUserIDListener;->onSetUserIDFailure(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 6
|
|
invoke-interface {p2, v0, p1}, Lcom/tapjoy/TJSetUserIDListener;->onSetUserIDFailure(ILjava/lang/String;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|