bi.smali

.class public Lcom/tendcloud/tenddata/bi;
.super Ljava/lang/Object;
.source "td"


# static fields
.field private static volatile A:Lcom/tendcloud/tenddata/bi; = null

.field private static final a:I = 0x0

.field private static final b:I = 0x1

.field private static final c:I = 0x3

.field private static i:Ljava/lang/String; = null

.field private static j:Ljava/lang/String; = "TDpref_cloudcontrol"

.field private static final k:Ljava/lang/String; = "TDpref_config"

.field private static final l:Ljava/lang/String; = "TDpref_last_request_time"

.field private static final m:Ljava/lang/String; = "TDpref_cloud_cv"

.field private static n:[Ljava/lang/String;

.field private static o:Z

.field private static p:Z

.field private static q:Z

.field private static r:Z

.field private static s:Ljava/lang/String;

.field private static t:Ljava/lang/String;

.field private static u:Ljava/lang/String;

.field private static v:Ljava/lang/String;

.field private static w:Z

.field private static z:Z


# instance fields
.field private d:J

.field private e:J

.field private f:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Lorg/json/JSONObject;",
            ">;"
        }
    .end annotation
.end field

.field private g:Ljava/util/HashSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashSet<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private h:Lorg/json/JSONObject;

.field private x:I

.field private y:Landroid/os/Handler;


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

    const/16 v0, 0x41

    .line 1
    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "232"

    aput-object v2, v0, v1

    const/4 v2, 0x1

    const-string v3, "206"

    aput-object v3, v0, v2

    const/4 v3, 0x2

    const-string v4, "284"

    aput-object v4, v0, v3

    const/4 v3, 0x3

    const-string v4, "280"

    aput-object v4, v0, v3

    const/4 v3, 0x4

    const-string v4, "219"

    aput-object v4, v0, v3

    const/4 v3, 0x5

    const-string v4, "230"

    aput-object v4, v0, v3

    const/4 v3, 0x6

    const-string v4, "238"

    aput-object v4, v0, v3

    const/4 v3, 0x7

    const-string v4, "248"

    aput-object v4, v0, v3

    const/16 v3, 0x8

    const-string v4, "244"

    aput-object v4, v0, v3

    const/16 v3, 0x9

    const-string v4, "208"

    aput-object v4, v0, v3

    const/16 v3, 0xa

    const-string v4, "308"

    aput-object v4, v0, v3

    const/16 v3, 0xb

    const-string v4, "340"

    aput-object v4, v0, v3

    const/16 v3, 0xc

    const-string v4, "543"

    aput-object v4, v0, v3

    const/16 v3, 0xd

    const-string v4, "546"

    aput-object v4, v0, v3

    const/16 v3, 0xe

    const-string v4, "547"

    aput-object v4, v0, v3

    const/16 v3, 0xf

    const-string v4, "647"

    aput-object v4, v0, v3

    const/16 v3, 0x10

    const-string v4, "742"

    aput-object v4, v0, v3

    const/16 v3, 0x11

    const-string v4, "262"

    aput-object v4, v0, v3

    const/16 v3, 0x12

    const-string v4, "202"

    aput-object v4, v0, v3

    const/16 v3, 0x13

    const-string v4, "216"

    aput-object v4, v0, v3

    const/16 v3, 0x14

    const-string v4, "272"

    aput-object v4, v0, v3

    const/16 v3, 0x15

    const-string v4, "222"

    aput-object v4, v0, v3

    const/16 v3, 0x16

    const-string v4, "247"

    aput-object v4, v0, v3

    const/16 v3, 0x17

    const-string v4, "246"

    aput-object v4, v0, v3

    const/16 v3, 0x18

    const-string v4, "270"

    aput-object v4, v0, v3

    const/16 v3, 0x19

    const-string v4, "278"

    aput-object v4, v0, v3

    const/16 v3, 0x1a

    const-string v4, "204"

    aput-object v4, v0, v3

    const/16 v3, 0x1b

    const-string v4, "363"

    aput-object v4, v0, v3

    const/16 v3, 0x1c

    const-string v4, "362"

    aput-object v4, v0, v3

    const/16 v3, 0x1d

    const-string v4, "260"

    aput-object v4, v0, v3

    const/16 v3, 0x1e

    const-string v4, "268"

    aput-object v4, v0, v3

    const/16 v3, 0x1f

    const-string v4, "226"

    aput-object v4, v0, v3

    const/16 v3, 0x20

    const-string v4, "231"

    aput-object v4, v0, v3

    const/16 v3, 0x21

    const-string v4, "293"

    aput-object v4, v0, v3

    const/16 v3, 0x22

    const-string v4, "214"

    aput-object v4, v0, v3

    const/16 v3, 0x23

    const-string v4, "240"

    aput-object v4, v0, v3

    const/16 v3, 0x24

    const-string v4, "234"

    aput-object v4, v0, v3

    const/16 v3, 0x25

    const-string v4, "235"

    aput-object v4, v0, v3

    const/16 v3, 0x26

    const-string v4, "266"

    aput-object v4, v0, v3

    const/16 v3, 0x27

    const-string v4, "346"

    aput-object v4, v0, v3

    const/16 v3, 0x28

    const-string v4, "348"

    aput-object v4, v0, v3

    const/16 v3, 0x29

    const-string v4, "350"

    aput-object v4, v0, v3

    const/16 v3, 0x2a

    const-string v4, "354"

    aput-object v4, v0, v3

    const/16 v3, 0x2b

    const-string v4, "376"

    aput-object v4, v0, v3

    const/16 v3, 0x2c

    const-string v4, "750"

    aput-object v4, v0, v3

    const/16 v3, 0x2d

    const-string v4, "454"

    aput-object v4, v0, v3

    const/16 v3, 0x2e

    const-string v4, "455"

    aput-object v4, v0, v3

    const/16 v3, 0x2f

    const-string v4, "466"

    aput-object v4, v0, v3

    const/16 v3, 0x30

    const-string v4, "525"

    aput-object v4, v0, v3

    const/16 v3, 0x31

    const-string v4, "310"

    aput-object v4, v0, v3

    const/16 v3, 0x32

    const-string v4, "311"

    aput-object v4, v0, v3

    const/16 v3, 0x33

    const-string v4, "312"

    aput-object v4, v0, v3

    const/16 v3, 0x34

    const-string v4, "313"

    aput-object v4, v0, v3

    const/16 v3, 0x35

    const-string v4, "314"

    aput-object v4, v0, v3

    const/16 v3, 0x36

    const-string v4, "315"

    aput-object v4, v0, v3

    const/16 v3, 0x37

    const-string v4, "316"

    aput-object v4, v0, v3

    const/16 v3, 0x38

    const-string v4, "330"

    aput-object v4, v0, v3

    const/16 v3, 0x39

    const-string v4, "332"

    aput-object v4, v0, v3

    const/16 v3, 0x3a

    const-string v4, "534"

    aput-object v4, v0, v3

    const/16 v3, 0x3b

    const-string v4, "535"

    aput-object v4, v0, v3

    const/16 v3, 0x3c

    const-string v4, "544"

    aput-object v4, v0, v3

    const/16 v3, 0x3d

    const-string v4, "302"

    aput-object v4, v0, v3

    const/16 v3, 0x3e

    const-string v4, "505"

    aput-object v4, v0, v3

    const/16 v3, 0x3f

    const-string v4, "530"

    aput-object v4, v0, v3

    const/16 v3, 0x40

    const-string v4, "548"

    aput-object v4, v0, v3

    sput-object v0, Lcom/tendcloud/tenddata/bi;->n:[Ljava/lang/String;

    .line 2
    sput-boolean v2, Lcom/tendcloud/tenddata/bi;->p:Z

    .line 3
    sput-boolean v1, Lcom/tendcloud/tenddata/bi;->q:Z

    .line 4
    sput-boolean v2, Lcom/tendcloud/tenddata/bi;->r:Z

    .line 5
    sput-boolean v1, Lcom/tendcloud/tenddata/bi;->w:Z

    .line 6
    sput-boolean v2, Lcom/tendcloud/tenddata/bi;->z:Z

    const/4 v0, 0x0

    .line 7
    sput-object v0, Lcom/tendcloud/tenddata/bi;->A:Lcom/tendcloud/tenddata/bi;

    return-void
.end method

.method private constructor <init>()V
    .registers 4

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

    const-wide/16 v0, 0x2d0

    .line 2
    iput-wide v0, p0, Lcom/tendcloud/tenddata/bi;->d:J

    const-wide/32 v0, 0x240c8400

    .line 3
    iput-wide v0, p0, Lcom/tendcloud/tenddata/bi;->e:J

    .line 4
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/tendcloud/tenddata/bi;->f:Ljava/util/HashMap;

    .line 5
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    iput-object v0, p0, Lcom/tendcloud/tenddata/bi;->g:Ljava/util/HashSet;

    .line 6
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    iput-object v0, p0, Lcom/tendcloud/tenddata/bi;->h:Lorg/json/JSONObject;

    const/4 v0, 0x0

    .line 7
    iput-object v0, p0, Lcom/tendcloud/tenddata/bi;->y:Landroid/os/Handler;

    .line 8
    new-instance v0, Landroid/os/HandlerThread;

    const-string v1, "ModuleCloudControl"

    const/16 v2, 0xa

    invoke-direct {v0, v1, v2}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;I)V

    .line 9
    invoke-virtual {v0}, Landroid/os/HandlerThread;->start()V

    .line 10
    new-instance v1, Lcom/tendcloud/tenddata/bi$1;

    invoke-virtual {v0}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-direct {v1, p0, v0}, Lcom/tendcloud/tenddata/bi$1;-><init>(Lcom/tendcloud/tenddata/bi;Landroid/os/Looper;)V

    iput-object v1, p0, Lcom/tendcloud/tenddata/bi;->y:Landroid/os/Handler;

    return-void
