导航菜单

页面标题

页面副标题

FileWipe Pro v3.0.0 - c.java 源代码

正在查看: FileWipe Pro v3.0.0 应用的 c.java JAVA 源代码文件

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


package i9;

import android.net.TrafficStats;
import com.google.android.gms.common.api.internal.p0;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.TaskCompletionSource;
import com.google.android.gms.tasks.Tasks;
import com.mbridge.msdk.mbbid.out.BidResponsed;
import h8.m;
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 org.json.JSONException;
import org.json.JSONObject;
import t2.r;

public final class c implements d {
    public static final Object m = new Object();

    public final a8.h f16230a;

    public final k9.c f16231b;

    public final r f16232c;

    public final j f16233d;

    public final m f16234e;

    public final h f16235f;

    public final Object f16236g;

    public final ExecutorService f16237h;

    public final i8.m f16238i;

    public String f16239j;

    public final HashSet f16240k;
    public final ArrayList l;

    static {
        new AtomicInteger(1);
    }

    public c(a8.h hVar, h9.b bVar, ExecutorService executorService, i8.m mVar) {
        hVar.a();
        k9.c cVar = new k9.c(hVar.f234a, bVar);
        r rVar = new r(7, hVar);
        if (ha.c.f15962b == null) {
            ha.c.f15962b = new ha.c(3);
        }
        ha.c cVar2 = ha.c.f15962b;
        if (j.f16248d == null) {
            j.f16248d = new j(cVar2);
        }
        j jVar = j.f16248d;
        m mVar2 = new m(new h8.d(2, hVar));
        h hVar2 = new h();
        this.f16236g = new Object();
        this.f16240k = new HashSet();
        this.l = new ArrayList();
        this.f16230a = hVar;
        this.f16231b = cVar;
        this.f16232c = rVar;
        this.f16233d = jVar;
        this.f16234e = mVar2;
        this.f16235f = hVar2;
        this.f16237h = executorService;
        this.f16238i = mVar;
    }

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

