c.smali
9.4 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
.class public Lcom/umeng/commonsdk/utils/c;
.super Ljava/lang/Object;
# static fields
.field private static final a:Ljava/lang/String;
.field private static final b:Ljava/lang/String; = "lastReqTime"
.field private static final c:I = 0x30
.field private static final d:I = 0x1
.field private static final e:I = 0x2d0
.field private static final f:Ljava/lang/String; = "iss"
.field private static final g:Ljava/lang/String; = "sinr"
.field private static final h:Ljava/lang/String; = "clean"
.field private static i:Z
.field private static j:I
.field private static k:Ljava/lang/Object;
# direct methods
.method public static constructor <clinit>()V
.locals 4
invoke-static {}, Lcom/umeng/analytics/pro/at;->b()Lcom/umeng/analytics/pro/at;
move-result-object v0
const-string v1, "sli"
invoke-virtual {v0, v1}, Lcom/umeng/analytics/pro/at;->b(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/umeng/commonsdk/utils/c;->a:Ljava/lang/String;
const/4 v0, 0x0
sput-boolean v0, Lcom/umeng/commonsdk/utils/c;->i:Z
const/16 v0, 0x2d0
sput v0, Lcom/umeng/commonsdk/utils/c;->j:I
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
sput-object v0, Lcom/umeng/commonsdk/utils/c;->k:Ljava/lang/Object;
invoke-static {}, Lcom/umeng/commonsdk/service/UMGlobalContext;->getAppContext()Landroid/content/Context;
move-result-object v0
if-eqz v0, :cond_1
const-string v1, "iss"
const-string v2, ""
invoke-static {v0, v1, v2}, Lcom/umeng/commonsdk/framework/UMEnvelopeBuild;->imprintProperty(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_1
const-string v2, "1"
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v2
if-eqz v2, :cond_1
sget-object v2, Lcom/umeng/commonsdk/utils/c;->k:Ljava/lang/Object;
monitor-enter v2
const/4 v3, 0x1
:try_start_0
sput-boolean v3, Lcom/umeng/commonsdk/utils/c;->i:Z
monitor-exit v2
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
const-string v2, "sinr"
const-string v3, ""
invoke-static {v0, v2, v3}, Lcom/umeng/commonsdk/framework/UMEnvelopeBuild;->imprintProperty(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_0
:try_start_1
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v0
invoke-static {v0}, Lcom/umeng/commonsdk/utils/c;->a(I)I
move-result v0
sput v0, Lcom/umeng/commonsdk/utils/c;->j:I
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:catchall_0
:cond_0
const/16 v0, 0x30
sput v0, Lcom/umeng/commonsdk/utils/c;->j:I
goto :goto_0
:catchall_1
move-exception v0
:try_start_2
monitor-exit v2
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
throw v0
:cond_1
:goto_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 a(I)I
.locals 1
const/16 v0, 0x2d0
if-le p0, v0, :cond_0
return v0
:cond_0
const/4 v0, 0x1
if-ge p0, v0, :cond_1
return v0
:cond_1
return p0
.end method
.method public static a(Landroid/content/Context;)I
.locals 1
sget-object p0, Lcom/umeng/commonsdk/utils/c;->k:Ljava/lang/Object;
monitor-enter p0
:try_start_0
sget v0, Lcom/umeng/commonsdk/utils/c;->j:I
monitor-exit p0
return v0
:catchall_0
move-exception v0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
.end method
.method public static a(Landroid/content/Context;J)V
.locals 2
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
sget-object v0, Lcom/umeng/commonsdk/utils/c;->a:Ljava/lang/String;
const/4 v1, 0x0
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object p0
if-eqz p0, :cond_0
invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object p0
const-string v0, "lastReqTime"
invoke-interface {p0, v0, p1, p2}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;
move-result-object p0
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->commit()Z
:cond_0
return-void
.end method
.method public static a()Z
.locals 2
sget-object v0, Lcom/umeng/commonsdk/utils/c;->k:Ljava/lang/Object;
monitor-enter v0
:try_start_0
sget-boolean v1, Lcom/umeng/commonsdk/utils/c;->i:Z
monitor-exit v0
return v1
:catchall_0
move-exception v1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v1
.end method
.method public static a(JJI)Z
.locals 1
new-instance v0, Ljava/util/Date;
invoke-direct {v0, p2, p3}, Ljava/util/Date;-><init>(J)V
invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;
move-result-object p2
new-instance p3, Ljava/util/Date;
invoke-direct {p3, p0, p1}, Ljava/util/Date;-><init>(J)V
invoke-virtual {p2, p3}, Ljava/util/Calendar;->setTime(Ljava/util/Date;)V
const/16 p0, 0xa
invoke-virtual {p2, p0, p4}, Ljava/util/Calendar;->add(II)V
invoke-virtual {p2}, Ljava/util/Calendar;->getTime()Ljava/util/Date;
move-result-object p0
invoke-virtual {v0, p0}, Ljava/util/Date;->after(Ljava/util/Date;)Z
move-result p0
if-eqz p0, :cond_0
const/4 p0, 0x1
return p0
:cond_0
const/4 p0, 0x0
return p0
.end method
.method public static b(Landroid/content/Context;)J
.locals 3
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
sget-object v0, Lcom/umeng/commonsdk/utils/c;->a:Ljava/lang/String;
const/4 v1, 0x0
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object p0
const-wide/16 v0, 0x0
if-eqz p0, :cond_0
const-string v2, "lastReqTime"
invoke-interface {p0, v2, v0, v1}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J
move-result-wide v0
:cond_0
return-wide v0
.end method
.method public static c(Landroid/content/Context;)V
.locals 2
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
sget-object v0, Lcom/umeng/commonsdk/utils/c;->a:Ljava/lang/String;
const/4 v1, 0x0
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object p0
if-eqz p0, :cond_0
invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object p0
const/4 v0, 0x1
const-string v1, "clean"
invoke-interface {p0, v1, v0}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
move-result-object p0
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->commit()Z
:cond_0
return-void
.end method
.method public static d(Landroid/content/Context;)V
.locals 2
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
sget-object v0, Lcom/umeng/commonsdk/utils/c;->a:Ljava/lang/String;
const/4 v1, 0x0
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object p0
if-eqz p0, :cond_0
invoke-interface {p0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object p0
const-string v0, "clean"
invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
move-result-object p0
invoke-interface {p0}, Landroid/content/SharedPreferences$Editor;->commit()Z
:cond_0
return-void
.end method
.method public static e(Landroid/content/Context;)Z
.locals 2
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
sget-object v0, Lcom/umeng/commonsdk/utils/c;->a:Ljava/lang/String;
const/4 v1, 0x0
invoke-virtual {p0, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object p0
if-eqz p0, :cond_0
const-string v0, "clean"
invoke-interface {p0, v0, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
move-result v1
:cond_0
return v1
.end method