apkfuckery/com.discord/smali/f/a/c/b.smali
2020-11-21 22:11:07 +00:00

288 lines
7.9 KiB
Smali

.class public abstract Lf/a/c/b;
.super Landroid/app/IntentService;
.source "RemoteIntentService.kt"
# instance fields
.field public final d:Ljava/lang/String;
# direct methods
.method public constructor <init>(Ljava/lang/String;)V
.locals 1
const-string v0, "name"
invoke-static {p1, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, p1}, Landroid/app/IntentService;-><init>(Ljava/lang/String;)V
iput-object p1, p0, Lf/a/c/b;->d:Ljava/lang/String;
return-void
.end method
# virtual methods
.method public abstract a(Landroid/content/Intent;)Landroid/os/Bundle;
.end method
.method public final onCreate()V
.locals 2
invoke-super {p0}, Landroid/app/IntentService;->onCreate()V
const/16 v0, 0x5b
invoke-static {v0}, Lf/e/c/a/a;->D(C)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lf/a/c/b;->d:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, "] created, remote pid="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {}, Landroid/os/Process;->myPid()I
move-result v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "RemoteIntentService"
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
return-void
.end method
.method public final onDestroy()V
.locals 2
const/16 v0, 0x5b
invoke-static {v0}, Lf/e/c/a/a;->D(C)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lf/a/c/b;->d:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, "] destroyed"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "RemoteIntentService"
invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
invoke-super {p0}, Landroid/app/IntentService;->onDestroy()V
return-void
.end method
.method public final onHandleIntent(Landroid/content/Intent;)V
.locals 13
const/16 v0, 0x5b
invoke-static {v0}, Lf/e/c/a/a;->D(C)Ljava/lang/StringBuilder;
move-result-object v1
iget-object v2, p0, Lf/a/c/b;->d:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, "] onHandleIntent() start, pid="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {}, Landroid/os/Process;->myPid()I
move-result v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
const-string v2, "RemoteIntentService"
invoke-static {v2, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
if-nez p1, :cond_0
invoke-static {v0}, Lf/e/c/a/a;->D(C)Ljava/lang/StringBuilder;
move-result-object p1
iget-object v0, p0, Lf/a/c/b;->d:Ljava/lang/String;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, "] null intent"
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {v2, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
return-void
:cond_0
new-instance v1, Lcom/discord/utilities/time/NtpClock;
const/4 v4, 0x0
const/4 v5, 0x0
const-wide/16 v6, 0x0
const-wide/16 v8, 0x0
const-wide/16 v10, 0x0
const/16 v12, 0x3e
move-object v3, p0
invoke-static/range {v3 .. v12}, Lf/j/a/a;->a(Landroid/content/Context;Lf/j/a/e;Ljava/util/List;JJJI)Lcom/lyft/kronos/KronosClock;
move-result-object v3
invoke-direct {v1, v3}, Lcom/discord/utilities/time/NtpClock;-><init>(Lcom/lyft/kronos/KronosClock;)V
invoke-interface {v1}, Lcom/discord/utilities/time/Clock;->currentTimeMillis()J
move-result-wide v3
:try_start_0
invoke-virtual {p0, p1}, Lf/a/c/b;->a(Landroid/content/Intent;)Landroid/os/Bundle;
move-result-object v5
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception v5
invoke-static {v0}, Lf/e/c/a/a;->D(C)Ljava/lang/StringBuilder;
move-result-object v6
iget-object v7, p0, Lf/a/c/b;->d:Ljava/lang/String;
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v7, "] doWork returned error: "
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v6
invoke-static {v2, v6}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
:goto_0
invoke-interface {v1}, Lcom/discord/utilities/time/Clock;->currentTimeMillis()J
move-result-wide v6
sub-long/2addr v6, v3
invoke-static {v0}, Lf/e/c/a/a;->D(C)Ljava/lang/StringBuilder;
move-result-object v1
iget-object v3, p0, Lf/a/c/b;->d:Ljava/lang/String;
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v3, "] doWork finished: "
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v3, " ms"
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v2, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;
move-result-object v1
const/4 v3, 0x1
iput v3, v1, Landroid/os/Message;->what:I
long-to-int v3, v6
iput v3, v1, Landroid/os/Message;->arg1:I
iput-object v5, v1, Landroid/os/Message;->obj:Ljava/lang/Object;
const-string v3, "com.discord.utilities.analytics.RemoteIntentService.MESSENGER_KEY"
invoke-virtual {p1, v3}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object p1
check-cast p1, Landroid/os/Messenger;
if-eqz p1, :cond_1
invoke-virtual {p1, v1}, Landroid/os/Messenger;->send(Landroid/os/Message;)V
goto :goto_1
:cond_1
invoke-static {v0}, Lf/e/c/a/a;->D(C)Ljava/lang/StringBuilder;
move-result-object p1
iget-object v0, p0, Lf/a/c/b;->d:Ljava/lang/String;
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, "] reply-to Messenger not set by caller"
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {v2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
:goto_1
return-void
.end method