    public final j9.b b(j9.b bVar) {
        int responseCode;
        k9.b f10;
        a8.h hVar = this.f16230a;
        hVar.a();
        String str = hVar.f236c.f245a;
        String str2 = bVar.f16373a;
        a8.h hVar2 = this.f16230a;
        hVar2.a();
        String str3 = hVar2.f236c.f251g;
        String str4 = bVar.f16376d;
        k9.c cVar = this.f16231b;
        k9.d dVar = cVar.f16737c;
        if (!dVar.a()) {
            throw new e("Firebase Installations Service is unavailable. Please try again later.");
        }
        URL a10 = k9.c.a("projects/" + str3 + "/installations/" + str2 + "/authTokens:generate");
        for (int i10 = 0; i10 <= 1; i10++) {
            TrafficStats.setThreadStatsTag(32771);
            HttpURLConnection c4 = cVar.c(a10, str);
            try {
                try {
                    c4.setRequestMethod("POST");
                    c4.addRequestProperty("Authorization", "FIS_v2 " + str4);
                    c4.setDoOutput(true);
                    k9.c.h(c4);
                    responseCode = c4.getResponseCode();
                    dVar.b(responseCode);
                } catch (Throwable th) {
                    c4.disconnect();
                    TrafficStats.clearThreadStatsTag();
                    throw th;
                }
            } catch (IOException | AssertionError unused) {
            }
            if (responseCode >= 200 && responseCode < 300) {
                f10 = k9.c.f(c4);
            } else {
                k9.c.b(c4, null, str, str3);
                if (responseCode == 401 || responseCode == 404) {
                    p0 a11 = k9.b.a();
                    a11.f9152b = 3;
                    f10 = a11.a();
                } else {
                    if (responseCode == 429) {
                        throw new e("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) {
                        p0 a12 = k9.b.a();
                        a12.f9152b = 2;
                        f10 = a12.a();
                    }
                    c4.disconnect();
                    TrafficStats.clearThreadStatsTag();
                }
            }
            c4.disconnect();
            TrafficStats.clearThreadStatsTag();
            int d4 = z.e.d(f10.f16732c);
            if (d4 == 0) {
                j jVar = this.f16233d;
                jVar.getClass();
                TimeUnit timeUnit = TimeUnit.MILLISECONDS;
                jVar.f16249a.getClass();
                long seconds = timeUnit.toSeconds(System.currentTimeMillis());
                j9.a a13 = bVar.a();
                a13.f16368c = f10.f16730a;
                a13.f16371f = Long.valueOf(f10.f16731b);
                a13.f16372g = Long.valueOf(seconds);
                return a13.j();
            }
            if (d4 == 1) {
                j9.a a14 = bVar.a();
                a14.f16370e = "BAD CONFIG";
                a14.f16366a = 5;
                return a14.j();
            }
            if (d4 != 2) {
                throw new e("Firebase Installations Service is unavailable. Please try again later.");
            }
            synchronized (this) {
                this.f16239j = null;
            }
            j9.a a15 = bVar.a();
            a15.f16366a = 2;
            return a15.j();
        }
        throw new e("Firebase Installations Service is unavailable. Please try again later.");
    }

    public final Task c() {
        String str;
        e();
        synchronized (this) {
            str = this.f16239j;
        }
        if (str != null) {
            return Tasks.forResult(str);
        }
        TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
        g gVar = new g(taskCompletionSource);
        synchronized (this.f16236g) {
            this.l.add(gVar);
        }
        Task task = taskCompletionSource.getTask();
        this.f16237h.execute(new b(this, 0));
        return task;
    }

    public final Task d() {
        e();
        TaskCompletionSource taskCompletionSource = new TaskCompletionSource();
        f fVar = new f(this.f16233d, taskCompletionSource);
        synchronized (this.f16236g) {
            this.l.add(fVar);
        }
        Task task = taskCompletionSource.getTask();
        this.f16237h.execute(new b(this, 1));
        return task;
    }

    public final void e() {
        a8.h hVar = this.f16230a;
        hVar.a();
        Preconditions.checkNotEmpty(hVar.f236c.f246b, "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.");
        hVar.a();
        Preconditions.checkNotEmpty(hVar.f236c.f251g, "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.");
        hVar.a();
        Preconditions.checkNotEmpty(hVar.f236c.f245a, "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.");
        hVar.a();
        String str = hVar.f236c.f246b;
        Pattern pattern = j.f16247c;
        Preconditions.checkArgument(str.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.");
        hVar.a();
        Preconditions.checkArgument(j.f16247c.matcher(hVar.f236c.f245a).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.");
    }

    public final java.lang.String f(j9.b r6) {
        throw new UnsupportedOperationException("Method not decompiled: i9.c.f(j9.b):java.lang.String");
    }

    public final j9.b g(j9.b bVar) {
        int responseCode;
        String str = bVar.f16373a;
        String str2 = null;
        if (str != null && str.length() == 11) {
            j9.c cVar = (j9.c) this.f16234e.get();
            synchronized (cVar.f16381a) {
                try {
                    String[] strArr = j9.c.f16380c;
                    int i10 = 0;
                    while (true) {
                        if (i10 < 4) {
                            String str3 = strArr[i10];
                            String string = cVar.f16381a.getString("|T|" + cVar.f16382b + "|" + str3, null);
                            if (string == null || string.isEmpty()) {
                                i10++;
                            } else if (string.startsWith("{")) {
                                try {
                                    str2 = new JSONObject(string).getString(BidResponsed.KEY_TOKEN);
                                } catch (JSONException unused) {
                                }
                            } else {
                                str2 = string;
                            }
                        }
                    }
                } finally {
                }
            }
        }
        k9.c cVar2 = this.f16231b;
        a8.h hVar = this.f16230a;
        hVar.a();
        String str4 = hVar.f236c.f245a;
        String str5 = bVar.f16373a;
        a8.h hVar2 = this.f16230a;
        hVar2.a();
        String str6 = hVar2.f236c.f251g;
        a8.h hVar3 = this.f16230a;
        hVar3.a();
        String str7 = hVar3.f236c.f246b;
        k9.d dVar = cVar2.f16737c;
        if (!dVar.a()) {
            throw new e("Firebase Installations Service is unavailable. Please try again later.");
        }
        URL a10 = k9.c.a("projects/" + str6 + "/installations");
        int i11 = 0;
        k9.a aVar = cVar2;
        while (i11 <= 1) {
            TrafficStats.setThreadStatsTag(32769);
            HttpURLConnection c4 = aVar.c(a10, str4);
            try {
                try {
                    c4.setRequestMethod("POST");
                    c4.setDoOutput(true);
                    if (str2 != null) {
                        c4.addRequestProperty("x-goog-fis-android-iid-migration-auth", str2);
                    }
                    k9.c.g(c4, str5, str7);
                    responseCode = c4.getResponseCode();
                    dVar.b(responseCode);
                } catch (IOException | AssertionError unused2) {
                }
                if (responseCode >= 200 && responseCode < 300) {
                    k9.a e4 = k9.c.e(c4);
                    c4.disconnect();
                    TrafficStats.clearThreadStatsTag();
                    aVar = e4;
                } else {
                    try {
                        k9.c.b(c4, str7, str4, str6);
                    } catch (IOException | AssertionError unused3) {
                        c4.disconnect();
                        TrafficStats.clearThreadStatsTag();
                        i11++;
                        aVar = aVar;
                    }
                    if (responseCode == 429) {
                        throw new e("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) {
                        k9.a aVar2 = new k9.a(null, null, null, null, 2);
                        c4.disconnect();
                        TrafficStats.clearThreadStatsTag();
                        aVar = aVar2;
                    } else {
                        c4.disconnect();
                        TrafficStats.clearThreadStatsTag();
                        i11++;
                        aVar = aVar;
                    }
                }
                int d4 = z.e.d(aVar.f16729e);
                if (d4 != 0) {
                    if (d4 != 1) {
                        throw new e("Firebase Installations Service is unavailable. Please try again later.");
                    }
                    j9.a a11 = bVar.a();
                    a11.f16370e = "BAD CONFIG";
                    a11.f16366a = 5;
                    return a11.j();
                }
                String str8 = aVar.f16726b;
                String str9 = aVar.f16727c;
                j jVar = this.f16233d;
                jVar.getClass();
                TimeUnit timeUnit = TimeUnit.MILLISECONDS;
                jVar.f16249a.getClass();
                long seconds = timeUnit.toSeconds(System.currentTimeMillis());
                k9.b bVar2 = aVar.f16728d;
                String str10 = bVar2.f16730a;
                long j5 = bVar2.f16731b;
                j9.a a12 = bVar.a();
                a12.f16367b = str8;
                a12.f16366a = 4;
                a12.f16368c = str10;
                a12.f16369d = str9;
                a12.f16371f = Long.valueOf(j5);
                a12.f16372g = Long.valueOf(seconds);
                return a12.j();
            } finally {
                c4.disconnect();
                TrafficStats.clearThreadStatsTag();
            }
        }
        throw new e("Firebase Installations Service is unavailable. Please try again later.");
    }

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

    public final void i(j9.b bVar) {
        synchronized (this.f16236g) {
            try {
                Iterator it = this.l.iterator();
                while (it.hasNext()) {
                    if (((i) it.next()).a(bVar)) {
                        it.remove();
                    }
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }
}