apkfuckery/com.discord/smali/f/c/a/m0.smali

525 lines
14 KiB
Smali
Raw Normal View History

2020-11-12 02:11:44 +00:00
.class public Lf/c/a/m0;
.super Ljava/lang/Object;
.source "AttributionHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field public final synthetic d:Lf/c/a/h0;
# direct methods
.method public constructor <init>(Lf/c/a/h0;)V
.locals 0
iput-object p1, p0, Lf/c/a/m0;->d:Lf/c/a/h0;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 11
iget-object v0, p0, Lf/c/a/m0;->d:Lf/c/a/h0;
iget-object v1, v0, Lf/c/a/h0;->h:Ljava/lang/ref/WeakReference;
invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lf/c/a/u0;
invoke-interface {v1}, Lf/c/a/u0;->g()Lf/c/a/v;
move-result-object v1
iget-boolean v1, v1, Lf/c/a/v;->isGdprForgotten:Z
if-eqz v1, :cond_0
goto/16 :goto_0
:cond_0
iget-boolean v1, v0, Lf/c/a/h0;->a:Z
const/4 v2, 0x0
if-eqz v1, :cond_1
iget-object v0, v0, Lf/c/a/h0;->e:Lf/c/a/w0;
new-array v1, v2, [Ljava/lang/Object;
const-string v2, "Attribution handler is paused"
invoke-interface {v0, v2, v1}, Lf/c/a/w0;->f(Ljava/lang/String;[Ljava/lang/Object;)V
goto/16 :goto_0
:cond_1
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v8
iget-object v1, v0, Lf/c/a/h0;->h:Ljava/lang/ref/WeakReference;
invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lf/c/a/u0;
new-instance v10, Lf/c/a/n1;
invoke-interface {v1}, Lf/c/a/u0;->i()Lf/c/a/w;
move-result-object v4
invoke-interface {v1}, Lf/c/a/u0;->f()Lf/c/a/p0;
move-result-object v5
invoke-interface {v1}, Lf/c/a/u0;->g()Lf/c/a/v;
move-result-object v6
invoke-interface {v1}, Lf/c/a/u0;->d()Lf/c/a/x1;
move-result-object v7
move-object v3, v10
invoke-direct/range {v3 .. v9}, Lf/c/a/n1;-><init>(Lf/c/a/w;Lf/c/a/p0;Lf/c/a/v;Lf/c/a/x1;J)V
iget-object v1, v0, Lf/c/a/h0;->d:Ljava/lang/String;
sget-object v3, Lf/c/a/t;->h:Lf/c/a/t;
iget-object v4, v10, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v4, v4, Lf/c/a/w;->d:Landroid/content/Context;
invoke-virtual {v4}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v4
new-instance v5, Ljava/util/HashMap;
invoke-direct {v5}, Ljava/util/HashMap;-><init>()V
iget-object v6, v10, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v6, v6, Lf/c/a/w;->d:Landroid/content/Context;
sget-object v7, Lf/c/a/n1;->p:Lf/c/a/w0;
invoke-static {v6, v7}, Lt/a/b/b/a;->z(Landroid/content/Context;Lf/c/a/w0;)Ljava/util/Map;
move-result-object v6
if-eqz v6, :cond_2
invoke-virtual {v5, v6}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V
:cond_2
iget-object v6, v10, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v6, v6, Lf/c/a/w;->d:Landroid/content/Context;
sget-object v7, Lf/c/a/n1;->p:Lf/c/a/w0;
invoke-static {v6, v7}, Lt/a/b/b/a;->A(Landroid/content/Context;Lf/c/a/w0;)Ljava/util/Map;
move-result-object v6
if-eqz v6, :cond_3
invoke-virtual {v5, v6}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V
:cond_3
iget-object v6, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v7, v10, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v7, v7, Lf/c/a/w;->d:Landroid/content/Context;
invoke-virtual {v6, v7}, Lf/c/a/p0;->b(Landroid/content/Context;)V
iget-object v6, v10, Lf/c/a/n1;->d:Lf/c/a/n1$a;
iget-object v6, v6, Lf/c/a/n1$a;->g:Ljava/lang/String;
const-string v7, "android_uuid"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v6, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v6, v6, Lf/c/a/p0;->d:Ljava/lang/Boolean;
const-string/jumbo v7, "tracking_enabled"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/lang/Boolean;)V
iget-object v6, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v6, v6, Lf/c/a/p0;->a:Ljava/lang/String;
const-string v7, "gps_adid"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v6, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v6, v6, Lf/c/a/p0;->b:Ljava/lang/String;
const-string v7, "gps_adid_src"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v6, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget v6, v6, Lf/c/a/p0;->c:I
int-to-long v6, v6
const-string v8, "gps_adid_attempt"
invoke-static {v5, v8, v6, v7}, Lf/c/a/n1;->e(Ljava/util/Map;Ljava/lang/String;J)V
invoke-virtual {v10, v5}, Lf/c/a/n1;->j(Ljava/util/Map;)Z
move-result v6
if-nez v6, :cond_4
sget-object v6, Lf/c/a/n1;->p:Lf/c/a/w0;
new-array v7, v2, [Ljava/lang/Object;
const-string v8, "Google Advertising ID not detected, fallback to non Google Play identifiers will take place"
invoke-interface {v6, v8, v7}, Lf/c/a/w0;->d(Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v6, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v7, v10, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v7, v7, Lf/c/a/w;->d:Landroid/content/Context;
invoke-virtual {v6, v7}, Lf/c/a/p0;->a(Landroid/content/Context;)V
iget-object v6, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v6, v6, Lf/c/a/p0;->f:Ljava/lang/String;
const-string v7, "mac_sha1"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v6, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v6, v6, Lf/c/a/p0;->g:Ljava/lang/String;
const-string v7, "mac_md5"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v6, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v6, v6, Lf/c/a/p0;->h:Ljava/lang/String;
const-string v7, "android_id"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
:cond_4
iget-object v6, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v6, v6, Lf/c/a/p0;->r:Ljava/lang/String;
const-string v7, "api_level"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v6, v10, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v6, v6, Lf/c/a/w;->B:Ljava/lang/String;
const-string v7, "app_secret"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v6, v10, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v6, v6, Lf/c/a/w;->e:Ljava/lang/String;
const-string v7, "app_token"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v6, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v6, v6, Lf/c/a/p0;->l:Ljava/lang/String;
const-string v7, "app_version"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
sget-object v6, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
const-string v7, "attribution_deeplink"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/lang/Boolean;)V
iget-wide v6, v10, Lf/c/a/n1;->a:J
const-string v8, "created_at"
invoke-static {v5, v8, v6, v7}, Lf/c/a/n1;->b(Ljava/util/Map;Ljava/lang/String;J)V
iget-object v6, v10, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v6, v6, Lf/c/a/w;->l:Ljava/lang/Boolean;
const-string v7, "device_known"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/lang/Boolean;)V
iget-object v6, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v6, v6, Lf/c/a/p0;->n:Ljava/lang/String;
const-string v7, "device_name"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v6, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v6, v6, Lf/c/a/p0;->m:Ljava/lang/String;
const-string v7, "device_type"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v6, v10, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v6, v6, Lf/c/a/w;->f:Ljava/lang/String;
const-string v7, "environment"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v6, v10, Lf/c/a/n1;->c:Lf/c/a/w;
iget-boolean v6, v6, Lf/c/a/w;->i:Z
invoke-static {v6}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v6
const-string v7, "event_buffering_enabled"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/lang/Boolean;)V
iget-object v6, v10, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v6, v6, Lf/c/a/w;->C:Ljava/lang/String;
const-string v7, "external_device_id"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
invoke-static {v4}, Lf/c/a/e2;->f(Landroid/content/ContentResolver;)Ljava/lang/String;
move-result-object v6
const-string v7, "fire_adid"
invoke-static {v5, v7, v6}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
invoke-static {v4}, Lf/c/a/e2;->g(Landroid/content/ContentResolver;)Ljava/lang/Boolean;
move-result-object v4
const-string v6, "fire_tracking_enabled"
invoke-static {v5, v6, v4}, Lf/c/a/n1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/lang/Boolean;)V
const-string v4, "initiated_by"
invoke-static {v5, v4, v1}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
sget-object v1, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
const-string v4, "needs_response_details"
invoke-static {v5, v4, v1}, Lf/c/a/n1;->a(Ljava/util/Map;Ljava/lang/String;Ljava/lang/Boolean;)V
iget-object v1, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v1, v1, Lf/c/a/p0;->p:Ljava/lang/String;
const-string v4, "os_name"
invoke-static {v5, v4, v1}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v1, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v1, v1, Lf/c/a/p0;->q:Ljava/lang/String;
const-string v4, "os_version"
invoke-static {v5, v4, v1}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v1, v10, Lf/c/a/n1;->b:Lf/c/a/p0;
iget-object v1, v1, Lf/c/a/p0;->k:Ljava/lang/String;
const-string v4, "package_name"
invoke-static {v5, v4, v1}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v1, v10, Lf/c/a/n1;->d:Lf/c/a/n1$a;
iget-object v1, v1, Lf/c/a/n1$a;->h:Ljava/lang/String;
const-string v4, "push_token"
invoke-static {v5, v4, v1}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
iget-object v1, v10, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v1, v1, Lf/c/a/w;->A:Ljava/lang/String;
const-string v4, "secret_id"
invoke-static {v5, v4, v1}, Lf/c/a/n1;->g(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
invoke-virtual {v10, v5}, Lf/c/a/n1;->i(Ljava/util/Map;)V
invoke-virtual {v10, v3}, Lf/c/a/n1;->k(Lf/c/a/t;)Lf/c/a/u;
move-result-object v1
const-string v4, "attribution"
iput-object v4, v1, Lf/c/a/u;->path:Ljava/lang/String;
const-string v4, ""
iput-object v4, v1, Lf/c/a/u;->suffix:Ljava/lang/String;
invoke-virtual {v3}, Lf/c/a/t;->toString()Ljava/lang/String;
move-result-object v3
iget-object v4, v1, Lf/c/a/u;->clientSdk:Ljava/lang/String;
iget-object v6, v10, Lf/c/a/n1;->c:Lf/c/a/w;
iget-object v7, v6, Lf/c/a/w;->d:Landroid/content/Context;
iget-object v6, v6, Lf/c/a/w;->v:Lf/c/a/w0;
invoke-static {v5, v3, v4, v7, v6}, Lf/c/a/g0;->c(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;Landroid/content/Context;Lf/c/a/w0;)V
iput-object v5, v1, Lf/c/a/u;->parameters:Ljava/util/Map;
const/4 v3, 0x0
iput-object v3, v0, Lf/c/a/h0;->d:Ljava/lang/String;
iget-object v3, v0, Lf/c/a/h0;->e:Lf/c/a/w0;
const/4 v4, 0x1
new-array v5, v4, [Ljava/lang/Object;
invoke-virtual {v1}, Lf/c/a/u;->a()Ljava/lang/String;
move-result-object v6
aput-object v6, v5, v2
const-string v6, "%s"
invoke-interface {v3, v6, v5}, Lf/c/a/w0;->g(Ljava/lang/String;[Ljava/lang/Object;)V
:try_start_0
iget-object v3, v0, Lf/c/a/h0;->b:Ljava/lang/String;
invoke-static {v1, v3}, Lt/a/b/b/a;->n(Lf/c/a/u;Ljava/lang/String;)Lf/c/a/r1;
move-result-object v1
instance-of v3, v1, Lf/c/a/n0;
if-nez v3, :cond_5
goto :goto_0
:cond_5
iget-object v3, v1, Lf/c/a/r1;->g:Lf/c/a/a2;
sget-object v5, Lf/c/a/a2;->d:Lf/c/a/a2;
if-ne v3, v5, :cond_6
iget-object v1, v0, Lf/c/a/h0;->h:Ljava/lang/ref/WeakReference;
invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lf/c/a/u0;
invoke-interface {v1}, Lf/c/a/u0;->n()V
goto :goto_0
:cond_6
check-cast v1, Lf/c/a/n0;
iget-object v3, v0, Lf/c/a/h0;->g:Lf/c/a/f2/h;
new-instance v5, Lf/c/a/l0;
invoke-direct {v5, v0, v1}, Lf/c/a/l0;-><init>(Lf/c/a/h0;Lf/c/a/n0;)V
check-cast v3, Lf/c/a/f2/c;
invoke-virtual {v3, v5}, Lf/c/a/f2/c;->c(Ljava/lang/Runnable;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v1
iget-object v0, v0, Lf/c/a/h0;->e:Lf/c/a/w0;
new-array v3, v4, [Ljava/lang/Object;
invoke-virtual {v1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v1
aput-object v1, v3, v2
const-string v1, "Failed to get attribution (%s)"
invoke-interface {v0, v1, v3}, Lf/c/a/w0;->e(Ljava/lang/String;[Ljava/lang/Object;)V
:goto_0
return-void
.end method