S T G SuperAPPS v9.99.99版本的 MD5 值为:ec866d8c695a659ed10459d6bd169615
以下内容为反编译后的 d.java 源代码,内容仅作参考
package y6;
import android.content.Context;
import android.content.SharedPreferences;
import java.util.Locale;
import java.util.concurrent.Executor;
import java.util.concurrent.atomic.AtomicReference;
import org.json.JSONException;
import org.json.JSONObject;
import r6.f0;
import r6.q;
import r6.r;
import r6.s;
import r6.v;
import u4.k;
import u4.l;
import u4.m;
import u4.o;
public class d implements e {
private final Context f31447a;
private final z6.f f31448b;
private final f f31449c;
private final q f31450d;
private final y6.a f31451e;
private final a7.b f31452f;
private final r f31453g;
private final AtomicReference<z6.d> f31454h;
private final AtomicReference<m<z6.a>> f31455i;
public class a implements k<Void, Void> {
a() {
}
@Override
public l<Void> a(Void r52) throws Exception {
JSONObject a10 = d.this.f31452f.a(d.this.f31448b, true);
if (a10 != null) {
z6.e b10 = d.this.f31449c.b(a10);
d.this.f31451e.c(b10.d(), a10);
d.this.q(a10, "Loaded settings: ");
d dVar = d.this;
dVar.r(dVar.f31448b.f32043f);
d.this.f31454h.set(b10);
((m) d.this.f31455i.get()).e(b10.c());
m mVar = new m();
mVar.e(b10.c());
d.this.f31455i.set(mVar);
}
return o.f(null);
}
}
d(Context context, z6.f fVar, q qVar, f fVar2, y6.a aVar, a7.b bVar, r rVar) {
AtomicReference<z6.d> atomicReference = new AtomicReference<>();
this.f31454h = atomicReference;
this.f31455i = new AtomicReference<>(new m());
this.f31447a = context;
this.f31448b = fVar;
this.f31450d = qVar;
this.f31449c = fVar2;
this.f31451e = aVar;
this.f31452f = bVar;
this.f31453g = rVar;
atomicReference.set(b.e(qVar));
}
public static d l(Context context, String str, v vVar, v6.b bVar, String str2, String str3, r rVar) {
String g10 = vVar.g();
f0 f0Var = new f0();
return new d(context, new z6.f(str, vVar.h(), vVar.i(), vVar.j(), vVar, r6.g.h(r6.g.n(context), str, str3, str2), str3, str2, s.d(g10).g()), f0Var, new f(f0Var), new y6.a(context), new a7.a(String.format(Locale.US, "https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/%s/settings", str), bVar), rVar);
}
private z6.e m(c cVar) {
z6.e eVar = null;
try {
if (!c.SKIP_CACHE_LOOKUP.equals(cVar)) {
JSONObject b10 = this.f31451e.b();
if (b10 != null) {
z6.e b11 = this.f31449c.b(b10);
if (b11 != null) {
q(b10, "Loaded cached settings: ");
long a10 = this.f31450d.a();
if (!c.IGNORE_CACHE_EXPIRATION.equals(cVar) && b11.e(a10)) {
o6.f.f().i("Cached settings have expired.");
}
try {
o6.f.f().i("Returning cached settings.");
eVar = b11;
} catch (Exception e10) {
e = e10;
eVar = b11;
o6.f.f().e("Failed to get cached settings", e);
return eVar;
}
} else {
o6.f.f().e("Failed to parse cached settings data.", null);
}
} else {
o6.f.f().b("No cached settings data found.");
}
}
} catch (Exception e11) {
e = e11;
}
return eVar;
}
private String n() {
return r6.g.r(this.f31447a).getString("existing_instance_identifier", "");
}
public void q(JSONObject jSONObject, String str) throws JSONException {
o6.f.f().b(str + jSONObject.toString());
}
public boolean r(String str) {
SharedPreferences.Editor edit = r6.g.r(this.f31447a).edit();
edit.putString("existing_instance_identifier", str);
edit.apply();
return true;
}
@Override
public z6.d a() {
return this.f31454h.get();
}
@Override
public l<z6.a> b() {
return this.f31455i.get().a();
}
boolean k() {
return !n().equals(this.f31448b.f32043f);
}
public l<Void> o(Executor executor) {
return p(c.USE_CACHE, executor);
}
public l<Void> p(c cVar, Executor executor) {
z6.e m10;
if (!k() && (m10 = m(cVar)) != null) {
this.f31454h.set(m10);
this.f31455i.get().e(m10.c());
return o.f(null);
}
z6.e m11 = m(c.IGNORE_CACHE_EXPIRATION);
if (m11 != null) {
this.f31454h.set(m11);
this.f31455i.get().e(m11.c());
}
return this.f31453g.h(executor).r(executor, new a());
}
}