导航菜单

页面标题

页面副标题

Kredinesia v8.3.1 - c.java 源代码

正在查看: Kredinesia v8.3.1 应用的 c.java JAVA 源代码文件

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


package n5;

import J1.l;
import K4.m;
import M3.O2;
import W3.o;
import android.net.TrafficStats;
import android.text.TextUtils;
import android.util.Log;
import androidx.fragment.app.C0563y;
import androidx.recyclerview.widget.n0;
import com.google.api.client.http.HttpMethods;
import com.google.firebase.installations.FirebaseInstallationsException;
import i9.k;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.regex.Pattern;
import m5.InterfaceC1611b;
import org.json.JSONException;
import org.json.JSONObject;
import p5.C1702a;
import p5.C1703b;
import p5.C1704c;
import p5.C1705d;
import r3.C;
import t.AbstractC1870n;

public final class c implements d {

    public static final Object f12941m = new Object();
    public final C4.g a;

    public final C1704c f12942b;

    public final C0563y f12943c;

    public final i f12944d;

    public final m f12945e;

    public final g f12946f;

    public final Object f12947g;
    public final ExecutorService h;

    public final L4.i f12948i;

    public String f12949j;

    public final HashSet f12950k;

    public final ArrayList f12951l;

    static {
        new AtomicInteger(1);
    }

    public c(C4.g gVar, InterfaceC1611b interfaceC1611b, ExecutorService executorService, L4.i iVar) {
        gVar.a();
        C1704c c1704c = new C1704c(gVar.a, interfaceC1611b);
        C0563y c0563y = new C0563y(gVar);
        if (y8.i.a == null) {
            y8.i.a = new y8.i();
        }
        y8.i iVar2 = y8.i.a;
        if (i.f12956d == null) {
            i.f12956d = new i(iVar2);
        }
        i iVar3 = i.f12956d;
        m mVar = new m(new K4.d(2, gVar));
        g gVar2 = new g();
        this.f12947g = new Object();
        this.f12950k = new HashSet();
        this.f12951l = new ArrayList();
        this.a = gVar;
        this.f12942b = c1704c;
        this.f12943c = c0563y;
        this.f12944d = iVar3;
        this.f12945e = mVar;
        this.f12946f = gVar2;
        this.h = executorService;
        this.f12948i = iVar;
    }

    public final void a(h hVar) {
        synchronized (this.f12947g) {
            this.f12951l.add(hVar);
        }
    }

    public final void b() {
        throw new UnsupportedOperationException("Method not decompiled: n5.c.b():void");
    }

    public final o5.a c(o5.a aVar) {
        int responseCode;
        C1703b f10;
        C4.g gVar = this.a;
        gVar.a();
        String str = gVar.f579c.a;
        gVar.a();
        String str2 = gVar.f579c.f591g;
        String str3 = aVar.f13073d;
        C1704c c1704c = this.f12942b;
        C1705d c1705d = c1704c.f13376c;
        if (!c1705d.b()) {
            throw new FirebaseInstallationsException("Firebase Installations Service is unavailable. Please try again later.");
        }
        URL a = C1704c.a("projects/" + str2 + "/installations/" + aVar.a + "/authTokens:generate");
        for (int i4 = 0; i4 <= 1; i4++) {
            TrafficStats.setThreadStatsTag(32771);
            HttpURLConnection c5 = c1704c.c(a, str);
            try {
                try {
                    c5.setRequestMethod(HttpMethods.POST);
                    c5.addRequestProperty("Authorization", "FIS_v2 " + str3);
                    c5.setDoOutput(true);
                    C1704c.h(c5);
                    responseCode = c5.getResponseCode();
                    c1705d.d(responseCode);
                } catch (Throwable th) {
                    c5.disconnect();
                    TrafficStats.clearThreadStatsTag();
                    throw th;
                }
            } catch (IOException | AssertionError unused) {
            }
            if (responseCode >= 200 && responseCode < 300) {
                f10 = C1704c.f(c5);
            } else {
                C1704c.b(c5, null, str, str2);
                if (responseCode == 401 || responseCode == 404) {
                    l a10 = C1703b.a();
                    a10.f1346b = 3;
                    f10 = a10.b();
                } else {
                    if (responseCode == 429) {
                        throw new FirebaseInstallationsException("Firebase servers have received too many requests from this client in a short period of time. Please try again later.");
                    }
                    if (responseCode < 500 || responseCode >= 600) {
                        Log.e("Firebase-Installations", "Firebase Installations can not communicate with Firebase server APIs due to invalid configuration. Please update your Firebase initialization process and set valid Firebase options (API key, Project ID, Application ID) when initializing Firebase.");
                        l a11 = C1703b.a();
                        a11.f1346b = 2;
                        f10 = a11.b();
                    }
                    c5.disconnect();
                    TrafficStats.clearThreadStatsTag();
                }
            }
            c5.disconnect();
            TrafficStats.clearThreadStatsTag();
            int e10 = AbstractC1870n.e(f10.f13372c);
            if (e10 == 0) {
                i iVar = this.f12944d;
                iVar.getClass();
                TimeUnit timeUnit = TimeUnit.MILLISECONDS;
                iVar.a.getClass();
                long seconds = timeUnit.toSeconds(System.currentTimeMillis());
                k a12 = aVar.a();
                a12.f11351c = f10.a;
                a12.f11353e = Long.valueOf(f10.f13371b);
                a12.f11354f = Long.valueOf(seconds);
                return a12.i();
            }
            if (e10 == 1) {
                k a13 = aVar.a();
                a13.f11355g = "BAD CONFIG";
                a13.a = 5;
                return a13.i();
            }
            if (e10 != 2) {
                throw new FirebaseInstallationsException("Firebase Installations Service is unavailable. Please try again later.");
            }
            l(null);
            k a14 = aVar.a();
            a14.a = 2;
            return a14.i();
        }
        throw new FirebaseInstallationsException("Firebase Installations Service is unavailable. Please try again later.");
    }

