.class public Lcom/alipay/sdk/data/MspConfig;
.super Ljava/lang/Object;
.source "SourceFile"


# static fields
.field private static final PREFERENCE_VIRTUAL_IMEI:Ljava/lang/String; = "virtual_imei"

.field private static final PREFERENCE_VIRTUAL_IMSI:Ljava/lang/String; = "virtual_imsi"

.field private static final SHARE_PREFERENCE_NAME:Ljava/lang/String; = "virtualImeiAndImsi"

.field private static mConfig:Lcom/alipay/sdk/data/MspConfig;


# instance fields
.field private mClientKey:Ljava/lang/String;

.field private mKernelVersion:Ljava/lang/String;

.field private mUserAgent:Ljava/lang/String;


# direct methods
.method private constructor <init>()V
    .locals 1

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

    const-string v0, "sdk-and-lite"

    .line 50
    iput-object v0, p0, Lcom/alipay/sdk/data/MspConfig;->mKernelVersion:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$000(Lcom/alipay/sdk/data/MspConfig;Landroid/content/Context;Ljava/util/HashMap;)Ljava/lang/String;
    .locals 0

    .line 34
    invoke-direct {p0, p1, p2}, Lcom/alipay/sdk/data/MspConfig;->getApdidImpl(Landroid/content/Context;Ljava/util/HashMap;)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static declared-synchronized create()Lcom/alipay/sdk/data/MspConfig;
    .locals 2

    const-class v0, Lcom/alipay/sdk/data/MspConfig;

    monitor-enter v0

    .line 54
    :try_start_0
    sget-object v1, Lcom/alipay/sdk/data/MspConfig;->mConfig:Lcom/alipay/sdk/data/MspConfig;

    if-nez v1, :cond_0

    .line 55
    new-instance v1, Lcom/alipay/sdk/data/MspConfig;

    invoke-direct {v1}, Lcom/alipay/sdk/data/MspConfig;-><init>()V

    sput-object v1, Lcom/alipay/sdk/data/MspConfig;->mConfig:Lcom/alipay/sdk/data/MspConfig;

    .line 57
    :cond_0
    sget-object v1, Lcom/alipay/sdk/data/MspConfig;->mConfig:Lcom/alipay/sdk/data/MspConfig;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-object v1

    :catchall_0
    move-exception v1

    .line 53
    monitor-exit v0

    throw v1
.end method

.method private genVirtualCode()Ljava/lang/String;
    .locals 3

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

    move-result-wide v0

    .line 225
    invoke-static {v0, v1}, Ljava/lang/Long;->toHexString(J)Ljava/lang/String;

    move-result-object v0

    .line 226
    new-instance v1, Ljava/util/Random;

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

    .line 227
    new-instance v2, Ljava/lang/StringBuilder;

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

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

    const/16 v0, 0x2328

    invoke-virtual {v1, v0}, Ljava/util/Random;->nextInt(I)I

    move-result v0

    add-int/lit16 v0, v0, 0x3e8

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

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

    move-result-object v0

    return-object v0
.end method

