Brazzers Premium v2.1.5版本的 MD5 值为:822198ebc1561433ac78052c8b72a0ea

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


package z9;

import android.net.TrafficStats;
import android.text.TextUtils;
import android.util.Log;
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.List;
import java.util.Objects;
import java.util.Set;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern;
import org.json.JSONException;
import org.json.JSONObject;
import r7.i;
import r7.j;
import r7.m;
import r7.u;
public class b implements c {
    public static final Object f12340m = new Object();
    public static final ThreadFactory f12341n = new a();
    public final com.google.firebase.a f12342a;
    public final ca.d f12343b;
    public final ba.e f12344c;
    public final h f12345d;
    public final ba.c f12346e;
    public final g f12347f;
    public final Object f12348g;
    public final ExecutorService f12349h;
    public final ExecutorService f12350i;
    public String f12351j;
    public Set f12352k;
    public final List f12353l;

    public b(com.google.firebase.a aVar, y9.c cVar, y9.c cVar2) {
        TimeUnit timeUnit = TimeUnit.SECONDS;
        LinkedBlockingQueue linkedBlockingQueue = new LinkedBlockingQueue();
        ThreadFactory threadFactory = f12341n;
        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(0, 1, 30L, timeUnit, linkedBlockingQueue, threadFactory);
        aVar.a();
        ca.d dVar = new ca.d(aVar.f2917a, cVar, cVar2);
        ba.e eVar = new ba.e(aVar);
        h c10 = h.c();
        ba.c cVar3 = new ba.c(aVar);
        g gVar = new g();
        this.f12348g = new Object();
        this.f12352k = new HashSet();
        this.f12353l = new ArrayList();
        this.f12342a = aVar;
        this.f12343b = dVar;
        this.f12344c = eVar;
        this.f12345d = c10;
        this.f12346e = cVar3;
        this.f12347f = gVar;
        this.f12349h = threadPoolExecutor;
        this.f12350i = new ThreadPoolExecutor(0, 1, 30L, timeUnit, new LinkedBlockingQueue(), threadFactory);
    }

    public static b e() {
        com.google.firebase.a b10 = com.google.firebase.a.b();
        com.google.android.gms.common.internal.d.b(true, "Null is not a valid value of FirebaseApp.");
        b10.a();
        return (b) b10.f2920d.a(c.class);
    }

