Silent Camera v8.11.1版本的 MD5 值为:461a6aeaae6d6fdb2f75be73cf9b5c5d

以下内容为反编译后的 f.java 源代码,内容仅作参考


package v5;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import java.util.Locale;
import java.util.concurrent.Executor;
import java.util.concurrent.atomic.AtomicReference;
import o5.c0;
import o5.t0;
import o5.x;
import o5.y;
import o5.z;
import org.json.JSONObject;

public class f implements i {

    private final Context f29601a;

    private final j f29602b;

    private final g f29603c;

    private final x f29604d;

    private final v5.a f29605e;

    private final k f29606f;

    private final y f29607g;

    private final AtomicReference<d> f29608h;

    private final AtomicReference<z4.i<d>> f29609i;

    public class a implements z4.g<Void, Void> {
        a() {
        }

        @Override
        public z4.h<Void> a(Void r52) {
            JSONObject a10 = f.this.f29606f.a(f.this.f29602b, true);
            if (a10 != null) {
                d b10 = f.this.f29603c.b(a10);
                f.this.f29605e.c(b10.f29586c, a10);
                f.this.q(a10, "Loaded settings: ");
                f fVar = f.this;
                fVar.r(fVar.f29602b.f29617f);
                f.this.f29608h.set(b10);
                ((z4.i) f.this.f29609i.get()).e(b10);
            }
            return z4.k.e(null);
        }
    }

    f(Context context, j jVar, x xVar, g gVar, v5.a aVar, k kVar, y yVar) {
        AtomicReference<d> atomicReference = new AtomicReference<>();
        this.f29608h = atomicReference;
        this.f29609i = new AtomicReference<>(new z4.i());
        this.f29601a = context;
        this.f29602b = jVar;
        this.f29604d = xVar;
        this.f29603c = gVar;
        this.f29605e = aVar;
        this.f29606f = kVar;
        this.f29607g = yVar;
        atomicReference.set(b.b(xVar));
    }

    public static f l(Context context, String str, c0 c0Var, s5.b bVar, String str2, String str3, t5.f fVar, y yVar) {
        String g9 = c0Var.g();
        t0 t0Var = new t0();
        return new f(context, new j(str, c0Var.h(), c0Var.i(), c0Var.j(), c0Var, o5.j.h(o5.j.m(context), str, str3, str2), str3, str2, z.b(g9).g()), t0Var, new g(t0Var), new v5.a(fVar), new c(String.format(Locale.US, "https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/%s/settings", str), bVar), yVar);
    }

    private d m(e eVar) {
        d dVar = null;
        try {
            if (!e.SKIP_CACHE_LOOKUP.equals(eVar)) {
                JSONObject b10 = this.f29605e.b();
                if (b10 != null) {
                    d b11 = this.f29603c.b(b10);
                    if (b11 != null) {
                        q(b10, "Loaded cached settings: ");
                        long a10 = this.f29604d.a();
                        if (!e.IGNORE_CACHE_EXPIRATION.equals(eVar) && b11.a(a10)) {
                            l5.g.f().i("Cached settings have expired.");
                        }
                        try {
                            l5.g.f().i("Returning cached settings.");
                            dVar = b11;
                        } catch (Exception e9) {
                            e = e9;
                            dVar = b11;
                            l5.g.f().e("Failed to get cached settings", e);
                            return dVar;
                        }
                    } else {
                        l5.g.f().e("Failed to parse cached settings data.", null);
                    }
                } else {
                    l5.g.f().b("No cached settings data found.");
                }
            }
        } catch (Exception e10) {
            e = e10;
        }
        return dVar;
    }

    private String n() {
        return o5.j.q(this.f29601a).getString("existing_instance_identifier", "");
    }

    public void q(JSONObject jSONObject, String str) {
        l5.g.f().b(str + jSONObject.toString());
    }

    @SuppressLint({"CommitPrefEdits"})
    public boolean r(String str) {
        SharedPreferences.Editor edit = o5.j.q(this.f29601a).edit();
        edit.putString("existing_instance_identifier", str);
        edit.apply();
        return true;
    }

    @Override
    public z4.h<d> a() {
        return this.f29609i.get().a();
    }

    @Override
    public d b() {
        return this.f29608h.get();
    }

    boolean k() {
        return !n().equals(this.f29602b.f29617f);
    }

    public z4.h<Void> o(Executor executor) {
        return p(e.USE_CACHE, executor);
    }

    public z4.h<Void> p(e eVar, Executor executor) {
        d m9;
        if (!k() && (m9 = m(eVar)) != null) {
            this.f29608h.set(m9);
            this.f29609i.get().e(m9);
            return z4.k.e(null);
        }
        d m10 = m(e.IGNORE_CACHE_EXPIRATION);
        if (m10 != null) {
            this.f29608h.set(m10);
            this.f29609i.get().e(m10);
        }
        return this.f29607g.k(executor).r(executor, new a());
    }
}