IdentifierIdClient.smali
.class public Lcom/vivo/identifier/IdentifierIdClient;
.super Ljava/lang/Object;
.source "IdentifierIdClient.java"
# static fields
.field private static AAIDObserver:Lcom/vivo/identifier/IdentifierIdObserver; = null
.field private static final AAID_FLAG:Ljava/lang/String; = "AAID"
.field private static final ID_APPID:Ljava/lang/String; = "appid"
.field private static final ID_TYPE:Ljava/lang/String; = "type"
.field private static OAIDObserver:Lcom/vivo/identifier/IdentifierIdObserver; = null
.field private static final OAID_FLAG:Ljava/lang/String; = "OAID"
.field private static final SYS_IDENTIFIERID_SUPPORTED:Ljava/lang/String; = "persist.sys.identifierid.supported"
.field private static final TAG:Ljava/lang/String; = "VMS_IDLG_SDK_Client"
.field private static final TIME_FOR_QUERY:I = 0x7d0
.field private static final TYPE_AAID:I = 0x2
.field private static final TYPE_OAID:I = 0x0
.field private static final TYPE_OAIDSTATUS:I = 0x4
.field private static final TYPE_QUERY:I = 0xb
.field private static final TYPE_VAID:I = 0x1
.field private static final URI_BASE:Ljava/lang/String; = "content://com.vivo.vms.IdProvider/IdentifierId"
.field private static VAIDObserver:Lcom/vivo/identifier/IdentifierIdObserver; = null
.field private static final VAID_FLAG:Ljava/lang/String; = "VAID"
.field private static aaid:Ljava/lang/String;
.field private static isSupported:Z
.field private static mContext:Landroid/content/Context;
.field private static volatile mDatabase:Lcom/vivo/identifier/DataBaseOperation;
.field private static volatile mInstance:Lcom/vivo/identifier/IdentifierIdClient;
.field private static mLock:Ljava/lang/Object;
.field private static mSqlHandler:Landroid/os/Handler;
.field private static mSqlThread:Landroid/os/HandlerThread;
.field private static oaid:Ljava/lang/String;
.field private static oaidstatus:Ljava/lang/String;
.field private static queryResult:Ljava/lang/String;
.field private static vaid:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.registers 2
.prologue
const/4 v1, 0x0
.line 46
const/4 v0, 0x0
sput-boolean v0, Lcom/vivo/identifier/IdentifierIdClient;->isSupported:Z
.line 48
sput-object v1, Lcom/vivo/identifier/IdentifierIdClient;->OAIDObserver:Lcom/vivo/identifier/IdentifierIdObserver;
.line 49
sput-object v1, Lcom/vivo/identifier/IdentifierIdClient;->VAIDObserver:Lcom/vivo/identifier/IdentifierIdObserver;
.line 50
sput-object v1, Lcom/vivo/identifier/IdentifierIdClient;->AAIDObserver:Lcom/vivo/identifier/IdentifierIdObserver;
.line 51
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mLock:Ljava/lang/Object;
.line 52
sput-object v1, Lcom/vivo/identifier/IdentifierIdClient;->mSqlThread:Landroid/os/HandlerThread;
.line 53
sput-object v1, Lcom/vivo/identifier/IdentifierIdClient;->mSqlHandler:Landroid/os/Handler;
.line 54
sput-object v1, Lcom/vivo/identifier/IdentifierIdClient;->queryResult:Ljava/lang/String;
.line 55
sput-object v1, Lcom/vivo/identifier/IdentifierIdClient;->oaid:Ljava/lang/String;
.line 56
sput-object v1, Lcom/vivo/identifier/IdentifierIdClient;->vaid:Ljava/lang/String;
.line 57
sput-object v1, Lcom/vivo/identifier/IdentifierIdClient;->aaid:Ljava/lang/String;
.line 58
sput-object v1, Lcom/vivo/identifier/IdentifierIdClient;->oaidstatus:Ljava/lang/String;
.line 60
sput-object v1, Lcom/vivo/identifier/IdentifierIdClient;->mInstance:Lcom/vivo/identifier/IdentifierIdClient;
.line 61
sput-object v1, Lcom/vivo/identifier/IdentifierIdClient;->mDatabase:Lcom/vivo/identifier/DataBaseOperation;
return-void
.end method
.method private constructor <init>()V
.registers 1
.prologue
.line 63
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 64
return-void
.end method
.method static synthetic access$002(Ljava/lang/String;)Ljava/lang/String;
.registers 1
.prologue
.line 27
sput-object p0, Lcom/vivo/identifier/IdentifierIdClient;->queryResult:Ljava/lang/String;
return-object p0
.end method
.method static synthetic access$100()Lcom/vivo/identifier/DataBaseOperation;
.registers 1
.prologue
.line 27
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mDatabase:Lcom/vivo/identifier/DataBaseOperation;
return-object v0
.end method
.method static synthetic access$200()Ljava/lang/Object;
.registers 1
.prologue
.line 27
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mLock:Ljava/lang/Object;
return-object v0
.end method
.method public static checkSupported()V
.registers 3
.prologue
.line 221
const-string v0, "1"
const-string v1, "persist.sys.identifierid.supported"
const-string v2, "0"
invoke-static {v1, v2}, Lcom/vivo/identifier/IdentifierIdClient;->getProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
sput-boolean v0, Lcom/vivo/identifier/IdentifierIdClient;->isSupported:Z
.line 222
return-void
.end method
.method public static getInstance(Landroid/content/Context;)Lcom/vivo/identifier/IdentifierIdClient;
.registers 4
.prologue
.line 68
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mInstance:Lcom/vivo/identifier/IdentifierIdClient;
if-nez v0, :cond_15
.line 69
const-class v1, Lcom/vivo/identifier/IdentifierIdClient;
monitor-enter v1
.line 70
:try_start_7
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mContext:Landroid/content/Context;
.line 71
new-instance v0, Lcom/vivo/identifier/IdentifierIdClient;
invoke-direct {v0}, Lcom/vivo/identifier/IdentifierIdClient;-><init>()V
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mInstance:Lcom/vivo/identifier/IdentifierIdClient;
.line 72
monitor-exit v1
:try_end_15
.catchall {:try_start_7 .. :try_end_15} :catchall_35
.line 75
:cond_15
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mDatabase:Lcom/vivo/identifier/DataBaseOperation;
if-nez v0, :cond_32
.line 76
const-class v1, Lcom/vivo/identifier/IdentifierIdClient;
monitor-enter v1
.line 77
:try_start_1c
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v0
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mContext:Landroid/content/Context;
.line 78
invoke-static {}, Lcom/vivo/identifier/IdentifierIdClient;->initSqlThread()V
.line 79
new-instance v0, Lcom/vivo/identifier/DataBaseOperation;
sget-object v2, Lcom/vivo/identifier/IdentifierIdClient;->mContext:Landroid/content/Context;
invoke-direct {v0, v2}, Lcom/vivo/identifier/DataBaseOperation;-><init>(Landroid/content/Context;)V
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mDatabase:Lcom/vivo/identifier/DataBaseOperation;
.line 80
invoke-static {}, Lcom/vivo/identifier/IdentifierIdClient;->checkSupported()V
.line 81
monitor-exit v1
:try_end_32
.catchall {:try_start_1c .. :try_end_32} :catchall_38
.line 83
:cond_32
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mInstance:Lcom/vivo/identifier/IdentifierIdClient;
return-object v0
.line 72
:catchall_35
move-exception v0
:try_start_36
monitor-exit v1
:try_end_37
.catchall {:try_start_36 .. :try_end_37} :catchall_35
throw v0
.line 81
:catchall_38
move-exception v0
:try_start_39
monitor-exit v1
:try_end_3a
.catchall {:try_start_39 .. :try_end_3a} :catchall_38
throw v0
.end method
.method public static getProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
.registers 7
.prologue
.line 225
.line 227
:try_start_0
const-string v0, "android.os.SystemProperties"
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v0
.line 228
const-string v1, "get"
const/4 v2, 0x2
new-array v2, v2, [Ljava/lang/Class;
const/4 v3, 0x0
const-class v4, Ljava/lang/String;
aput-object v4, v2, v3
const/4 v3, 0x1
const-class v4, Ljava/lang/String;
aput-object v4, v2, v3
invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v1
.line 229
const/4 v2, 0x2
new-array v2, v2, [Ljava/lang/Object;
const/4 v3, 0x0
aput-object p0, v2, v3
const/4 v3, 0x1
const-string v4, "unknown"
aput-object v4, v2, v3
invoke-virtual {v1, v0, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
check-cast v0, Ljava/lang/String;
:try_end_2c
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_2c} :catch_2e
.catchall {:try_start_0 .. :try_end_2c} :catchall_33
move-object p1, v0
.line 233
:goto_2d
return-object p1
.line 230
:catch_2e
move-exception v0
.line 231
:try_start_2f
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
:try_end_32
.catchall {:try_start_2f .. :try_end_32} :catchall_33
goto :goto_2d
.line 233
:catchall_33
move-exception v0
goto :goto_2d
.end method
.method private static initObserver(Landroid/content/Context;ILjava/lang/String;)V
.registers 8
.prologue
const/4 v4, 0x1
const/4 v3, 0x0
.line 238
packed-switch p1, :pswitch_data_76
.line 255
:goto_5
return-void
.line 240
:pswitch_6
new-instance v0, Lcom/vivo/identifier/IdentifierIdObserver;
sget-object v1, Lcom/vivo/identifier/IdentifierIdClient;->mInstance:Lcom/vivo/identifier/IdentifierIdClient;
const/4 v2, 0x0
invoke-direct {v0, v1, v3, v2}, Lcom/vivo/identifier/IdentifierIdObserver;-><init>(Lcom/vivo/identifier/IdentifierIdClient;ILjava/lang/String;)V
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->OAIDObserver:Lcom/vivo/identifier/IdentifierIdObserver;
.line 241
invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
const-string v1, "content://com.vivo.vms.IdProvider/IdentifierId/OAID"
invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v1
sget-object v2, Lcom/vivo/identifier/IdentifierIdClient;->OAIDObserver:Lcom/vivo/identifier/IdentifierIdObserver;
invoke-virtual {v0, v1, v4, v2}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V
goto :goto_5
.line 244
:pswitch_20
new-instance v0, Lcom/vivo/identifier/IdentifierIdObserver;
sget-object v1, Lcom/vivo/identifier/IdentifierIdClient;->mInstance:Lcom/vivo/identifier/IdentifierIdClient;
invoke-direct {v0, v1, v4, p2}, Lcom/vivo/identifier/IdentifierIdObserver;-><init>(Lcom/vivo/identifier/IdentifierIdClient;ILjava/lang/String;)V
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->VAIDObserver:Lcom/vivo/identifier/IdentifierIdObserver;
.line 245
invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "content://com.vivo.vms.IdProvider/IdentifierId/VAID_"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v1
sget-object v2, Lcom/vivo/identifier/IdentifierIdClient;->VAIDObserver:Lcom/vivo/identifier/IdentifierIdObserver;
invoke-virtual {v0, v1, v3, v2}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V
goto :goto_5
.line 248
:pswitch_4a
new-instance v0, Lcom/vivo/identifier/IdentifierIdObserver;
sget-object v1, Lcom/vivo/identifier/IdentifierIdClient;->mInstance:Lcom/vivo/identifier/IdentifierIdClient;
const/4 v2, 0x2
invoke-direct {v0, v1, v2, p2}, Lcom/vivo/identifier/IdentifierIdObserver;-><init>(Lcom/vivo/identifier/IdentifierIdClient;ILjava/lang/String;)V
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->AAIDObserver:Lcom/vivo/identifier/IdentifierIdObserver;
.line 249
invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "content://com.vivo.vms.IdProvider/IdentifierId/AAID_"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v1
sget-object v2, Lcom/vivo/identifier/IdentifierIdClient;->AAIDObserver:Lcom/vivo/identifier/IdentifierIdObserver;
invoke-virtual {v0, v1, v3, v2}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V
goto :goto_5
.line 238
nop
:pswitch_data_76
.packed-switch 0x0
:pswitch_6
:pswitch_20
:pswitch_4a
.end packed-switch
.end method
.method private static initSqlThread()V
.registers 2
.prologue
.line 87
new-instance v0, Landroid/os/HandlerThread;
const-string v1, "SqlWorkThread"
invoke-direct {v0, v1}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mSqlThread:Landroid/os/HandlerThread;
.line 88
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mSqlThread:Landroid/os/HandlerThread;
invoke-virtual {v0}, Landroid/os/HandlerThread;->start()V
.line 89
new-instance v0, Lcom/vivo/identifier/IdentifierIdClient$1;
sget-object v1, Lcom/vivo/identifier/IdentifierIdClient;->mSqlThread:Landroid/os/HandlerThread;
invoke-virtual {v1}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;
move-result-object v1
invoke-direct {v0, v1}, Lcom/vivo/identifier/IdentifierIdClient$1;-><init>(Landroid/os/Looper;)V
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mSqlHandler:Landroid/os/Handler;
.line 104
return-void
.end method
.method private sendMessageToDataBase(ILjava/lang/String;)V
.registers 6
.prologue
.line 208
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mSqlHandler:Landroid/os/Handler;
invoke-virtual {v0}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message;
move-result-object v0
.line 209
const/16 v1, 0xb
iput v1, v0, Landroid/os/Message;->what:I
.line 210
new-instance v1, Landroid/os/Bundle;
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
.line 211
const-string v2, "type"
invoke-virtual {v1, v2, p1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
.line 212
const/4 v2, 0x1
if-eq p1, v2, :cond_1a
const/4 v2, 0x2
if-ne p1, v2, :cond_1f
.line 213
:cond_1a
const-string v2, "appid"
invoke-virtual {v1, v2, p2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
.line 215
:cond_1f
invoke-virtual {v0, v1}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V
.line 216
sget-object v1, Lcom/vivo/identifier/IdentifierIdClient;->mSqlHandler:Landroid/os/Handler;
invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
.line 218
return-void
.end method
# virtual methods
.method public getAAID(Ljava/lang/String;)Ljava/lang/String;
.registers 4
.prologue
const/4 v1, 0x2
.line 139
invoke-virtual {p0}, Lcom/vivo/identifier/IdentifierIdClient;->isSupported()Z
move-result v0
if-nez v0, :cond_9
.line 140
const/4 v0, 0x0
.line 149
:goto_8
return-object v0
.line 142
:cond_9
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->aaid:Ljava/lang/String;
if-eqz v0, :cond_10
.line 143
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->aaid:Ljava/lang/String;
goto :goto_8
.line 145
:cond_10
invoke-virtual {p0, v1, p1}, Lcom/vivo/identifier/IdentifierIdClient;->queryId(ILjava/lang/String;)V
.line 146
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->AAIDObserver:Lcom/vivo/identifier/IdentifierIdObserver;
if-nez v0, :cond_20
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->aaid:Ljava/lang/String;
if-eqz v0, :cond_20
.line 147
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mContext:Landroid/content/Context;
invoke-static {v0, v1, p1}, Lcom/vivo/identifier/IdentifierIdClient;->initObserver(Landroid/content/Context;ILjava/lang/String;)V
.line 149
:cond_20
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->aaid:Ljava/lang/String;
goto :goto_8
.end method
.method public getOAID()Ljava/lang/String;
.registers 4
.prologue
const/4 v2, 0x0
const/4 v0, 0x0
.line 111
invoke-virtual {p0}, Lcom/vivo/identifier/IdentifierIdClient;->isSupported()Z
move-result v1
if-nez v1, :cond_9
.line 121
:goto_8
return-object v0
.line 114
:cond_9
sget-object v1, Lcom/vivo/identifier/IdentifierIdClient;->oaid:Ljava/lang/String;
if-eqz v1, :cond_10
.line 115
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->oaid:Ljava/lang/String;
goto :goto_8
.line 117
:cond_10
invoke-virtual {p0, v2, v0}, Lcom/vivo/identifier/IdentifierIdClient;->queryId(ILjava/lang/String;)V
.line 118
sget-object v1, Lcom/vivo/identifier/IdentifierIdClient;->OAIDObserver:Lcom/vivo/identifier/IdentifierIdObserver;
if-nez v1, :cond_1c
.line 119
sget-object v1, Lcom/vivo/identifier/IdentifierIdClient;->mContext:Landroid/content/Context;
invoke-static {v1, v2, v0}, Lcom/vivo/identifier/IdentifierIdClient;->initObserver(Landroid/content/Context;ILjava/lang/String;)V
.line 121
:cond_1c
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->oaid:Ljava/lang/String;
goto :goto_8
.end method
.method public getOAIDSTATUS()Ljava/lang/String;
.registers 3
.prologue
const/4 v0, 0x0
.line 153
invoke-virtual {p0}, Lcom/vivo/identifier/IdentifierIdClient;->isSupported()Z
move-result v1
if-nez v1, :cond_8
.line 157
:goto_7
return-object v0
.line 156
:cond_8
const/4 v1, 0x4
invoke-virtual {p0, v1, v0}, Lcom/vivo/identifier/IdentifierIdClient;->queryId(ILjava/lang/String;)V
.line 157
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->oaidstatus:Ljava/lang/String;
goto :goto_7
.end method
.method public getVAID(Ljava/lang/String;)Ljava/lang/String;
.registers 4
.prologue
const/4 v1, 0x1
.line 125
invoke-virtual {p0}, Lcom/vivo/identifier/IdentifierIdClient;->isSupported()Z
move-result v0
if-nez v0, :cond_9
.line 126
const/4 v0, 0x0
.line 135
:goto_8
return-object v0
.line 128
:cond_9
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->vaid:Ljava/lang/String;
if-eqz v0, :cond_10
.line 129
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->vaid:Ljava/lang/String;
goto :goto_8
.line 131
:cond_10
invoke-virtual {p0, v1, p1}, Lcom/vivo/identifier/IdentifierIdClient;->queryId(ILjava/lang/String;)V
.line 132
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->VAIDObserver:Lcom/vivo/identifier/IdentifierIdObserver;
if-nez v0, :cond_20
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->vaid:Ljava/lang/String;
if-eqz v0, :cond_20
.line 133
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mContext:Landroid/content/Context;
invoke-static {v0, v1, p1}, Lcom/vivo/identifier/IdentifierIdClient;->initObserver(Landroid/content/Context;ILjava/lang/String;)V
.line 135
:cond_20
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->vaid:Ljava/lang/String;
goto :goto_8
.end method
.method public isSupported()Z
.registers 2
.prologue
.line 107
sget-boolean v0, Lcom/vivo/identifier/IdentifierIdClient;->isSupported:Z
return v0
.end method
.method public queryId(ILjava/lang/String;)V
.registers 11
.prologue
const-wide/16 v6, 0x7d0
.line 162
sget-object v1, Lcom/vivo/identifier/IdentifierIdClient;->mLock:Ljava/lang/Object;
monitor-enter v1
.line 163
:try_start_5
invoke-direct {p0, p1, p2}, Lcom/vivo/identifier/IdentifierIdClient;->sendMessageToDataBase(ILjava/lang/String;)V
.line 164
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
:try_end_b
.catchall {:try_start_5 .. :try_end_b} :catchall_27
move-result-wide v2
.line 166
:try_start_c
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->mLock:Ljava/lang/Object;
const-wide/16 v4, 0x7d0
invoke-virtual {v0, v4, v5}, Ljava/lang/Object;->wait(J)V
:try_end_13
.catch Ljava/lang/InterruptedException; {:try_start_c .. :try_end_13} :catch_22
.catchall {:try_start_c .. :try_end_13} :catchall_27
.line 170
:goto_13
:try_start_13
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v4
.line 171
sub-long v2, v4, v2
cmp-long v0, v2, v6
if-gez v0, :cond_61
.line 172
packed-switch p1, :pswitch_data_6a
.line 203
:goto_20
:pswitch_20
monitor-exit v1
.line 205
return-void
.line 167
:catch_22
move-exception v0
.line 168
invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V
goto :goto_13
.line 203
:catchall_27
move-exception v0
monitor-exit v1
:try_end_29
.catchall {:try_start_13 .. :try_end_29} :catchall_27
throw v0
.line 174
:pswitch_2a
:try_start_2a
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->queryResult:Ljava/lang/String;
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->oaid:Ljava/lang/String;
.line 175
const/4 v0, 0x0
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->queryResult:Ljava/lang/String;
goto :goto_20
.line 178
:pswitch_32
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->queryResult:Ljava/lang/String;
if-eqz v0, :cond_3e
.line 179
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->queryResult:Ljava/lang/String;
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->vaid:Ljava/lang/String;
.line 180
const/4 v0, 0x0
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->queryResult:Ljava/lang/String;
goto :goto_20
.line 182
:cond_3e
const-string v0, "VMS_IDLG_SDK_Client"
const-string v2, "get vaid failed"
invoke-static {v0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_20
.line 186
:pswitch_46
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->queryResult:Ljava/lang/String;
if-eqz v0, :cond_59
.line 187
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->queryResult:Ljava/lang/String;
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->aaid:Ljava/lang/String;
.line 188
const/4 v0, 0x0
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->queryResult:Ljava/lang/String;
.line 193
:goto_51
:pswitch_51
sget-object v0, Lcom/vivo/identifier/IdentifierIdClient;->queryResult:Ljava/lang/String;
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->oaidstatus:Ljava/lang/String;
.line 194
const/4 v0, 0x0
sput-object v0, Lcom/vivo/identifier/IdentifierIdClient;->queryResult:Ljava/lang/String;
goto :goto_20
.line 190
:cond_59
const-string v0, "VMS_IDLG_SDK_Client"
const-string v2, "get aaid failed"
invoke-static {v0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_51
.line 201
:cond_61
const-string v0, "VMS_IDLG_SDK_Client"
const-string v2, "query timeout"
invoke-static {v0, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:try_end_68
.catchall {:try_start_2a .. :try_end_68} :catchall_27
goto :goto_20
.line 172
nop
:pswitch_data_6a
.packed-switch 0x0
:pswitch_2a
:pswitch_32
:pswitch_46
:pswitch_20
:pswitch_51
.end packed-switch
.end method