    public final ba.b a(ba.b bVar) {
        int responseCode;
        ca.c f10;
        ca.d dVar = this.f12343b;
        String b10 = b();
        String str = bVar.f1812a;
        String f11 = f();
        String str2 = bVar.f1815d;
        if (dVar.f2044d.a()) {
            URL a10 = dVar.a(String.format("projects/%s/installations/%s/authTokens:generate", f11, str));
            for (int i10 = 0; i10 <= 1; i10++) {
                TrafficStats.setThreadStatsTag(32771);
                HttpURLConnection c10 = dVar.c(a10, b10);
                try {
                    c10.setRequestMethod("POST");
                    c10.addRequestProperty("Authorization", "FIS_v2 " + str2);
                    c10.setDoOutput(true);
                    dVar.h(c10);
                    responseCode = c10.getResponseCode();
                    dVar.f2044d.b(responseCode);
                } catch (IOException | AssertionError unused) {
                } catch (Throwable th) {
                    c10.disconnect();
                    TrafficStats.clearThreadStatsTag();
                    throw th;
                }
                if (responseCode >= 200 && responseCode < 300) {
                    f10 = dVar.f(c10);
                } else {
                    ca.d.b(c10, null, b10, f11);
                    if (responseCode != 401 && responseCode != 404) {
                        if (responseCode == 429) {
                            throw new d("Firebase servers have received too many requests from this client in a short period of time. Please try again later.", 3);
                        }
                        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.");
                            ca.b a11 = ca.c.a();
                            a11.f2035c = ca.g.BAD_CONFIG;
                            f10 = a11.a();
                        } else {
                            c10.disconnect();
                            TrafficStats.clearThreadStatsTag();
                        }
                    }
                    ca.b a12 = ca.c.a();
                    a12.f2035c = ca.g.AUTH_ERROR;
                    f10 = a12.a();
                }
                c10.disconnect();
                TrafficStats.clearThreadStatsTag();
                int ordinal = f10.f2038c.ordinal();
                if (ordinal == 0) {
                    String str3 = f10.f2036a;
                    long j10 = f10.f2037b;
                    long b11 = this.f12345d.b();
                    ba.a b12 = bVar.b();
                    b12.f1806c = str3;
                    b12.f1808e = Long.valueOf(j10);
                    b12.f1809f = Long.valueOf(b11);
                    return b12.a();
                } else if (ordinal == 1) {
                    ba.a b13 = bVar.b();
                    b13.f1810g = "BAD CONFIG";
                    b13.c(ba.d.REGISTER_ERROR);
                    return b13.a();
                } else if (ordinal == 2) {
                    synchronized (this) {
                        this.f12351j = null;
                    }
                    ba.a b14 = bVar.b();
                    b14.c(ba.d.NOT_GENERATED);
                    return b14.a();
                } else {
                    throw new d("Firebase Installations Service is unavailable. Please try again later.", 2);
                }
            }
            throw new d("Firebase Installations Service is unavailable. Please try again later.", 2);
        }
        throw new d("Firebase Installations Service is unavailable. Please try again later.", 2);
    }

    public String b() {
        com.google.firebase.a aVar = this.f12342a;
        aVar.a();
        return aVar.f2919c.f11974a;
    }

    public String c() {
        com.google.firebase.a aVar = this.f12342a;
        aVar.a();
        return aVar.f2919c.f11975b;
    }

    public i d() {
        String str;
        com.google.android.gms.common.internal.d.f(c(), "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.");
        com.google.android.gms.common.internal.d.f(f(), "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.");
        com.google.android.gms.common.internal.d.f(b(), "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.");
        String c10 = c();
        Pattern pattern = h.f12359c;
        com.google.android.gms.common.internal.d.b(c10.contains(":"), "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.");
        com.google.android.gms.common.internal.d.b(h.f12359c.matcher(b()).matches(), "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.");
        synchronized (this) {
            str = this.f12351j;
        }
        if (str != null) {
            return m.b(str);
        }
        j jVar = new j();
        f fVar = new f(jVar);
        synchronized (this.f12348g) {
            this.f12353l.add(fVar);
        }
        u uVar = jVar.f9269a;
        this.f12349h.execute(new z0.f(this));
        return uVar;
    }

    public String f() {
        com.google.firebase.a aVar = this.f12342a;
        aVar.a();
        return aVar.f2919c.f11980g;
    }

    public final String g(ba.b bVar) {
        String string;
        com.google.firebase.a aVar = this.f12342a;
        aVar.a();
        if (aVar.f2918b.equals("CHIME_ANDROID_SDK") || this.f12342a.g()) {
            if (bVar.f1813b == ba.d.ATTEMPT_MIGRATION) {
                ba.c cVar = this.f12346e;
                synchronized (cVar.f1820a) {
                    synchronized (cVar.f1820a) {
                        string = cVar.f1820a.getString("|S|id", null);
                    }
                    if (string == null) {
                        string = cVar.a();
                    }
                }
                return TextUtils.isEmpty(string) ? this.f12347f.a() : string;
            }
        }
        return this.f12347f.a();
    }

    public final ba.b h(ba.b bVar) {
        int responseCode;
        ca.a e10;
        String str = bVar.f1812a;
        String str2 = null;
        if (str != null && str.length() == 11) {
            ba.c cVar = this.f12346e;
            synchronized (cVar.f1820a) {
                String[] strArr = ba.c.f1819c;
                int length = strArr.length;
                int i10 = 0;
                while (true) {
                    if (i10 >= length) {
                        break;
                    }
                    String str3 = strArr[i10];
                    String str4 = cVar.f1821b;
                    String string = cVar.f1820a.getString("|T|" + str4 + "|" + str3, null);
                    if (string == null || string.isEmpty()) {
                        i10++;
                    } else if (string.startsWith("{")) {
                        try {
                            str2 = new JSONObject(string).getString("token");
                        } catch (JSONException unused) {
                        }
                    } else {
                        str2 = string;
                    }
                }
            }
        }
        ca.d dVar = this.f12343b;
        String b10 = b();
        String str5 = bVar.f1812a;
        String f10 = f();
        String c10 = c();
        if (dVar.f2044d.a()) {
            URL a10 = dVar.a(String.format("projects/%s/installations", f10));
            int i11 = 0;
            for (?? r92 = 1; i11 <= r92; r92 = 1) {
                TrafficStats.setThreadStatsTag(32769);
                HttpURLConnection c11 = dVar.c(a10, b10);
                try {
                    c11.setRequestMethod("POST");
                    c11.setDoOutput(r92);
                    if (str2 != null) {
                        c11.addRequestProperty("x-goog-fis-android-iid-migration-auth", str2);
                    }
                    dVar.g(c11, str5, c10);
                    responseCode = c11.getResponseCode();
                    dVar.f2044d.b(responseCode);
                } catch (IOException | AssertionError unused2) {
                } catch (Throwable th) {
                    c11.disconnect();
                    TrafficStats.clearThreadStatsTag();
                    throw th;
                }
                if (responseCode >= 200 && responseCode < 300) {
                    e10 = dVar.e(c11);
                    c11.disconnect();
                    TrafficStats.clearThreadStatsTag();
                } else {
                    ca.d.b(c11, c10, b10, f10);
                    if (responseCode == 429) {
                        throw new d("Firebase servers have received too many requests from this client in a short period of time. Please try again later.", 3);
                    }
                    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.");
                        ca.a aVar = new ca.a(null, null, null, null, ca.e.BAD_CONFIG, null);
                        c11.disconnect();
                        TrafficStats.clearThreadStatsTag();
                        e10 = aVar;
                    } else {
                        c11.disconnect();
                        TrafficStats.clearThreadStatsTag();
                        i11++;
                    }
                }
                int ordinal = e10.f2032e.ordinal();
                if (ordinal != 0) {
                    if (ordinal == r92) {
                        ba.a b11 = bVar.b();
                        b11.f1810g = "BAD CONFIG";
                        b11.c(ba.d.REGISTER_ERROR);
                        return b11.a();
                    }
                    throw new d("Firebase Installations Service is unavailable. Please try again later.", 2);
                }
                String str6 = e10.f2029b;
                String str7 = e10.f2030c;
                long b12 = this.f12345d.b();
                ca.c cVar2 = e10.f2031d;
                String str8 = cVar2.f2036a;
                long j10 = cVar2.f2037b;
                ba.a b13 = bVar.b();
                b13.f1804a = str6;
                b13.c(ba.d.REGISTERED);
                b13.f1806c = str8;
                b13.f1807d = str7;
                b13.f1808e = Long.valueOf(j10);
                b13.f1809f = Long.valueOf(b12);
                return b13.a();
            }
            throw new d("Firebase Installations Service is unavailable. Please try again later.", 2);
        }
        throw new d("Firebase Installations Service is unavailable. Please try again later.", 2);
    }

    public final void i(Exception exc) {
        synchronized (this.f12348g) {
            for (f fVar : this.f12353l) {
                Objects.requireNonNull(fVar);
            }
        }
    }

    public final void j(ba.b bVar) {
        synchronized (this.f12348g) {
            Iterator it = this.f12353l.iterator();
            while (it.hasNext()) {
                f fVar = (f) it.next();
                Objects.requireNonNull(fVar);
                ba.d dVar = bVar.f1813b;
                boolean z10 = true;
                if (!(dVar == ba.d.UNREGISTERED)) {
                    if (!(dVar == ba.d.REGISTERED) && !bVar.a()) {
                        z10 = false;
                        if (!z10) {
                            it.remove();
                        }
                    }
                }
                fVar.f12355a.b(bVar.f1812a);
                if (!z10) {
                }
            }
        }
    }
}