ああ v4.7.3版本的 MD5 值为:852b7e5365c359961c773f5886414359

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


package ae;

import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import ce.k;
import com.wind.imlib.db.manager.WindPushManager;
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.concurrent.ThreadPoolExecutor;
public final class c {
    public static c f640l;
    public String f641a = "";
    public String f642b = "";
    public String f643c = "";
    public String f644d = "";
    public String f645e = "";
    public String f646f = "";
    public String f647g = "";
    public final List<Serializable> f648h = Collections.synchronizedList(new ArrayList());
    public final List<Serializable> i = Collections.synchronizedList(new ArrayList());
    public final k.a f649j;
    public boolean f650k;

    public c() {
        ThreadPoolExecutor threadPoolExecutor = ce.k.f3602a;
        this.f649j = new k.a();
    }

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

    public static void c(c cVar) {
        cVar.getClass();
        be.a.f("AttaReporter", "attaReportAtSubThread");
        boolean z10 = cVar.f650k;
        List<Serializable> list = cVar.f648h;
        if (!z10) {
            List<Serializable> g10 = g.a().g("report_atta");
            cVar.f650k = g10.isEmpty();
            list.addAll(g10);
            Iterator<Serializable> it2 = g10.iterator();
            while (it2.hasNext()) {
                be.a.f("AttaReporter", "attaReportAtSubThread from db = " + it2.next());
            }
        }
        ArrayList arrayList = new ArrayList();
        while (true) {
            boolean z11 = true;
            if (list.isEmpty()) {
                break;
            }
            d dVar = (d) list.remove(0);
            int i = 0;
            while (true) {
                i++;
                try {
                    be.a.f("AttaReporter", "doAttaReportItem post " + dVar);
                    if (zd.a.a().d("https://h.trace.qq.com/kv", dVar.f651a).f18922c != 200) {
                        break;
                    }
                } catch (Exception e10) {
                    be.a.e().a(4, "AttaReporter", "Exception", e10);
                    if (i >= 2) {
                        break;
                    }
                }
            }
            z11 = false;
            if (!z11) {
                arrayList.add(dVar);
            }
        }
        if (!arrayList.isEmpty()) {
            be.a.f("AttaReporter", "attaReportAtSubThread fail size=" + arrayList.size());
            Iterator it3 = arrayList.iterator();
            while (it3.hasNext()) {
                be.a.f("AttaReporter", "attaReportAtSubThread fail cache to db, " + ((d) ((Serializable) it3.next())));
            }
            g.a().k("report_atta", arrayList);
            cVar.f650k = false;
        } else if (!cVar.f650k) {
            be.a.f("AttaReporter", "attaReportAtSubThread clear db");
            g.a().s("report_atta");
            cVar.f650k = true;
        }
    }

    public final void b(String str, String str2, Object obj) {
        String obj2;
        long currentTimeMillis = System.currentTimeMillis();
        HashMap hashMap = new HashMap();
        hashMap.put("attaid", "09400051119");
        hashMap.put(WindPushManager.TOKEN, "9389887874");
        hashMap.put("time_appid_openid", currentTimeMillis + "_" + this.f641a + "_" + this.f643c);
        hashMap.put("time", String.valueOf(currentTimeMillis));
        hashMap.put("openid", this.f643c);
        hashMap.put("appid", this.f641a);
        hashMap.put("app_name", this.f642b);
        hashMap.put("app_ver", this.f644d);
        hashMap.put("pkg_name", this.f645e);
        hashMap.put("os", "AND");
        hashMap.put("os_ver", Build.VERSION.RELEASE);
        hashMap.put("sdk_ver", "3.5.3.lite");
        hashMap.put("model_name", Build.MODEL);
        hashMap.put("interface_name", str);
        hashMap.put("interface_data", str2);
        if (obj == null) {
            obj2 = "";
        } else {
            obj2 = obj.toString();
        }
        hashMap.put("interface_result", obj2);
        hashMap.put("qq_install", this.f646f);
        hashMap.put("qq_ver", this.f647g);
        d dVar = new d(hashMap);
        Context context = null;
        if (!TextUtils.isEmpty(this.f641a) && !TextUtils.isEmpty(this.f642b)) {
            Context context2 = ce.g.f3590a;
            if (context2 == null) {
                context2 = null;
            }
            if (context2 != null) {
                this.f649j.execute(new b(this, dVar));
                return;
            }
        }
        StringBuilder sb2 = new StringBuilder("attaReport cancel appid=");
        sb2.append(this.f641a);
        sb2.append(", mAppName=");
        sb2.append(this.f642b);
        sb2.append(", context=");
        Context context3 = ce.g.f3590a;
        if (context3 != null) {
            context = context3;
        }
        sb2.append(context);
        sb2.append(", ");
        sb2.append(dVar);
        be.a.f("AttaReporter", sb2.toString());
        this.i.add(dVar);
    }
}