    public final o d() {
        String str;
        g();
        synchronized (this) {
            str = this.f12949j;
        }
        if (str != null) {
            return O2.e(str);
        }
        W3.h hVar = new W3.h();
        a(new f(hVar));
        o oVar = hVar.a;
        this.h.execute(new RunnableC1647b(this, 0));
        return oVar;
    }

    public final o e() {
        g();
        W3.h hVar = new W3.h();
        a(new e(this.f12944d, hVar));
        this.h.execute(new RunnableC1647b(this, 2));
        return hVar.a;
    }

    public final void f(o5.a aVar) {
        synchronized (f12941m) {
            try {
                C4.g gVar = this.a;
                gVar.a();
                n0 o10 = n0.o(gVar.a);
                try {
                    this.f12943c.p(aVar);
                    if (o10 != null) {
                        o10.E();
                    }
                } catch (Throwable th) {
                    if (o10 != null) {
                        o10.E();
                    }
                    throw th;
                }
            } catch (Throwable th2) {
                throw th2;
            }
        }
    }

    public final void g() {
        C4.g gVar = this.a;
        gVar.a();
        C.f(gVar.f579c.f586b, "Please set your Application ID. A valid Firebase App ID is required to communicate with Firebase server APIs: It identifies your application with Firebase.Please refer to https://firebase.google.com/support/privacy/init-options.");
        gVar.a();
        C.f(gVar.f579c.f591g, "Please set your Project ID. A valid Firebase Project ID is required to communicate with Firebase server APIs: It identifies your application with Firebase.Please refer to https://firebase.google.com/support/privacy/init-options.");
        gVar.a();
        C.f(gVar.f579c.a, "Please set a valid API key. A Firebase API key is required to communicate with Firebase server APIs: It authenticates your project with Google.Please refer to https://firebase.google.com/support/privacy/init-options.");
        gVar.a();
        String str = gVar.f579c.f586b;
        Pattern pattern = i.f12955c;
        C.a("Please set your Application ID. A valid Firebase App ID is required to communicate with Firebase server APIs: It identifies your application with Firebase.Please refer to https://firebase.google.com/support/privacy/init-options.", str.contains(":"));
        gVar.a();
        C.a("Please set a valid API key. A Firebase API key is required to communicate with Firebase server APIs: It authenticates your project with Google.Please refer to https://firebase.google.com/support/privacy/init-options.", i.f12955c.matcher(gVar.f579c.a).matches());
    }

    public final java.lang.String h(o5.a r3) {
        throw new UnsupportedOperationException("Method not decompiled: n5.c.h(o5.a):java.lang.String");
    }

