导航菜单

页面标题

页面副标题

All File Recovery v1.0.2 - C.java 源代码

正在查看: All File Recovery v1.0.2 应用的 C.java JAVA 源代码文件

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


package c9;

import a9.InterfaceC0472a;
import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import b9.InterfaceC0492a;
import b9.InterfaceC0493b;
import com.google.android.gms.tasks.Task;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import l9.C0665a;

public class C {
    public static final String A = "crash_marker";
    public static final String r = "The Crashlytics build ID is missing. This occurs when the Crashlytics Gradle plugin is missing from your app's build configuration. Please review the Firebase Crashlytics onboarding instructions at https://firebase.google.com/docs/crashlytics/get-started?platform=android#add-plugin";
    public static final int s = 1024;
    public static final int t = 10;
    public static final String u = "com.crashlytics.RequireBuildId";
    public static final boolean v = true;
    public static final int w = 3;
    public static final String x = "com.crashlytics.on-demand.recorded-exceptions";
    public static final String y = "com.crashlytics.on-demand.dropped-exceptions";
    public static final String z = "initialization_marker";
    public final Context a;
    public final L8.h b;
    public final I c;
    public D f;
    public D g;
    public boolean h;
    public C0516p i;
    public final N j;
    public final i9.g k;

    @l.i0
    public final InterfaceC0493b l;
    public final InterfaceC0472a m;
    public final C0513m n;
    public final Z8.a o;
    public final Z8.l p;
    public final d9.j q;
    public final long e = System.currentTimeMillis();
    public final T d = new T();

    public C(L8.h hVar, N n, Z8.a aVar, I i, InterfaceC0493b interfaceC0493b, InterfaceC0472a interfaceC0472a, i9.g gVar, C0513m c0513m, Z8.l lVar, d9.j jVar) {
        this.b = hVar;
        this.c = i;
        this.a = hVar.n();
        this.j = n;
        this.o = aVar;
        this.l = interfaceC0493b;
        this.m = interfaceC0472a;
        this.k = gVar;
        this.n = c0513m;
        this.p = lVar;
        this.q = jVar;
    }

    public static void c(C c, Throwable th) {
        c.i.Y(x, Integer.toString(c.d.a.get()));
        c.i.Y(y, Integer.toString(c.d.b.get()));
        c.i.P(Thread.currentThread(), th);
    }

    public static String u() {
        return Y8.e.d;
    }

    public static boolean v(String str, boolean z2) {
        if (!z2) {
            Z8.g.d.k("Configured not to require a build ID.");
            return true;
        }
        if (!TextUtils.isEmpty(str)) {
            return true;
        }
        Log.e(Z8.g.c, ".");
        Log.e(Z8.g.c, ".     |  | ");
        Log.e(Z8.g.c, ".     |  |");
        Log.e(Z8.g.c, ".     |  |");
        Log.e(Z8.g.c, ".   \\ |  | /");
        Log.e(Z8.g.c, ".    \\    /");
        Log.e(Z8.g.c, ".     \\  /");
        Log.e(Z8.g.c, ".      \\/");
        Log.e(Z8.g.c, ".");
        Log.e(Z8.g.c, r);
        Log.e(Z8.g.c, ".");
        Log.e(Z8.g.c, ".      /\\");
        Log.e(Z8.g.c, ".     /  \\");
        Log.e(Z8.g.c, ".    /    \\");
        Log.e(Z8.g.c, ".   / |  | \\");
        Log.e(Z8.g.c, ".     |  |");
        Log.e(Z8.g.c, ".     |  |");
        Log.e(Z8.g.c, ".     |  |");
        Log.e(Z8.g.c, ".");
        return false;
    }

    public void A() {
        d9.j.c();
        try {
            if (this.f.d()) {
                return;
            }
            Z8.g.d.m("Initialization marker file was not properly removed.");
        } catch (Exception e) {
            Z8.g.d.e("Problem encountered deleting Crashlytics initialization marker.", e);
        }
    }

    public void B() {
        d9.j.c();
        this.f.a();
        Z8.g.d.k("Initialization marker file was created.");
    }

    public boolean C(C0501a c0501a, k9.k kVar) {
        if (!v(c0501a.b, C0509i.i(this.a, u, true))) {
            throw new IllegalStateException(r);
        }
        String str = new C0508h().a;
        try {
            i9.g gVar = this.k;
            this.g = new D(A, gVar);
            this.f = new D(z, gVar);
            e9.p pVar = new e9.p(str, gVar, this.q);
            e9.f fVar = new e9.f(this.k);
            C0665a c0665a = new C0665a(1024, new l9.c(10));
            this.p.b(pVar);
            this.i = new C0516p(this.a, this.j, this.c, this.k, this.g, c0501a, pVar, fVar, g0.j(this.a, this.j, this.k, c0501a, fVar, pVar, c0665a, kVar, this.d, this.n, this.q), this.o, this.m, this.n, this.q);
            boolean p = p();
            l();
            this.i.y(str, Thread.getDefaultUncaughtExceptionHandler(), kVar);
            if (!p || !C0509i.d(this.a)) {
                Z8.g.d.b("Successfully configured exception handler.");
                return true;
            }
            Z8.g.d.b("Crashlytics did not finish previous background initialization. Initializing synchronously.");
            s(kVar);
            return false;
        } catch (Exception e) {
            Z8.g.d.e("Crashlytics was not started due to an exception during initialization", e);
            this.i = null;
            return false;
        }
    }

