UmidSdkWrapper.smali
3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
.class public Lcom/alipay/apmobilesecuritysdk/otherid/UmidSdkWrapper;
.super Ljava/lang/Object;
# static fields
.field private static final UMIDTOKEN_FILE_NAME:Ljava/lang/String; = "xxxwww_v2"
.field private static final UMIDTOKEN_KEY_NAME:Ljava/lang/String; = "umidtk"
.field private static volatile cachedUmidToken:Ljava/lang/String; = ""
.field private static volatile initUmidFinished:Z = false
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private static compatUmidBug(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
.locals 1
invoke-static {p1}, Lcom/alipay/security/mobile/module/a/a;->a(Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_1
const-string v0, "000000000000000000000000"
invoke-static {p1, v0}, Lcom/alipay/security/mobile/module/a/a;->a(Ljava/lang/String;Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
return-object p1
:cond_1
:goto_0
invoke-static {p0}, Lcom/alipay/apmobilesecuritysdk/otherid/UtdidWrapper;->getUtdid(Landroid/content/Context;)Ljava/lang/String;
move-result-object p0
const-string p1, ""
if-eqz p0, :cond_2
const-string v0, "?"
invoke-virtual {p0, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_2
move-object p0, p1
:cond_2
invoke-static {p0}, Lcom/alipay/security/mobile/module/a/a;->a(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_3
move-object p0, p1
:cond_3
return-object p0
.end method
.method public static declared-synchronized getSecurityToken(Landroid/content/Context;)Ljava/lang/String;
.locals 1
const-class p0, Lcom/alipay/apmobilesecuritysdk/otherid/UmidSdkWrapper;
monitor-enter p0
:try_start_0
sget-object v0, Lcom/alipay/apmobilesecuritysdk/otherid/UmidSdkWrapper;->cachedUmidToken:Ljava/lang/String;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public static startUmidTaskSync(Landroid/content/Context;I)Ljava/lang/String;
.locals 0
const-string p0, ""
return-object p0
.end method
.method private static declared-synchronized updateLocalUmidToken(Landroid/content/Context;Ljava/lang/String;)V
.locals 3
const-class v0, Lcom/alipay/apmobilesecuritysdk/otherid/UmidSdkWrapper;
monitor-enter v0
:try_start_0
invoke-static {p1}, Lcom/alipay/security/mobile/module/a/a;->b(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_0
const-string v1, "xxxwww_v2"
const-string v2, "umidtk"
invoke-static {p0, v1, v2, p1}, Lcom/alipay/security/mobile/module/c/d;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
sput-object p1, Lcom/alipay/apmobilesecuritysdk/otherid/UmidSdkWrapper;->cachedUmidToken:Ljava/lang/String;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:cond_0
monitor-exit v0
return-void
:catchall_0
move-exception p0
monitor-exit v0
throw p0
.end method