.class public final Lz5/u10;
.super Ljava/lang/Object;
.source ""


# instance fields
.field public a:Ljava/lang/String;

.field public b:I

.field public c:I

.field public d:Ljava/lang/String;

.field public e:Ljava/lang/String;

.field public final f:Z

.field public final g:Z

.field public final h:Ljava/lang/String;

.field public final i:Z

.field public final j:Z

.field public final k:Z

.field public final l:Ljava/lang/String;

.field public final m:Ljava/lang/String;

.field public n:F

.field public o:I

.field public p:I

.field public final q:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 8

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    invoke-virtual {p0, p1}, Lz5/u10;->b(Landroid/content/Context;)V

    invoke-virtual {p0, p1}, Lz5/u10;->c(Landroid/content/Context;)V

    invoke-virtual {p0, p1}, Lz5/u10;->d(Landroid/content/Context;)V

    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v1

    const-string v2, "geo:0,0?q=donuts"

    invoke-static {v0, v2}, Lz5/u10;->e(Landroid/content/pm/PackageManager;Ljava/lang/String;)Landroid/content/pm/ResolveInfo;

    move-result-object v2

    const/4 v3, 0x1

    const/4 v4, 0x0

    if-eqz v2, :cond_20

    move v2, v3

    goto :goto_21

    :cond_20
    move v2, v4

    :goto_21
    iput-boolean v2, p0, Lz5/u10;->f:Z

    const-string v2, "http://www.google.com"

    invoke-static {v0, v2}, Lz5/u10;->e(Landroid/content/pm/PackageManager;Ljava/lang/String;)Landroid/content/pm/ResolveInfo;

    move-result-object v2

    if-eqz v2, :cond_2c

    goto :goto_2d

    :cond_2c
    move v3, v4

    :goto_2d
    iput-boolean v3, p0, Lz5/u10;->g:Z

    invoke-virtual {v1}, Ljava/util/Locale;->getCountry()Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lz5/u10;->h:Ljava/lang/String;

    .line 1
    sget-object v2, Lz5/wk;->f:Lz5/wk;

    iget-object v2, v2, Lz5/wk;->a:Lz5/z40;

    .line 2
    invoke-static {}, Lz5/z40;->g()Z

    move-result v2

    iput-boolean v2, p0, Lz5/u10;->i:Z

    invoke-static {p1}, Lu5/g;->a(Landroid/content/Context;)Z

    move-result v2

    iput-boolean v2, p0, Lz5/u10;->j:Z

    .line 3
    invoke-static {p1}, Lu5/g;->d(Landroid/content/Context;)Z

    move-result v2

    .line 4
    iput-boolean v2, p0, Lz5/u10;->k:Z

    invoke-virtual {v1}, Ljava/util/Locale;->getLanguage()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lz5/u10;->l:Ljava/lang/String;

    const-string v1, "market://details?id=com.google.android.gms.ads"

    invoke-static {v0, v1}, Lz5/u10;->e(Landroid/content/pm/PackageManager;Ljava/lang/String;)Landroid/content/pm/ResolveInfo;

    move-result-object v0

    const-string v1, "."

    const/4 v2, 0x0

    if-nez v0, :cond_5d

    goto :goto_8f

    :cond_5d
    iget-object v0, v0, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    if-nez v0, :cond_62

    goto :goto_8f

    :cond_62
    :try_start_62
    invoke-static {p1}, Lw5/c;->a(Landroid/content/Context;)Lw5/b;

    move-result-object v3

    iget-object v5, v0, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v3, v5, v4}, Lw5/b;->c(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v3

    if-eqz v3, :cond_8f

    iget v3, v3, Landroid/content/pm/PackageInfo;->versionCode:I

    iget-object v0, v0, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v4

    add-int/lit8 v4, v4, 0xc

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5, v4}, Ljava/lang/StringBuilder;-><init>(I)V

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0
    :try_end_8e
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_62 .. :try_end_8e} :catch_8f

    goto :goto_90

    :catch_8f
    :cond_8f
    :goto_8f
    move-object v0, v2

    :goto_90
    iput-object v0, p0, Lz5/u10;->m:Ljava/lang/String;

    :try_start_92
    invoke-static {p1}, Lw5/c;->a(Landroid/content/Context;)Lw5/b;

    move-result-object v0

    const-string v3, "com.android.vending"

    const/16 v4, 0x80

    .line 5
    iget-object v0, v0, Lw5/b;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    invoke-virtual {v0, v3, v4}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v0

    if-eqz v0, :cond_c6

    .line 6
    iget v3, v0, Landroid/content/pm/PackageInfo;->versionCode:I

    iget-object v0, v0, Landroid/content/pm/PackageInfo;->packageName:Ljava/lang/String;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v4

    add-int/lit8 v4, v4, 0xc

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5, v4}, Ljava/lang/StringBuilder;-><init>(I)V

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2
    :try_end_c6
    .catch Ljava/lang/Exception; {:try_start_92 .. :try_end_c6} :catch_c6

    :catch_c6
    :cond_c6
    iput-object v2, p0, Lz5/u10;->q:Ljava/lang/String;

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    if-nez p1, :cond_cf

    return-void

    :cond_cf
    invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object p1

    if-nez p1, :cond_d6

    return-void

    :cond_d6
    iget v0, p1, Landroid/util/DisplayMetrics;->density:F

    iput v0, p0, Lz5/u10;->n:F

    iget v0, p1, Landroid/util/DisplayMetrics;->widthPixels:I

    iput v0, p0, Lz5/u10;->o:I

    iget p1, p1, Landroid/util/DisplayMetrics;->heightPixels:I

    iput p1, p0, Lz5/u10;->p:I

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Lz5/v10;)V
    .registers 4

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    invoke-virtual {p0, p1}, Lz5/u10;->b(Landroid/content/Context;)V

    invoke-virtual {p0, p1}, Lz5/u10;->c(Landroid/content/Context;)V

    invoke-virtual {p0, p1}, Lz5/u10;->d(Landroid/content/Context;)V

    sget-object v0, Landroid/os/Build;->FINGERPRINT:Ljava/lang/String;

    iput-object v0, p0, Lz5/u10;->d:Ljava/lang/String;

    sget-object v0, Landroid/os/Build;->DEVICE:Ljava/lang/String;

    iput-object v0, p0, Lz5/u10;->e:Ljava/lang/String;

    invoke-static {p1}, Lcom/google/android/gms/internal/ads/n0;->a(Landroid/content/Context;)Z

    iget-boolean p1, p2, Lz5/v10;->a:Z

    iput-boolean p1, p0, Lz5/u10;->f:Z

    iget-boolean p1, p2, Lz5/v10;->b:Z

    iput-boolean p1, p0, Lz5/u10;->g:Z

    iget-object p1, p2, Lz5/v10;->c:Ljava/lang/String;

    iput-object p1, p0, Lz5/u10;->h:Ljava/lang/String;

    iget-boolean p1, p2, Lz5/v10;->d:Z

    iput-boolean p1, p0, Lz5/u10;->i:Z

    iget-boolean p1, p2, Lz5/v10;->e:Z

    iput-boolean p1, p0, Lz5/u10;->j:Z

    iget-boolean p1, p2, Lz5/v10;->f:Z

    iput-boolean p1, p0, Lz5/u10;->k:Z

    iget-object p1, p2, Lz5/v10;->g:Ljava/lang/String;

    iput-object p1, p0, Lz5/u10;->l:Ljava/lang/String;

    iget-object p1, p2, Lz5/v10;->h:Ljava/lang/String;

    iput-object p1, p0, Lz5/u10;->m:Ljava/lang/String;

    iget-object p1, p2, Lz5/v10;->i:Ljava/lang/String;

    iput-object p1, p0, Lz5/u10;->q:Ljava/lang/String;

    iget p1, p2, Lz5/v10;->l:F

    iput p1, p0, Lz5/u10;->n:F

    iget p1, p2, Lz5/v10;->m:I

    iput p1, p0, Lz5/u10;->o:I

    iget p1, p2, Lz5/v10;->n:I

    iput p1, p0, Lz5/u10;->p:I

    return-void
