米游社.apk(点击下载) / f.java


package com.unikuwei.mianmi.account.shield.e;

import android.os.Build;
import android.text.TextUtils;
import com.unikuwei.mianmi.account.shield.d.b;
import com.xiaomi.mipush.sdk.Constants;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import n8.i;
import org.json.JSONObject;

public class f {

    /* renamed from: a  reason: collision with root package name */
    private ExecutorService f41890a;

    public f() {
        this.f41890a = null;
        this.f41890a = Executors.newFixedThreadPool(1);
    }

    public void a(String str, String str2) {
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put("appId", h.a());
            jSONObject.put("deviceId", h.i());
            jSONObject.put(Constants.PHONE_BRAND, Build.BRAND);
            jSONObject.put("model", Build.MODEL);
            jSONObject.put(i.f93492l, "" + Build.VERSION.SDK_INT);
            jSONObject.put("errCode", str);
            jSONObject.put("message", str2);
            jSONObject.put("sdkVersion", "5.2.0AK002B1125");
            jSONObject.put("apn", h.d());
            jSONObject.put("appName", h.h());
            jSONObject.put("pip", h.e());
            jSONObject.put("netType", "" + h.g());
            jSONObject.put("userTimeout", "" + h.f());
            jSONObject.put("operateTime", "0");
            final String jSONObject2 = jSONObject.toString();
            if (!TextUtils.isEmpty(jSONObject2)) {
                if (this.f41890a == null) {
                    this.f41890a = Executors.newFixedThreadPool(1);
                }
                this.f41890a.submit(new Runnable() {
                    /* class com.unikuwei.mianmi.account.shield.e.f.AnonymousClass1 */

                    public void run() {
                        try {
                            new b().a("https://opencloud.wostore.cn/client/sdk/receive", jSONObject2);
                        } catch (Exception e10) {
                            e10.printStackTrace();
                        }
                    }
                });
            }
        } catch (Exception e10) {
            e10.printStackTrace();
        }
    }

    public void finalize() {
        ExecutorService executorService = this.f41890a;
        if (executorService != null) {
            executorService.shutdownNow();
            this.f41890a = null;
        }
    }
}