.end method

.method private a(Lcom/tendcloud/tenddata/a;)I
    .registers 4

    .line 95
    invoke-virtual {p1}, Lcom/tendcloud/tenddata/a;->index()I

    move-result p1

    const/4 v0, 0x3

    const/4 v1, 0x1

    if-eqz p1, :cond_10

    if-eq p1, v1, :cond_e

    if-eq p1, v0, :cond_11

    const/4 v0, -0x1

    goto :goto_11

    :cond_e
    const/4 v0, 0x2

    goto :goto_11

    :cond_10
    const/4 v0, 0x1

    :cond_11
    :goto_11
    return v0
.end method

.method public static a()Lcom/tendcloud/tenddata/bi;
    .registers 2

    .line 4
    sget-object v0, Lcom/tendcloud/tenddata/bi;->A:Lcom/tendcloud/tenddata/bi;

    if-nez v0, :cond_17

    .line 5
    const-class v0, Lcom/tendcloud/tenddata/bi;

    monitor-enter v0

    .line 6
    :try_start_7
    sget-object v1, Lcom/tendcloud/tenddata/bi;->A:Lcom/tendcloud/tenddata/bi;

    if-nez v1, :cond_12

    .line 7
    new-instance v1, Lcom/tendcloud/tenddata/bi;

    invoke-direct {v1}, Lcom/tendcloud/tenddata/bi;-><init>()V

    sput-object v1, Lcom/tendcloud/tenddata/bi;->A:Lcom/tendcloud/tenddata/bi;

    .line 8
    :cond_12
    monitor-exit v0

    goto :goto_17

    :catchall_14
    move-exception v1

    monitor-exit v0
    :try_end_16
    .catchall {:try_start_7 .. :try_end_16} :catchall_14

    throw v1

    .line 9
    :cond_17
    :goto_17
    sget-object v0, Lcom/tendcloud/tenddata/bi;->A:Lcom/tendcloud/tenddata/bi;

    return-object v0
.end method

