Free Fire v1.103.1版本的 MD5 值为:f6c45f9f1485263aa5af0fb400f973fc
以下内容为反编译后的 d.java 源代码,内容仅作参考
package x7;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import com.google.android.gms.tasks.SuccessContinuation;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.TaskCompletionSource;
import com.google.firebase.crashlytics.internal.common.DataCollectionArbiter;
import com.google.firebase.crashlytics.internal.common.IdManager;
import com.google.firebase.crashlytics.internal.common.j0;
import com.google.firebase.crashlytics.internal.common.m;
import com.google.firebase.crashlytics.internal.common.n;
import com.google.firebase.crashlytics.internal.settings.SettingsDataProvider;
import java.util.Locale;
import java.util.concurrent.Executor;
import java.util.concurrent.atomic.AtomicReference;
import org.json.JSONObject;
public class d implements SettingsDataProvider {
private final Context f14508a;
private final y7.f f14509b;
private final e f14510c;
private final m f14511d;
private final x7.a f14512e;
private final z7.b f14513f;
private final DataCollectionArbiter f14514g;
private final AtomicReference<y7.d> f14515h;
private final AtomicReference<TaskCompletionSource<y7.a>> f14516i;
public class a implements SuccessContinuation<Void, Void> {
a() {
}
@Override
public Task<Void> a(Void r52) {
JSONObject a10 = d.this.f14513f.a(d.this.f14509b, true);
if (a10 != null) {
y7.e b10 = d.this.f14510c.b(a10);
d.this.f14512e.c(b10.d(), a10);
d.this.q(a10, "Loaded settings: ");
d dVar = d.this;
dVar.r(dVar.f14509b.f14681f);
d.this.f14515h.set(b10);
((TaskCompletionSource) d.this.f14516i.get()).e(b10.c());
TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
taskCompletionSource.e(b10.c());
d.this.f14516i.set(taskCompletionSource);
}
return com.google.android.gms.tasks.b.e(null);
}
}
d(Context context, y7.f fVar, m mVar, e eVar, x7.a aVar, z7.b bVar, DataCollectionArbiter dataCollectionArbiter) {
AtomicReference<y7.d> atomicReference = new AtomicReference<>();
this.f14515h = atomicReference;
this.f14516i = new AtomicReference<>(new TaskCompletionSource());
this.f14508a = context;
this.f14509b = fVar;
this.f14511d = mVar;
this.f14510c = eVar;
this.f14512e = aVar;
this.f14513f = bVar;
this.f14514g = dataCollectionArbiter;
atomicReference.set(b.e(mVar));
}
public static d l(Context context, String str, IdManager idManager, u7.b bVar, String str2, String str3, DataCollectionArbiter dataCollectionArbiter) {
String g10 = idManager.g();
j0 j0Var = new j0();
return new d(context, new y7.f(str, idManager.h(), idManager.i(), idManager.j(), idManager, com.google.firebase.crashlytics.internal.common.f.h(com.google.firebase.crashlytics.internal.common.f.n(context), str, str3, str2), str3, str2, n.a(g10).c()), j0Var, new e(j0Var), new x7.a(context), new z7.a(String.format(Locale.US, "https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/%s/settings", str), bVar), dataCollectionArbiter);
}
private y7.e m(c cVar) {
y7.e eVar = null;
try {
if (!c.SKIP_CACHE_LOOKUP.equals(cVar)) {
JSONObject b10 = this.f14512e.b();
if (b10 != null) {
y7.e b11 = this.f14510c.b(b10);
if (b11 != null) {
q(b10, "Loaded cached settings: ");
long a10 = this.f14511d.a();
if (!c.IGNORE_CACHE_EXPIRATION.equals(cVar) && b11.e(a10)) {
o7.e.f().i("Cached settings have expired.");
}
try {
o7.e.f().i("Returning cached settings.");
eVar = b11;
} catch (Exception e10) {
e = e10;
eVar = b11;
o7.e.f().e("Failed to get cached settings", e);
return eVar;
}
} else {
o7.e.f().e("Failed to parse cached settings data.", null);
}
} else {
o7.e.f().b("No cached settings data found.");
}
}
} catch (Exception e11) {
e = e11;
}
return eVar;
}
private String n() {
return com.google.firebase.crashlytics.internal.common.f.r(this.f14508a).getString("existing_instance_identifier", "");
}
public void q(JSONObject jSONObject, String str) {
o7.e f10 = o7.e.f();
f10.b(str + jSONObject.toString());
}
@SuppressLint({"CommitPrefEdits"})
public boolean r(String str) {
SharedPreferences.Editor edit = com.google.firebase.crashlytics.internal.common.f.r(this.f14508a).edit();
edit.putString("existing_instance_identifier", str);
edit.apply();
return true;
}
@Override
public Task<y7.a> a() {
return this.f14516i.get().a();
}
@Override
public y7.d b() {
return this.f14515h.get();
}
boolean k() {
return !n().equals(this.f14509b.f14681f);
}
public Task<Void> o(Executor executor) {
return p(c.USE_CACHE, executor);
}
public Task<Void> p(c cVar, Executor executor) {
y7.e m10;
if (!k() && (m10 = m(cVar)) != null) {
this.f14515h.set(m10);
this.f14516i.get().e(m10.c());
return com.google.android.gms.tasks.b.e(null);
}
y7.e m11 = m(c.IGNORE_CACHE_EXPIRATION);
if (m11 != null) {
this.f14515h.set(m11);
this.f14516i.get().e(m11.c());
}
return this.f14514g.waitForDataCollectionPermission(executor).onSuccessTask(executor, new a());
}
}