.method private getApdid(Landroid/content/Context;Ljava/util/HashMap;)Ljava/lang/String;
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)",
            "Ljava/lang/String;"
        }
    .end annotation

    const/4 v0, 0x2

    .line 267
    invoke-static {v0}, Ljava/util/concurrent/Executors;->newFixedThreadPool(I)Ljava/util/concurrent/ExecutorService;

    move-result-object v0

    .line 268
    new-instance v1, Lcom/alipay/sdk/data/MspConfig$1;

    invoke-direct {v1, p0, p1, p2}, Lcom/alipay/sdk/data/MspConfig$1;-><init>(Lcom/alipay/sdk/data/MspConfig;Landroid/content/Context;Ljava/util/HashMap;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;

    move-result-object p1

    const-string p2, ""

    const-wide/16 v0, 0xbb8

    .line 278
    :try_start_0
    sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {p1, v0, v1, v2}, Ljava/util/concurrent/Future;->get(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    const-string v0, "third"

    const-string v1, "GetApdidTimeout"

    .line 280
    invoke-static {v0, v1, p1}, Lcom/alipay/sdk/app/statistic/StatisticManager;->putError(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    move-object p1, p2

    :goto_0
    return-object p1
.end method

.method private getApdidImpl(Landroid/content/Context;Ljava/util/HashMap;)Ljava/lang/String;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)",
            "Ljava/lang/String;"
        }
    .end annotation

    const-string v0, ""

    .line 252
    :try_start_0
    invoke-static {p1, p2}, Lcom/alipay/mobilesecuritysdk/face/a;->a(Landroid/content/Context;Ljava/util/Map;)Ljava/lang/String;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 254
    invoke-static {p1}, Lcom/alipay/sdk/util/LogUtils;->printExceptionStackTrace(Ljava/lang/Object;)V

    const-string p2, "third"

    const-string v1, "GetApdidEx"

    .line 255
    invoke-static {p2, v1, p1}, Lcom/alipay/sdk/app/statistic/StatisticManager;->putError(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    move-object p1, v0

    .line 258
    :goto_0
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p2

    if-eqz p2, :cond_0

    const-string p2, "third"

    const-string v0, "GetApdidNull"

    const-string v1, "apdid == null"

    .line 259
    invoke-static {p2, v0, v1}, Lcom/alipay/sdk/app/statistic/StatisticManager;->putError(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    const-string p2, "msp"

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

    const-string v1, "apdid:"

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

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

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

    move-result-object v0

    invoke-static {p2, v0}, Lcom/alipay/sdk/util/LogUtils;->w(Ljava/lang/String;Ljava/lang/String;)V

    return-object p1
.end method

.method private getDefaultFontSize(Landroid/content/Context;)Ljava/lang/String;
    .locals 1

    .line 76
    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0}, Landroid/widget/TextView;->getTextSize()F

    move-result p1

    .line 77
    invoke-static {p1}, Ljava/lang/Float;->toString(F)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private getLocationInfo()Ljava/lang/String;
    .locals 1

    const-string v0, "-1;-1"

    return-object v0
.end method

.method private getSid()Ljava/lang/String;
    .locals 1

    const-string v0, "1"

    return-object v0
.end method

.method private getVirtualImsi()Ljava/lang/String;
    .locals 4

    .line 200
    invoke-static {}, Lcom/alipay/sdk/sys/GlobalContext;->getInstance()Lcom/alipay/sdk/sys/GlobalContext;

    move-result-object v0

    invoke-virtual {v0}, Lcom/alipay/sdk/sys/GlobalContext;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "virtualImeiAndImsi"

    const/4 v2, 0x0

    .line 201
    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    const-string v2, "virtual_imsi"

    const/4 v3, 0x0

    .line 203
    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

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

    move-result v3

    if-eqz v3, :cond_2

    .line 206
    invoke-static {}, Lcom/alipay/sdk/tid/TidInfo;->getTidInfo()Lcom/alipay/sdk/tid/TidInfo;

    move-result-object v2

    invoke-virtual {v2}, Lcom/alipay/sdk/tid/TidInfo;->getTid()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 207
    invoke-static {}, Lcom/alipay/sdk/sys/GlobalContext;->getInstance()Lcom/alipay/sdk/sys/GlobalContext;

    move-result-object v0

    invoke-virtual {v0}, Lcom/alipay/sdk/sys/GlobalContext;->getUtdid()Ljava/lang/String;

    move-result-object v0

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

    move-result v2

    if-eqz v2, :cond_0

    .line 209
    invoke-direct {p0}, Lcom/alipay/sdk/data/MspConfig;->genVirtualCode()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :cond_0
    const/4 v2, 0x3

    const/16 v3, 0x12

    .line 211
    invoke-virtual {v0, v2, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 214
    :cond_1
    invoke-static {v0}, Lcom/alipay/sdk/util/DeviceInfo;->getInstance(Landroid/content/Context;)Lcom/alipay/sdk/util/DeviceInfo;

    move-result-object v0

    invoke-virtual {v0}, Lcom/alipay/sdk/util/DeviceInfo;->getIMSI()Ljava/lang/String;

    move-result-object v0

    :goto_0
    move-object v2, v0

    .line 216
    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "virtual_imsi"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 217
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    :cond_2
    return-object v2
.end method

.method private getWifiBSSID(Landroid/content/Context;)Ljava/lang/String;
    .locals 1

    const-string v0, "wifi"

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

    move-result-object p1

    check-cast p1, Landroid/net/wifi/WifiManager;

    .line 243
    invoke-virtual {p1}, Landroid/net/wifi/WifiManager;->getConnectionInfo()Landroid/net/wifi/WifiInfo;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 245
    invoke-virtual {p1}, Landroid/net/wifi/WifiInfo;->getBSSID()Ljava/lang/String;

    move-result-object p1

    return-object p1

    :cond_0
    const-string p1, "00"

    return-object p1
.end method

.method private getWifiSSID(Landroid/content/Context;)Ljava/lang/String;
    .locals 1

    const-string v0, "wifi"

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

    move-result-object p1

    check-cast p1, Landroid/net/wifi/WifiManager;

    .line 234
    invoke-virtual {p1}, Landroid/net/wifi/WifiManager;->getConnectionInfo()Landroid/net/wifi/WifiInfo;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 236
    invoke-virtual {p1}, Landroid/net/wifi/WifiInfo;->getSSID()Ljava/lang/String;

    move-result-object p1

    return-object p1

    :cond_0
    const-string p1, "-1"

    return-object p1
.end method


# virtual methods
.method public getClientKey()Ljava/lang/String;
    .locals 1

    .line 46
    iget-object v0, p0, Lcom/alipay/sdk/data/MspConfig;->mClientKey:Ljava/lang/String;

    return-object v0
.end method

.method public getUserAgent(Lcom/alipay/sdk/tid/TidInfo;)Ljava/lang/String;
    .locals 17

    move-object/from16 v0, p0

    .line 85
    invoke-static {}, Lcom/alipay/sdk/sys/GlobalContext;->getInstance()Lcom/alipay/sdk/sys/GlobalContext;

    move-result-object v2

    invoke-virtual {v2}, Lcom/alipay/sdk/sys/GlobalContext;->getContext()Landroid/content/Context;

    move-result-object v2

    .line 86
    invoke-static {v2}, Lcom/alipay/sdk/util/DeviceInfo;->getInstance(Landroid/content/Context;)Lcom/alipay/sdk/util/DeviceInfo;

    move-result-object v3

    .line 89
    iget-object v4, v0, Lcom/alipay/sdk/data/MspConfig;->mUserAgent:Ljava/lang/String;

    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_0

    const-string v4, "Msp/15.4.0"

    .line 93
    invoke-static {}, Lcom/alipay/sdk/util/Utils;->getOsInfo()Ljava/lang/String;

    move-result-object v5

    .line 96
    invoke-static {}, Lcom/alipay/sdk/util/Utils;->getKernelVersion()Ljava/lang/String;

    move-result-object v6

    .line 99
    invoke-static {v2}, Lcom/alipay/sdk/util/Utils;->getDefaultLocale(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v7

    .line 102
    invoke-static {v2}, Lcom/alipay/sdk/util/Utils;->getProtocol(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v8

    .line 105
    invoke-static {v2}, Lcom/alipay/sdk/util/Utils;->getScreenResolution(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v9

    .line 107
    invoke-direct {v0, v2}, Lcom/alipay/sdk/data/MspConfig;->getDefaultFontSize(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v10

    .line 109
    new-instance v11, Ljava/lang/StringBuilder;

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

    .line 110
    invoke-virtual {v11, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, " ("

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

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

    const-string v4, ";"

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

    .line 111
    invoke-virtual {v11, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, ";"

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

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

    const-string v4, ";"

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

    .line 112
    invoke-virtual {v11, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, ";"

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

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

    const-string v4, ";"

    .line 113
    invoke-virtual {v11, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

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

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

    move-result-object v4

    iput-object v4, v0, Lcom/alipay/sdk/data/MspConfig;->mUserAgent:Ljava/lang/String;

    .line 117
    :cond_0
    invoke-static {v2}, Lcom/alipay/sdk/util/DeviceInfo;->getNetConnectionType(Landroid/content/Context;)Lcom/alipay/sdk/util/NetConnectionType;

    move-result-object v4

    invoke-virtual {v4}, Lcom/alipay/sdk/util/NetConnectionType;->getName()Ljava/lang/String;

    move-result-object v4

    .line 120
    invoke-static {v2}, Lcom/alipay/sdk/util/Utils;->getCellInfo(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v5

    .line 123
    invoke-direct/range {p0 .. p0}, Lcom/alipay/sdk/data/MspConfig;->getSid()Ljava/lang/String;

    move-result-object v6

    .line 126
    invoke-virtual {v3}, Lcom/alipay/sdk/util/DeviceInfo;->getIMSI()Ljava/lang/String;

    move-result-object v7

    .line 129
    invoke-virtual {v3}, Lcom/alipay/sdk/util/DeviceInfo;->getIMEI()Ljava/lang/String;

    move-result-object v8

    .line 131
    invoke-direct/range {p0 .. p0}, Lcom/alipay/sdk/data/MspConfig;->getVirtualImsi()Ljava/lang/String;

    move-result-object v9

    .line 133
    invoke-virtual/range {p0 .. p0}, Lcom/alipay/sdk/data/MspConfig;->getVirtualImei()Ljava/lang/String;

    move-result-object v10

    if-eqz p1, :cond_1

    .line 137
    invoke-virtual/range {p1 .. p1}, Lcom/alipay/sdk/tid/TidInfo;->getClientKey()Ljava/lang/String;

    move-result-object v11

    iput-object v11, v0, Lcom/alipay/sdk/data/MspConfig;->mClientKey:Ljava/lang/String;

    .line 141
    :cond_1
    sget-object v11, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;

    const-string v12, ";"

    const-string v13, " "

    invoke-virtual {v11, v12, v13}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v11

    .line 144
    sget-object v12, Landroid/os/Build;->MODEL:Ljava/lang/String;

    const-string v13, ";"

    const-string v14, " "

    invoke-virtual {v12, v13, v14}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v12

    .line 147
    invoke-static {}, Lcom/alipay/sdk/sys/GlobalContext;->isDeviceRooted()Z

    move-result v13

    .line 149
    invoke-virtual {v3}, Lcom/alipay/sdk/util/DeviceInfo;->getMacAddress()Ljava/lang/String;

    move-result-object v3

    .line 151
    invoke-direct {v0, v2}, Lcom/alipay/sdk/data/MspConfig;->getWifiSSID(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v14

    .line 152
    invoke-direct {v0, v2}, Lcom/alipay/sdk/data/MspConfig;->getWifiBSSID(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v15

    move-object/from16 v16, v2

    .line 154
    new-instance v2, Ljava/lang/StringBuilder;

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

    .line 156
    iget-object v1, v0, Lcom/alipay/sdk/data/MspConfig;->mUserAgent:Ljava/lang/String;

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

    const-string v1, ";"

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

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

    const-string v1, ";"

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

    .line 157
    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, ";"

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

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

    const-string v1, ";"

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

    .line 158
    invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, ";"

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

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

    const-string v1, ";"

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

    iget-object v1, v0, Lcom/alipay/sdk/data/MspConfig;->mClientKey:Ljava/lang/String;

    .line 159
    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, ";"

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

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

    const-string v1, ";"

    .line 160
    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

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

    const-string v1, ";"

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

    invoke-virtual {v2, v13}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v1, ";"

    .line 161
    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

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

    const-string v1, ";"

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

    .line 162
    invoke-direct/range {p0 .. p0}, Lcom/alipay/sdk/data/MspConfig;->getLocationInfo()Ljava/lang/String;

    move-result-object v1

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

    const-string v1, ";"

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

    iget-object v1, v0, Lcom/alipay/sdk/data/MspConfig;->mKernelVersion:Ljava/lang/String;

    .line 163
    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, ";"

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

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

    const-string v1, ";"

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

    .line 164
    invoke-virtual {v2, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, ";"

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

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

    const-string v1, ";"

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

    .line 165
    invoke-virtual {v2, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    if-eqz p1, :cond_2

    .line 168
    new-instance v3, Ljava/util/HashMap;

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

    const-string v4, "tid"

    .line 169
    invoke-virtual/range {p1 .. p1}, Lcom/alipay/sdk/tid/TidInfo;->getTid()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v4, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v1, "utdid"

    .line 170
    invoke-static {}, Lcom/alipay/sdk/sys/GlobalContext;->getInstance()Lcom/alipay/sdk/sys/GlobalContext;

    move-result-object v4

    invoke-virtual {v4}, Lcom/alipay/sdk/sys/GlobalContext;->getUtdid()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v1, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object/from16 v1, v16

    .line 171
    invoke-direct {v0, v1, v3}, Lcom/alipay/sdk/data/MspConfig;->getApdid(Landroid/content/Context;Ljava/util/HashMap;)Ljava/lang/String;

    move-result-object v1

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

    move-result v3

    if-nez v3, :cond_2

    const-string v3, ";"

    .line 173
    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

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

    :cond_2
    const-string v1, ")"

    .line 176
    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 178
    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public getVirtualImei()Ljava/lang/String;
    .locals 4

    .line 182
    invoke-static {}, Lcom/alipay/sdk/sys/GlobalContext;->getInstance()Lcom/alipay/sdk/sys/GlobalContext;

    move-result-object v0

    invoke-virtual {v0}, Lcom/alipay/sdk/sys/GlobalContext;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "virtualImeiAndImsi"

    const/4 v2, 0x0

    .line 183
    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    const-string v2, "virtual_imei"

    const/4 v3, 0x0

    .line 185
    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

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

    move-result v3

    if-eqz v3, :cond_1

    .line 188
    invoke-static {}, Lcom/alipay/sdk/tid/TidInfo;->getTidInfo()Lcom/alipay/sdk/tid/TidInfo;

    move-result-object v2

    invoke-virtual {v2}, Lcom/alipay/sdk/tid/TidInfo;->getTid()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 189
    invoke-direct {p0}, Lcom/alipay/sdk/data/MspConfig;->genVirtualCode()Ljava/lang/String;

    move-result-object v0

    :goto_0
    move-object v2, v0

    goto :goto_1

    .line 191
    :cond_0
    invoke-static {v0}, Lcom/alipay/sdk/util/DeviceInfo;->getInstance(Landroid/content/Context;)Lcom/alipay/sdk/util/DeviceInfo;

    move-result-object v0

    invoke-virtual {v0}, Lcom/alipay/sdk/util/DeviceInfo;->getIMEI()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 193
    :goto_1
    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "virtual_imei"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 194
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    :cond_1
    return-object v2
.end method

.method public declared-synchronized setRsaPublicKey(Ljava/lang/String;)V
    .locals 2

    monitor-enter p0

    .line 61
    :try_start_0
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_0

    .line 62
    monitor-exit p0

    return-void

    .line 64
    :cond_0
    :try_start_1
    invoke-static {}, Lcom/alipay/sdk/sys/GlobalContext;->getInstance()Lcom/alipay/sdk/sys/GlobalContext;

    move-result-object v0

    invoke-virtual {v0}, Lcom/alipay/sdk/sys/GlobalContext;->getContext()Landroid/content/Context;

    move-result-object v0

    .line 66
    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 67
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "trideskey"

    invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 68
    sput-object p1, Lcom/alipay/sdk/cons/GlobalConstants;->RSA_PUBLIC_KEY:Ljava/lang/String;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 69
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    .line 60
    monitor-exit p0

    throw p1
.end method