.method private a(Ljava/io/RandomAccessFile;)Ljava/lang/String;
    .registers 5

    .line 100
    :try_start_0
    invoke-virtual {p1}, Ljava/io/RandomAccessFile;->length()J

    move-result-wide v0

    long-to-int v1, v0

    .line 101
    new-array v0, v1, [B

    const-wide/16 v1, 0x0

    .line 102
    invoke-virtual {p1, v1, v2}, Ljava/io/RandomAccessFile;->seek(J)V

    .line 103
    invoke-virtual {p1, v0}, Ljava/io/RandomAccessFile;->read([B)I

    .line 104
    new-instance p1, Ljava/lang/String;

    invoke-direct {p1, v0}, Ljava/lang/String;-><init>([B)V
    :try_end_14
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_14} :catch_15

    goto :goto_16

    :catch_15
    const/4 p1, 0x0

    :goto_16
    return-object p1
.end method

.method private a(Lorg/json/JSONObject;)Lorg/json/JSONObject;
    .registers 8

    const-string v0, "r"

    const-string v1, "TDpref_config"

    const-string v2, "cv"

    .line 37
    :try_start_6
    sget-object v3, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    sget-object v4, Lcom/tendcloud/tenddata/bi;->j:Ljava/lang/String;

    const-string v5, ""

    invoke-static {v3, v4, v1, v5}, Lcom/tendcloud/tenddata/w;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 38
    invoke-static {v3}, Lcom/tendcloud/tenddata/af;->b(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_64

    .line 39
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4, v3}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 40
    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_45

    invoke-virtual {v4, v2}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v5

    if-ne v3, v5, :cond_45

    .line 41
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_38

    .line 42
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object p1

    .line 43
    invoke-virtual {v4, v0, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 44
    :cond_38
    sget-object p1, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    sget-object v0, Lcom/tendcloud/tenddata/bi;->j:Ljava/lang/String;

    invoke-virtual {v4}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {p1, v0, v1, v2}, Lcom/tendcloud/tenddata/w;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    move-object p1, v4

    goto :goto_75

    .line 45
    :cond_45
    sget-object v0, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    sget-object v3, Lcom/tendcloud/tenddata/bi;->j:Ljava/lang/String;

    invoke-virtual {p1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v0, v3, v1, v4}, Lcom/tendcloud/tenddata/w;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 46
    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_75

    .line 47
    sget-object v0, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    sget-object v1, Lcom/tendcloud/tenddata/bi;->j:Ljava/lang/String;

    const-string v3, "TDpref_cloud_cv"

    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getLong(Ljava/lang/String;)J

    move-result-wide v4

    invoke-static {v0, v1, v3, v4, v5}, Lcom/tendcloud/tenddata/w;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)V

    goto :goto_75

    .line 48
    :cond_64
    sget-object v0, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    sget-object v2, Lcom/tendcloud/tenddata/bi;->j:Ljava/lang/String;

    invoke-virtual {p1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v0, v2, v1, v3}, Lcom/tendcloud/tenddata/w;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_6f
    .catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_6f} :catch_70

    goto :goto_75

    :catch_70
    move-exception p1

    .line 49
    invoke-static {p1}, Lcom/tendcloud/tenddata/bq;->postSDKError(Ljava/lang/Throwable;)V

    const/4 p1, 0x0

    :cond_75
    :goto_75
    return-object p1
.end method

.method static synthetic a(Lcom/tendcloud/tenddata/bi;)V
    .registers 1

    .line 1
    invoke-direct {p0}, Lcom/tendcloud/tenddata/bi;->f()V

    return-void
.end method

.method static synthetic a(Lcom/tendcloud/tenddata/bi;Ljava/lang/String;Ljava/lang/String;Lcom/tendcloud/tenddata/a;)V
    .registers 4

    .line 2
    invoke-direct {p0, p1, p2, p3}, Lcom/tendcloud/tenddata/bi;->b(Ljava/lang/String;Ljava/lang/String;Lcom/tendcloud/tenddata/a;)V

    return-void
.end method

.method private a(Ljava/io/RandomAccessFile;Ljava/lang/String;)V
    .registers 5

    const-wide/16 v0, 0x0

    .line 96
    :try_start_2
    invoke-virtual {p1, v0, v1}, Ljava/io/RandomAccessFile;->setLength(J)V

    .line 97
    invoke-virtual {p1, v0, v1}, Ljava/io/RandomAccessFile;->seek(J)V

    .line 98
    invoke-virtual {p2}, Ljava/lang/String;->getBytes()[B

    move-result-object p2

    .line 99
    invoke-virtual {p1, p2}, Ljava/io/RandomAccessFile;->write([B)V
    :try_end_f
    .catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_f} :catch_f

    :catch_f
    return-void
.end method

.method private a(Lorg/json/JSONObject;Ljava/lang/String;)V
    .registers 8

    :try_start_0
    const-string v0, "clt"

    .line 50
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->remove(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lorg/json/JSONArray;

    const-string v1, "id"

    .line 51
    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->remove(Ljava/lang/String;)Ljava/lang/Object;

    const/4 v1, 0x0

    .line 52
    :goto_e
    invoke-virtual {v0}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v1, v2, :cond_47

    .line 53
    invoke-virtual {v0, v1}, Lorg/json/JSONArray;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 54
    invoke-static {v2}, Lcom/tendcloud/tenddata/af;->b(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_40

    .line 55
    iget-object v3, p0, Lcom/tendcloud/tenddata/bi;->f:Ljava/util/HashMap;

    invoke-virtual {v3, v2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_32

    .line 56
    iget-object v3, p0, Lcom/tendcloud/tenddata/bi;->f:Ljava/util/HashMap;

    invoke-virtual {v3, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lorg/json/JSONObject;

    invoke-virtual {v2, p2, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    goto :goto_40

    .line 57
    :cond_32
    iget-object v3, p0, Lcom/tendcloud/tenddata/bi;->f:Ljava/util/HashMap;

    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4}, Lorg/json/JSONObject;-><init>()V

    invoke-virtual {v4, p2, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    move-result-object v4

    invoke-virtual {v3, v2, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_40
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_40} :catch_43

    :cond_40
    :goto_40
    add-int/lit8 v1, v1, 0x1

    goto :goto_e

    :catch_43
    move-exception p1

    .line 58
    invoke-static {p1}, Lcom/tendcloud/tenddata/bq;->postSDKError(Ljava/lang/Throwable;)V

    :cond_47
    return-void
.end method

.method private a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V
    .registers 5

    if-nez p3, :cond_3

    return-void

    .line 35
    :cond_3
    :try_start_3
    instance-of v0, p3, Ljava/lang/String;

    if-eqz v0, :cond_11

    move-object v0, p3

    check-cast v0, Ljava/lang/String;

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

    move-result v0

    if-nez v0, :cond_11

    return-void

    .line 36
    :cond_11
    invoke-virtual {p1, p2, p3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_14
    .catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_14} :catch_14

    :catch_14
    return-void
.end method

.method static synthetic a(Z)Z
    .registers 1

    .line 3
    sput-boolean p0, Lcom/tendcloud/tenddata/bi;->z:Z

    return p0
.end method

.method private b(Ljava/lang/String;Ljava/lang/String;Lcom/tendcloud/tenddata/a;)V
    .registers 12

    .line 1
    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v1, "bl"

    .line 2
    iget v2, p0, Lcom/tendcloud/tenddata/bi;->x:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-direct {p0, v0, v1, v2}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "pl"

    const/4 v2, 0x1

    .line 3
    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-direct {p0, v0, v1, v3}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "sv"

    const-string v3, "4.0.67"

    .line 4
    invoke-direct {p0, v0, v1, v3}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "smcc"

    .line 5
    sget-object v3, Lcom/tendcloud/tenddata/bi;->s:Ljava/lang/String;

    invoke-direct {p0, v0, v1, v3}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "smnc"

    .line 6
    sget-object v3, Lcom/tendcloud/tenddata/bi;->t:Ljava/lang/String;

    invoke-direct {p0, v0, v1, v3}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "bmcc"

    .line 7
    sget-object v3, Lcom/tendcloud/tenddata/bi;->u:Ljava/lang/String;

    invoke-direct {p0, v0, v1, v3}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "bmnc"

    .line 8
    sget-object v3, Lcom/tendcloud/tenddata/bi;->v:Ljava/lang/String;

    invoke-direct {p0, v0, v1, v3}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "dt"

    const-string v3, "Mobile"

    .line 9
    invoke-direct {p0, v0, v1, v3}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "ov"

    .line 10
    invoke-static {}, Lcom/tendcloud/tenddata/p;->a()Ljava/lang/String;

    move-result-object v3

    invoke-direct {p0, v0, v1, v3}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "av"

    .line 11
    invoke-static {}, Lcom/tendcloud/tenddata/n;->k()Ljava/lang/String;

    move-result-object v3

    invoke-direct {p0, v0, v1, v3}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "px"

    .line 12
    sget-object v3, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    invoke-static {v3}, Lcom/tendcloud/tenddata/p;->d(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {p0, v0, v1, v3}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "nt"

    .line 13
    sget-object v3, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    invoke-static {v3}, Lcom/tendcloud/tenddata/u;->l(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {p0, v0, v1, v3}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "op"

    .line 14
    sget-object v3, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    invoke-static {v3}, Lcom/tendcloud/tenddata/u;->s(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {p0, v0, v1, v3}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "ch"

    .line 15
    invoke-direct {p0, v0, v1, p2}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "cv"

    .line 16
    sget-object v3, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    sget-object v4, Lcom/tendcloud/tenddata/bi;->j:Ljava/lang/String;

    const-string v5, "TDpref_cloud_cv"

    const-wide/16 v6, 0x0

    invoke-static {v3, v4, v5, v6, v7}, Lcom/tendcloud/tenddata/w;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)J

    move-result-wide v3

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-direct {p0, v0, v1, v3}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "TDID"

    .line 17
    sget-object v3, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    invoke-static {v3}, Lcom/tendcloud/tenddata/o;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {p0, v0, v1, v3}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    const-string v1, "AppID"

    .line 18
    invoke-direct {p0, v0, v1, p1}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/Object;)V

    .line 19
    new-instance v1, Lcom/tendcloud/tenddata/aq;

    sget-object v3, Lcom/tendcloud/tenddata/aq$a;->JSON:Lcom/tendcloud/tenddata/aq$a;

    invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B

    move-result-object v0

    invoke-direct {v1, v3, v0}, Lcom/tendcloud/tenddata/aq;-><init>(Lcom/tendcloud/tenddata/aq$a;[B)V

    .line 20
    invoke-static {}, Lcom/tendcloud/tenddata/an;->a()Lcom/tendcloud/tenddata/ap$a;

    move-result-object v0

    sget-object v3, Lcom/tendcloud/tenddata/aa;->u:Ljava/lang/String;

    .line 21
    invoke-virtual {v0, v3}, Lcom/tendcloud/tenddata/ap$a;->url(Ljava/lang/String;)Lcom/tendcloud/tenddata/ap$a;

    move-result-object v0

    const-string v3, "cloud.cpatrk.net"

    .line 22
    invoke-virtual {v0, v3}, Lcom/tendcloud/tenddata/ap$a;->host(Ljava/lang/String;)Lcom/tendcloud/tenddata/ap$a;

    move-result-object v0

    .line 23
    invoke-virtual {v0, v1}, Lcom/tendcloud/tenddata/ap$a;->body(Lcom/tendcloud/tenddata/aq;)Lcom/tendcloud/tenddata/ap$a;

    move-result-object v0

    new-instance v1, Lcom/tendcloud/tenddata/ar;

    invoke-direct {v1}, Lcom/tendcloud/tenddata/ar;-><init>()V

    const-string v3, "Accept-Encoding"

    const-string v4, ""

    .line 24
    invoke-virtual {v1, v3, v4}, Lcom/tendcloud/tenddata/ar;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/tendcloud/tenddata/ar;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/tendcloud/tenddata/ap$a;->header(Lcom/tendcloud/tenddata/ar;)Lcom/tendcloud/tenddata/ap$a;

    move-result-object v0

    sget-object v1, Lcom/tendcloud/tenddata/as;->b:Lcom/tendcloud/tenddata/as;

    .line 25
    invoke-virtual {v0, v1}, Lcom/tendcloud/tenddata/ap$a;->method(Lcom/tendcloud/tenddata/as;)Lcom/tendcloud/tenddata/ap$a;

    move-result-object v0

    .line 26
    invoke-virtual {v0}, Lcom/tendcloud/tenddata/ap$a;->build()Lcom/tendcloud/tenddata/ap;

    move-result-object v0

    .line 27
    invoke-static {v0}, Lcom/tendcloud/tenddata/an;->c(Lcom/tendcloud/tenddata/ap;)Lcom/tendcloud/tenddata/at;

    move-result-object v0

    .line 28
    sget-object v1, Lcom/tendcloud/tenddata/bi;->i:Ljava/lang/String;

    invoke-static {v1}, Lcom/tendcloud/tenddata/t;->getFileLock(Ljava/lang/String;)V

    .line 29
    invoke-virtual {v0}, Lcom/tendcloud/tenddata/at;->c()[B

    move-result-object v1

    invoke-static {v1}, Lcom/tendcloud/tenddata/af;->c([B)Ljava/lang/String;

    move-result-object v1

    .line 30
    invoke-virtual {v0}, Lcom/tendcloud/tenddata/at;->b()I

    move-result v0

    const/16 v3, 0xc8

    if-ne v0, v3, :cond_112

    .line 31
    new-instance p1, Lorg/json/JSONObject;

    invoke-direct {p1, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 32
    invoke-direct {p0, p1}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;)Lorg/json/JSONObject;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/tendcloud/tenddata/bi;->b(Lorg/json/JSONObject;)V

    .line 33
    sget-object p1, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    sget-object p2, Lcom/tendcloud/tenddata/bi;->j:Ljava/lang/String;

    const-string p3, "TDpref_last_request_time"

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    invoke-static {p1, p2, p3, v0, v1}, Lcom/tendcloud/tenddata/w;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)V

    goto :goto_13e

    .line 34
    :cond_112
    sget-boolean v0, Lcom/tendcloud/tenddata/bi;->z:Z

    if-eqz v0, :cond_13e

    .line 35
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const-string v1, "appId"

    .line 36
    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string p1, "channelId"

    .line 37
    invoke-virtual {v0, p1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string p1, "Features"

    .line 38
    invoke-virtual {v0, p1, p3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 39
    iget-object p1, p0, Lcom/tendcloud/tenddata/bi;->y:Landroid/os/Handler;

    invoke-virtual {p1, v2, v0}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object p1

    .line 40
    iget-object p2, p0, Lcom/tendcloud/tenddata/bi;->y:Landroid/os/Handler;

    const-wide/16 v0, 0x1388

    invoke-virtual {p2, p1, v0, v1}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z
    :try_end_137
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_137} :catch_13a
    .catchall {:try_start_0 .. :try_end_137} :catchall_138

    goto :goto_13e

    :catchall_138
    move-exception p1

    goto :goto_144

    :catch_13a
    move-exception p1

    .line 41
    :try_start_13b
    invoke-static {p1}, Lcom/tendcloud/tenddata/bq;->postSDKError(Ljava/lang/Throwable;)V
    :try_end_13e
    .catchall {:try_start_13b .. :try_end_13e} :catchall_138

    .line 42
    :cond_13e
    :goto_13e
    sget-object p1, Lcom/tendcloud/tenddata/bi;->i:Ljava/lang/String;

    invoke-static {p1}, Lcom/tendcloud/tenddata/t;->releaseFileLock(Ljava/lang/String;)V

    return-void

    :goto_144
    sget-object p2, Lcom/tendcloud/tenddata/bi;->i:Ljava/lang/String;

    invoke-static {p2}, Lcom/tendcloud/tenddata/t;->releaseFileLock(Ljava/lang/String;)V

    throw p1
.end method

.method private b(Lorg/json/JSONObject;)V
    .registers 10

    const-string v0, "r"

    const-string v1, "c"

    const-string v2, "i"

    if-nez p1, :cond_9

    return-void

    .line 43
    :cond_9
    :try_start_9
    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_16

    .line 44
    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v2

    int-to-long v2, v2

    iput-wide v2, p0, Lcom/tendcloud/tenddata/bi;->d:J

    .line 45
    :cond_16
    new-instance v2, Ljava/util/HashSet;

    invoke-direct {v2}, Ljava/util/HashSet;-><init>()V

    iput-object v2, p0, Lcom/tendcloud/tenddata/bi;->g:Ljava/util/HashSet;

    .line 46
    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7e

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7e

    .line 47
    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v1

    .line 48
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object p1

    const/4 v0, 0x0

    const/4 v2, 0x0

    .line 49
    :goto_33
    invoke-virtual {v1}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-ge v2, v3, :cond_66

    .line 50
    invoke-virtual {v1, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v3

    const-string v4, "id"

    .line 51
    invoke-virtual {v3, v4}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v4

    const/4 v5, 0x0

    .line 52
    :goto_44
    invoke-virtual {p1}, Lorg/json/JSONArray;->length()I

    move-result v6

    if-ge v5, v6, :cond_63

    .line 53
    invoke-virtual {p1, v5}, Lorg/json/JSONArray;->getInt(I)I

    move-result v6

    if-ne v4, v6, :cond_57

    .line 54
    invoke-static {v4}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v6

    invoke-direct {p0, v3, v6}, Lcom/tendcloud/tenddata/bi;->a(Lorg/json/JSONObject;Ljava/lang/String;)V

    .line 55
    :cond_57
    iget-object v6, p0, Lcom/tendcloud/tenddata/bi;->g:Ljava/util/HashSet;

    invoke-static {v4}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    add-int/lit8 v5, v5, 0x1

    goto :goto_44

    :cond_63
    add-int/lit8 v2, v2, 0x1

    goto :goto_33

    .line 56
    :cond_66
    invoke-virtual {v1}, Lorg/json/JSONArray;->length()I

    move-result p1

    if-nez p1, :cond_73

    .line 57
    new-instance p1, Ljava/util/HashMap;

    invoke-direct {p1}, Ljava/util/HashMap;-><init>()V

    iput-object p1, p0, Lcom/tendcloud/tenddata/bi;->f:Ljava/util/HashMap;

    .line 58
    :cond_73
    invoke-direct {p0}, Lcom/tendcloud/tenddata/bi;->g()V

    .line 59
    invoke-direct {p0}, Lcom/tendcloud/tenddata/bi;->i()V
    :try_end_79
    .catch Ljava/lang/Throwable; {:try_start_9 .. :try_end_79} :catch_7a

    goto :goto_7e

    :catch_7a
    move-exception p1

    .line 60
    invoke-static {p1}, Lcom/tendcloud/tenddata/bq;->postSDKError(Ljava/lang/Throwable;)V

    :cond_7e
    :goto_7e
    return-void
.end method

.method private b(Ljava/lang/String;)Z
    .registers 5

    .line 62
    :try_start_0
    invoke-static {p1}, Lcom/tendcloud/tenddata/af;->b(Ljava/lang/String;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_8

    return v1

    :cond_8
    const/4 v0, 0x0

    .line 63
    :goto_9
    sget-object v2, Lcom/tendcloud/tenddata/bi;->n:[Ljava/lang/String;

    array-length v2, v2

    if-ge v0, v2, :cond_20

    .line 64
    sget-object v2, Lcom/tendcloud/tenddata/bi;->n:[Ljava/lang/String;

    aget-object v2, v2, v0

    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2
    :try_end_16
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_16} :catch_1c

    if-eqz v2, :cond_19

    return v1

    :cond_19
    add-int/lit8 v0, v0, 0x1

    goto :goto_9

    :catch_1c
    move-exception p1

    .line 65
    invoke-static {p1}, Lcom/tendcloud/tenddata/bq;->postSDKError(Ljava/lang/Throwable;)V

    :cond_20
    const/4 p1, 0x1

    return p1
.end method

.method private d()V
    .registers 3

    .line 1
    :try_start_0
    new-instance v0, Ljava/lang/StringBuilder;

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

    sget-object v1, Lcom/tendcloud/tenddata/bi;->j:Ljava/lang/String;

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

    iget v1, p0, Lcom/tendcloud/tenddata/bi;->x:I

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

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

    move-result-object v0

    sput-object v0, Lcom/tendcloud/tenddata/bi;->j:Ljava/lang/String;

    .line 2
    new-instance v0, Ljava/lang/StringBuilder;

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

    sget-object v1, Lcom/tendcloud/tenddata/t$b;->Cloud_Control_Lock_File:Lcom/tendcloud/tenddata/t$b;

    invoke-virtual {v1}, Lcom/tendcloud/tenddata/t$b;->toString()Ljava/lang/String;

    move-result-object v1

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

    iget v1, p0, Lcom/tendcloud/tenddata/bi;->x:I

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

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

    move-result-object v0

    sput-object v0, Lcom/tendcloud/tenddata/bi;->i:Ljava/lang/String;
    :try_end_2e
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_2e} :catch_2f

    goto :goto_33

    :catch_2f
    move-exception v0

    .line 3
    invoke-static {v0}, Lcom/tendcloud/tenddata/bq;->postSDKError(Ljava/lang/Throwable;)V

    :goto_33
    return-void
.end method

.method private e()Z
    .registers 8

    .line 1
    sget-object v0, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    sget-object v1, Lcom/tendcloud/tenddata/bi;->j:Ljava/lang/String;

    const-wide/16 v2, 0x0

    const-string v4, "TDpref_last_request_time"

    invoke-static {v0, v1, v4, v2, v3}, Lcom/tendcloud/tenddata/w;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)J

    move-result-wide v0

    .line 2
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    cmp-long v6, v0, v2

    if-eqz v6, :cond_2c

    sub-long/2addr v4, v0

    .line 3
    iget-wide v0, p0, Lcom/tendcloud/tenddata/bi;->d:J

    const-wide/16 v2, 0x3c

    mul-long v0, v0, v2

    const-wide/16 v2, 0x3e8

    mul-long v0, v0, v2

    cmp-long v2, v4, v0

    if-gtz v2, :cond_2c

    iget-wide v0, p0, Lcom/tendcloud/tenddata/bi;->e:J

    cmp-long v2, v4, v0

    if-lez v2, :cond_2a

    goto :goto_2c

    :cond_2a
    const/4 v0, 0x0

    return v0

    :cond_2c
    :goto_2c
    const/4 v0, 0x1

    return v0
.end method

.method private f()V
    .registers 4

    .line 1
    :try_start_0
    invoke-static {}, Lcom/tendcloud/tenddata/an;->a()Lcom/tendcloud/tenddata/ap$a;

    move-result-object v0

    const-string v1, "cloud.cpatrk.net"

    .line 2
    invoke-virtual {v0, v1}, Lcom/tendcloud/tenddata/ap$a;->host(Ljava/lang/String;)Lcom/tendcloud/tenddata/ap$a;

    move-result-object v0

    sget-object v1, Lcom/tendcloud/tenddata/aa;->A:Ljava/lang/String;

    .line 3
    invoke-virtual {v0, v1}, Lcom/tendcloud/tenddata/ap$a;->url(Ljava/lang/String;)Lcom/tendcloud/tenddata/ap$a;

    move-result-object v0

    sget-object v1, Lcom/tendcloud/tenddata/as;->a:Lcom/tendcloud/tenddata/as;

    .line 4
    invoke-virtual {v0, v1}, Lcom/tendcloud/tenddata/ap$a;->method(Lcom/tendcloud/tenddata/as;)Lcom/tendcloud/tenddata/ap$a;

    move-result-object v0

    .line 5
    invoke-virtual {v0}, Lcom/tendcloud/tenddata/ap$a;->build()Lcom/tendcloud/tenddata/ap;

    move-result-object v0

    .line 6
    invoke-static {v0}, Lcom/tendcloud/tenddata/an;->c(Lcom/tendcloud/tenddata/ap;)Lcom/tendcloud/tenddata/at;

    move-result-object v0

    if-eqz v0, :cond_40

    .line 7
    invoke-virtual {v0}, Lcom/tendcloud/tenddata/at;->b()I

    move-result v1

    const/16 v2, 0xc8

    if-eq v1, v2, :cond_29

    goto :goto_40

    .line 8
    :cond_29
    new-instance v1, Ljava/lang/String;

    invoke-virtual {v0}, Lcom/tendcloud/tenddata/at;->c()[B

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/lang/String;-><init>([B)V

    .line 9
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string v1, "GDPRregion"

    .line 10
    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;)Z

    move-result v0

    sput-boolean v0, Lcom/tendcloud/tenddata/bi;->p:Z
    :try_end_3f
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_3f} :catch_40

    nop

    :catch_40
    :cond_40
    :goto_40
    return-void
.end method

.method private g()V
    .registers 4

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/tendcloud/tenddata/bi;->h:Lorg/json/JSONObject;

    invoke-virtual {v0}, Lorg/json/JSONObject;->length()I

    move-result v0

    if-nez v0, :cond_2d

    .line 2
    sget-object v0, Lcom/tendcloud/tenddata/bi;->i:Ljava/lang/String;

    invoke-static {v0}, Lcom/tendcloud/tenddata/t;->b(Ljava/lang/String;)Ljava/io/RandomAccessFile;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/tendcloud/tenddata/bi;->a(Ljava/io/RandomAccessFile;)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    .line 3
    invoke-static {v0}, Lcom/tendcloud/tenddata/af;->b(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_1e

    .line 4
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    :cond_1e
    if-eqz v1, :cond_2d

    .line 5
    invoke-virtual {v1}, Lorg/json/JSONObject;->length()I

    move-result v0

    if-lez v0, :cond_2d

    .line 6
    iput-object v1, p0, Lcom/tendcloud/tenddata/bi;->h:Lorg/json/JSONObject;
    :try_end_28
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_28} :catch_29

    goto :goto_2d

    :catch_29
    move-exception v0

    .line 7
    invoke-static {v0}, Lcom/tendcloud/tenddata/bq;->postSDKError(Ljava/lang/Throwable;)V

    :cond_2d
    :goto_2d
    return-void
.end method

.method private h()V
    .registers 5

    .line 1
    :try_start_0
    sget-object v0, Lcom/tendcloud/tenddata/bi;->i:Ljava/lang/String;

    invoke-static {v0}, Lcom/tendcloud/tenddata/t;->getFileLock(Ljava/lang/String;)V

    .line 2
    sget-object v0, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    sget-object v1, Lcom/tendcloud/tenddata/bi;->j:Ljava/lang/String;

    const-string v2, "TDpref_config"

    const-string v3, ""

    invoke-static {v0, v1, v2, v3}, Lcom/tendcloud/tenddata/w;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    .line 3
    invoke-static {v0}, Lcom/tendcloud/tenddata/af;->b(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_1d

    .line 4
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 5
    :cond_1d
    invoke-direct {p0, v1}, Lcom/tendcloud/tenddata/bi;->b(Lorg/json/JSONObject;)V
    :try_end_20
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_20} :catch_23
    .catchall {:try_start_0 .. :try_end_20} :catchall_21

    goto :goto_27

    :catchall_21
    move-exception v0

    goto :goto_2d

    :catch_23
    move-exception v0

    .line 6
    :try_start_24
    invoke-static {v0}, Lcom/tendcloud/tenddata/bq;->postSDKError(Ljava/lang/Throwable;)V
    :try_end_27
    .catchall {:try_start_24 .. :try_end_27} :catchall_21

    .line 7
    :goto_27
    sget-object v0, Lcom/tendcloud/tenddata/bi;->i:Ljava/lang/String;

    invoke-static {v0}, Lcom/tendcloud/tenddata/t;->releaseFileLock(Ljava/lang/String;)V

    return-void

    :goto_2d
    sget-object v1, Lcom/tendcloud/tenddata/bi;->i:Ljava/lang/String;

    invoke-static {v1}, Lcom/tendcloud/tenddata/t;->releaseFileLock(Ljava/lang/String;)V

    throw v0
.end method

.method private i()V
    .registers 7

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/tendcloud/tenddata/bi;->h:Lorg/json/JSONObject;

    invoke-virtual {v0}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;

    move-result-object v0

    .line 2
    :cond_6
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_50

    .line 3
    iget-object v1, p0, Lcom/tendcloud/tenddata/bi;->h:Lorg/json/JSONObject;

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v1

    .line 4
    invoke-virtual {v1}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;

    move-result-object v2

    .line 5
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    .line 6
    :cond_21
    :goto_21
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_39

    .line 7
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    .line 8
    iget-object v5, p0, Lcom/tendcloud/tenddata/bi;->g:Ljava/util/HashSet;

    invoke-virtual {v5, v4}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_21

    .line 9
    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_21

    :cond_39
    const/4 v2, 0x0

    .line 10
    :goto_3a
    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-ge v2, v4, :cond_6

    .line 11
    invoke-virtual {v3, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    invoke-virtual {v1, v4}, Lorg/json/JSONObject;->remove(Ljava/lang/String;)Ljava/lang/Object;
    :try_end_49
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_49} :catch_4c

    add-int/lit8 v2, v2, 0x1

    goto :goto_3a

    :catch_4c
    move-exception v0

    .line 12
    invoke-static {v0}, Lcom/tendcloud/tenddata/bq;->postSDKError(Ljava/lang/Throwable;)V

    :cond_50
    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Lorg/json/JSONArray;
    .registers 3

    const/4 v0, 0x0

    .line 59
    invoke-virtual {p0, p1, v0, v0}, Lcom/tendcloud/tenddata/bi;->a(Ljava/lang/String;Lorg/json/JSONObject;Lorg/json/JSONObject;)Lorg/json/JSONArray;

    move-result-object p1

    return-object p1
.end method

.method public a(Ljava/lang/String;Lorg/json/JSONObject;Lorg/json/JSONObject;)Lorg/json/JSONArray;
    .registers 21

    move-object/from16 v1, p0

    move-object/from16 v0, p1

    move-object/from16 v2, p2

    move-object/from16 v3, p3

    .line 60
    new-instance v4, Lorg/json/JSONArray;

    invoke-direct {v4}, Lorg/json/JSONArray;-><init>()V

    .line 61
    sget-boolean v5, Lcom/tendcloud/tenddata/bi;->w:Z

    if-nez v5, :cond_12

    return-object v4

    .line 62
    :cond_12
    :try_start_12
    sget-boolean v5, Lcom/tendcloud/tenddata/ab;->q:Z

    if-eqz v5, :cond_17

    return-object v4

    .line 63
    :cond_17
    sget-boolean v5, Lcom/tendcloud/tenddata/bi;->q:Z

    const/4 v6, 0x0

    if-eqz v5, :cond_26

    sget-boolean v5, Lcom/tendcloud/tenddata/bi;->r:Z

    if-eqz v5, :cond_26

    .line 64
    sget-boolean v0, Lcom/tendcloud/tenddata/bi;->p:Z

    if-eqz v0, :cond_25

    return-object v6

    :cond_25
    return-object v4

    .line 65
    :cond_26
    iget-object v5, v1, Lcom/tendcloud/tenddata/bi;->f:Ljava/util/HashMap;

    invoke-virtual {v5, v0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_34

    .line 66
    sget-boolean v0, Lcom/tendcloud/tenddata/bi;->o:Z

    if-eqz v0, :cond_33

    return-object v4

    :cond_33
    return-object v6

    :cond_34
    const/4 v5, 0x1

    if-eqz v2, :cond_4a

    if-eqz v3, :cond_4a

    .line 67
    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_40

    return-object v4

    .line 68
    :cond_40
    invoke-virtual {v3, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_47

    return-object v6

    .line 69
    :cond_47
    invoke-virtual {v3, v0, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Z)Lorg/json/JSONObject;

    .line 70
    :cond_4a
    iget-object v2, v1, Lcom/tendcloud/tenddata/bi;->f:Ljava/util/HashMap;

    invoke-virtual {v2, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lorg/json/JSONObject;

    .line 71
    invoke-virtual {v2}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;

    move-result-object v3

    .line 72
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    .line 73
    invoke-direct/range {p0 .. p0}, Lcom/tendcloud/tenddata/bi;->g()V

    .line 74
    :cond_5e
    :goto_5e
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v8

    if-eqz v8, :cond_e9

    .line 75
    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Ljava/lang/String;

    .line 76
    invoke-interface {v7, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 77
    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v9

    const-string v10, "st"

    .line 78
    invoke-virtual {v9, v10}, Lorg/json/JSONObject;->getLong(Ljava/lang/String;)J

    move-result-wide v10

    const-string v12, "et"

    .line 79
    invoke-virtual {v9, v12}, Lorg/json/JSONObject;->getLong(Ljava/lang/String;)J

    move-result-wide v12

    const-string v14, "cn"

    .line 80
    invoke-virtual {v9, v14}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v9

    .line 81
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v14

    cmp-long v16, v14, v10

    if-ltz v16, :cond_5e

    cmp-long v10, v14, v12

    if-gtz v10, :cond_5e

    if-gtz v9, :cond_92

    goto :goto_5e

    .line 82
    :cond_92
    iget-object v10, v1, Lcom/tendcloud/tenddata/bi;->h:Lorg/json/JSONObject;

    invoke-virtual {v10, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v10

    if-eqz v10, :cond_d2

    .line 83
    iget-object v10, v1, Lcom/tendcloud/tenddata/bi;->h:Lorg/json/JSONObject;

    invoke-virtual {v10, v0}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v10

    .line 84
    invoke-virtual {v10, v8}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v11

    if-eqz v11, :cond_c1

    .line 85
    invoke-virtual {v10, v8}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v11

    if-ge v11, v9, :cond_5e

    .line 86
    invoke-static {v8}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v9

    invoke-virtual {v4, v9}, Lorg/json/JSONArray;->put(I)Lorg/json/JSONArray;

    .line 87
    invoke-virtual {v10, v8}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v9

    add-int/2addr v9, v5

    invoke-virtual {v10, v8, v9}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 88
    iget-object v8, v1, Lcom/tendcloud/tenddata/bi;->h:Lorg/json/JSONObject;

    invoke-virtual {v8, v0, v10}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    goto :goto_5e

    .line 89
    :cond_c1
    iget-object v9, v1, Lcom/tendcloud/tenddata/bi;->h:Lorg/json/JSONObject;

    invoke-virtual {v10, v8, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    move-result-object v10

    invoke-virtual {v9, v0, v10}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 90
    invoke-static {v8}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v8

    invoke-virtual {v4, v8}, Lorg/json/JSONArray;->put(I)Lorg/json/JSONArray;

    goto :goto_5e

    .line 91
    :cond_d2
    iget-object v9, v1, Lcom/tendcloud/tenddata/bi;->h:Lorg/json/JSONObject;

    new-instance v10, Lorg/json/JSONObject;

    invoke-direct {v10}, Lorg/json/JSONObject;-><init>()V

    invoke-virtual {v10, v8, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    move-result-object v10

    invoke-virtual {v9, v0, v10}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 92
    invoke-static {v8}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v8

    invoke-virtual {v4, v8}, Lorg/json/JSONArray;->put(I)Lorg/json/JSONArray;

    goto/16 :goto_5e

    .line 93
    :cond_e9
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v0
    :try_end_ed
    .catch Ljava/lang/Throwable; {:try_start_12 .. :try_end_ed} :catch_f0

    if-nez v0, :cond_f4

    return-object v6

    :catch_f0
    move-exception v0

    .line 94
    invoke-static {v0}, Lcom/tendcloud/tenddata/bq;->postSDKError(Ljava/lang/Throwable;)V

    :cond_f4
    return-object v4
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Lcom/tendcloud/tenddata/a;)V
    .registers 9

    .line 10
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const-string v1, "appId"

    .line 11
    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string p1, "channelId"

    .line 12
    invoke-virtual {v0, p1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string p1, "Features"

    .line 13
    invoke-virtual {v0, p1, p3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 14
    invoke-direct {p0, p3}, Lcom/tendcloud/tenddata/bi;->a(Lcom/tendcloud/tenddata/a;)I

    move-result p1

    iput p1, p0, Lcom/tendcloud/tenddata/bi;->x:I

    .line 15
    invoke-direct {p0}, Lcom/tendcloud/tenddata/bi;->d()V

    .line 16
    invoke-static {p3}, Lcom/tendcloud/tenddata/n;->e(Lcom/tendcloud/tenddata/a;)J

    move-result-wide p1

    const/4 p3, 0x1

    const/4 v1, 0x0

    const-wide/16 v2, 0x1

    cmp-long v4, p1, v2

    if-nez v4, :cond_2b

    const/4 p1, 0x1

    goto :goto_2c

    :cond_2b
    const/4 p1, 0x0

    :goto_2c
    sput-boolean p1, Lcom/tendcloud/tenddata/bi;->q:Z

    .line 17
    sget-boolean p1, Lcom/tendcloud/tenddata/bi;->q:Z

    const/4 p2, 0x3

    if-eqz p1, :cond_55

    .line 18
    sget-object p1, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    invoke-static {p1}, Lcom/tendcloud/tenddata/u;->h(Landroid/content/Context;)Z

    move-result p1

    if-nez p1, :cond_53

    .line 19
    sget-object p1, Lcom/tendcloud/tenddata/ad;->a:Ljava/util/concurrent/ThreadPoolExecutor;

    new-instance v1, Lcom/tendcloud/tenddata/bi$2;

    invoke-direct {v1, p0}, Lcom/tendcloud/tenddata/bi$2;-><init>(Lcom/tendcloud/tenddata/bi;)V

    invoke-virtual {p1, v1}, Ljava/util/concurrent/ThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V

    .line 20
    iget-object p1, p0, Lcom/tendcloud/tenddata/bi;->y:Landroid/os/Handler;

    invoke-virtual {p1, p2, v0}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object p2

    const-wide/16 v0, 0x1388

    invoke-virtual {p1, p2, v0, v1}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    .line 21
    sput-boolean p3, Lcom/tendcloud/tenddata/bi;->w:Z

    return-void

    .line 22
    :cond_53
    sput-boolean v1, Lcom/tendcloud/tenddata/bi;->r:Z

    .line 23
    :cond_55
    sget-object p1, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    invoke-static {p1}, Lcom/tendcloud/tenddata/u;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object p1

    .line 24
    sget-object v2, Lcom/tendcloud/tenddata/ab;->g:Landroid/content/Context;

    invoke-static {v2}, Lcom/tendcloud/tenddata/u;->o(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    .line 25
    invoke-static {p1}, Lcom/tendcloud/tenddata/af;->b(Ljava/lang/String;)Z

    move-result v3

    const-string v4, ""

    if-eqz v3, :cond_6b

    move-object v3, v4

    goto :goto_6f

    :cond_6b
    invoke-virtual {p1, v1, p2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    :goto_6f
    sput-object v3, Lcom/tendcloud/tenddata/bi;->s:Ljava/lang/String;

    .line 26
    invoke-static {p1}, Lcom/tendcloud/tenddata/af;->b(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_79

    move-object p1, v4

    goto :goto_7d

    :cond_79
    invoke-virtual {p1, p2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p1

    :goto_7d
    sput-object p1, Lcom/tendcloud/tenddata/bi;->t:Ljava/lang/String;

    .line 27
    invoke-static {v2}, Lcom/tendcloud/tenddata/af;->b(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_87

    move-object p1, v4

    goto :goto_8b

    :cond_87
    invoke-virtual {v2, v1, p2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p1

    :goto_8b
    sput-object p1, Lcom/tendcloud/tenddata/bi;->u:Ljava/lang/String;

    .line 28
    invoke-static {v2}, Lcom/tendcloud/tenddata/af;->b(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_94

    goto :goto_98

    :cond_94
    invoke-virtual {v2, p2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v4

    :goto_98
    sput-object v4, Lcom/tendcloud/tenddata/bi;->v:Ljava/lang/String;

    .line 29
    sget-object p1, Lcom/tendcloud/tenddata/bi;->s:Ljava/lang/String;

    invoke-direct {p0, p1}, Lcom/tendcloud/tenddata/bi;->b(Ljava/lang/String;)Z

    move-result p1

    if-nez p1, :cond_ad

    sget-object p1, Lcom/tendcloud/tenddata/bi;->u:Ljava/lang/String;

    invoke-direct {p0, p1}, Lcom/tendcloud/tenddata/bi;->b(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_ab

    goto :goto_ad

    :cond_ab
    const/4 p1, 0x0

    goto :goto_ae

    :cond_ad
    :goto_ad
    const/4 p1, 0x1

    :goto_ae
    sput-boolean p1, Lcom/tendcloud/tenddata/bi;->o:Z

    .line 30
    invoke-direct {p0}, Lcom/tendcloud/tenddata/bi;->h()V

    .line 31
    :try_start_b3
    sget-boolean p1, Lcom/tendcloud/tenddata/ab;->q:Z

    if-nez p1, :cond_bd

    invoke-direct {p0}, Lcom/tendcloud/tenddata/bi;->e()Z

    move-result p1

    if-eqz p1, :cond_c8

    .line 32
    :cond_bd
    iget-object p1, p0, Lcom/tendcloud/tenddata/bi;->y:Landroid/os/Handler;

    invoke-virtual {p1, v1, v0}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object p1

    .line 33
    iget-object p2, p0, Lcom/tendcloud/tenddata/bi;->y:Landroid/os/Handler;

    invoke-virtual {p2, p1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_c8
    .catch Ljava/lang/Throwable; {:try_start_b3 .. :try_end_c8} :catch_c8

    .line 34
    :catch_c8
    :cond_c8
    sput-boolean p3, Lcom/tendcloud/tenddata/bi;->w:Z

    return-void
.end method

.method public b()Ljava/lang/String;
    .registers 2

    .line 61
    sget-object v0, Lcom/tendcloud/tenddata/bi;->i:Ljava/lang/String;

    return-object v0
.end method

.method public c()V
    .registers 3

    .line 1
    sget-object v0, Lcom/tendcloud/tenddata/bi;->i:Ljava/lang/String;

    invoke-static {v0}, Lcom/tendcloud/tenddata/t;->b(Ljava/lang/String;)Ljava/io/RandomAccessFile;

    move-result-object v0

    iget-object v1, p0, Lcom/tendcloud/tenddata/bi;->h:Lorg/json/JSONObject;

    invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0, v0, v1}, Lcom/tendcloud/tenddata/bi;->a(Ljava/io/RandomAccessFile;Ljava/lang/String;)V

    .line 2
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    iput-object v0, p0, Lcom/tendcloud/tenddata/bi;->h:Lorg/json/JSONObject;

    return-void
.end method