그늘 v4.6.9版本的 MD5 值为:45bd3dac9e441bb87fea09c92b437adc

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


package zd;

import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import be.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 f16429l;
    public String f16430a = "";
    public String f16431b = "";
    public String f16432c = "";
    public String f16433d = "";
    public String f16434e = "";
    public String f16435f = "";
    public String f16436g = "";
    public final List<Serializable> f16437h = Collections.synchronizedList(new ArrayList());
    public final List<Serializable> i = Collections.synchronizedList(new ArrayList());
    public final k.a f16438j;
    public boolean f16439k;

    public c() {
        ThreadPoolExecutor threadPoolExecutor = be.k.f876a;
        this.f16438j = new k.a();
    }

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

    public static void c(c cVar) {
        cVar.getClass();
        ae.a.f("AttaReporter", "attaReportAtSubThread");
        boolean z10 = cVar.f16439k;
        List<Serializable> list = cVar.f16437h;
        if (!z10) {
            List<Serializable> a10 = g.g().a("report_atta");
            cVar.f16439k = a10.isEmpty();
            list.addAll(a10);
            Iterator<Serializable> it2 = a10.iterator();
            while (it2.hasNext()) {
                ae.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 {
                    ae.a.f("AttaReporter", "doAttaReportItem post " + dVar);
                    if (yd.a.a().d("https://h.trace.qq.com/kv", dVar.f16440a).f15902c != 200) {
                        break;
                    }
                } catch (Exception e10) {
                    ae.a.e().a(4, "AttaReporter", "Exception", e10);
                    if (i >= 2) {
                        break;
                    }
                }
            }
            z11 = false;
            if (!z11) {
                arrayList.add(dVar);
            }
        }
        if (!arrayList.isEmpty()) {
            ae.a.f("AttaReporter", "attaReportAtSubThread fail size=" + arrayList.size());
            Iterator it3 = arrayList.iterator();
            while (it3.hasNext()) {
                ae.a.f("AttaReporter", "attaReportAtSubThread fail cache to db, " + ((d) ((Serializable) it3.next())));
            }
            g.g().m("report_atta", arrayList);
            cVar.f16439k = false;
        } else if (!cVar.f16439k) {
            ae.a.f("AttaReporter", "attaReportAtSubThread clear db");
            g.g().n("report_atta");
            cVar.f16439k = 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.f16430a + "_" + this.f16432c);
        hashMap.put("time", String.valueOf(currentTimeMillis));
        hashMap.put("openid", this.f16432c);
        hashMap.put("appid", this.f16430a);
        hashMap.put("app_name", this.f16431b);
        hashMap.put("app_ver", this.f16433d);
        hashMap.put("pkg_name", this.f16434e);
        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.f16435f);
        hashMap.put("qq_ver", this.f16436g);
        d dVar = new d(hashMap);
        Context context = null;
        if (!TextUtils.isEmpty(this.f16430a) && !TextUtils.isEmpty(this.f16431b)) {
            Context context2 = be.g.f864a;
            if (context2 == null) {
                context2 = null;
            }
            if (context2 != null) {
                this.f16438j.execute(new b(this, dVar));
                return;
            }
        }
        StringBuilder sb2 = new StringBuilder("attaReport cancel appid=");
        sb2.append(this.f16430a);
        sb2.append(", mAppName=");
        sb2.append(this.f16431b);
        sb2.append(", context=");
        Context context3 = be.g.f864a;
        if (context3 != null) {
            context = context3;
        }
        sb2.append(context);
        sb2.append(", ");
        sb2.append(dVar);
        ae.a.f("AttaReporter", sb2.toString());
        this.i.add(dVar);
    }
}