apkfuckery/com.discord/smali/com/adjust/sdk/an.smali

296 lines
6.9 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public final Lcom/adjust/sdk/an;
.super Ljava/lang/Object;
2019-02-17 02:24:41 +00:00
.source "PackageFactory.java"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
# direct methods
.method private static a(Ljava/util/List;Lcom/adjust/sdk/d;Lcom/adjust/sdk/f;Lcom/adjust/sdk/t;Lcom/adjust/sdk/au;)Lcom/adjust/sdk/am;
.locals 11
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2019-02-17 02:24:41 +00:00
"(",
2019-02-04 20:08:30 +00:00
"Ljava/util/List<",
2019-02-17 02:24:41 +00:00
"Landroid/net/UrlQuerySanitizer$ParameterValuePair;",
">;",
"Lcom/adjust/sdk/d;",
"Lcom/adjust/sdk/f;",
"Lcom/adjust/sdk/t;",
"Lcom/adjust/sdk/au;",
")",
"Lcom/adjust/sdk/am;"
2019-02-04 20:08:30 +00:00
}
.end annotation
2019-02-17 02:24:41 +00:00
if-nez p0, :cond_0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v0, 0x0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
return-object v0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_0
new-instance v7, Ljava/util/LinkedHashMap;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-direct {v7}, Ljava/util/LinkedHashMap;-><init>()V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
new-instance v8, Lcom/adjust/sdk/AdjustAttribution;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-direct {v8}, Lcom/adjust/sdk/AdjustAttribution;-><init>()V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
2019-02-04 20:08:30 +00:00
move-result-object v0
2019-02-17 02:24:41 +00:00
:cond_1
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result v1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz v1, :cond_7
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
move-result-object v1
2019-02-17 02:24:41 +00:00
check-cast v1, Landroid/net/UrlQuerySanitizer$ParameterValuePair;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iget-object v2, v1, Landroid/net/UrlQuerySanitizer$ParameterValuePair;->mParameter:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iget-object v1, v1, Landroid/net/UrlQuerySanitizer$ParameterValuePair;->mValue:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz v2, :cond_1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-nez v1, :cond_2
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_2
const-string v4, "adjust_"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {v2, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result v4
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz v4, :cond_1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v4, 0x7
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {v2, v4}, Ljava/lang/String;->substring(I)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result-object v2
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {v2}, Ljava/lang/String;->length()I
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result v4
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz v4, :cond_1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {v1}, Ljava/lang/String;->length()I
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result v4
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz v4, :cond_1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const-string v4, "tracker"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result v4
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v5, 0x1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz v4, :cond_3
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iput-object v1, v8, Lcom/adjust/sdk/AdjustAttribution;->trackerName:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_3
const-string v4, "campaign"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result v4
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz v4, :cond_4
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iput-object v1, v8, Lcom/adjust/sdk/AdjustAttribution;->campaign:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_4
const-string v4, "adgroup"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result v4
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz v4, :cond_5
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iput-object v1, v8, Lcom/adjust/sdk/AdjustAttribution;->adgroup:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_5
const-string v4, "creative"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result v4
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz v4, :cond_6
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iput-object v1, v8, Lcom/adjust/sdk/AdjustAttribution;->creative:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_6
const/4 v5, 0x0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:goto_1
if-nez v5, :cond_1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-interface {v7, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
goto :goto_0
2019-02-17 02:24:41 +00:00
:cond_7
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result-wide v5
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const-string v0, "reftag"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-interface {v7, v0}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-object v9, v0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
check-cast v9, Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz p1, :cond_8
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iget-wide v0, p1, Lcom/adjust/sdk/d;->lastActivity:J
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
sub-long v0, v5, v0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iput-wide v0, p1, Lcom/adjust/sdk/d;->lastInterval:J
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_8
new-instance v10, Lcom/adjust/sdk/am;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-object v0, v10
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-object v1, p2
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-object v2, p3
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-object v3, p1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-object v4, p4
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-direct/range {v0 .. v6}, Lcom/adjust/sdk/am;-><init>(Lcom/adjust/sdk/f;Lcom/adjust/sdk/t;Lcom/adjust/sdk/d;Lcom/adjust/sdk/au;J)V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object v7, v10, Lcom/adjust/sdk/am;->eE:Ljava/util/Map;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object v8, v10, Lcom/adjust/sdk/am;->bX:Lcom/adjust/sdk/AdjustAttribution;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object v9, v10, Lcom/adjust/sdk/am;->eF:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
return-object v10
2019-02-04 20:08:30 +00:00
.end method
2019-02-17 02:24:41 +00:00
.method public static a(Ljava/lang/String;JLcom/adjust/sdk/d;Lcom/adjust/sdk/f;Lcom/adjust/sdk/t;Lcom/adjust/sdk/au;)Lcom/adjust/sdk/c;
2019-05-03 18:53:54 +00:00
.locals 6
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const/4 v0, 0x0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-eqz p0, :cond_2
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {p0}, Ljava/lang/String;->length()I
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result v1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-nez v1, :cond_0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_0
:try_start_0
const-string v1, "UTF-8"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-static {p0, v1}, Ljava/net/URLDecoder;->decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result-object v1
:try_end_0
.catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:catch_0
const-string v1, "malformed"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:goto_0
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result-object v2
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v3, 0x1
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
new-array v4, v3, [Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const/4 v5, 0x0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
aput-object v1, v4, v5
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
const-string v5, "Referrer to parse (%s)"
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v2, v5, v4}, Lcom/adjust/sdk/x;->a(Ljava/lang/String;[Ljava/lang/Object;)V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
new-instance v2, Landroid/net/UrlQuerySanitizer;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-direct {v2}, Landroid/net/UrlQuerySanitizer;-><init>()V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-static {}, Landroid/net/UrlQuerySanitizer;->getAllButNulLegal()Landroid/net/UrlQuerySanitizer$ValueSanitizer;
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
move-result-object v4
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v2, v4}, Landroid/net/UrlQuerySanitizer;->setUnregisteredParameterValueSanitizer(Landroid/net/UrlQuerySanitizer$ValueSanitizer;)V
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
invoke-virtual {v2, v3}, Landroid/net/UrlQuerySanitizer;->setAllowUnregisteredParamaters(Z)V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {v2, v1}, Landroid/net/UrlQuerySanitizer;->parseQuery(Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {v2}, Landroid/net/UrlQuerySanitizer;->getParameterList()Ljava/util/List;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result-object v2
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-static {v2, p3, p4, p5, p6}, Lcom/adjust/sdk/an;->a(Ljava/util/List;Lcom/adjust/sdk/d;Lcom/adjust/sdk/f;Lcom/adjust/sdk/t;Lcom/adjust/sdk/au;)Lcom/adjust/sdk/am;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result-object p3
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
if-nez p3, :cond_1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
return-object v0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_1
2019-05-03 18:53:54 +00:00
iput-object v1, p3, Lcom/adjust/sdk/am;->eG:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
iput-wide p1, p3, Lcom/adjust/sdk/am;->clickTimeInMilliseconds:J
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
iput-object p0, p3, Lcom/adjust/sdk/am;->eH:Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
const-string p0, "reftag"
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-virtual {p3, p0}, Lcom/adjust/sdk/am;->h(Ljava/lang/String;)Lcom/adjust/sdk/c;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
move-result-object p0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
return-object p0
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
:cond_2
:goto_1
return-object v0
2019-02-04 20:08:30 +00:00
.end method