.end method

.method public static e(Landroid/content/pm/PackageManager;Ljava/lang/String;)Landroid/content/pm/ResolveInfo;
    .registers 4

    :try_start_0
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p1

    invoke-direct {v0, v1, p1}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    const/high16 p1, 0x10000

    invoke-virtual {p0, v0, p1}, Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;

    move-result-object p0
    :try_end_11
    .catchall {:try_start_0 .. :try_end_11} :catchall_12

    return-object p0

    :catchall_12
    move-exception p0

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzg()Lcom/google/android/gms/internal/ads/u1;

    move-result-object p1

    .line 1
    iget-object v0, p1, Lcom/google/android/gms/internal/ads/u1;->e:Landroid/content/Context;

    iget-object p1, p1, Lcom/google/android/gms/internal/ads/u1;->f:Lz5/g50;

    invoke-static {v0, p1}, Lcom/google/android/gms/internal/ads/h1;->d(Landroid/content/Context;Lz5/g50;)Lz5/f10;

    move-result-object p1

    const-string v0, "DeviceInfo.getResolveInfo"

    invoke-interface {p1, p0, v0}, Lz5/f10;->a(Ljava/lang/Throwable;Ljava/lang/String;)V

    const/4 p0, 0x0

    return-object p0
.end method


# virtual methods
.method public final a()Lz5/v10;
    .registers 22

    move-object/from16 v0, p0

    new-instance v19, Lz5/v10;

    move-object/from16 v1, v19

    iget-boolean v2, v0, Lz5/u10;->f:Z

    iget-boolean v3, v0, Lz5/u10;->g:Z

    iget-object v4, v0, Lz5/u10;->a:Ljava/lang/String;

    iget-object v5, v0, Lz5/u10;->h:Ljava/lang/String;

    iget-boolean v6, v0, Lz5/u10;->i:Z

    iget-boolean v7, v0, Lz5/u10;->j:Z

    iget-boolean v8, v0, Lz5/u10;->k:Z

    iget-object v9, v0, Lz5/u10;->l:Ljava/lang/String;

    iget-object v10, v0, Lz5/u10;->m:Ljava/lang/String;

    iget-object v11, v0, Lz5/u10;->q:Ljava/lang/String;

    iget v12, v0, Lz5/u10;->b:I

    iget v13, v0, Lz5/u10;->c:I

    iget v14, v0, Lz5/u10;->n:F

    iget v15, v0, Lz5/u10;->o:I

    move-object/from16 v20, v1

    iget v1, v0, Lz5/u10;->p:I

    move/from16 v16, v1

    iget-object v1, v0, Lz5/u10;->d:Ljava/lang/String;

    move-object/from16 v17, v1

    iget-object v1, v0, Lz5/u10;->e:Ljava/lang/String;

    move-object/from16 v18, v1

    move-object/from16 v1, v20

    invoke-direct/range {v1 .. v18}, Lz5/v10;-><init>(ZZLjava/lang/String;Ljava/lang/String;ZZZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;IIFIILjava/lang/String;Ljava/lang/String;)V

    return-object v19
