granularity level: instruction
.class public final Lj/f;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Lm/g;
.field public final a:Lp/e;
.field public final b:Landroid/net/ConnectivityManager;
.field public final c:Landroid/content/Context;
.field public final d:Ljava/net/URL;
.field public final e:Lt/a;
.field public final f:Lt/a;
.field public final g:I
.method public constructor <init>(Landroid/content/Context;Lt/a;Lt/a;)V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Lw0/d;
invoke-direct {v0}, Lw0/d;-><init>()V
sget-object v1, Lx/h;->b:Lx/h;
invoke-virtual {v1, v0}, Lx/h;->a(Lv0/a;)V
const/4 v1, 0x1
iput-boolean v1, v0, Lw0/d;->d:Z
new-instance v1, Lp/e;
invoke-direct {v1, v0}, Lp/e;-><init>(Ljava/lang/Object;)V
iput-object v1, p0, Lj/f;->a:Lp/e;
iput-object p1, p0, Lj/f;->c:Landroid/content/Context;
const-string v0, "connectivity"
invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/net/ConnectivityManager;
iput-object p1, p0, Lj/f;->b:Landroid/net/ConnectivityManager;
sget-object p1, Lj/a;->c:Ljava/lang/String;
invoke-static {p1}, Lj/f;->b(Ljava/lang/String;)Ljava/net/URL;
move-result-object p1
iput-object p1, p0, Lj/f;->d:Ljava/net/URL;
iput-object p3, p0, Lj/f;->e:Lt/a;
iput-object p2, p0, Lj/f;->f:Lt/a;
const p1, 0x1fbd0
iput p1, p0, Lj/f;->g:I
return-void
.end method
.method public static b(Ljava/lang/String;)Ljava/net/URL;
.locals 3
:try_start_0
new-instance v0, Ljava/net/URL;
invoke-direct {v0, p0}, Ljava/net/URL;-><init>(Ljava/lang/String;)V
:try_end_0
.catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
:catch_0
move-exception v0
new-instance v1, Ljava/lang/IllegalArgumentException;
const-string v2, "Invalid url: "
invoke-static {v2, p0}, Lc0/b;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
invoke-direct {v1, p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method
.method public final a(Ll/i;)Ll/i;
.locals 5
iget-object v0, p0, Lj/f;->b:Landroid/net/ConnectivityManager;
invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;
move-result-object v0
invoke-virtual {p1}, Ll/i;->c()Ll/h;
move-result-object p1
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
invoke-virtual {p1}, Ll/h;->d()Ljava/util/Map;
move-result-object v2
invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v1
const-string v3, "sdk-version"
invoke-interface {v2, v3, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
sget-object v1, Landroid/os/Build;->MODEL:Ljava/lang/String;
const-string v2, "model"
invoke-virtual {p1, v2, v1}, Ll/h;->a(Ljava/lang/String;Ljava/lang/String;)V
sget-object v1, Landroid/os/Build;->HARDWARE:Ljava/lang/String;
const-string v2, "hardware"
invoke-virtual {p1, v2, v1}, Ll/h;->a(Ljava/lang/String;Ljava/lang/String;)V
sget-object v1, Landroid/os/Build;->DEVICE:Ljava/lang/String;
const-string v2, "device"
invoke-virtual {p1, v2, v1}, Ll/h;->a(Ljava/lang/String;Ljava/lang/String;)V
sget-object v1, Landroid/os/Build;->PRODUCT:Ljava/lang/String;
const-string v2, "product"
invoke-virtual {p1, v2, v1}, Ll/h;->a(Ljava/lang/String;Ljava/lang/String;)V
sget-object v1, Landroid/os/Build;->ID:Ljava/lang/String;
const-string v2, "os-uild"
invoke-virtual {p1, v2, v1}, Ll/h;->a(Ljava/lang/String;Ljava/lang/String;)V
sget-object v1, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;
const-string v2, "manufacturer"
invoke-virtual {p1, v2, v1}, Ll/h;->a(Ljava/lang/String;Ljava/lang/String;)V
sget-object v1, Landroid/os/Build;->FINGERPRINT:Ljava/lang/String;
const-string v2, "fingerprint"
invoke-virtual {p1, v2, v1}, Ll/h;->a(Ljava/lang/String;Ljava/lang/String;)V
invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;
invoke-static {}, Ljava/util/TimeZone;->getDefault()Ljava/util/TimeZone;
move-result-object v1
invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;
move-result-object v2
invoke-virtual {v2}, Ljava/util/Calendar;->getTimeInMillis()J
move-result-wide v2
invoke-virtual {v1, v2, v3}, Ljava/util/TimeZone;->getOffset(J)I
move-result v1
div-int/lit16 v1, v1, 0x3e8
int-to-long v1, v1
invoke-virtual {p1}, Ll/h;->d()Ljava/util/Map;
move-result-object v3
invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object v1
const-string v2, "tz-offset"
invoke-interface {v3, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/4 v1, -0x1
if-nez v0, :cond_0
sget-object v2, Lk/w;->a:Landroid/util/SparseArray;
const/4 v2, -0x1
goto :goto_0
:cond_0
invoke-virtual {v0}, Landroid/net/NetworkInfo;->getType()I
move-result v2
:goto_0
invoke-virtual {p1}, Ll/h;->d()Ljava/util/Map;
move-result-object v3
invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v2
const-string v4, "net-type"
invoke-interface {v3, v4, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const/4 v2, 0x0
if-nez v0, :cond_1
sget-object v0, Lk/v;->a:Landroid/util/SparseArray;
goto :goto_1
:cond_1
invoke-virtual {v0}, Landroid/net/NetworkInfo;->getSubtype()I
move-result v0
if-ne v0, v1, :cond_2
sget-object v0, Lk/v;->a:Landroid/util/SparseArray;
const/16 v0, 0x64
goto :goto_2
:cond_2
sget-object v3, Lk/v;->a:Landroid/util/SparseArray;
invoke-virtual {v3, v0}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lk/v;
if-eqz v3, :cond_3
goto :goto_2
:goto_1
:cond_3
const/4 v0, 0x0
:goto_2
invoke-virtual {p1}, Ll/h;->d()Ljava/util/Map;
move-result-object v3
invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v0
const-string v4, "mobile-subtype"
invoke-interface {v3, v4, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
move-result-object v0
invoke-virtual {v0}, Ljava/util/Locale;->getCountry()Ljava/lang/String;
move-result-object v0
const-string v3, "country"
invoke-virtual {p1, v3, v0}, Ll/h;->a(Ljava/lang/String;Ljava/lang/String;)V
invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;
move-result-object v0
invoke-virtual {v0}, Ljava/util/Locale;->getLanguage()Ljava/lang/String;
move-result-object v0
const-string v3, "locale"
invoke-virtual {p1, v3, v0}, Ll/h;->a(Ljava/lang/String;Ljava/lang/String;)V
iget-object v0, p0, Lj/f;->c:Landroid/content/Context;
const-string v3, "phone"
invoke-virtual {v0, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/telephony/TelephonyManager;
invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getSimOperator()Ljava/lang/String;
move-result-object v0
const-string v3, "mcc_mnc"
invoke-virtual {p1, v3, v0}, Ll/h;->a(Ljava/lang/String;Ljava/lang/String;)V
iget-object v0, p0, Lj/f;->c:Landroid/content/Context;
:try_start_0
invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v3
invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v0
invoke-virtual {v3, v0, v2}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
move-result-object v0
iget v1, v0, Landroid/content/pm/PackageInfo;->versionCode:I
:try_end_0
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_3
:catch_0
move-exception v0
const-string v2, "CctTransportBackend"
const-string v3, "Unable to find version code for package"
invoke-static {v2, v3, v0}, Lf0/a;->h(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V
:goto_3
invoke-static {v1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
move-result-object v0
const-string v1, "application_build"
invoke-virtual {p1, v1, v0}, Ll/h;->a(Ljava/lang/String;Ljava/lang/String;)V
invoke-virtual {p1}, Ll/h;->b()Ll/i;
move-result-object p1
return-object p1
.end method