zzaba.java
2.63 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
package com.google.android.gms.internal;
import android.content.Context;
import android.content.res.Resources;
import android.text.TextUtils;
import com.google.android.gms.R.string;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.internal.zzac;
import com.google.android.gms.common.internal.zzam;
import com.google.android.gms.common.internal.zzz;
@Deprecated
public final class zzaba
{
private static final Object a = new Object();
private static zzaba b;
private final String c;
private final Status d;
private final boolean e;
private final boolean f;
private zzaba(Context paramContext)
{
Object localObject = paramContext.getResources();
int i = ((Resources)localObject).getIdentifier("google_app_measurement_enable", "integer", ((Resources)localObject).getResourcePackageName(R.string.common_google_play_services_unknown_issue));
if (i != 0) {
if (((Resources)localObject).getInteger(i) != 0)
{
bool1 = true;
if (bool1) {
break label127;
}
}
}
label52:
for (this.f = bool2;; this.f = false)
{
this.e = bool1;
String str = zzz.zzaV(paramContext);
localObject = str;
if (str == null) {
localObject = new zzam(paramContext).getString("google_app_id");
}
if (!TextUtils.isEmpty((CharSequence)localObject)) {
break label141;
}
this.d = new Status(10, "Missing google app id value from from string resources with name google_app_id.");
this.c = null;
return;
bool1 = false;
break;
label127:
bool2 = false;
break label52;
}
label141:
this.c = ((String)localObject);
this.d = Status.zzazx;
}
private static zzaba a(String paramString)
{
synchronized (a)
{
if (b == null) {
throw new IllegalStateException(String.valueOf(paramString).length() + 34 + "Initialize must be called before " + paramString + ".");
}
}
paramString = b;
return paramString;
}
public static Status zzaQ(Context paramContext)
{
zzac.zzb(paramContext, "Context must not be null.");
synchronized (a)
{
if (b == null) {
b = new zzaba(paramContext);
}
paramContext = b.d;
return paramContext;
}
}
public static String zzwQ()
{
return a("getGoogleAppId").c;
}
public static boolean zzwR()
{
return a("isMeasurementExplicitlyDisabled").f;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/internal/zzaba.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/