SingleInstallBroadcastReceiver.smali
.class public Lcom/appsflyer/SingleInstallBroadcastReceiver;
.super Landroid/content/BroadcastReceiver;
.source ""
# direct methods
.method public constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
return-void
.end method
# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
.registers 9
const-string v0, "referrer"
if-nez p2, :cond_5
return-void
:cond_5
const/4 v1, 0x0
.line 1
:try_start_6
invoke-virtual {p2, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
:try_end_a
.catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_a} :catch_b
goto :goto_12
:catch_b
move-exception v2
const-string v3, "error in BroadcastReceiver "
.line 2
invoke-static {v3, v2}, Lcom/appsflyer/AFLogger;->afErrorLog(Ljava/lang/String;Ljava/lang/Throwable;)V
move-object v2, v1
:goto_12
if-eqz v2, :cond_3d
const-string v3, "AppsFlyer_Test"
.line 3
invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v3
if-eqz v3, :cond_2c
const-string v3, "TestIntegrationMode"
invoke-virtual {p2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
if-eqz v3, :cond_2c
.line 4
invoke-static {}, Lcom/appsflyer/AppsFlyerLibCore;->getInstance()Lcom/appsflyer/AppsFlyerLibCore;
move-result-object v0
invoke-virtual {v0, p1, p2}, Lcom/appsflyer/AppsFlyerLibCore;->ɩ(Landroid/content/Context;Landroid/content/Intent;)V
return-void
.line 5
:cond_2c
invoke-static {p1}, Lcom/appsflyer/AppsFlyerLibCore;->getSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v3
.line 6
invoke-interface {v3, v0, v1}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_3d
.line 7
invoke-static {}, Lcom/appsflyer/AppsFlyerLibCore;->getInstance()Lcom/appsflyer/AppsFlyerLibCore;
invoke-static {p1, v2}, Lcom/appsflyer/AppsFlyerLibCore;->ǃ(Landroid/content/Context;Ljava/lang/String;)V
return-void
.line 8
:cond_3d
invoke-static {}, Lcom/appsflyer/AppsFlyerProperties;->getInstance()Lcom/appsflyer/AppsFlyerProperties;
move-result-object v0
const-string v1, "referrer_timestamp"
invoke-virtual {v0, v1}, Lcom/appsflyer/AppsFlyerProperties;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 9
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
if-eqz v0, :cond_5d
.line 10
invoke-static {v0}, Ljava/lang/Long;->valueOf(Ljava/lang/String;)Ljava/lang/Long;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v4
sub-long/2addr v2, v4
const-wide/16 v4, 0x7d0
cmp-long v0, v2, v4
if-gez v0, :cond_5d
return-void
:cond_5d
const-string v0, "SingleInstallBroadcastReceiver called"
.line 11
invoke-static {v0}, Lcom/appsflyer/AFLogger;->afInfoLog(Ljava/lang/String;)V
.line 12
invoke-static {}, Lcom/appsflyer/AppsFlyerLibCore;->getInstance()Lcom/appsflyer/AppsFlyerLibCore;
move-result-object v0
invoke-virtual {v0, p1, p2}, Lcom/appsflyer/AppsFlyerLibCore;->ɩ(Landroid/content/Context;Landroid/content/Intent;)V
.line 13
invoke-static {}, Lcom/appsflyer/AppsFlyerProperties;->getInstance()Lcom/appsflyer/AppsFlyerProperties;
move-result-object p1
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, v1, p2}, Lcom/appsflyer/AppsFlyerProperties;->set(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method