.end method

.method public final b(Landroid/content/Context;)V
    .registers 4

    const-string v0, "audio"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/media/AudioManager;

    if-eqz p1, :cond_31

    :try_start_a
    invoke-virtual {p1}, Landroid/media/AudioManager;->getMode()I

    invoke-virtual {p1}, Landroid/media/AudioManager;->isMusicActive()Z

    invoke-virtual {p1}, Landroid/media/AudioManager;->isSpeakerphoneOn()Z

    const/4 v0, 0x3

    invoke-virtual {p1, v0}, Landroid/media/AudioManager;->getStreamVolume(I)I

    invoke-virtual {p1}, Landroid/media/AudioManager;->getRingerMode()I

    const/4 v0, 0x2

    invoke-virtual {p1, v0}, Landroid/media/AudioManager;->getStreamVolume(I)I
    :try_end_1e
    .catchall {:try_start_a .. :try_end_1e} :catchall_1f

    return-void

    :catchall_1f
    move-exception p1

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzg()Lcom/google/android/gms/internal/ads/u1;

    move-result-object v0

    .line 1
    iget-object v1, v0, Lcom/google/android/gms/internal/ads/u1;->e:Landroid/content/Context;

    iget-object v0, v0, Lcom/google/android/gms/internal/ads/u1;->f:Lz5/g50;

    invoke-static {v1, v0}, Lcom/google/android/gms/internal/ads/h1;->d(Landroid/content/Context;Lz5/g50;)Lz5/f10;

    move-result-object v0

    const-string v1, "DeviceInfo.gatherAudioInfo"

    invoke-interface {v0, p1, v1}, Lz5/f10;->a(Ljava/lang/Throwable;Ljava/lang/String;)V

    :cond_31
    return-void
