PicWish v1.6.8版本的 MD5 值为:7e8bab240f03cf6dad8952f8374c4ed1

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


package cb;

import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import com.appsflyer.AppsFlyerProperties;
import eb.h;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.ThreadPoolExecutor;
public final class c {
    public static c f2022l;
    public String f2023a = "";
    public String f2024b = "";
    public String c = "";
    public String f2025d = "";
    public String f2026e = "";
    public String f2027f = "";
    public String f2028g = "";
    public List<Serializable> f2029h = Collections.synchronizedList(new ArrayList());
    public List<Serializable> f2030i = Collections.synchronizedList(new ArrayList());
    public h.a f2031j;
    public boolean f2032k;

    public c() {
        ThreadPoolExecutor threadPoolExecutor = eb.h.f7161a;
        this.f2031j = new h.a();
    }

    public static synchronized c a() {
        c cVar;
        synchronized (c.class) {
            if (f2022l == null) {
                f2022l = new c();
            }
            cVar = f2022l;
        }
        return cVar;
    }

    public static void c(c cVar) {
        Objects.requireNonNull(cVar);
        db.a.g("AttaReporter", "attaReportAtSubThread");
        if (!cVar.f2032k) {
            List<Serializable> c = g.b().c("report_atta");
            cVar.f2032k = c.isEmpty();
            cVar.f2029h.addAll(c);
            Iterator<Serializable> it = c.iterator();
            while (it.hasNext()) {
                db.a.g("AttaReporter", "attaReportAtSubThread from db = " + it.next());
            }
        }
        ArrayList arrayList = new ArrayList();
        while (true) {
            boolean z10 = false;
            if (cVar.f2029h.isEmpty()) {
                break;
            }
            d dVar = (d) cVar.f2029h.remove(0);
            int i10 = 0;
            while (true) {
                i10++;
                try {
                    db.a.g("AttaReporter", "doAttaReportItem post " + dVar);
                    z10 = bb.a.a().d("https://h.trace.qq.com/kv", dVar.f2033l).c == 200;
                } catch (Exception e10) {
                    db.a.f().a(4, "AttaReporter", "Exception", e10);
                    if (i10 >= 2) {
                        break;
                    }
                }
            }
            if (!z10) {
                arrayList.add(dVar);
            }
        }
        if (arrayList.isEmpty()) {
            if (cVar.f2032k) {
                return;
            }
            db.a.g("AttaReporter", "attaReportAtSubThread clear db");
            g.b().e("report_atta");
            cVar.f2032k = true;
            return;
        }
        StringBuilder b10 = androidx.core.graphics.a.b("attaReportAtSubThread fail size=");
        b10.append(arrayList.size());
        db.a.g("AttaReporter", b10.toString());
        Iterator it2 = arrayList.iterator();
        while (it2.hasNext()) {
            StringBuilder b11 = androidx.core.graphics.a.b("attaReportAtSubThread fail cache to db, ");
            b11.append((d) ((Serializable) it2.next()));
            db.a.g("AttaReporter", b11.toString());
        }
        g.b().d("report_atta", arrayList);
        cVar.f2032k = false;
    }

    public final void b(String str, String str2, Object obj) {
        long currentTimeMillis = System.currentTimeMillis();
        HashMap hashMap = new HashMap();
        hashMap.put("attaid", "09400051119");
        hashMap.put("token", "9389887874");
        hashMap.put("time_appid_openid", currentTimeMillis + "_" + this.f2023a + "_" + this.c);
        hashMap.put("time", String.valueOf(currentTimeMillis));
        hashMap.put("openid", this.c);
        hashMap.put(AppsFlyerProperties.APP_ID, this.f2023a);
        hashMap.put("app_name", this.f2024b);
        hashMap.put("app_ver", this.f2025d);
        hashMap.put("pkg_name", this.f2026e);
        hashMap.put("os", "AND");
        hashMap.put("os_ver", Build.VERSION.RELEASE);
        hashMap.put("sdk_ver", "3.5.4.lite");
        hashMap.put("model_name", Build.MODEL);
        hashMap.put("interface_name", str);
        hashMap.put("interface_data", str2);
        hashMap.put("interface_result", obj == null ? "" : obj.toString());
        hashMap.put("qq_install", this.f2027f);
        hashMap.put("qq_ver", this.f2028g);
        d dVar = new d(hashMap);
        if (!TextUtils.isEmpty(this.f2023a) && !TextUtils.isEmpty(this.f2024b)) {
            Context context = eb.d.f7150a;
            if (context == null) {
                context = null;
            }
            if (context != null) {
                this.f2031j.execute(new b(this, dVar));
                return;
            }
        }
        StringBuilder b10 = androidx.core.graphics.a.b("attaReport cancel appid=");
        b10.append(this.f2023a);
        b10.append(", mAppName=");
        b10.append(this.f2024b);
        b10.append(", context=");
        Context context2 = eb.d.f7150a;
        b10.append(context2 != null ? context2 : null);
        b10.append(", ");
        b10.append(dVar);
        db.a.g("AttaReporter", b10.toString());
        this.f2030i.add(dVar);
    }
}