mirror of
https://github.com/XploitWizer-Community/XploitSPY.git
synced 2024-11-16 23:39:20 +08:00
540 lines
8.5 KiB
Smali
540 lines
8.5 KiB
Smali
.class public Ld/c;
|
|
.super Ld/y;
|
|
.source ""
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Ld/c$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final e:J
|
|
|
|
.field private static final f:J
|
|
|
|
.field private static g:Ld/c;
|
|
|
|
|
|
# instance fields
|
|
.field private h:Z
|
|
|
|
.field private i:Ld/c;
|
|
|
|
.field private j:J
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
sget-object v0, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
const-wide/16 v1, 0x3c
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
|
|
|
|
move-result-wide v0
|
|
|
|
sput-wide v0, Ld/c;->e:J
|
|
|
|
sget-object v0, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
sget-wide v1, Ld/c;->e:J
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
|
|
|
|
move-result-wide v0
|
|
|
|
sput-wide v0, Ld/c;->f:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ld/y;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Ld/c;)Ld/c;
|
|
.locals 0
|
|
|
|
sput-object p0, Ld/c;->g:Ld/c;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static declared-synchronized a(Ld/c;JZ)V
|
|
.locals 6
|
|
|
|
const-class v0, Ld/c;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Ld/c;->g:Ld/c;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
new-instance v1, Ld/c;
|
|
|
|
invoke-direct {v1}, Ld/c;-><init>()V
|
|
|
|
sput-object v1, Ld/c;->g:Ld/c;
|
|
|
|
new-instance v1, Ld/c$a;
|
|
|
|
invoke-direct {v1}, Ld/c$a;-><init>()V
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Thread;->start()V
|
|
|
|
:cond_0
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v1
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
cmp-long v5, p1, v3
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
invoke-virtual {p0}, Ld/y;->c()J
|
|
|
|
move-result-wide v3
|
|
|
|
sub-long/2addr v3, v1
|
|
|
|
invoke-static {p1, p2, v3, v4}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide p1
|
|
|
|
:goto_0
|
|
add-long/2addr p1, v1
|
|
|
|
iput-wide p1, p0, Ld/c;->j:J
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
cmp-long v5, p1, v3
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
if-eqz p3, :cond_6
|
|
|
|
invoke-virtual {p0}, Ld/y;->c()J
|
|
|
|
move-result-wide p1
|
|
|
|
iput-wide p1, p0, Ld/c;->j:J
|
|
|
|
:goto_1
|
|
invoke-direct {p0, v1, v2}, Ld/c;->b(J)J
|
|
|
|
move-result-wide p1
|
|
|
|
sget-object p3, Ld/c;->g:Ld/c;
|
|
|
|
:goto_2
|
|
iget-object v3, p3, Ld/c;->i:Ld/c;
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
iget-object v3, p3, Ld/c;->i:Ld/c;
|
|
|
|
invoke-direct {v3, v1, v2}, Ld/c;->b(J)J
|
|
|
|
move-result-wide v3
|
|
|
|
cmp-long v5, p1, v3
|
|
|
|
if-gez v5, :cond_3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
iget-object p3, p3, Ld/c;->i:Ld/c;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
:goto_3
|
|
iget-object p1, p3, Ld/c;->i:Ld/c;
|
|
|
|
iput-object p1, p0, Ld/c;->i:Ld/c;
|
|
|
|
iput-object p0, p3, Ld/c;->i:Ld/c;
|
|
|
|
sget-object p0, Ld/c;->g:Ld/c;
|
|
|
|
if-ne p3, p0, :cond_5
|
|
|
|
const-class p0, Ld/c;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->notify()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:cond_5
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:cond_6
|
|
:try_start_1
|
|
new-instance p0, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {p0}, Ljava/lang/AssertionError;-><init>()V
|
|
|
|
throw p0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
monitor-exit v0
|
|
|
|
goto :goto_5
|
|
|
|
:goto_4
|
|
throw p0
|
|
|
|
:goto_5
|
|
goto :goto_4
|
|
.end method
|
|
|
|
.method private b(J)J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Ld/c;->j:J
|
|
|
|
sub-long/2addr v0, p1
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method private static declared-synchronized b(Ld/c;)Z
|
|
.locals 3
|
|
|
|
const-class v0, Ld/c;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Ld/c;->g:Ld/c;
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_1
|
|
|
|
iget-object v2, v1, Ld/c;->i:Ld/c;
|
|
|
|
if-ne v2, p0, :cond_0
|
|
|
|
iget-object v2, p0, Ld/c;->i:Ld/c;
|
|
|
|
iput-object v2, v1, Ld/c;->i:Ld/c;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput-object v1, p0, Ld/c;->i:Ld/c;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
:goto_1
|
|
monitor-exit v0
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
:try_start_1
|
|
iget-object v1, v1, Ld/c;->i:Ld/c;
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
monitor-exit v0
|
|
|
|
goto :goto_3
|
|
|
|
:goto_2
|
|
throw p0
|
|
|
|
:goto_3
|
|
goto :goto_2
|
|
.end method
|
|
|
|
.method static synthetic g()Ld/c;
|
|
.locals 1
|
|
|
|
sget-object v0, Ld/c;->g:Ld/c;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method static h()Ld/c;
|
|
.locals 8
|
|
|
|
sget-object v0, Ld/c;->g:Ld/c;
|
|
|
|
iget-object v0, v0, Ld/c;->i:Ld/c;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v2
|
|
|
|
const-class v0, Ld/c;
|
|
|
|
sget-wide v4, Ld/c;->e:J
|
|
|
|
invoke-virtual {v0, v4, v5}, Ljava/lang/Object;->wait(J)V
|
|
|
|
sget-object v0, Ld/c;->g:Ld/c;
|
|
|
|
iget-object v0, v0, Ld/c;->i:Ld/c;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v4
|
|
|
|
sub-long/2addr v4, v2
|
|
|
|
sget-wide v2, Ld/c;->f:J
|
|
|
|
cmp-long v0, v4, v2
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
sget-object v1, Ld/c;->g:Ld/c;
|
|
|
|
:cond_0
|
|
return-object v1
|
|
|
|
:cond_1
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-direct {v0, v2, v3}, Ld/c;->b(J)J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
if-lez v6, :cond_2
|
|
|
|
const-wide/32 v4, 0xf4240
|
|
|
|
div-long v6, v2, v4
|
|
|
|
mul-long v4, v4, v6
|
|
|
|
sub-long/2addr v2, v4
|
|
|
|
const-class v0, Ld/c;
|
|
|
|
long-to-int v3, v2
|
|
|
|
invoke-virtual {v0, v6, v7, v3}, Ljava/lang/Object;->wait(JI)V
|
|
|
|
return-object v1
|
|
|
|
:cond_2
|
|
sget-object v2, Ld/c;->g:Ld/c;
|
|
|
|
iget-object v3, v0, Ld/c;->i:Ld/c;
|
|
|
|
iput-object v3, v2, Ld/c;->i:Ld/c;
|
|
|
|
iput-object v1, v0, Ld/c;->i:Ld/c;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Ld/v;)Ld/v;
|
|
.locals 1
|
|
|
|
new-instance v0, Ld/a;
|
|
|
|
invoke-direct {v0, p0, p1}, Ld/a;-><init>(Ld/c;Ld/v;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final a(Ld/w;)Ld/w;
|
|
.locals 1
|
|
|
|
new-instance v0, Ld/b;
|
|
|
|
invoke-direct {v0, p0, p1}, Ld/b;-><init>(Ld/c;Ld/w;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method final a(Ljava/io/IOException;)Ljava/io/IOException;
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Ld/c;->j()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Ld/c;->b(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method final a(Z)V
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Ld/c;->j()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
invoke-virtual {p0, p1}, Ld/c;->b(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected b(Ljava/io/IOException;)Ljava/io/IOException;
|
|
.locals 2
|
|
|
|
new-instance v0, Ljava/io/InterruptedIOException;
|
|
|
|
const-string v1, "timeout"
|
|
|
|
invoke-direct {v0, v1}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {v0, p1}, Ljava/io/InterruptedIOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final i()V
|
|
.locals 6
|
|
|
|
iget-boolean v0, p0, Ld/c;->h:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-virtual {p0}, Ld/y;->f()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p0}, Ld/y;->d()Z
|
|
|
|
move-result v2
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
cmp-long v5, v0, v3
|
|
|
|
if-nez v5, :cond_0
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v3, 0x1
|
|
|
|
iput-boolean v3, p0, Ld/c;->h:Z
|
|
|
|
invoke-static {p0, v0, v1, v2}, Ld/c;->a(Ld/c;JZ)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v1, "Unbalanced enter/exit"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final j()Z
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Ld/c;->h:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
iput-boolean v1, p0, Ld/c;->h:Z
|
|
|
|
invoke-static {p0}, Ld/c;->b(Ld/c;)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected k()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|