65 lines
2.1 KiB
Java
65 lines
2.1 KiB
Java
package com.google.android.gms.internal.measurement;
|
|
|
|
import android.content.Context;
|
|
import android.util.Log;
|
|
import androidx.core.content.PermissionChecker;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class zzse implements zzsb {
|
|
static zzse b;
|
|
private final Context a;
|
|
|
|
private zzse(Context context) {
|
|
this.a = context;
|
|
this.a.getContentResolver().registerContentObserver(zzru.a, true, new zzsg(this, null));
|
|
}
|
|
|
|
static zzse a(Context context) {
|
|
zzse zzseVar;
|
|
synchronized (zzse.class) {
|
|
if (b == null) {
|
|
b = PermissionChecker.a(context, "com.google.android.providers.gsf.permission.READ_GSERVICES") == 0 ? new zzse(context) : new zzse();
|
|
}
|
|
zzseVar = b;
|
|
}
|
|
return zzseVar;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
@Override // com.google.android.gms.internal.measurement.zzsb
|
|
/* renamed from: c, reason: merged with bridge method [inline-methods] */
|
|
public final String a(final String str) {
|
|
if (this.a == null) {
|
|
return null;
|
|
}
|
|
try {
|
|
return (String) zzsc.a(new zzsd(this, str) { // from class: com.google.android.gms.internal.measurement.zzsf
|
|
private final zzse a;
|
|
private final String b;
|
|
|
|
{
|
|
this.a = this;
|
|
this.b = str;
|
|
}
|
|
|
|
@Override // com.google.android.gms.internal.measurement.zzsd
|
|
public final Object a() {
|
|
return this.a.b(this.b);
|
|
}
|
|
});
|
|
} catch (SecurityException e) {
|
|
String valueOf = String.valueOf(str);
|
|
Log.e("GservicesLoader", valueOf.length() != 0 ? "Unable to read GServices for: ".concat(valueOf) : new String("Unable to read GServices for: "), e);
|
|
return null;
|
|
}
|
|
}
|
|
|
|
final /* synthetic */ String b(String str) {
|
|
return zzru.a(this.a.getContentResolver(), str, (String) null);
|
|
}
|
|
|
|
private zzse() {
|
|
this.a = null;
|
|
}
|
|
}
|