1331 lines
34 KiB
Smali
1331 lines
34 KiB
Smali
.class public Lcom/zk/drivermonitor/manager/UpDataManager;
|
|
.super Ljava/lang/Object;
|
|
.source "UpDataManager.java"
|
|
|
|
|
|
# static fields
|
|
.field private static b:Lcom/zk/drivermonitor/manager/UpDataManager;
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/content/Context;
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 42
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 43
|
|
iput-object p1, p0, Lcom/zk/drivermonitor/manager/UpDataManager;->a:Landroid/content/Context;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static declared-synchronized a(Landroid/content/Context;)Lcom/zk/drivermonitor/manager/UpDataManager;
|
|
.locals 2
|
|
|
|
const-class v0, Lcom/zk/drivermonitor/manager/UpDataManager;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 36
|
|
:try_start_0
|
|
sget-object v1, Lcom/zk/drivermonitor/manager/UpDataManager;->b:Lcom/zk/drivermonitor/manager/UpDataManager;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 37
|
|
new-instance v1, Lcom/zk/drivermonitor/manager/UpDataManager;
|
|
|
|
invoke-direct {v1, p0}, Lcom/zk/drivermonitor/manager/UpDataManager;-><init>(Landroid/content/Context;)V
|
|
|
|
sput-object v1, Lcom/zk/drivermonitor/manager/UpDataManager;->b:Lcom/zk/drivermonitor/manager/UpDataManager;
|
|
|
|
.line 39
|
|
:cond_0
|
|
sget-object p0, Lcom/zk/drivermonitor/manager/UpDataManager;->b:Lcom/zk/drivermonitor/manager/UpDataManager;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit v0
|
|
|
|
return-object p0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 35
|
|
monitor-exit v0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static b(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 12
|
|
|
|
const-string v0, ""
|
|
|
|
.line 282
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v1
|
|
|
|
.line 283
|
|
new-instance v3, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
if-eqz p0, :cond_4
|
|
|
|
:try_start_0
|
|
const-string v4, ""
|
|
|
|
.line 285
|
|
invoke-virtual {p0, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_4
|
|
|
|
const-string v4, "|"
|
|
|
|
.line 286
|
|
invoke-virtual {p0, v4}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_5
|
|
|
|
const-string v4, "\\|"
|
|
|
|
.line 287
|
|
invoke-virtual {p0, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
.line 288
|
|
:goto_0
|
|
array-length v6, p0
|
|
|
|
const/4 v7, 0x1
|
|
|
|
if-lt v5, v6, :cond_1
|
|
|
|
const/4 p0, 0x0
|
|
|
|
.line 300
|
|
:goto_1
|
|
invoke-interface {v3}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
if-lt p0, v1, :cond_0
|
|
|
|
.line 303
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result p0
|
|
|
|
sub-int/2addr p0, v7
|
|
|
|
invoke-virtual {v0, v4, p0}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_3
|
|
|
|
.line 301
|
|
:cond_0
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-interface {v3, p0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "|"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
add-int/lit8 p0, p0, 0x1
|
|
|
|
move-object v0, v1
|
|
|
|
goto :goto_1
|
|
|
|
.line 289
|
|
:cond_1
|
|
aget-object v6, p0, v5
|
|
|
|
const-string v8, "-"
|
|
|
|
invoke-virtual {v6, v8}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I
|
|
|
|
move-result v6
|
|
|
|
if-lez v6, :cond_3
|
|
|
|
.line 291
|
|
aget-object v8, p0, v5
|
|
|
|
invoke-virtual {v8, v4, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-static {v6}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v8
|
|
|
|
const/4 v6, 0x0
|
|
|
|
sub-long v8, v1, v8
|
|
|
|
const-wide/32 v10, 0x240c8400
|
|
|
|
cmp-long v6, v8, v10
|
|
|
|
if-gtz v6, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/4 v7, 0x0
|
|
|
|
:goto_2
|
|
if-eqz v7, :cond_3
|
|
|
|
.line 294
|
|
aget-object v6, p0, v5
|
|
|
|
invoke-interface {v3, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:cond_3
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
:cond_4
|
|
move-object p0, v0
|
|
|
|
:cond_5
|
|
:goto_3
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private c()Lorg/json/JSONObject;
|
|
.locals 4
|
|
|
|
.line 93
|
|
new-instance v0, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
.line 94
|
|
invoke-static {}, Lcom/zk/drivermonitor/vo/DriverInfo;->getInstance()Lcom/zk/drivermonitor/vo/DriverInfo;
|
|
|
|
move-result-object v1
|
|
|
|
:try_start_0
|
|
const-string v2, "SN"
|
|
|
|
.line 96
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getSystemName()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "DI"
|
|
|
|
.line 97
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getDeviceId()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "MAC"
|
|
|
|
.line 98
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getMACAddress()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "DB"
|
|
|
|
.line 99
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getDeviceBrand()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "DM"
|
|
|
|
.line 100
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getDeviceModel()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "SV"
|
|
|
|
.line 101
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getSystemVersion()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "AVC"
|
|
|
|
.line 102
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getApplicationVersionCode()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "APN"
|
|
|
|
.line 103
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getApplicationPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "AN"
|
|
|
|
.line 104
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getApplicationName()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "AC"
|
|
|
|
.line 105
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getApplicationChannel()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "AK"
|
|
|
|
.line 106
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getApplicationKey()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "AUI"
|
|
|
|
.line 107
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getApplicationUserId()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "SDKV"
|
|
|
|
.line 108
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getSdkVersion()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "APILevel"
|
|
|
|
.line 109
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getApiLevel()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "MO"
|
|
|
|
.line 110
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getMobileOperator()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "PN"
|
|
|
|
.line 111
|
|
invoke-virtual {v1}, Lcom/zk/drivermonitor/vo/DriverInfo;->getPhoneNum()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private d()Lorg/json/JSONObject;
|
|
.locals 4
|
|
|
|
.line 123
|
|
iget-object v0, p0, Lcom/zk/drivermonitor/manager/UpDataManager;->a:Landroid/content/Context;
|
|
|
|
invoke-static {v0}, Lcom/zk/drivermonitor/utils/SPUtil;->a(Landroid/content/Context;)Lcom/zk/drivermonitor/utils/SPUtil;
|
|
|
|
move-result-object v0
|
|
|
|
.line 124
|
|
new-instance v1, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
:try_start_0
|
|
const-string v2, "NT"
|
|
|
|
.line 126
|
|
invoke-virtual {v0}, Lcom/zk/drivermonitor/utils/SPUtil;->k()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3}, Lcom/zk/drivermonitor/manager/UpDataManager;->b(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "GL"
|
|
|
|
.line 127
|
|
invoke-virtual {v0}, Lcom/zk/drivermonitor/utils/SPUtil;->l()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/zk/drivermonitor/manager/UpDataManager;->b(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v1, v2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v0, "PL"
|
|
|
|
const-string v2, ""
|
|
|
|
.line 128
|
|
invoke-virtual {v1, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private e()Lorg/json/JSONArray;
|
|
.locals 12
|
|
|
|
.line 139
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 140
|
|
new-instance v2, Lorg/json/JSONArray;
|
|
|
|
invoke-direct {v2}, Lorg/json/JSONArray;-><init>()V
|
|
|
|
.line 141
|
|
iget-object v3, p0, Lcom/zk/drivermonitor/manager/UpDataManager;->a:Landroid/content/Context;
|
|
|
|
invoke-static {v3}, Lcom/zk/drivermonitor/db/TableOperation;->a(Landroid/content/Context;)Lcom/zk/drivermonitor/db/TableOperation;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Lcom/zk/drivermonitor/db/TableOperation;->a()Ljava/util/List;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
.line 142
|
|
:goto_0
|
|
invoke-interface {v3}, Ljava/util/List;->size()I
|
|
|
|
move-result v5
|
|
|
|
if-lt v4, v5, :cond_0
|
|
|
|
return-object v2
|
|
|
|
.line 144
|
|
:cond_0
|
|
invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/zk/drivermonitor/vo/IUUInfo;
|
|
|
|
invoke-virtual {v5}, Lcom/zk/drivermonitor/vo/IUUInfo;->getActionHappenTime()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-static {v5}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v5
|
|
|
|
sub-long v7, v0, v5
|
|
|
|
const-wide/32 v9, 0x240c8400
|
|
|
|
cmp-long v11, v7, v9
|
|
|
|
if-ltz v11, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
.line 149
|
|
:cond_1
|
|
new-instance v7, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v7}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
:try_start_0
|
|
const-string v8, "APN"
|
|
|
|
.line 151
|
|
invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v9
|
|
|
|
check-cast v9, Lcom/zk/drivermonitor/vo/IUUInfo;
|
|
|
|
invoke-virtual {v9}, Lcom/zk/drivermonitor/vo/IUUInfo;->getApplicationPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v7, v8, v9}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v8, "AN"
|
|
|
|
.line 152
|
|
invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v9
|
|
|
|
check-cast v9, Lcom/zk/drivermonitor/vo/IUUInfo;
|
|
|
|
invoke-virtual {v9}, Lcom/zk/drivermonitor/vo/IUUInfo;->getApplicationName()Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v7, v8, v9}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v8, "AVC"
|
|
|
|
.line 153
|
|
invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v9
|
|
|
|
check-cast v9, Lcom/zk/drivermonitor/vo/IUUInfo;
|
|
|
|
invoke-virtual {v9}, Lcom/zk/drivermonitor/vo/IUUInfo;->getApplicationVersionCode()Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v7, v8, v9}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v8, "AT"
|
|
|
|
.line 154
|
|
invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v9
|
|
|
|
check-cast v9, Lcom/zk/drivermonitor/vo/IUUInfo;
|
|
|
|
invoke-virtual {v9}, Lcom/zk/drivermonitor/vo/IUUInfo;->getActionType()Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v7, v8, v9}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v8, "AHT"
|
|
|
|
.line 155
|
|
new-instance v9, Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {v5, v6}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-direct {v9, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v7, v8, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 160
|
|
:catch_0
|
|
invoke-virtual {v2, v7}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
|
|
|
|
:goto_1
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method private f()Lorg/json/JSONArray;
|
|
.locals 12
|
|
|
|
.line 169
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 170
|
|
new-instance v2, Lorg/json/JSONArray;
|
|
|
|
invoke-direct {v2}, Lorg/json/JSONArray;-><init>()V
|
|
|
|
.line 171
|
|
iget-object v3, p0, Lcom/zk/drivermonitor/manager/UpDataManager;->a:Landroid/content/Context;
|
|
|
|
invoke-static {v3}, Lcom/zk/drivermonitor/db/TableOperation;->a(Landroid/content/Context;)Lcom/zk/drivermonitor/db/TableOperation;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Lcom/zk/drivermonitor/db/TableOperation;->b()Ljava/util/List;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
.line 172
|
|
:goto_0
|
|
invoke-interface {v3}, Ljava/util/List;->size()I
|
|
|
|
move-result v5
|
|
|
|
if-lt v4, v5, :cond_0
|
|
|
|
return-object v2
|
|
|
|
.line 174
|
|
:cond_0
|
|
invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/zk/drivermonitor/vo/OCInfo;
|
|
|
|
invoke-virtual {v5}, Lcom/zk/drivermonitor/vo/OCInfo;->getApplicationOpenTime()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-static {v5}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v5
|
|
|
|
sub-long v7, v0, v5
|
|
|
|
const-wide/32 v9, 0x240c8400
|
|
|
|
cmp-long v11, v7, v9
|
|
|
|
if-lez v11, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
.line 180
|
|
:cond_1
|
|
new-instance v7, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v7}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
:try_start_0
|
|
const-string v8, "AOT"
|
|
|
|
.line 182
|
|
new-instance v9, Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {v5, v6}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-direct {v9, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v7, v8, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v5, "ACT"
|
|
|
|
.line 184
|
|
invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Lcom/zk/drivermonitor/vo/OCInfo;
|
|
|
|
invoke-virtual {v6}, Lcom/zk/drivermonitor/vo/OCInfo;->getApplicationCloseTime()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v7, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v5, "AVC"
|
|
|
|
.line 185
|
|
invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Lcom/zk/drivermonitor/vo/OCInfo;
|
|
|
|
invoke-virtual {v6}, Lcom/zk/drivermonitor/vo/OCInfo;->getApplicationVersionCode()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v7, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v5, "APN"
|
|
|
|
.line 186
|
|
invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Lcom/zk/drivermonitor/vo/OCInfo;
|
|
|
|
invoke-virtual {v6}, Lcom/zk/drivermonitor/vo/OCInfo;->getApplicationPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v7, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v5, "AN"
|
|
|
|
.line 187
|
|
invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Lcom/zk/drivermonitor/vo/OCInfo;
|
|
|
|
invoke-virtual {v6}, Lcom/zk/drivermonitor/vo/OCInfo;->getApplicationName()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v7, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
.line 188
|
|
invoke-virtual {v2, v7}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
:goto_1
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method private g()Lorg/json/JSONArray;
|
|
.locals 6
|
|
|
|
.line 201
|
|
new-instance v0, Lorg/json/JSONArray;
|
|
|
|
invoke-direct {v0}, Lorg/json/JSONArray;-><init>()V
|
|
|
|
.line 202
|
|
new-instance v1, Lcom/zk/drivermonitor/manager/InstalledAPPInfoManager;
|
|
|
|
invoke-direct {v1}, Lcom/zk/drivermonitor/manager/InstalledAPPInfoManager;-><init>()V
|
|
|
|
.line 203
|
|
iget-object v2, p0, Lcom/zk/drivermonitor/manager/UpDataManager;->a:Landroid/content/Context;
|
|
|
|
invoke-virtual {v1, v2}, Lcom/zk/drivermonitor/manager/InstalledAPPInfoManager;->b(Landroid/content/Context;)Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 205
|
|
:try_start_0
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
if-lez v2, :cond_1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 206
|
|
:goto_0
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v3
|
|
|
|
if-lt v2, v3, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 207
|
|
:cond_0
|
|
new-instance v3, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v3}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
const-string v4, "APN"
|
|
|
|
.line 208
|
|
invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/zk/drivermonitor/vo/InstalledAppInfo;
|
|
|
|
invoke-virtual {v5}, Lcom/zk/drivermonitor/vo/InstalledAppInfo;->getApplicationPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v4, "AN"
|
|
|
|
.line 209
|
|
invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/zk/drivermonitor/vo/InstalledAppInfo;
|
|
|
|
invoke-virtual {v5}, Lcom/zk/drivermonitor/vo/InstalledAppInfo;->getApplicationName()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v4, "AVC"
|
|
|
|
.line 210
|
|
invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/zk/drivermonitor/vo/InstalledAppInfo;
|
|
|
|
invoke-virtual {v5}, Lcom/zk/drivermonitor/vo/InstalledAppInfo;->getApplicationVersionCode()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v4, "IN"
|
|
|
|
.line 211
|
|
invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/zk/drivermonitor/vo/InstalledAppInfo;
|
|
|
|
invoke-virtual {v5}, Lcom/zk/drivermonitor/vo/InstalledAppInfo;->getIsNew()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v3, v4, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
.line 212
|
|
invoke-virtual {v0, v3}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
:cond_1
|
|
:goto_1
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()Ljava/lang/String;
|
|
.locals 5
|
|
|
|
.line 52
|
|
new-instance v0, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
.line 56
|
|
:try_start_0
|
|
invoke-direct {p0}, Lcom/zk/drivermonitor/manager/UpDataManager;->c()Lorg/json/JSONObject;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "DevInfo"
|
|
|
|
.line 57
|
|
invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "NPLInfo"
|
|
|
|
.line 58
|
|
invoke-direct {p0}, Lcom/zk/drivermonitor/manager/UpDataManager;->d()Lorg/json/JSONObject;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "IUUInfo"
|
|
|
|
.line 59
|
|
invoke-direct {p0}, Lcom/zk/drivermonitor/manager/UpDataManager;->e()Lorg/json/JSONArray;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "OCInfo"
|
|
|
|
.line 60
|
|
invoke-direct {p0}, Lcom/zk/drivermonitor/manager/UpDataManager;->f()Lorg/json/JSONArray;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v2, "InstalledAppInfo"
|
|
|
|
.line 61
|
|
invoke-direct {p0}, Lcom/zk/drivermonitor/manager/UpDataManager;->g()Lorg/json/JSONArray;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
.line 62
|
|
invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 63
|
|
sget-object v2, Lcom/zk/drivermonitor/utils/Constants;->b:Ljava/lang/String;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
const-string v4, "\u4e0a\u4f20\u6570\u636e\u4e3a "
|
|
|
|
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v4, " \u4e2a\u5b57\u8282"
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v2, v3}, Lcom/zk/drivermonitor/utils/MyLog;->a(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 64
|
|
iget-object v2, p0, Lcom/zk/drivermonitor/manager/UpDataManager;->a:Landroid/content/Context;
|
|
|
|
invoke-static {v2}, Lcom/zk/drivermonitor/utils/NetworkUtils;->a(Landroid/content/Context;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
.line 65
|
|
sget-object v2, Lcom/zk/drivermonitor/utils/Constants;->b:Ljava/lang/String;
|
|
|
|
const-string v3, "----------3G\u7f51\u7edc\u53ea\u4e0a\u4f20\u57fa\u7840\u4fe1\u606f-------------"
|
|
|
|
invoke-static {v2, v3}, Lcom/zk/drivermonitor/utils/MyLog;->a(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 66
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
const/16 v3, 0x1000
|
|
|
|
if-gt v3, v2, :cond_1
|
|
|
|
.line 69
|
|
new-instance v0, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
const-string v2, "DevInfo"
|
|
|
|
.line 70
|
|
invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v1, "NPLInfo"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 71
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v1, "IUUInfo"
|
|
|
|
.line 72
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v1, "OCInfo"
|
|
|
|
.line 73
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
const-string v1, "InstalledAppInfo"
|
|
|
|
.line 74
|
|
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
|
|
|
|
.line 75
|
|
invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
.line 78
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/zk/drivermonitor/manager/UpDataManager;->a:Landroid/content/Context;
|
|
|
|
invoke-static {v1}, Lcom/zk/drivermonitor/utils/SPUtil;->a(Landroid/content/Context;)Lcom/zk/drivermonitor/utils/SPUtil;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v0}, Lcom/zk/drivermonitor/utils/SPUtil;->a(Ljava/lang/String;)V
|
|
|
|
.line 79
|
|
sget-object v1, Lcom/zk/drivermonitor/utils/Constants;->b:Ljava/lang/String;
|
|
|
|
const-string v2, "------------wifi\u7f51\u7edc\u6b63\u5e38\u4e0a\u4f20-------------"
|
|
|
|
invoke-static {v1, v2}, Lcom/zk/drivermonitor/utils/MyLog;->a(Ljava/lang/String;Ljava/lang/String;)V
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 82
|
|
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
|
|
|
|
const-string v0, "{}"
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public a(Ljava/lang/String;)V
|
|
.locals 3
|
|
|
|
.line 226
|
|
sget-object v0, Lcom/zk/drivermonitor/utils/Constants;->b:Ljava/lang/String;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "post returned data\uff1a"
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0, v1}, Lcom/zk/drivermonitor/utils/MyLog;->a(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 227
|
|
iget-object v0, p0, Lcom/zk/drivermonitor/manager/UpDataManager;->a:Landroid/content/Context;
|
|
|
|
invoke-static {v0}, Lcom/zk/drivermonitor/utils/SPUtil;->a(Landroid/content/Context;)Lcom/zk/drivermonitor/utils/SPUtil;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
:try_start_0
|
|
const-string v1, ""
|
|
|
|
.line 229
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 233
|
|
:cond_0
|
|
new-instance v1, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v1, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string p1, "code"
|
|
|
|
.line 234
|
|
invoke-virtual {v1, p1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "200"
|
|
|
|
.line 235
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
const-string v1, "400"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 253
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/zk/drivermonitor/manager/UpDataManager;->b()V
|
|
|
|
goto :goto_3
|
|
|
|
.line 236
|
|
:cond_2
|
|
:goto_0
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/zk/drivermonitor/utils/SPUtil;->b(J)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 237
|
|
invoke-virtual {v0, p1}, Lcom/zk/drivermonitor/utils/SPUtil;->a(I)V
|
|
|
|
.line 238
|
|
iget-object p1, p0, Lcom/zk/drivermonitor/manager/UpDataManager;->a:Landroid/content/Context;
|
|
|
|
invoke-static {p1}, Lcom/zk/drivermonitor/utils/NetworkUtils;->a(Landroid/content/Context;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
return-void
|
|
|
|
.line 241
|
|
:cond_3
|
|
iget-object p1, p0, Lcom/zk/drivermonitor/manager/UpDataManager;->a:Landroid/content/Context;
|
|
|
|
invoke-static {p1}, Lcom/zk/drivermonitor/db/TableOperation;->a(Landroid/content/Context;)Lcom/zk/drivermonitor/db/TableOperation;
|
|
|
|
move-result-object p1
|
|
|
|
.line 242
|
|
invoke-virtual {p1}, Lcom/zk/drivermonitor/db/TableOperation;->b()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
.line 243
|
|
invoke-virtual {p1, v1}, Lcom/zk/drivermonitor/db/TableOperation;->b(Ljava/util/List;)V
|
|
|
|
.line 244
|
|
invoke-virtual {p1}, Lcom/zk/drivermonitor/db/TableOperation;->a()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
.line 245
|
|
invoke-virtual {p1, v1}, Lcom/zk/drivermonitor/db/TableOperation;->a(Ljava/util/List;)V
|
|
|
|
.line 247
|
|
new-instance p1, Lcom/zk/drivermonitor/manager/InstalledAPPInfoManager;
|
|
|
|
invoke-direct {p1}, Lcom/zk/drivermonitor/manager/InstalledAPPInfoManager;-><init>()V
|
|
|
|
.line 248
|
|
iget-object v1, p0, Lcom/zk/drivermonitor/manager/UpDataManager;->a:Landroid/content/Context;
|
|
|
|
invoke-virtual {p1, v1}, Lcom/zk/drivermonitor/manager/InstalledAPPInfoManager;->a(Landroid/content/Context;)Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p1, v1}, Lcom/zk/drivermonitor/manager/InstalledAPPInfoManager;->a(Ljava/util/List;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Lcom/zk/drivermonitor/utils/SPUtil;->j(Ljava/lang/String;)V
|
|
|
|
.line 249
|
|
sget-object p1, Lcom/zk/drivermonitor/utils/Constants;->b:Ljava/lang/String;
|
|
|
|
const-string v1, "data upload success!!!!"
|
|
|
|
invoke-static {p1, v1}, Lcom/zk/drivermonitor/utils/MyLog;->a(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
const-string p1, ""
|
|
|
|
.line 250
|
|
invoke-virtual {v0, p1}, Lcom/zk/drivermonitor/utils/SPUtil;->a(Ljava/lang/String;)V
|
|
|
|
goto :goto_3
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
goto :goto_2
|
|
|
|
.line 230
|
|
:cond_4
|
|
:goto_1
|
|
invoke-virtual {p0}, Lcom/zk/drivermonitor/manager/UpDataManager;->b()V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-void
|
|
|
|
.line 256
|
|
:goto_2
|
|
sget-object v0, Lcom/zk/drivermonitor/utils/Constants;->b:Ljava/lang/String;
|
|
|
|
const-string v1, "upload data fail????"
|
|
|
|
invoke-static {v0, v1}, Lcom/zk/drivermonitor/utils/MyLog;->a(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 257
|
|
invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
|
|
|
|
:goto_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 6
|
|
|
|
.line 264
|
|
iget-object v0, p0, Lcom/zk/drivermonitor/manager/UpDataManager;->a:Landroid/content/Context;
|
|
|
|
invoke-static {v0}, Lcom/zk/drivermonitor/utils/SPUtil;->a(Landroid/content/Context;)Lcom/zk/drivermonitor/utils/SPUtil;
|
|
|
|
move-result-object v0
|
|
|
|
.line 266
|
|
sget-object v1, Lcom/zk/drivermonitor/utils/Constants;->b:Ljava/lang/String;
|
|
|
|
const-string v2, "------------upload data fail,try again ---------"
|
|
|
|
invoke-static {v1, v2}, Lcom/zk/drivermonitor/utils/MyLog;->a(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 267
|
|
invoke-virtual {v0}, Lcom/zk/drivermonitor/utils/SPUtil;->p()I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 268
|
|
invoke-virtual {v0, v1}, Lcom/zk/drivermonitor/utils/SPUtil;->b(I)V
|
|
|
|
.line 269
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/zk/drivermonitor/utils/SPUtil;->c(J)V
|
|
|
|
.line 270
|
|
invoke-static {}, Lcom/zk/drivermonitor/utils/TimeUtils;->b()J
|
|
|
|
move-result-wide v1
|
|
|
|
.line 271
|
|
sget-object v3, Lcom/zk/drivermonitor/utils/Constants;->b:Ljava/lang/String;
|
|
|
|
new-instance v4, Ljava/lang/StringBuilder;
|
|
|
|
const-string v5, "-------try again interval time-------"
|
|
|
|
invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v4, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v3, v4}, Lcom/zk/drivermonitor/utils/MyLog;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 272
|
|
invoke-virtual {v0, v1, v2}, Lcom/zk/drivermonitor/utils/SPUtil;->d(J)V
|
|
|
|
return-void
|
|
.end method
|