.end method

.method public final c(Landroid/content/Context;)V
    .registers 6
    .annotation build Landroid/annotation/TargetApi;
        value = 0x10
    .end annotation

    const-string v0, "phone"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/telephony/TelephonyManager;

    const-string v1, "connectivity"

    invoke-virtual {p1, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/ConnectivityManager;

    invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getNetworkOperator()Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lz5/u10;->a:Ljava/lang/String;

    invoke-static {}, Lu5/j;->b()Z

    move-result v2

    if-eqz v2, :cond_30

    sget-object v2, Lz5/so;->z5:Lz5/no;

    .line 1
    sget-object v3, Lz5/xk;->d:Lz5/xk;

    iget-object v3, v3, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 2
    invoke-virtual {v3, v2}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Boolean;

    invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    if-eqz v2, :cond_30

    const/4 v2, 0x0

    goto :goto_34

    :cond_30
    invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getNetworkType()I

    move-result v2

    :goto_34
    iput v2, p0, Lz5/u10;->c:I

    invoke-virtual {v0}, Landroid/telephony/TelephonyManager;->getPhoneType()I

    const/4 v0, -0x2

    iput v0, p0, Lz5/u10;->b:I

    const/4 v0, -0x1

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzc()Lcom/google/android/gms/ads/internal/util/zzs;

    const-string v2, "android.permission.ACCESS_NETWORK_STATE"

    invoke-static {p1, v2}, Lcom/google/android/gms/ads/internal/util/zzs;->zzE(Landroid/content/Context;Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_61

    invoke-virtual {v1}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    const/4 p1, 0x0

    if-eqz p1, :cond_5c

    invoke-virtual {p1}, Landroid/net/NetworkInfo;->getType()I

    move-result v0

    iput v0, p0, Lz5/u10;->b:I

    invoke-virtual {p1}, Landroid/net/NetworkInfo;->getDetailedState()Landroid/net/NetworkInfo$DetailedState;

    move-result-object p1

    invoke-virtual {p1}, Landroid/net/NetworkInfo$DetailedState;->ordinal()I

    goto :goto_5e

    :cond_5c
    iput v0, p0, Lz5/u10;->b:I

    :goto_5e
    invoke-virtual {v1}, Landroid/net/ConnectivityManager;->isActiveNetworkMetered()Z

    :cond_61
    return-void
.end method

.method public final d(Landroid/content/Context;)V
    .registers 4

    new-instance v0, Landroid/content/IntentFilter;

    const-string v1, "android.intent.action.BATTERY_CHANGED"

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    const/4 v1, 0x0

    invoke-virtual {p1, v1, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    move-result-object p1

    if-eqz p1, :cond_1e

    const/4 v0, -0x1

    const-string v1, "status"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    const-string v1, "level"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    const-string v1, "scale"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    :cond_1e
    return-void
.end method
