导航菜单

页面标题

页面副标题

Minits v4.9.3.32 - g.java 源代码

正在查看: Minits v4.9.3.32 应用的 g.java JAVA 源代码文件

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


package K5;

import K5.i;
import M5.d;
import M5.f;
import android.text.TextUtils;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
import m4.AbstractC2562l;
import m4.C2563m;
import s5.C3050e;
import u3.AbstractC3204t;
import x5.x;

public class g implements h {

    public static final Object f3080m = new Object();

    public static final ThreadFactory f3081n = new a();

    public final C3050e f3082a;

    public final M5.c f3083b;

    public final L5.c f3084c;

    public final p f3085d;

    public final x f3086e;

    public final n f3087f;

    public final Object f3088g;

    public final ExecutorService f3089h;

    public final Executor f3090i;

    public String f3091j;

    public Set f3092k;

    public final List f3093l;

    public class a implements ThreadFactory {

        public final AtomicInteger f3094a = new AtomicInteger(1);

        @Override
        public Thread newThread(Runnable runnable) {
            return new Thread(runnable, String.format("firebase-installations-executor-%d", Integer.valueOf(this.f3094a.getAndIncrement())));
        }
    }

    public static class b {

        public static final int[] f3095a;

        public static final int[] f3096b;

        static {
            int[] iArr = new int[f.b.values().length];
            f3096b = iArr;
            try {
                iArr[f.b.OK.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                f3096b[f.b.BAD_CONFIG.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                f3096b[f.b.AUTH_ERROR.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            int[] iArr2 = new int[d.b.values().length];
            f3095a = iArr2;
            try {
                iArr2[d.b.OK.ordinal()] = 1;
            } catch (NoSuchFieldError unused4) {
            }
            try {
                f3095a[d.b.BAD_CONFIG.ordinal()] = 2;
            } catch (NoSuchFieldError unused5) {
            }
        }
    }

    public g(final C3050e c3050e, J5.b bVar, ExecutorService executorService, Executor executor) {
        this(executorService, executor, c3050e, new M5.c(c3050e.j(), bVar), new L5.c(c3050e), p.c(), new x(new J5.b() {
            @Override
            public final Object get() {
                return g.e(C3050e.this);
            }
        }), new n());
    }

    public static L5.b e(C3050e c3050e) {
        return new L5.b(c3050e);
    }

    public static g p() {
        return q(C3050e.k());
    }

    public static g q(C3050e c3050e) {
        AbstractC3204t.b(c3050e != null, "Null is not a valid value of FirebaseApp.");
        return (g) c3050e.i(h.class);
    }

    public final synchronized void A(String str) {
        this.f3091j = str;
    }

    public final synchronized void B(L5.d dVar, L5.d dVar2) {
        if (this.f3092k.size() != 0 && !TextUtils.equals(dVar.d(), dVar2.d())) {
            Iterator it = this.f3092k.iterator();
            if (it.hasNext()) {
                android.support.v4.media.session.b.a(it.next());
                dVar2.d();
                throw null;
            }
        }
    }

    @Override
    public AbstractC2562l a(final boolean z8) {
        v();
        AbstractC2562l f8 = f();
        this.f3089h.execute(new Runnable() {
            @Override
            public final void run() {
                g.this.j(z8);
            }
        });
        return f8;
    }

    public final AbstractC2562l f() {
        C2563m c2563m = new C2563m();
        h(new k(this.f3085d, c2563m));
        return c2563m.a();
    }

    public final AbstractC2562l g() {
        C2563m c2563m = new C2563m();
        h(new l(c2563m));
        return c2563m.a();
    }

    @Override
    public AbstractC2562l getId() {
        v();
        String n8 = n();
        if (n8 != null) {
            return m4.o.f(n8);
        }
        AbstractC2562l g8 = g();
        this.f3089h.execute(new Runnable() {
            @Override
            public final void run() {
                g.this.j(false);
            }
        });
        return g8;
    }

    public final void h(o oVar) {
        synchronized (this.f3088g) {
            this.f3093l.add(oVar);
        }
    }

    public final void i(boolean r3) {
        throw new UnsupportedOperationException("Method not decompiled: K5.g.i(boolean):void");
    }

    public final void j(final boolean z8) {
        L5.d s8 = s();
        if (z8) {
            s8 = s8.p();
        }
        z(s8);
        this.f3090i.execute(new Runnable() {
            @Override
            public final void run() {
                g.this.i(z8);
            }
        });
    }

    public final L5.d k(L5.d dVar) {
        M5.f e8 = this.f3083b.e(l(), dVar.d(), t(), dVar.f());
        int i8 = b.f3096b[e8.b().ordinal()];
        if (i8 == 1) {
            return dVar.o(e8.c(), e8.d(), this.f3085d.b());
        }
        if (i8 == 2) {
            return dVar.q("BAD CONFIG");
        }
        if (i8 != 3) {
            throw new i("Firebase Installations Service is unavailable. Please try again later.", i.a.UNAVAILABLE);
        }
        A(null);
        return dVar.r();
    }

    public String l() {
        return this.f3082a.m().b();
    }

    public String m() {
        return this.f3082a.m().c();
    }

    public final synchronized String n() {
        return this.f3091j;
    }

    public final L5.b o() {
        return (L5.b) this.f3086e.get();
    }

    public final L5.d r() {
        L5.d d8;
        synchronized (f3080m) {
            try {
                K5.b a8 = K5.b.a(this.f3082a.j(), "generatefid.lock");
                try {
                    d8 = this.f3084c.d();
                    if (a8 != null) {
                        a8.b();
                    }
                } catch (Throwable th) {
                    if (a8 != null) {
                        a8.b();
                    }
                    throw th;
                }
            } catch (Throwable th2) {
                throw th2;
            }
        }
        return d8;
    }

    public final L5.d s() {
        L5.d d8;
        synchronized (f3080m) {
            try {
                K5.b a8 = K5.b.a(this.f3082a.j(), "generatefid.lock");
                try {
                    d8 = this.f3084c.d();
                    if (d8.j()) {
                        d8 = this.f3084c.b(d8.t(w(d8)));
                    }
                    if (a8 != null) {
                        a8.b();
                    }
                } catch (Throwable th) {
                    if (a8 != null) {
                        a8.b();
                    }
                    throw th;
                }
            } catch (Throwable th2) {
                throw th2;
            }
        }
        return d8;
    }

    public String t() {
        return this.f3082a.m().e();
    }

    public final void u(L5.d dVar) {
        synchronized (f3080m) {
            try {
                K5.b a8 = K5.b.a(this.f3082a.j(), "generatefid.lock");
                try {
                    this.f3084c.b(dVar);
                    if (a8 != null) {
                        a8.b();
                    }
                } catch (Throwable th) {
                    if (a8 != null) {
                        a8.b();
                    }
                    throw th;
                }
            } catch (Throwable th2) {
                throw th2;
            }
        }
    }

    public final void v() {
        AbstractC3204t.g(m(), "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.");
        AbstractC3204t.g(t(), "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.");
        AbstractC3204t.g(l(), "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.");
        AbstractC3204t.b(p.h(m()), "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.");
        AbstractC3204t.b(p.g(l()), "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.");
    }

    public final String w(L5.d dVar) {
        if ((!this.f3082a.l().equals("CHIME_ANDROID_SDK") && !this.f3082a.t()) || !dVar.m()) {
            return this.f3087f.a();
        }
        String f8 = o().f();
        return TextUtils.isEmpty(f8) ? this.f3087f.a() : f8;
    }

    public final L5.d x(L5.d dVar) {
        M5.d d8 = this.f3083b.d(l(), dVar.d(), t(), m(), (dVar.d() == null || dVar.d().length() != 11) ? null : o().i());
        int i8 = b.f3095a[d8.e().ordinal()];
        if (i8 == 1) {
            return dVar.s(d8.c(), d8.d(), this.f3085d.b(), d8.b().c(), d8.b().d());
        }
        if (i8 == 2) {
            return dVar.q("BAD CONFIG");
        }
        throw new i("Firebase Installations Service is unavailable. Please try again later.", i.a.UNAVAILABLE);
    }

    public final void y(Exception exc) {
        synchronized (this.f3088g) {
            try {
                Iterator it = this.f3093l.iterator();
                while (it.hasNext()) {
                    if (((o) it.next()).a(exc)) {
                        it.remove();
                    }
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    public final void z(L5.d dVar) {
        synchronized (this.f3088g) {
            try {
                Iterator it = this.f3093l.iterator();
                while (it.hasNext()) {
                    if (((o) it.next()).b(dVar)) {
                        it.remove();
                    }
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    public g(ExecutorService executorService, Executor executor, C3050e c3050e, M5.c cVar, L5.c cVar2, p pVar, x xVar, n nVar) {
        this.f3088g = new Object();
        this.f3092k = new HashSet();
        this.f3093l = new ArrayList();
        this.f3082a = c3050e;
        this.f3083b = cVar;
        this.f3084c = cVar2;
        this.f3085d = pVar;
        this.f3086e = xVar;
        this.f3087f = nVar;
        this.f3089h = executorService;
        this.f3090i = executor;
    }
}