Files
rr3-apk/smali_classes4/com/tapjoy/internal/e1.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

304 lines
5.8 KiB
Smali

.class public final Lcom/tapjoy/internal/e1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/lang/Runnable;
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final run()V
.locals 19
.line 1
sget-boolean v0, Lcom/tapjoy/internal/e3;->a:Z
if-eqz v0, :cond_0
.line 2
sget-object v0, Lcom/tapjoy/internal/f1;->b:Ljava/util/concurrent/CountDownLatch;
invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
return-void
:cond_0
const-string v0, "pool.ntp.org"
const/4 v1, 0x0
.line 4
:try_start_0
new-instance v2, Ljava/net/DatagramSocket;
invoke-direct {v2}, Ljava/net/DatagramSocket;-><init>()V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
.catchall {:try_start_0 .. :try_end_0} :catchall_2
const/16 v1, 0x4e20
.line 5
:try_start_1
invoke-virtual {v2, v1}, Ljava/net/DatagramSocket;->setSoTimeout(I)V
.line 6
invoke-static {v0}, Ljava/net/InetAddress;->getByName(Ljava/lang/String;)Ljava/net/InetAddress;
move-result-object v0
const/16 v1, 0x30
new-array v3, v1, [B
.line 8
new-instance v4, Ljava/net/DatagramPacket;
const/16 v5, 0x7b
invoke-direct {v4, v3, v1, v0, v5}, Ljava/net/DatagramPacket;-><init>([BILjava/net/InetAddress;I)V
const/4 v0, 0x0
const/16 v5, 0x1b
aput-byte v5, v3, v0
.line 16
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v5
.line 17
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v7
.line 18
invoke-static {v3, v5, v6}, Lcom/tapjoy/internal/g1;->a([BJ)V
.line 20
invoke-virtual {v2, v4}, Ljava/net/DatagramSocket;->send(Ljava/net/DatagramPacket;)V
.line 23
new-instance v0, Ljava/net/DatagramPacket;
invoke-direct {v0, v3, v1}, Ljava/net/DatagramPacket;-><init>([BI)V
.line 24
invoke-virtual {v2, v0}, Ljava/net/DatagramSocket;->receive(Ljava/net/DatagramPacket;)V
.line 25
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v0
sub-long v7, v0, v7
add-long/2addr v5, v7
const/16 v4, 0x18
.line 26
invoke-static {v3, v4}, Lcom/tapjoy/internal/g1;->a([BI)J
move-result-wide v7
const/16 v4, 0x1c
.line 27
invoke-static {v3, v4}, Lcom/tapjoy/internal/g1;->a([BI)J
move-result-wide v9
const-wide v11, 0x83aa7e80L
sub-long/2addr v7, v11
const-wide/16 v13, 0x3e8
mul-long/2addr v7, v13
mul-long/2addr v9, v13
const-wide v15, 0x100000000L
.line 28
div-long/2addr v9, v15
add-long/2addr v9, v7
const/16 v4, 0x20
.line 29
invoke-static {v3, v4}, Lcom/tapjoy/internal/g1;->a([BI)J
move-result-wide v7
const/16 v4, 0x24
.line 30
invoke-static {v3, v4}, Lcom/tapjoy/internal/g1;->a([BI)J
move-result-wide v17
sub-long/2addr v7, v11
mul-long/2addr v7, v13
mul-long v17, v17, v13
.line 31
div-long v17, v17, v15
add-long v17, v17, v7
const/16 v4, 0x28
.line 32
invoke-static {v3, v4}, Lcom/tapjoy/internal/g1;->a([BI)J
move-result-wide v7
const/16 v4, 0x2c
.line 33
invoke-static {v3, v4}, Lcom/tapjoy/internal/g1;->a([BI)J
move-result-wide v3
sub-long/2addr v7, v11
mul-long/2addr v7, v13
mul-long/2addr v3, v13
.line 34
div-long/2addr v3, v15
add-long/2addr v3, v7
sub-long v17, v17, v9
sub-long/2addr v3, v5
add-long v3, v3, v17
const-wide/16 v7, 0x2
.line 35
div-long/2addr v3, v7
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_1
add-long/2addr v5, v3
.line 50
invoke-virtual {v2}, Ljava/net/DatagramSocket;->close()V
const-class v2, Lcom/tapjoy/internal/e3;
.line 51
monitor-enter v2
const/4 v3, 0x1
.line 52
:try_start_2
sput-boolean v3, Lcom/tapjoy/internal/e3;->a:Z
.line 54
sput-wide v5, Lcom/tapjoy/internal/e3;->b:J
.line 55
sput-wide v0, Lcom/tapjoy/internal/e3;->c:J
.line 56
sget-wide v0, Lcom/tapjoy/internal/e3;->b:J
sget-wide v3, Lcom/tapjoy/internal/e3;->c:J
sub-long/2addr v0, v3
sput-wide v0, Lcom/tapjoy/internal/e3;->d:J
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
monitor-exit v2
.line 57
sget-object v0, Lcom/tapjoy/internal/f1;->b:Ljava/util/concurrent/CountDownLatch;
invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
move-object/from16 v4, p0
goto :goto_2
:catchall_0
move-exception v0
monitor-exit v2
throw v0
:catchall_1
move-exception v0
move-object v1, v2
goto :goto_0
:catch_0
move-object v1, v2
goto :goto_1
:catchall_2
move-exception v0
:goto_0
if-eqz v1, :cond_1
.line 58
invoke-virtual {v1}, Ljava/net/DatagramSocket;->close()V
.line 60
:cond_1
throw v0
:catch_1
:goto_1
if-eqz v1, :cond_2
.line 61
invoke-virtual {v1}, Ljava/net/DatagramSocket;->close()V
.line 62
:cond_2
sget-object v0, Lcom/tapjoy/internal/f1;->a:Ljava/util/concurrent/ScheduledExecutorService;
sget-object v1, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
const-wide/16 v2, 0x12c
move-object/from16 v4, p0
invoke-interface {v0, v4, v2, v3, v1}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
:goto_2
return-void
.end method