    public Task<Void> D() {
        return this.i.V();
    }

    public void E(@Nullable Boolean bool) {
        this.c.h(bool);
    }

    public void F(final String str, final String str2) {
        this.q.a.k(new Runnable() {
            @Override
            public final void run() {
                C.this.i.W(str, str2);
            }
        });
    }

    public void G(final Map<String, String> map) {
        if (map.isEmpty()) {
            return;
        }
        this.q.a.k(new Runnable() {
            @Override
            public final void run() {
                C.this.i.X(map);
            }
        });
    }

    public void H(final String str, final String str2) {
        this.q.a.k(new Runnable() {
            @Override
            public final void run() {
                C.this.i.Y(str, str2);
            }
        });
    }

    public void I(final String str) {
        this.q.a.k(new Runnable() {
            @Override
            public final void run() {
                C.this.i.Z(str);
            }
        });
    }

    public final void l() {
        try {
            this.h = Boolean.TRUE.equals((Boolean) this.q.a.i().submit(new Callable() {
                @Override
                public final Object call() {
                    Boolean valueOf;
                    valueOf = Boolean.valueOf(C.this.i.t());
                    return valueOf;
                }
            }).get(3L, TimeUnit.SECONDS));
        } catch (Exception unused) {
            this.h = false;
        }
    }

    @NonNull
    public Task<Boolean> m() {
        return this.i.n();
    }

    public Task<Void> n() {
        return this.i.s();
    }

    public boolean o() {
        return this.h;
    }

    public boolean p() {
        return this.f.c();
    }

    public final void q(k9.k kVar) {
        d9.j.c();
        B();
        try {
            try {
                this.l.a(new InterfaceC0492a() {
                    @Override
                    public final void a(String str) {
                        C.this.x(str);
                    }
                });
                this.i.U();
                if (!kVar.b().b.a) {
                    Z8.g.d.b("Collection of crash reports disabled in Crashlytics settings.");
                    throw new RuntimeException("Collection of crash reports disabled in Crashlytics settings.");
                }
                if (!this.i.A(kVar)) {
                    Z8.g.d.m("Previous sessions could not be finalized.");
                }
                this.i.a0(kVar.a());
                A();
            } catch (Exception e) {
                Z8.g.d.e("Crashlytics encountered a problem during asynchronous initialization.", e);
                A();
            }
        } catch (Throwable th) {
            A();
            throw th;
        }
    }

    @J8.a
    public Task<Void> r(final k9.k kVar) {
        return this.q.a.k(new Runnable() {
            @Override
            public final void run() {
                C.this.q(kVar);
            }
        });
    }

    public final void s(final k9.k kVar) {
        Future<?> submit = this.q.a.i().submit(new Runnable() {
            @Override
            public final void run() {
                C.this.q(kVar);
            }
        });
        Z8.g.d.b("Crashlytics detected incomplete initialization on previous app launch. Will initialize synchronously.");
        try {
            submit.get(3L, TimeUnit.SECONDS);
        } catch (InterruptedException e) {
            Z8.g.d.e("Crashlytics was interrupted during initialization.", e);
            Thread.currentThread().interrupt();
        } catch (ExecutionException e2) {
            Z8.g.d.e("Crashlytics encountered a problem during initialization.", e2);
        } catch (TimeoutException e3) {
            Z8.g.d.e("Crashlytics timed out during initialization.", e3);
        }
    }

    public C0516p t() {
        return this.i;
    }

    public boolean w() {
        return this.c.d();
    }

    public void x(final String str) {
        final long currentTimeMillis = System.currentTimeMillis() - this.e;
        this.q.a.k(new Runnable() {
            @Override
            public final void run() {
                r0.q.b.k(new Runnable() {
                    @Override
                    public final void run() {
                        C.this.i.e0(r2, r4);
                    }
                });
            }
        });
    }

    public void y(@NonNull final Throwable th, @NonNull final Map<String, String> map) {
        this.q.a.k(new Runnable() {
            @Override
            public final void run() {
                C.this.i.d0(Thread.currentThread(), th, map);
            }
        });
    }

    public void z(final Throwable th) {
        Z8.g gVar = Z8.g.d;
        gVar.b("Recorded on-demand fatal events: " + this.d.a.get());
        gVar.b("Dropped on-demand fatal events: " + this.d.b.get());
        this.q.a.k(new Runnable() {
            @Override
            public final void run() {
                C.c(C.this, th);
            }
        });
    }
}