apkfuckery/com.discord/smali/f/c/a/a$f.smali
2020-07-25 02:57:47 +00:00

510 lines
12 KiB
Smali

.class public Lf/c/a/a$f;
.super Ljava/lang/Object;
.source "ActivityHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lf/c/a/a;->C(Ljava/lang/String;Z)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic d:Z
.field public final synthetic e:Ljava/lang/String;
.field public final synthetic f:Lf/c/a/a;
# direct methods
.method public constructor <init>(Lf/c/a/a;ZLjava/lang/String;)V
.locals 0
iput-object p1, p0, Lf/c/a/a$f;->f:Lf/c/a/a;
iput-boolean p2, p0, Lf/c/a/a$f;->d:Z
iput-object p3, p0, Lf/c/a/a$f;->e:Ljava/lang/String;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 18
move-object/from16 v1, p0
iget-boolean v0, v1, Lf/c/a/a$f;->d:Z
if-nez v0, :cond_0
new-instance v2, Lf/c/a/z1;
iget-object v0, v1, Lf/c/a/a$f;->f:Lf/c/a/a;
iget-object v0, v0, Lf/c/a/a;->m:Lf/c/a/w;
iget-object v0, v0, Lf/c/a/w;->d:Landroid/content/Context;
invoke-direct {v2, v0}, Lf/c/a/z1;-><init>(Landroid/content/Context;)V
iget-object v0, v1, Lf/c/a/a$f;->e:Ljava/lang/String;
monitor-enter v2
:try_start_0
const-string v3, "push_token"
invoke-virtual {v2, v3, v0}, Lf/c/a/z1;->m(Ljava/lang/String;Ljava/lang/String;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit v2
goto :goto_0
:catchall_0
move-exception v0
monitor-exit v2
throw v0
:cond_0
:goto_0
iget-object v0, v1, Lf/c/a/a$f;->f:Lf/c/a/a;
iget-object v2, v0, Lf/c/a/a;->h:Lf/c/a/a$n;
iget-boolean v2, v2, Lf/c/a/a$n;->h:Z
const/4 v3, 0x1
xor-int/2addr v2, v3
if-eqz v2, :cond_1
return-void
:cond_1
iget-object v2, v1, Lf/c/a/a$f;->e:Ljava/lang/String;
invoke-virtual {v0}, Lf/c/a/a;->q()Z
move-result v4
if-nez v4, :cond_2
goto/16 :goto_1
:cond_2
invoke-virtual {v0}, Lf/c/a/a;->u()Z
move-result v4
if-nez v4, :cond_3
goto/16 :goto_1
:cond_3
iget-object v4, v0, Lf/c/a/a;->c:Lf/c/a/v;
iget-boolean v5, v4, Lf/c/a/v;->isGdprForgotten:Z
if-eqz v5, :cond_4
goto/16 :goto_1
:cond_4
if-nez v2, :cond_5
goto/16 :goto_1
:cond_5
iget-object v4, v4, Lf/c/a/v;->pushToken:Ljava/lang/String;
invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_6
goto/16 :goto_1
:cond_6
iget-object v4, v0, Lf/c/a/a;->c:Lf/c/a/v;
iput-object v2, v4, Lf/c/a/v;->pushToken:Ljava/lang/String;
invoke-virtual {v0}, Lf/c/a/a;->P()V
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v10
new-instance v2, Lf/c/a/n1;
iget-object v6, v0, Lf/c/a/a;->m:Lf/c/a/w;
iget-object v7, v0, Lf/c/a/a;->l:Lf/c/a/p0;
iget-object v8, v0, Lf/c/a/a;->c:Lf/c/a/v;
iget-object v9, v0, Lf/c/a/a;->q:Lf/c/a/x1;
move-object v5, v2
invoke-direct/range {v5 .. v11}, Lf/c/a/n1;-><init>(Lf/c/a/w;Lf/c/a/p0;Lf/c/a/v;Lf/c/a/x1;J)V
const-string v4, "push"
sget-object v5, Lf/c/a/t;->k:Lf/c/a/t;
iget-object v6, v2, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v6, v6, Lf/c/a/w;->d:Landroid/content/Context;
invoke-virtual {v6}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v13
new-instance v6, Ljava/util/HashMap;
invoke-direct {v6}, Ljava/util/HashMap;-><init>()V
iget-object v7, v2, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v7, v7, Lf/c/a/w;->d:Landroid/content/Context;
sget-object v8, Lf/c/a/n1;->p:Lf/c/a/w0;
invoke-static {v7, v8}, Ld0/a/b/b/a;->Q(Landroid/content/Context;Lf/c/a/w0;)Ljava/util/Map;
move-result-object v7
if-eqz v7, :cond_7
invoke-virtual {v6, v7}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V
:cond_7
iget-object v7, v2, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v7, v7, Lf/c/a/w;->d:Landroid/content/Context;
sget-object v8, Lf/c/a/n1;->p:Lf/c/a/w0;
invoke-static {v7, v8}, Ld0/a/b/b/a;->S(Landroid/content/Context;Lf/c/a/w0;)Ljava/util/Map;
move-result-object v7
if-eqz v7, :cond_8
invoke-virtual {v6, v7}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V
:cond_8
iget-object v7, v2, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v8, v2, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v8, v8, Lf/c/a/w;->d:Landroid/content/Context;
invoke-virtual {v7, v8}, Lf/c/a/p0;->b(Landroid/content/Context;)V
iget-object v7, v2, Lf/c/a/n1;->d:Lf/c/a/n1$a;
iget-object v7, v7, Lf/c/a/n1$a;->g:Ljava/lang/String;
const-string v8, "android_uuid"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v7, v2, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v7, v7, Lf/c/a/p0;->d:Ljava/lang/Boolean;
const-string v8, "tracking_enabled"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/lang/Boolean;)V
iget-object v7, v2, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v7, v7, Lf/c/a/p0;->a:Ljava/lang/String;
const-string v8, "gps_adid"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v7, v2, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v7, v7, Lf/c/a/p0;->b:Ljava/lang/String;
const-string v8, "gps_adid_src"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v7, v2, Lf/c/a/n1;->b:Lf/c/a/p0;
iget v7, v7, Lf/c/a/p0;->c:I
int-to-long v7, v7
const-string v9, "gps_adid_attempt"
invoke-static {v6, v9, v7, v8}, Lf/c/a/n1;->e(Ljava/util/Map;Ljava/lang/String;J)V
invoke-virtual {v2, v6}, Lf/c/a/n1;->j(Ljava/util/Map;)Z
move-result v7
const/4 v15, 0x0
if-nez v7, :cond_9
sget-object v7, Lf/c/a/n1;->p:Lf/c/a/w0;
new-array v8, v15, [Ljava/lang/Object;
const-string v9, "Google Advertising ID not detected, fallback to non Google Play identifiers will take place"
invoke-interface {v7, v9, v8}, Lf/c/a/w0;->d(Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v7, v2, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v8, v2, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v8, v8, Lf/c/a/w;->d:Landroid/content/Context;
invoke-virtual {v7, v8}, Lf/c/a/p0;->a(Landroid/content/Context;)V
iget-object v7, v2, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v7, v7, Lf/c/a/p0;->f:Ljava/lang/String;
const-string v8, "mac_sha1"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v7, v2, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v7, v7, Lf/c/a/p0;->g:Ljava/lang/String;
const-string v8, "mac_md5"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v7, v2, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v7, v7, Lf/c/a/p0;->h:Ljava/lang/String;
const-string v8, "android_id"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
:cond_9
iget-object v7, v2, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v7, v7, Lf/c/a/w;->B:Ljava/lang/String;
const-string v8, "app_secret"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v7, v2, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v7, v7, Lf/c/a/w;->e:Ljava/lang/String;
const-string v8, "app_token"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
sget-object v7, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
const-string v8, "attribution_deeplink"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/lang/Boolean;)V
iget-wide v7, v2, Lf/c/a/n1;->a:J
const-string v9, "created_at"
invoke-static {v6, v9, v7, v8}, Lf/c/a/n1;->b(Ljava/util/Map;Ljava/lang/String;J)V
iget-object v7, v2, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v7, v7, Lf/c/a/w;->l:Ljava/lang/Boolean;
const-string v8, "device_known"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/lang/Boolean;)V
iget-object v7, v2, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v7, v7, Lf/c/a/w;->f:Ljava/lang/String;
const-string v8, "environment"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v7, v2, Lf/c/a/n1;->c:Lf/c/a/w;
iget-boolean v7, v7, Lf/c/a/w;->i:Z
invoke-static {v7}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v7
const-string v8, "event_buffering_enabled"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/lang/Boolean;)V
iget-object v7, v2, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v9, v7, Lf/c/a/w;->C:Ljava/lang/String;
const-string v8, "external_device_id"
const-string v12, "fire_adid"
const-string v16, "fire_tracking_enabled"
move-object v7, v6
move-object v10, v13
move-object v11, v6
move-object v14, v6
const/16 v17, 0x0
move-object/from16 v15, v16
invoke-static/range {v7 .. v15}, Lf/e/b/a/a;->S(Ljava/util/HashMap;Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentResolver;Ljava/util/HashMap;Ljava/lang/String;Landroid/content/ContentResolver;Ljava/util/HashMap;Ljava/lang/String;)V
sget-object v7, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
const-string v8, "needs_response_details"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/lang/Boolean;)V
iget-object v7, v2, Lf/c/a/n1;->d:Lf/c/a/n1$a;
iget-object v7, v7, Lf/c/a/n1$a;->h:Ljava/lang/String;
const-string v8, "push_token"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v7, v2, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v7, v7, Lf/c/a/w;->A:Ljava/lang/String;
const-string v8, "secret_id"
invoke-static {v6, v8, v7}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
const-string v7, "source"
invoke-static {v6, v7, v4}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
invoke-virtual {v2, v6}, Lf/c/a/n1;->i(Ljava/util/Map;)V
invoke-virtual {v2, v5}, Lf/c/a/n1;->k(Lf/c/a/t;)Lf/c/a/u;
move-result-object v4
const-string v7, "/sdk_info"
iput-object v7, v4, Lf/c/a/u;->path:Ljava/lang/String;
const-string v7, ""
iput-object v7, v4, Lf/c/a/u;->suffix:Ljava/lang/String;
invoke-virtual {v5}, Lf/c/a/t;->toString()Ljava/lang/String;
move-result-object v5
iget-object v7, v4, Lf/c/a/u;->clientSdk:Ljava/lang/String;
iget-object v2, v2, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v8, v2, Lf/c/a/w;->d:Landroid/content/Context;
iget-object v2, v2, Lf/c/a/w;->v:Lf/c/a/w0;
invoke-static {v6, v5, v7, v8, v2}, Lf/c/a/g0;->c(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;Lf/c/a/w0;)V
iput-object v6, v4, Lf/c/a/u;->parameters:Ljava/util/Map;
iget-object v2, v0, Lf/c/a/a;->b:Lf/c/a/x0;
invoke-interface {v2, v4}, Lf/c/a/x0;->g(Lf/c/a/u;)V
new-instance v2, Lf/c/a/z1;
iget-object v5, v0, Lf/c/a/a;->m:Lf/c/a/w;
iget-object v5, v5, Lf/c/a/w;->d:Landroid/content/Context;
invoke-direct {v2, v5}, Lf/c/a/z1;-><init>(Landroid/content/Context;)V
monitor-enter v2
:try_start_1
const-string v5, "push_token"
invoke-virtual {v2, v5}, Lf/c/a/z1;->i(Ljava/lang/String;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
monitor-exit v2
iget-object v2, v0, Lf/c/a/a;->m:Lf/c/a/w;
iget-boolean v2, v2, Lf/c/a/w;->i:Z
if-eqz v2, :cond_a
iget-object v0, v0, Lf/c/a/a;->d:Lf/c/a/w0;
const-string v2, "Buffered event %s"
new-array v3, v3, [Ljava/lang/Object;
iget-object v4, v4, Lf/c/a/u;->suffix:Ljava/lang/String;
aput-object v4, v3, v17
invoke-interface {v0, v2, v3}, Lf/c/a/w0;->h(Ljava/lang/String;[Ljava/lang/Object;)V
goto :goto_1
:cond_a
iget-object v0, v0, Lf/c/a/a;->b:Lf/c/a/x0;
invoke-interface {v0}, Lf/c/a/x0;->e()V
:goto_1
return-void
:catchall_1
move-exception v0
monitor-exit v2
throw v0
.end method