    public final o5.a i(o5.a aVar) {
        int responseCode;
        String str = aVar.a;
        String str2 = null;
        if (str != null && str.length() == 11) {
            o5.b bVar = (o5.b) this.f12945e.get();
            synchronized (bVar.a) {
                try {
                    String[] strArr = o5.b.f13077c;
                    int i4 = 0;
                    while (true) {
                        if (i4 < 4) {
                            String str3 = strArr[i4];
                            String string = bVar.a.getString("|T|" + bVar.f13078b + "|" + str3, null);
                            if (string == null || string.isEmpty()) {
                                i4++;
                            } else if (string.startsWith("{")) {
                                try {
                                    str2 = new JSONObject(string).getString("token");
                                } catch (JSONException unused) {
                                }
                            } else {
                                str2 = string;
                            }
                        }
                    }
                } finally {
                }
            }
        }
        C1704c c1704c = this.f12942b;
        C4.g gVar = this.a;
        gVar.a();
        String str4 = gVar.f579c.a;
        String str5 = aVar.a;
        C4.g gVar2 = this.a;
        gVar2.a();
        String str6 = gVar2.f579c.f591g;
        C4.g gVar3 = this.a;
        gVar3.a();
        String str7 = gVar3.f579c.f586b;
        C1705d c1705d = c1704c.f13376c;
        if (!c1705d.b()) {
            throw new FirebaseInstallationsException("Firebase Installations Service is unavailable. Please try again later.");
        }
        URL a = C1704c.a("projects/" + str6 + "/installations");
        int i10 = 0;
        C1702a c1702a = c1704c;
        while (i10 <= 1) {
            TrafficStats.setThreadStatsTag(32769);
            HttpURLConnection c5 = c1702a.c(a, str4);
            try {
                try {
                    c5.setRequestMethod(HttpMethods.POST);
                    c5.setDoOutput(true);
                    if (str2 != null) {
                        c5.addRequestProperty("x-goog-fis-android-iid-migration-auth", str2);
                    }
                    C1704c.g(c5, str5, str7);
                    responseCode = c5.getResponseCode();
                    c1705d.d(responseCode);
                } catch (IOException | AssertionError unused2) {
                }
                if (responseCode >= 200 && responseCode < 300) {
                    C1702a e10 = C1704c.e(c5);
                    c5.disconnect();
                    TrafficStats.clearThreadStatsTag();
                    c1702a = e10;
                } else {
                    try {
                        C1704c.b(c5, str7, str4, str6);
                    } catch (IOException | AssertionError unused3) {
                        c5.disconnect();
                        TrafficStats.clearThreadStatsTag();
                        i10++;
                        c1702a = c1702a;
                    }
                    if (responseCode == 429) {
                        throw new FirebaseInstallationsException("Firebase servers have received too many requests from this client in a short period of time. Please try again later.");
                    }
                    if (responseCode < 500 || responseCode >= 600) {
                        Log.e("Firebase-Installations", "Firebase Installations can not communicate with Firebase server APIs due to invalid configuration. Please update your Firebase initialization process and set valid Firebase options (API key, Project ID, Application ID) when initializing Firebase.");
                        C1702a c1702a2 = new C1702a(null, null, null, null, 2);
                        c5.disconnect();
                        TrafficStats.clearThreadStatsTag();
                        c1702a = c1702a2;
                    } else {
                        c5.disconnect();
                        TrafficStats.clearThreadStatsTag();
                        i10++;
                        c1702a = c1702a;
                    }
                }
                int e11 = AbstractC1870n.e(c1702a.f13370e);
                if (e11 != 0) {
                    if (e11 != 1) {
                        throw new FirebaseInstallationsException("Firebase Installations Service is unavailable. Please try again later.");
                    }
                    k a10 = aVar.a();
                    a10.f11355g = "BAD CONFIG";
                    a10.a = 5;
                    return a10.i();
                }
                String str8 = c1702a.f13367b;
                String str9 = c1702a.f13368c;
                i iVar = this.f12944d;
                iVar.getClass();
                TimeUnit timeUnit = TimeUnit.MILLISECONDS;
                iVar.a.getClass();
                long seconds = timeUnit.toSeconds(System.currentTimeMillis());
                C1703b c1703b = c1702a.f13369d;
                String str10 = c1703b.a;
                long j10 = c1703b.f13371b;
                k a11 = aVar.a();
                a11.f11350b = str8;
                a11.a = 4;
                a11.f11351c = str10;
                a11.f11352d = str9;
                a11.f11353e = Long.valueOf(j10);
                a11.f11354f = Long.valueOf(seconds);
                return a11.i();
            } finally {
                c5.disconnect();
                TrafficStats.clearThreadStatsTag();
            }
        }
        throw new FirebaseInstallationsException("Firebase Installations Service is unavailable. Please try again later.");
    }

    public final void j(Exception exc) {
        synchronized (this.f12947g) {
            try {
                Iterator it = this.f12951l.iterator();
                while (it.hasNext()) {
                    if (((h) it.next()).b(exc)) {
                        it.remove();
                    }
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    public final void k(o5.a aVar) {
        synchronized (this.f12947g) {
            try {
                Iterator it = this.f12951l.iterator();
                while (it.hasNext()) {
                    if (((h) it.next()).a(aVar)) {
                        it.remove();
                    }
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    public final synchronized void l(String str) {
        this.f12949j = str;
    }

    public final synchronized void m(o5.a aVar, o5.a aVar2) {
        try {
            if (this.f12950k.size() != 0 && !TextUtils.equals(aVar.a, aVar2.a)) {
                Iterator it = this.f12950k.iterator();
                if (it.hasNext()) {
                    if (it.next() != null) {
                        throw new ClassCastException();
                    }
                    throw null;
                }
            }
        } finally {
        }
    }
}