.class public final Lj6/s3;
.super Ljava/lang/Object;
.source ""


# instance fields
.field public final a:Lcom/google/android/gms/measurement/internal/d;


# direct methods
.method public constructor <init>(Lj6/b6;)V
    .registers 2

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

    .line 1
    iget-object p1, p1, Lj6/b6;->l:Lcom/google/android/gms/measurement/internal/d;

    .line 2
    iput-object p1, p0, Lj6/s3;->a:Lcom/google/android/gms/measurement/internal/d;

    return-void
.end method


# virtual methods
.method public final a()Z
    .registers 5

    const/4 v0, 0x0

    :try_start_1
    iget-object v1, p0, Lj6/s3;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 1
    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

    .line 2
    invoke-static {v1}, Lw5/c;->a(Landroid/content/Context;)Lw5/b;

    move-result-object v1

    if-nez v1, :cond_19

    iget-object v1, p0, Lj6/s3;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v1}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v1

    .line 3
    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v2, "Failed to get PackageManager for Install Referrer Play Store compatibility check"

    .line 4
    invoke-virtual {v1, v2}, Lj6/e3;->c(Ljava/lang/String;)V

    return v0

    :cond_19
    const-string v2, "com.android.vending"

    const/16 v3, 0x80

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

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

    move-result-object v1

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

    move-result-object v1

    .line 6
    iget v1, v1, Landroid/content/pm/PackageInfo;->versionCode:I
    :try_end_29
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_29} :catch_30

    const v2, 0x4d17ab4

    if-lt v1, v2, :cond_2f

    const/4 v0, 0x1

    :cond_2f
    return v0

    :catch_30
    move-exception v1

    iget-object v2, p0, Lj6/s3;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v2}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v2

    .line 7
    iget-object v2, v2, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v3, "Failed to retrieve Play Store version for Install Referrer"

    .line 8
    invoke-virtual {v2, v3, v1}, Lj6/e3;->d(Ljava/lang/String;Ljava/lang/Object;)V

    return v0
.end method
