bi.smali

.class final Lcom/bytedance/embedapplog/bi;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/bytedance/embedapplog/bt;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/bytedance/embedapplog/bi$a;
    }
.end annotation


# static fields
.field private static final a:Lcom/bytedance/embedapplog/ay;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/bytedance/embedapplog/ay",
            "<",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 24
    new-instance v0, Lcom/bytedance/embedapplog/bj;

    invoke-direct {v0}, Lcom/bytedance/embedapplog/bj;-><init>()V

    sput-object v0, Lcom/bytedance/embedapplog/bi;->a:Lcom/bytedance/embedapplog/ay;

    return-void
.end method

.method constructor <init>()V
    .registers 1

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

    .line 33
    return-void
.end method

.method static c(Landroid/content/Context;)Z
    .registers 4

    .prologue
    const/4 v0, 0x0

    .line 37
    if-nez p0, :cond_4

    .line 40
    :goto_3
    return v0

    :cond_4
    sget-object v1, Lcom/bytedance/embedapplog/bi;->a:Lcom/bytedance/embedapplog/ay;

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    aput-object p0, v2, v0

    invoke-virtual {v1, v2}, Lcom/bytedance/embedapplog/ay;->b([Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

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

    move-result v0

    goto :goto_3
.end method

.method private static e(Landroid/content/Context;)I
    .registers 5

    .prologue
    const/4 v0, 0x0

    .line 87
    .line 89
    :try_start_1
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    const-string v2, "com.huawei.hwid"

    const/4 v3, 0x0

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

    move-result-object v1

    .line 90
    if-eqz v1, :cond_10

    .line 91
    iget v0, v1, Landroid/content/pm/PackageInfo;->versionCode:I
    :try_end_10
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_10} :catch_11

    .line 96
    :cond_10
    :goto_10
    return v0

    .line 93
    :catch_11
    move-exception v1

    .line 94
    invoke-virtual {v1}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V

    goto :goto_10
.end method

.method private static f(Landroid/content/Context;)Landroid/util/Pair;
    .registers 4
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            ")",
            "Landroid/util/Pair",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation

    .prologue
    .line 101
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.uodis.opendevice.OPENIDS_SERVICE"

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

    const-string v1, "com.huawei.hwid"

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

    move-result-object v0

    .line 102
    new-instance v1, Lcom/bytedance/embedapplog/cf;

    new-instance v2, Lcom/bytedance/embedapplog/bk;

    invoke-direct {v2}, Lcom/bytedance/embedapplog/bk;-><init>()V

    invoke-direct {v1, p0, v0, v2}, Lcom/bytedance/embedapplog/cf;-><init>(Landroid/content/Context;Landroid/content/Intent;Lcom/bytedance/embedapplog/cf$b;)V

    .line 123
    invoke-virtual {v1}, Lcom/bytedance/embedapplog/cf;->a()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/util/Pair;

    return-object v0
.end method


# virtual methods
.method public a(Landroid/content/Context;)Z
    .registers 3

    .prologue
    .line 45
    invoke-static {p1}, Lcom/bytedance/embedapplog/bi;->c(Landroid/content/Context;)Z

    move-result v0

    return v0
.end method

.method public synthetic b(Landroid/content/Context;)Lcom/bytedance/embedapplog/bt$a;
    .registers 3
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    .annotation build Landroid/support/annotation/WorkerThread;
    .end annotation

    .prologue
    .line 21
    invoke-virtual {p0, p1}, Lcom/bytedance/embedapplog/bi;->d(Landroid/content/Context;)Lcom/bytedance/embedapplog/bi$a;

    move-result-object v0

    return-object v0
.end method

.method public d(Landroid/content/Context;)Lcom/bytedance/embedapplog/bi$a;
    .registers 6
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    .annotation build Landroid/support/annotation/WorkerThread;
    .end annotation

    .prologue
    .line 57
    new-instance v1, Lcom/bytedance/embedapplog/bi$a;

    invoke-direct {v1}, Lcom/bytedance/embedapplog/bi$a;-><init>()V

    .line 58
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x18

    if-lt v0, v2, :cond_3a

    .line 60
    :try_start_b
    invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v2, "pps_oaid"

    invoke-static {v0, v2}, Landroid/provider/Settings$Global;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 61
    invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v2

    const-string v3, "pps_track_limit"

    invoke-static {v2, v3}, Landroid/provider/Settings$Global;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 62
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_3a

    .line 63
    iput-object v0, v1, Lcom/bytedance/embedapplog/bi$a;->b:Ljava/lang/String;

    .line 64
    invoke-static {v2}, Ljava/lang/Boolean;->parseBoolean(Ljava/lang/String;)Z

    move-result v0

    iput-boolean v0, v1, Lcom/bytedance/embedapplog/bi$a;->c:Z

    .line 65
    const-wide v2, 0x2f08517f88L

    iput-wide v2, v1, Lcom/bytedance/embedapplog/bi$a;->a:J
    :try_end_34
    .catch Ljava/lang/Throwable; {:try_start_b .. :try_end_34} :catch_36

    move-object v0, v1

    .line 78
    :goto_35
    return-object v0

    .line 68
    :catch_36
    move-exception v0

    .line 69
    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V

    .line 72
    :cond_3a
    invoke-static {p1}, Lcom/bytedance/embedapplog/bi;->f(Landroid/content/Context;)Landroid/util/Pair;

    move-result-object v2

    .line 73
    if-eqz v2, :cond_57

    .line 74
    iget-object v0, v2, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v0, Ljava/lang/String;

    iput-object v0, v1, Lcom/bytedance/embedapplog/bi$a;->b:Ljava/lang/String;

    .line 75
    iget-object v0, v2, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v0, Ljava/lang/Boolean;

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

    move-result v0

    iput-boolean v0, v1, Lcom/bytedance/embedapplog/bi$a;->c:Z

    .line 76
    invoke-static {p1}, Lcom/bytedance/embedapplog/bi;->e(Landroid/content/Context;)I

    move-result v0

    int-to-long v2, v0

    iput-wide v2, v1, Lcom/bytedance/embedapplog/bi$a;->a:J

    :cond_57
    move-object v0, v1

    .line 78
    goto :goto_35
.end method