- 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
380 lines
9.6 KiB
Smali
380 lines
9.6 KiB
Smali
.class public final Lcom/tapjoy/internal/y2;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# instance fields
|
|
.field public a:Z
|
|
|
|
.field public b:Ljava/lang/String;
|
|
|
|
.field public c:Landroid/content/Context;
|
|
|
|
.field public final d:Lcom/tapjoy/internal/x2;
|
|
|
|
.field public final synthetic e:Lcom/tapjoy/internal/q2;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/tapjoy/internal/q2;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 89
|
|
new-instance p1, Lcom/tapjoy/internal/x2;
|
|
|
|
invoke-direct {p1, p0}, Lcom/tapjoy/internal/x2;-><init>(Lcom/tapjoy/internal/y2;)V
|
|
|
|
iput-object p1, p0, Lcom/tapjoy/internal/y2;->d:Lcom/tapjoy/internal/x2;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
.line 1
|
|
iget-object v1, v0, Lcom/tapjoy/internal/z2;->f:Lcom/tapjoy/internal/y2;
|
|
|
|
if-ne v1, p0, :cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 2
|
|
iput-object v1, v0, Lcom/tapjoy/internal/z2;->f:Lcom/tapjoy/internal/y2;
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget v0, v0, Lcom/tapjoy/internal/z2;->d:I
|
|
|
|
const/4 v1, 0x3
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v1}, Lcom/tapjoy/internal/z2;->a(I)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final run()V
|
|
.locals 10
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
const/4 v1, 0x3
|
|
|
|
.line 1
|
|
invoke-virtual {v0, v1}, Lcom/tapjoy/internal/z2;->a(I)V
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Lcom/tapjoy/internal/z2;->a()Lcom/tapjoy/internal/v2;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v0, v0, Lcom/tapjoy/internal/v2;->a:Landroid/content/Context;
|
|
|
|
iput-object v0, p0, Lcom/tapjoy/internal/y2;->c:Landroid/content/Context;
|
|
|
|
.line 3
|
|
new-instance v0, Landroid/content/IntentFilter;
|
|
|
|
const-string v2, "android.net.conn.CONNECTIVITY_CHANGE"
|
|
|
|
invoke-direct {v0, v2}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V
|
|
|
|
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v3, 0x21
|
|
|
|
if-lt v2, v3, :cond_0
|
|
|
|
iget-object v2, p0, Lcom/tapjoy/internal/y2;->c:Landroid/content/Context;
|
|
|
|
iget-object v3, p0, Lcom/tapjoy/internal/y2;->d:Lcom/tapjoy/internal/x2;
|
|
|
|
const/4 v4, 0x4
|
|
|
|
.line 5
|
|
invoke-virtual {v2, v3, v0, v4}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;I)Landroid/content/Intent;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v2, p0, Lcom/tapjoy/internal/y2;->c:Landroid/content/Context;
|
|
|
|
iget-object v3, p0, Lcom/tapjoy/internal/y2;->d:Lcom/tapjoy/internal/x2;
|
|
|
|
.line 7
|
|
invoke-virtual {v2, v3, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
|
|
|
|
.line 8
|
|
:goto_0
|
|
:try_start_0
|
|
new-instance v0, Ljava/util/concurrent/CountDownLatch;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-direct {v0, v2}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V
|
|
|
|
.line 10
|
|
sget-object v3, Lcom/tapjoy/internal/y;->b:Lcom/tapjoy/internal/x;
|
|
|
|
new-instance v4, Lcom/tapjoy/internal/w2;
|
|
|
|
invoke-direct {v4, p0, v0}, Lcom/tapjoy/internal/w2;-><init>(Lcom/tapjoy/internal/y2;Ljava/util/concurrent/CountDownLatch;)V
|
|
|
|
invoke-virtual {v3, v4}, Ljava/util/Observable;->addObserver(Ljava/util/Observer;)V
|
|
|
|
iget-object v3, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
.line 24
|
|
invoke-virtual {v3}, Lcom/tapjoy/internal/z2;->a()Lcom/tapjoy/internal/v2;
|
|
|
|
move-result-object v3
|
|
|
|
iget-object v4, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
.line 25
|
|
iget-object v5, v3, Lcom/tapjoy/internal/v2;->a:Landroid/content/Context;
|
|
|
|
iget-object v6, v3, Lcom/tapjoy/internal/v2;->b:Ljava/lang/String;
|
|
|
|
iget-object v3, v3, Lcom/tapjoy/internal/v2;->c:Ljava/util/Hashtable;
|
|
|
|
.line 26
|
|
iget-object v4, v4, Lcom/tapjoy/internal/q2;->l:Lcom/tapjoy/internal/r2;
|
|
|
|
.line 27
|
|
iget v7, v4, Lcom/tapjoy/internal/r2;->d:I
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
const-string v8, "Failed to connect"
|
|
|
|
const/4 v9, 0x5
|
|
|
|
if-le v7, v9, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
add-int/lit8 v7, v7, 0x1
|
|
|
|
.line 30
|
|
:try_start_1
|
|
iput v7, v4, Lcom/tapjoy/internal/r2;->d:I
|
|
|
|
const/4 v7, 0x0
|
|
|
|
.line 31
|
|
invoke-static {v4, v5, v6, v3, v7}, Lcom/tapjoy/internal/r2;->a(Lcom/tapjoy/internal/r2;Landroid/content/Context;Ljava/lang/String;Ljava/util/Hashtable;Lcom/tapjoy/internal/u2;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_2
|
|
|
|
:goto_1
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
.line 32
|
|
invoke-virtual {v0, v2, v8}, Lcom/tapjoy/internal/z2;->c(ILjava/lang/String;)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->c:Landroid/content/Context;
|
|
|
|
iget-object v1, p0, Lcom/tapjoy/internal/y2;->d:Lcom/tapjoy/internal/x2;
|
|
|
|
.line 33
|
|
invoke-virtual {v0, v1}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
|
|
|
|
.line 34
|
|
invoke-virtual {p0}, Lcom/tapjoy/internal/y2;->a()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
goto :goto_3
|
|
|
|
.line 35
|
|
:cond_2
|
|
:try_start_2
|
|
invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->await()V
|
|
:try_end_2
|
|
.catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_2} :catch_0
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
goto :goto_2
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
:try_start_3
|
|
const-string v2, "TapjoyConnectAutoRetry"
|
|
|
|
.line 37
|
|
invoke-virtual {v0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v2, v0}, Lcom/tapjoy/TapjoyLog;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:goto_2
|
|
iget-boolean v0, p0, Lcom/tapjoy/internal/y2;->a:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
.line 41
|
|
invoke-virtual {v0, v9}, Lcom/tapjoy/internal/z2;->a(I)V
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
.line 42
|
|
invoke-virtual {v0}, Lcom/tapjoy/internal/z2;->c()V
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->c:Landroid/content/Context;
|
|
|
|
iget-object v1, p0, Lcom/tapjoy/internal/y2;->d:Lcom/tapjoy/internal/x2;
|
|
|
|
.line 43
|
|
invoke-virtual {v0, v1}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
|
|
|
|
.line 44
|
|
invoke-virtual {p0}, Lcom/tapjoy/internal/y2;->a()V
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
:try_start_4
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->b:Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 45
|
|
invoke-virtual {v0}, Ljava/lang/String;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
const/4 v1, 0x6
|
|
|
|
.line 46
|
|
invoke-virtual {v0, v1}, Lcom/tapjoy/internal/z2;->a(I)V
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
iget-object v1, p0, Lcom/tapjoy/internal/y2;->b:Ljava/lang/String;
|
|
|
|
const/4 v2, -0x1
|
|
|
|
.line 47
|
|
invoke-virtual {v0, v2, v1}, Lcom/tapjoy/internal/z2;->b(ILjava/lang/String;)V
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_0
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->c:Landroid/content/Context;
|
|
|
|
iget-object v1, p0, Lcom/tapjoy/internal/y2;->d:Lcom/tapjoy/internal/x2;
|
|
|
|
.line 48
|
|
invoke-virtual {v0, v1}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
|
|
|
|
.line 49
|
|
invoke-virtual {p0}, Lcom/tapjoy/internal/y2;->a()V
|
|
|
|
return-void
|
|
|
|
:cond_4
|
|
:try_start_5
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
.line 50
|
|
invoke-virtual {v0, v1, v8}, Lcom/tapjoy/internal/z2;->c(ILjava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
.line 53
|
|
iget-wide v2, v0, Lcom/tapjoy/internal/z2;->g:J
|
|
|
|
const-wide/16 v4, 0x2
|
|
|
|
mul-long/2addr v2, v4
|
|
|
|
iput-wide v2, v0, Lcom/tapjoy/internal/z2;->g:J
|
|
|
|
const-wide/16 v4, 0x3e8
|
|
|
|
.line 54
|
|
invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->max(JJ)J
|
|
|
|
move-result-wide v2
|
|
|
|
iput-wide v2, v0, Lcom/tapjoy/internal/z2;->g:J
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
.line 55
|
|
iget-wide v2, v0, Lcom/tapjoy/internal/z2;->g:J
|
|
|
|
const-wide/32 v4, 0x36ee80
|
|
|
|
invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v2
|
|
|
|
iput-wide v2, v0, Lcom/tapjoy/internal/z2;->g:J
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/internal/y2;->e:Lcom/tapjoy/internal/q2;
|
|
|
|
.line 56
|
|
iget-wide v2, v0, Lcom/tapjoy/internal/z2;->g:J
|
|
|
|
invoke-virtual {v0, v2, v3}, Lcom/tapjoy/internal/z2;->a(J)V
|
|
:try_end_5
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:goto_3
|
|
iget-object v1, p0, Lcom/tapjoy/internal/y2;->c:Landroid/content/Context;
|
|
|
|
iget-object v2, p0, Lcom/tapjoy/internal/y2;->d:Lcom/tapjoy/internal/x2;
|
|
|
|
.line 57
|
|
invoke-virtual {v1, v2}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
|
|
|
|
.line 58
|
|
invoke-virtual {p0}, Lcom/tapjoy/internal/y2;->a()V
|
|
|
|
.line 59
|
|
throw v0
|
|
.end method
|