zzrx.java
9.5 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
package com.google.android.gms.internal;
import android.content.Context;
import android.text.TextUtils;
import com.google.android.gms.ads.identifier.AdvertisingIdClient;
import com.google.android.gms.ads.identifier.AdvertisingIdClient.Info;
import im;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.util.Locale;
public class zzrx
extends zzsa
{
public static boolean zzadA;
private AdvertisingIdClient.Info a;
private final im b;
private String c;
private boolean d = false;
private Object e = new Object();
zzrx(zzsc paramzzsc)
{
super(paramzzsc);
this.b = new im(paramzzsc.zznR());
}
/* Error */
private AdvertisingIdClient.Info a()
{
// Byte code:
// 0: aload_0
// 1: monitorenter
// 2: aload_0
// 3: getfield 41 com/google/android/gms/internal/zzrx:b Lim;
// 6: ldc2_w 44
// 9: invokevirtual 48 im:a (J)Z
// 12: ifeq +32 -> 44
// 15: aload_0
// 16: getfield 41 com/google/android/gms/internal/zzrx:b Lim;
// 19: invokevirtual 50 im:a ()V
// 22: aload_0
// 23: invokevirtual 53 com/google/android/gms/internal/zzrx:zznI ()Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
// 26: astore_1
// 27: aload_0
// 28: aload_0
// 29: getfield 55 com/google/android/gms/internal/zzrx:a Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
// 32: aload_1
// 33: invokespecial 58 com/google/android/gms/internal/zzrx:a (Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;)Z
// 36: ifeq +17 -> 53
// 39: aload_0
// 40: aload_1
// 41: putfield 55 com/google/android/gms/internal/zzrx:a Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
// 44: aload_0
// 45: getfield 55 com/google/android/gms/internal/zzrx:a Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
// 48: astore_1
// 49: aload_0
// 50: monitorexit
// 51: aload_1
// 52: areturn
// 53: aload_0
// 54: ldc 60
// 56: invokevirtual 64 com/google/android/gms/internal/zzrx:zzbT (Ljava/lang/String;)V
// 59: aload_0
// 60: new 66 com/google/android/gms/ads/identifier/AdvertisingIdClient$Info
// 63: dup
// 64: ldc 68
// 66: iconst_0
// 67: invokespecial 71 com/google/android/gms/ads/identifier/AdvertisingIdClient$Info:<init> (Ljava/lang/String;Z)V
// 70: putfield 55 com/google/android/gms/internal/zzrx:a Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
// 73: goto -29 -> 44
// 76: astore_1
// 77: aload_0
// 78: monitorexit
// 79: aload_1
// 80: athrow
// Local variable table:
// start length slot name signature
// 0 81 0 this zzrx
// 26 26 1 localInfo AdvertisingIdClient.Info
// 76 4 1 localObject Object
// Exception table:
// from to target type
// 2 44 76 finally
// 44 49 76 finally
// 53 73 76 finally
}
private static String a(String paramString)
{
MessageDigest localMessageDigest = zztm.zzch("MD5");
if (localMessageDigest == null) {
return null;
}
return String.format(Locale.US, "%032X", new Object[] { new BigInteger(1, localMessageDigest.digest(paramString.getBytes())) });
}
private boolean a(AdvertisingIdClient.Info paramInfo1, AdvertisingIdClient.Info paramInfo2)
{
String str2 = null;
if (paramInfo2 == null) {}
for (paramInfo2 = null; TextUtils.isEmpty(paramInfo2); paramInfo2 = paramInfo2.getId()) {
return true;
}
String str1 = zznX().zzoQ();
boolean bool;
for (;;)
{
synchronized (this.e)
{
if (!this.d)
{
this.c = zznJ();
this.d = true;
paramInfo1 = String.valueOf(paramInfo2);
str2 = String.valueOf(str1);
if (str2.length() == 0) {
break label240;
}
paramInfo1 = paramInfo1.concat(str2);
paramInfo1 = a(paramInfo1);
if (!TextUtils.isEmpty(paramInfo1)) {
break;
}
return false;
}
}
if (TextUtils.isEmpty(this.c))
{
if (paramInfo1 == null)
{
paramInfo1 = str2;
if (paramInfo1 != null) {
break label190;
}
paramInfo1 = String.valueOf(paramInfo2);
paramInfo2 = String.valueOf(str1);
if (paramInfo2.length() == 0) {
break label178;
}
}
label178:
for (paramInfo1 = paramInfo1.concat(paramInfo2);; paramInfo1 = new String(paramInfo1))
{
bool = b(paramInfo1);
return bool;
paramInfo1 = paramInfo1.getId();
break;
}
label190:
paramInfo1 = String.valueOf(paramInfo1);
str2 = String.valueOf(str1);
if (str2.length() != 0) {}
for (paramInfo1 = paramInfo1.concat(str2);; paramInfo1 = new String(paramInfo1))
{
this.c = a(paramInfo1);
break;
}
label240:
paramInfo1 = new String(paramInfo1);
}
}
if (paramInfo1.equals(this.c)) {
return true;
}
if (!TextUtils.isEmpty(this.c))
{
zzbP("Resetting the client id because Advertising Id changed.");
paramInfo1 = zznX().a();
zza("New client Id", paramInfo1);
}
for (;;)
{
paramInfo2 = String.valueOf(paramInfo2);
paramInfo1 = String.valueOf(paramInfo1);
if (paramInfo1.length() != 0) {}
for (paramInfo1 = paramInfo2.concat(paramInfo1);; paramInfo1 = new String(paramInfo2))
{
bool = b(paramInfo1);
return bool;
}
paramInfo1 = str1;
}
}
private boolean b(String paramString)
{
try
{
paramString = a(paramString);
zzbP("Storing hashed adid.");
FileOutputStream localFileOutputStream = getContext().openFileOutput("gaClientIdData", 0);
localFileOutputStream.write(paramString.getBytes());
localFileOutputStream.close();
this.c = paramString;
return true;
}
catch (IOException paramString)
{
zze("Error creating hash file", paramString);
}
return false;
}
protected void zzmS() {}
public String zznG()
{
zzob();
Object localObject = a();
if (localObject != null) {}
for (localObject = ((AdvertisingIdClient.Info)localObject).getId();; localObject = null)
{
if (TextUtils.isEmpty((CharSequence)localObject)) {
return null;
}
return (String)localObject;
}
}
protected AdvertisingIdClient.Info zznI()
{
Object localObject = null;
try
{
AdvertisingIdClient.Info localInfo = AdvertisingIdClient.getAdvertisingIdInfo(getContext());
localObject = localInfo;
}
catch (IllegalStateException localIllegalStateException)
{
zzbS("IllegalStateException getting Ad Id Info. If you would like to see Audience reports, please ensure that you have added '<meta-data android:name=\"com.google.android.gms.version\" android:value=\"@integer/google_play_services_version\" />' to your application manifest file. See http://goo.gl/naFqQk for details.");
return null;
}
catch (Throwable localThrowable)
{
while (zzadA) {}
zzadA = true;
zzd("Error getting advertiser id", localThrowable);
}
return (AdvertisingIdClient.Info)localObject;
return null;
}
protected String zznJ()
{
Object localObject1 = null;
try
{
FileInputStream localFileInputStream = getContext().openFileInput("gaClientIdData");
Object localObject2 = new byte[''];
int i = localFileInputStream.read((byte[])localObject2, 0, 128);
if (localFileInputStream.available() > 0)
{
zzbS("Hash file seems corrupted, deleting it.");
localFileInputStream.close();
getContext().deleteFile("gaClientIdData");
return null;
}
if (i <= 0)
{
zzbP("Hash file is empty.");
localFileInputStream.close();
return null;
}
localObject2 = new String((byte[])localObject2, 0, i);
IOException localIOException2;
return null;
}
catch (IOException localIOException1)
{
try
{
localFileInputStream.close();
return (String)localObject2;
}
catch (IOException localIOException3)
{
for (;;)
{
localObject1 = localIOException1;
localIOException2 = localIOException3;
}
}
catch (FileNotFoundException localFileNotFoundException1)
{
return localIOException2;
}
localIOException1 = localIOException1;
zzd("Error reading Hash file, deleting it", localIOException1);
getContext().deleteFile("gaClientIdData");
return (String)localObject1;
}
catch (FileNotFoundException localFileNotFoundException2) {}
}
public boolean zznw()
{
boolean bool2 = false;
zzob();
AdvertisingIdClient.Info localInfo = a();
boolean bool1 = bool2;
if (localInfo != null)
{
bool1 = bool2;
if (!localInfo.isLimitAdTrackingEnabled()) {
bool1 = true;
}
}
return bool1;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/internal/zzrx.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/