导航菜单

页面标题

页面副标题

Online Loans v421.2.42 - g.java 源代码

正在查看: Online Loans v421.2.42 应用的 g.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package K3;

import C3.AbstractC0353i;
import C3.H;
import C3.I;
import C3.J;
import C3.N;
import C3.i0;
import K3.g;
import android.content.Context;
import android.content.SharedPreferences;
import com.google.android.gms.tasks.Task;
import java.util.Locale;
import java.util.concurrent.Callable;
import java.util.concurrent.atomic.AtomicReference;
import org.json.JSONObject;
import q2.AbstractC2529k;
import q2.C2527i;
import q2.InterfaceC2526h;

public class g implements j {

    public final Context f3575a;

    public final k f3576b;

    public final h f3577c;

    public final H f3578d;

    public final K3.a f3579e;

    public final l f3580f;

    public final I f3581g;

    public final AtomicReference f3582h;

    public final AtomicReference f3583i;

    public class a implements InterfaceC2526h {

        public final D3.f f3584a;

        public a(D3.f fVar) {
            this.f3584a = fVar;
        }

        public final JSONObject c() {
            return g.this.f3580f.a(g.this.f3576b, true);
        }

        @Override
        public Task a(Void r52) {
            JSONObject jSONObject = (JSONObject) this.f3584a.f665d.c().submit(new Callable() {
                @Override
                public final Object call() {
                    JSONObject c7;
                    c7 = g.a.this.c();
                    return c7;
                }
            }).get();
            if (jSONObject != null) {
                d b7 = g.this.f3577c.b(jSONObject);
                g.this.f3579e.c(b7.f3559c, jSONObject);
                g.this.q(jSONObject, "Loaded settings: ");
                g gVar = g.this;
                gVar.r(gVar.f3576b.f3592f);
                g.this.f3582h.set(b7);
                ((C2527i) g.this.f3583i.get()).e(b7);
            }
            return AbstractC2529k.e(null);
        }
    }

    public g(Context context, k kVar, H h6, h hVar, K3.a aVar, l lVar, I i6) {
        AtomicReference atomicReference = new AtomicReference();
        this.f3582h = atomicReference;
        this.f3583i = new AtomicReference(new C2527i());
        this.f3575a = context;
        this.f3576b = kVar;
        this.f3578d = h6;
        this.f3577c = hVar;
        this.f3579e = aVar;
        this.f3580f = lVar;
        this.f3581g = i6;
        atomicReference.set(b.b(h6));
    }

    public static g l(Context context, String str, N n6, H3.b bVar, String str2, String str3, I3.g gVar, I i6) {
        String g6 = n6.g();
        i0 i0Var = new i0();
        return new g(context, new k(str, n6.h(), n6.i(), n6.j(), n6, AbstractC0353i.h(AbstractC0353i.m(context), str, str3, str2), str3, str2, J.g(g6).i()), i0Var, new h(i0Var), new K3.a(gVar), new c(String.format(Locale.US, "https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/%s/settings", str), bVar), i6);
    }

    @Override
    public Task a() {
        return ((C2527i) this.f3583i.get()).a();
    }

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

    public boolean k() {
        return !n().equals(this.f3576b.f3592f);
    }

    public final d m(e eVar) {
        d dVar = null;
        try {
            if (!e.SKIP_CACHE_LOOKUP.equals(eVar)) {
                JSONObject b7 = this.f3579e.b();
                if (b7 != null) {
                    d b8 = this.f3577c.b(b7);
                    if (b8 != null) {
                        q(b7, "Loaded cached settings: ");
                        long a7 = this.f3578d.a();
                        if (!e.IGNORE_CACHE_EXPIRATION.equals(eVar) && b8.a(a7)) {
                            z3.g.f().i("Cached settings have expired.");
                        }
                        try {
                            z3.g.f().i("Returning cached settings.");
                            dVar = b8;
                        } catch (Exception e7) {
                            e = e7;
                            dVar = b8;
                            z3.g.f().e("Failed to get cached settings", e);
                            return dVar;
                        }
                    } else {
                        z3.g.f().e("Failed to parse cached settings data.", null);
                    }
                } else {
                    z3.g.f().b("No cached settings data found.");
                }
            }
        } catch (Exception e8) {
            e = e8;
        }
        return dVar;
    }

    public final String n() {
        return AbstractC0353i.q(this.f3575a).getString("existing_instance_identifier", "");
    }

    public Task o(D3.f fVar) {
        return p(e.USE_CACHE, fVar);
    }

    public Task p(e eVar, D3.f fVar) {
        d m6;
        if (!k() && (m6 = m(eVar)) != null) {
            this.f3582h.set(m6);
            ((C2527i) this.f3583i.get()).e(m6);
            return AbstractC2529k.e(null);
        }
        d m7 = m(e.IGNORE_CACHE_EXPIRATION);
        if (m7 != null) {
            this.f3582h.set(m7);
            ((C2527i) this.f3583i.get()).e(m7);
        }
        return this.f3581g.k().r(fVar.f662a, new a(fVar));
    }

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

    public final boolean r(String str) {
        SharedPreferences.Editor edit = AbstractC0353i.q(this.f3575a).edit();
        edit.putString("existing_instance_identifier", str);
        edit.apply();
        return true;
    }
}