zzsk.java
15.7 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
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
package com.google.android.gms.internal;
import android.content.Context;
import com.google.android.gms.analytics.zzh;
import com.google.android.gms.common.internal.zzac;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.UUID;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
public class zzsk
extends zzsa
{
private volatile String a;
private Future<String> b;
protected zzsk(zzsc paramzzsc)
{
super(paramzzsc);
}
private boolean a(Context paramContext, String paramString)
{
boolean bool = false;
zzac.zzdr(paramString);
zzac.zzdk("ClientId should be saved from worker thread");
Object localObject5 = null;
Object localObject6 = null;
Object localObject4 = null;
Object localObject2 = localObject4;
Object localObject3 = localObject5;
Object localObject1 = localObject6;
for (;;)
{
try
{
zza("Storing clientId", paramString);
localObject2 = localObject4;
localObject3 = localObject5;
localObject1 = localObject6;
paramContext = paramContext.openFileOutput("gaClientId", 0);
localObject2 = paramContext;
localObject3 = paramContext;
localObject1 = paramContext;
paramContext.write(paramString.getBytes());
}
catch (FileNotFoundException paramContext)
{
localObject1 = localObject2;
zze("Error creating clientId file", paramContext);
if (localObject2 == null) {
continue;
}
try
{
((FileOutputStream)localObject2).close();
return false;
}
catch (IOException paramContext)
{
zze("Failed to close clientId writing stream", paramContext);
return false;
}
}
catch (IOException paramContext)
{
localObject1 = localObject3;
zze("Error writing to clientId file", paramContext);
if (localObject3 == null) {
continue;
}
try
{
((FileOutputStream)localObject3).close();
return false;
}
catch (IOException paramContext)
{
zze("Failed to close clientId writing stream", paramContext);
return false;
}
}
finally
{
if (localObject1 == null) {
break label179;
}
}
try
{
paramContext.close();
bool = true;
return bool;
}
catch (IOException paramContext)
{
zze("Failed to close clientId writing stream", paramContext);
}
}
try
{
((FileOutputStream)localObject1).close();
label179:
throw paramContext;
}
catch (IOException paramString)
{
for (;;)
{
zze("Failed to close clientId writing stream", paramString);
}
}
}
private String c()
{
String str2 = zzoU();
String str1 = str2;
try
{
if (!a(zznU().getContext(), str2)) {
str1 = "0";
}
return str1;
}
catch (Exception localException)
{
zze("Error saving clientId file", localException);
}
return "0";
}
final String a()
{
try
{
this.a = null;
this.b = zznU().zzc(new Callable() {});
return zzoQ();
}
finally {}
}
final String b()
{
String str2 = zzap(zznU().getContext());
String str1 = str2;
if (str2 == null) {
str1 = c();
}
return str1;
}
/* Error */
protected String zzap(Context paramContext)
{
// Byte code:
// 0: ldc 120
// 2: invokestatic 40 com/google/android/gms/common/internal/zzac:zzdk (Ljava/lang/String;)V
// 5: aload_1
// 6: ldc 48
// 8: invokevirtual 124 android/content/Context:openFileInput (Ljava/lang/String;)Ljava/io/FileInputStream;
// 11: astore_3
// 12: aload_3
// 13: astore 4
// 15: bipush 36
// 17: newarray <illegal type>
// 19: astore 5
// 21: aload_3
// 22: astore 4
// 24: aload_3
// 25: aload 5
// 27: iconst_0
// 28: bipush 36
// 30: invokevirtual 130 java/io/FileInputStream:read ([BII)I
// 33: istore_2
// 34: aload_3
// 35: astore 4
// 37: aload_3
// 38: invokevirtual 134 java/io/FileInputStream:available ()I
// 41: ifle +49 -> 90
// 44: aload_3
// 45: astore 4
// 47: aload_0
// 48: ldc -120
// 50: invokevirtual 139 com/google/android/gms/internal/zzsk:zzbS (Ljava/lang/String;)V
// 53: aload_3
// 54: astore 4
// 56: aload_3
// 57: invokevirtual 140 java/io/FileInputStream:close ()V
// 60: aload_3
// 61: astore 4
// 63: aload_1
// 64: ldc 48
// 66: invokevirtual 144 android/content/Context:deleteFile (Ljava/lang/String;)Z
// 69: pop
// 70: aload_3
// 71: ifnull +7 -> 78
// 74: aload_3
// 75: invokevirtual 140 java/io/FileInputStream:close ()V
// 78: aconst_null
// 79: areturn
// 80: astore_1
// 81: aload_0
// 82: ldc -110
// 84: aload_1
// 85: invokevirtual 75 com/google/android/gms/internal/zzsk:zze (Ljava/lang/String;Ljava/lang/Object;)V
// 88: aconst_null
// 89: areturn
// 90: iload_2
// 91: bipush 14
// 93: if_icmpge +49 -> 142
// 96: aload_3
// 97: astore 4
// 99: aload_0
// 100: ldc -108
// 102: invokevirtual 139 com/google/android/gms/internal/zzsk:zzbS (Ljava/lang/String;)V
// 105: aload_3
// 106: astore 4
// 108: aload_3
// 109: invokevirtual 140 java/io/FileInputStream:close ()V
// 112: aload_3
// 113: astore 4
// 115: aload_1
// 116: ldc 48
// 118: invokevirtual 144 android/content/Context:deleteFile (Ljava/lang/String;)Z
// 121: pop
// 122: aload_3
// 123: ifnull -45 -> 78
// 126: aload_3
// 127: invokevirtual 140 java/io/FileInputStream:close ()V
// 130: aconst_null
// 131: areturn
// 132: astore_1
// 133: aload_0
// 134: ldc -110
// 136: aload_1
// 137: invokevirtual 75 com/google/android/gms/internal/zzsk:zze (Ljava/lang/String;Ljava/lang/Object;)V
// 140: aconst_null
// 141: areturn
// 142: aload_3
// 143: astore 4
// 145: aload_3
// 146: invokevirtual 140 java/io/FileInputStream:close ()V
// 149: aload_3
// 150: astore 4
// 152: new 56 java/lang/String
// 155: dup
// 156: aload 5
// 158: iconst_0
// 159: iload_2
// 160: invokespecial 151 java/lang/String:<init> ([BII)V
// 163: astore 5
// 165: aload_3
// 166: astore 4
// 168: aload_0
// 169: ldc -103
// 171: aload 5
// 173: invokevirtual 46 com/google/android/gms/internal/zzsk:zza (Ljava/lang/String;Ljava/lang/Object;)V
// 176: aload_3
// 177: ifnull +7 -> 184
// 180: aload_3
// 181: invokevirtual 140 java/io/FileInputStream:close ()V
// 184: aload 5
// 186: areturn
// 187: astore_1
// 188: aload_0
// 189: ldc -110
// 191: aload_1
// 192: invokevirtual 75 com/google/android/gms/internal/zzsk:zze (Ljava/lang/String;Ljava/lang/Object;)V
// 195: goto -11 -> 184
// 198: astore_1
// 199: aconst_null
// 200: astore_1
// 201: aload_1
// 202: ifnull -124 -> 78
// 205: aload_1
// 206: invokevirtual 140 java/io/FileInputStream:close ()V
// 209: aconst_null
// 210: areturn
// 211: astore_1
// 212: aload_0
// 213: ldc -110
// 215: aload_1
// 216: invokevirtual 75 com/google/android/gms/internal/zzsk:zze (Ljava/lang/String;Ljava/lang/Object;)V
// 219: aconst_null
// 220: areturn
// 221: astore 5
// 223: aconst_null
// 224: astore_3
// 225: aload_3
// 226: astore 4
// 228: aload_0
// 229: ldc -101
// 231: aload 5
// 233: invokevirtual 75 com/google/android/gms/internal/zzsk:zze (Ljava/lang/String;Ljava/lang/Object;)V
// 236: aload_3
// 237: astore 4
// 239: aload_1
// 240: ldc 48
// 242: invokevirtual 144 android/content/Context:deleteFile (Ljava/lang/String;)Z
// 245: pop
// 246: aload_3
// 247: ifnull -169 -> 78
// 250: aload_3
// 251: invokevirtual 140 java/io/FileInputStream:close ()V
// 254: aconst_null
// 255: areturn
// 256: astore_1
// 257: aload_0
// 258: ldc -110
// 260: aload_1
// 261: invokevirtual 75 com/google/android/gms/internal/zzsk:zze (Ljava/lang/String;Ljava/lang/Object;)V
// 264: aconst_null
// 265: areturn
// 266: astore_1
// 267: aconst_null
// 268: astore 4
// 270: aload 4
// 272: ifnull +8 -> 280
// 275: aload 4
// 277: invokevirtual 140 java/io/FileInputStream:close ()V
// 280: aload_1
// 281: athrow
// 282: astore_3
// 283: aload_0
// 284: ldc -110
// 286: aload_3
// 287: invokevirtual 75 com/google/android/gms/internal/zzsk:zze (Ljava/lang/String;Ljava/lang/Object;)V
// 290: goto -10 -> 280
// 293: astore_1
// 294: goto -24 -> 270
// 297: astore 5
// 299: goto -74 -> 225
// 302: astore_1
// 303: aload_3
// 304: astore_1
// 305: goto -104 -> 201
// Local variable table:
// start length slot name signature
// 0 308 0 this zzsk
// 0 308 1 paramContext Context
// 33 127 2 i int
// 11 240 3 localFileInputStream1 java.io.FileInputStream
// 282 22 3 localIOException1 IOException
// 13 263 4 localFileInputStream2 java.io.FileInputStream
// 19 166 5 localObject Object
// 221 11 5 localIOException2 IOException
// 297 1 5 localIOException3 IOException
// Exception table:
// from to target type
// 74 78 80 java/io/IOException
// 126 130 132 java/io/IOException
// 180 184 187 java/io/IOException
// 5 12 198 java/io/FileNotFoundException
// 205 209 211 java/io/IOException
// 5 12 221 java/io/IOException
// 250 254 256 java/io/IOException
// 5 12 266 finally
// 275 280 282 java/io/IOException
// 15 21 293 finally
// 24 34 293 finally
// 37 44 293 finally
// 47 53 293 finally
// 56 60 293 finally
// 63 70 293 finally
// 99 105 293 finally
// 108 112 293 finally
// 115 122 293 finally
// 145 149 293 finally
// 152 165 293 finally
// 168 176 293 finally
// 228 236 293 finally
// 239 246 293 finally
// 15 21 297 java/io/IOException
// 24 34 297 java/io/IOException
// 37 44 297 java/io/IOException
// 47 53 297 java/io/IOException
// 56 60 297 java/io/IOException
// 63 70 297 java/io/IOException
// 99 105 297 java/io/IOException
// 108 112 297 java/io/IOException
// 115 122 297 java/io/IOException
// 145 149 297 java/io/IOException
// 152 165 297 java/io/IOException
// 168 176 297 java/io/IOException
// 15 21 302 java/io/FileNotFoundException
// 24 34 302 java/io/FileNotFoundException
// 37 44 302 java/io/FileNotFoundException
// 47 53 302 java/io/FileNotFoundException
// 56 60 302 java/io/FileNotFoundException
// 63 70 302 java/io/FileNotFoundException
// 99 105 302 java/io/FileNotFoundException
// 108 112 302 java/io/FileNotFoundException
// 115 122 302 java/io/FileNotFoundException
// 145 149 302 java/io/FileNotFoundException
// 152 165 302 java/io/FileNotFoundException
// 168 176 302 java/io/FileNotFoundException
}
protected void zzmS() {}
/* Error */
public String zzoQ()
{
// Byte code:
// 0: aload_0
// 1: invokevirtual 163 com/google/android/gms/internal/zzsk:zzob ()V
// 4: aload_0
// 5: monitorenter
// 6: aload_0
// 7: getfield 102 com/google/android/gms/internal/zzsk:a Ljava/lang/String;
// 10: ifnonnull +22 -> 32
// 13: aload_0
// 14: aload_0
// 15: invokevirtual 88 com/google/android/gms/internal/zzsk:zznU ()Lcom/google/android/gms/analytics/zzh;
// 18: new 6 com/google/android/gms/internal/zzsk$1
// 21: dup
// 22: aload_0
// 23: invokespecial 164 com/google/android/gms/internal/zzsk$1:<init> (Lcom/google/android/gms/internal/zzsk;)V
// 26: invokevirtual 109 com/google/android/gms/analytics/zzh:zzc (Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;
// 29: putfield 111 com/google/android/gms/internal/zzsk:b Ljava/util/concurrent/Future;
// 32: aload_0
// 33: getfield 111 com/google/android/gms/internal/zzsk:b Ljava/util/concurrent/Future;
// 36: astore_1
// 37: aload_1
// 38: ifnull +47 -> 85
// 41: aload_0
// 42: aload_0
// 43: getfield 111 com/google/android/gms/internal/zzsk:b Ljava/util/concurrent/Future;
// 46: invokeinterface 170 1 0
// 51: checkcast 56 java/lang/String
// 54: putfield 102 com/google/android/gms/internal/zzsk:a Ljava/lang/String;
// 57: aload_0
// 58: getfield 102 com/google/android/gms/internal/zzsk:a Ljava/lang/String;
// 61: ifnonnull +9 -> 70
// 64: aload_0
// 65: ldc 98
// 67: putfield 102 com/google/android/gms/internal/zzsk:a Ljava/lang/String;
// 70: aload_0
// 71: ldc -84
// 73: aload_0
// 74: getfield 102 com/google/android/gms/internal/zzsk:a Ljava/lang/String;
// 77: invokevirtual 46 com/google/android/gms/internal/zzsk:zza (Ljava/lang/String;Ljava/lang/Object;)V
// 80: aload_0
// 81: aconst_null
// 82: putfield 111 com/google/android/gms/internal/zzsk:b Ljava/util/concurrent/Future;
// 85: aload_0
// 86: getfield 102 com/google/android/gms/internal/zzsk:a Ljava/lang/String;
// 89: astore_1
// 90: aload_0
// 91: monitorexit
// 92: aload_1
// 93: areturn
// 94: astore_1
// 95: aload_0
// 96: ldc -82
// 98: aload_1
// 99: invokevirtual 177 com/google/android/gms/internal/zzsk:zzd (Ljava/lang/String;Ljava/lang/Object;)V
// 102: aload_0
// 103: ldc 98
// 105: putfield 102 com/google/android/gms/internal/zzsk:a Ljava/lang/String;
// 108: goto -51 -> 57
// 111: astore_1
// 112: aload_0
// 113: monitorexit
// 114: aload_1
// 115: athrow
// 116: astore_1
// 117: aload_0
// 118: ldc -77
// 120: aload_1
// 121: invokevirtual 75 com/google/android/gms/internal/zzsk:zze (Ljava/lang/String;Ljava/lang/Object;)V
// 124: aload_0
// 125: ldc 98
// 127: putfield 102 com/google/android/gms/internal/zzsk:a Ljava/lang/String;
// 130: goto -73 -> 57
// Local variable table:
// start length slot name signature
// 0 133 0 this zzsk
// 36 57 1 localObject1 Object
// 94 5 1 localInterruptedException InterruptedException
// 111 4 1 localObject2 Object
// 116 5 1 localExecutionException java.util.concurrent.ExecutionException
// Exception table:
// from to target type
// 41 57 94 java/lang/InterruptedException
// 6 32 111 finally
// 32 37 111 finally
// 41 57 111 finally
// 57 70 111 finally
// 70 85 111 finally
// 85 92 111 finally
// 95 108 111 finally
// 112 114 111 finally
// 117 130 111 finally
// 41 57 116 java/util/concurrent/ExecutionException
}
protected String zzoU()
{
return UUID.randomUUID().toString().toLowerCase();
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/internal/zzsk.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/