EMOTIBOT v3.0.0版本的 MD5 值为:e78ae62c08f0ada6738206eeb97d2940
以下内容为反编译后的 ic2.java 源代码,内容仅作参考
package p.a.y.e.a.s.e.net;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.os.Message;
import android.os.SystemClock;
import android.text.TextUtils;
import com.huawei.hms.adapter.internal.CommonCode;
import com.tencent.open.utils.HttpUtils;
import io.netty.handler.ssl.SslContext;
import java.io.IOException;
import java.io.Serializable;
import java.net.SocketTimeoutException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import java.util.TimeZone;
import java.util.concurrent.Executor;
import kotlin.text.Typography;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.conn.ConnectTimeoutException;
import org.apache.http.entity.ByteArrayEntity;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import p.a.y.e.a.s.e.net.hd2;
import tv.danmaku.ijk.media.player.IjkMediaMeta;
public class ic2 {
public static ic2 lite_case;
public HandlerThread lite_int;
public Handler lite_new;
public Random lite_do = new Random();
public List<Serializable> lite_for = Collections.synchronizedList(new ArrayList());
public List<Serializable> lite_if = Collections.synchronizedList(new ArrayList());
public Executor lite_try = fd2.lite_for();
public Executor lite_byte = fd2.lite_for();
public class a extends Handler {
public a(Looper looper) {
super(looper);
}
@Override
public void handleMessage(Message message) {
int i = message.what;
if (i == 1000) {
ic2.this.lite_char();
} else if (i == 1001) {
ic2.this.lite_long();
}
super.handleMessage(message);
}
}
public class b implements Runnable {
public final Bundle lite_static;
public final boolean lite_switch;
public b(Bundle bundle, boolean z) {
this.lite_static = bundle;
this.lite_switch = z;
}
@Override
public void run() {
try {
String lite_synchronized = hd2.lite_synchronized(ec2.lite_int(bd2.lite_do()));
String lite_synchronized2 = hd2.lite_synchronized(ec2.lite_new(bd2.lite_do()));
String lite_synchronized3 = hd2.lite_synchronized(ec2.lite_do());
String lite_synchronized4 = hd2.lite_synchronized(ec2.lite_try(bd2.lite_do()));
Bundle bundle = new Bundle();
bundle.putString("uin", lb2.lite_do);
bundle.putString("imei", lite_synchronized);
bundle.putString("imsi", lite_synchronized2);
bundle.putString("android_id", lite_synchronized4);
bundle.putString("mac", lite_synchronized3);
bundle.putString("platform", "1");
bundle.putString("os_ver", Build.VERSION.RELEASE);
bundle.putString("position", hd2.lite_public(bd2.lite_do()));
bundle.putString("network", dc2.lite_do(bd2.lite_do()));
bundle.putString(IjkMediaMeta.IJKM_KEY_LANGUAGE, ec2.lite_for());
bundle.putString(CommonCode.MapKey.HAS_RESOLUTION, ec2.lite_if(bd2.lite_do()));
bundle.putString("apn", dc2.lite_if(bd2.lite_do()));
bundle.putString("model_name", Build.MODEL);
bundle.putString("timezone", TimeZone.getDefault().getID());
bundle.putString("sdk_ver", lb2.lite_else);
bundle.putString("qz_ver", hd2.lite_switch(bd2.lite_do(), "com.qzone"));
bundle.putString("qq_ver", hd2.lite_return(bd2.lite_do(), "com.tencent.mobileqq"));
bundle.putString("qua", hd2.lite_extends(bd2.lite_do(), bd2.lite_for()));
bundle.putString("packagename", bd2.lite_for());
bundle.putString("app_ver", hd2.lite_switch(bd2.lite_do(), bd2.lite_for()));
Bundle bundle2 = this.lite_static;
if (bundle2 != null) {
bundle.putAll(bundle2);
}
ic2.this.lite_for.add(new com.tencent.open.a.b(bundle));
int size = ic2.this.lite_for.size();
int lite_if = cd2.lite_int(bd2.lite_do(), null).lite_if("Agent_ReportTimeInterval");
if (lite_if == 0) {
lite_if = 10000;
}
if (!ic2.this.lite_byte("report_via", size) && !this.lite_switch) {
if (ic2.this.lite_new.hasMessages(1001)) {
return;
}
Message obtain = Message.obtain();
obtain.what = 1001;
ic2.this.lite_new.sendMessageDelayed(obtain, lite_if);
return;
}
ic2.this.lite_long();
ic2.this.lite_new.removeMessages(1001);
} catch (Exception e) {
mc2.lite_char("openSDK_LOG.ReportManager", "--> reporVia, exception in sub thread.", e);
}
}
}
public class c implements Runnable {
public final int lite_boolean;
public final long lite_default;
public final long lite_extends;
public final boolean lite_finally;
public final long lite_static;
public final String lite_switch;
public final String lite_throws;
public c(long j, String str, String str2, int i, long j2, long j3, boolean z) {
this.lite_static = j;
this.lite_switch = str;
this.lite_throws = str2;
this.lite_boolean = i;
this.lite_default = j2;
this.lite_extends = j3;
this.lite_finally = z;
}
@Override
public void run() {
try {
long elapsedRealtime = SystemClock.elapsedRealtime() - this.lite_static;
Bundle bundle = new Bundle();
String lite_do = dc2.lite_do(bd2.lite_do());
bundle.putString("apn", lite_do);
bundle.putString("appid", "1000067");
bundle.putString("commandid", this.lite_switch);
bundle.putString("detail", this.lite_throws);
StringBuilder sb = new StringBuilder();
sb.append("network=");
sb.append(lite_do);
sb.append(Typography.amp);
sb.append("sdcard=");
int i = 1;
sb.append(Environment.getExternalStorageState().equals("mounted") ? 1 : 0);
sb.append(Typography.amp);
sb.append("wifi=");
sb.append(dc2.lite_new(bd2.lite_do()));
bundle.putString("deviceInfo", sb.toString());
int lite_do2 = 100 / ic2.this.lite_do(this.lite_boolean);
if (lite_do2 > 0) {
i = lite_do2 > 100 ? 100 : lite_do2;
}
bundle.putString("frequency", i + "");
bundle.putString("reqSize", this.lite_default + "");
bundle.putString(ty0.lite_static, this.lite_boolean + "");
bundle.putString("rspSize", this.lite_extends + "");
bundle.putString("timeCost", elapsedRealtime + "");
bundle.putString("uin", lb2.lite_do);
ic2.this.lite_if.add(new com.tencent.open.a.b(bundle));
int size = ic2.this.lite_if.size();
int lite_if = cd2.lite_int(bd2.lite_do(), null).lite_if("Agent_ReportTimeInterval");
if (lite_if == 0) {
lite_if = 10000;
}
if (!ic2.this.lite_byte("report_cgi", size) && !this.lite_finally) {
if (!ic2.this.lite_new.hasMessages(1000)) {
Message obtain = Message.obtain();
obtain.what = 1000;
ic2.this.lite_new.sendMessageDelayed(obtain, lite_if);
}
}
ic2.this.lite_char();
ic2.this.lite_new.removeMessages(1000);
} catch (Exception e) {
mc2.lite_char("openSDK_LOG.ReportManager", "--> reportCGI, exception in sub thread.", e);
}
}
}
public class d implements Runnable {
public d() {
}
@Override
public void run() {
try {
Bundle lite_else = ic2.this.lite_else();
if (lite_else == null) {
return;
}
int lite_if = cd2.lite_int(bd2.lite_do(), null).lite_if("Common_HttpRetryCount");
if (lite_if == 0) {
lite_if = 3;
}
mc2.lite_try("openSDK_LOG.ReportManager", "-->doReportCgi, retryCount: " + lite_if);
boolean z = false;
int i = 0;
while (true) {
i++;
try {
try {
try {
HttpClient lite_case = HttpUtils.lite_case(bd2.lite_do(), null, "https://wspeed.qq.com/w.cgi");
HttpPost httpPost = new HttpPost("https://wspeed.qq.com/w.cgi");
httpPost.addHeader("Accept-Encoding", "gzip");
httpPost.setHeader("Content-Type", "application/x-www-form-urlencoded");
httpPost.setEntity(new ByteArrayEntity(hd2.lite_implements(HttpUtils.lite_try(lite_else))));
int statusCode = lite_case.execute(httpPost).getStatusLine().getStatusCode();
mc2.lite_try("openSDK_LOG.ReportManager", "-->doReportCgi, statusCode: " + statusCode);
if (statusCode != 200) {
break;
}
hc2.lite_do().lite_int("report_cgi");
z = true;
break;
} catch (Exception e) {
mc2.lite_char("openSDK_LOG.ReportManager", "-->doReportCgi, doupload exception", e);
}
} catch (SocketTimeoutException e2) {
mc2.lite_char("openSDK_LOG.ReportManager", "-->doReportCgi, doupload exception", e2);
if (i < lite_if) {
if (!z) {
}
ic2.this.lite_if.clear();
}
}
} catch (ConnectTimeoutException e3) {
mc2.lite_char("openSDK_LOG.ReportManager", "-->doReportCgi, doupload exception", e3);
if (i < lite_if) {
}
}
}
if (!z) {
hc2.lite_do().lite_for("report_cgi", ic2.this.lite_if);
}
ic2.this.lite_if.clear();
} catch (Exception e4) {
mc2.lite_char("openSDK_LOG.ReportManager", "-->doReportCgi, doupload exception out.", e4);
}
}
}
public class e implements Runnable {
public e() {
}
@Override
public void run() {
int i;
try {
Bundle lite_goto = ic2.this.lite_goto();
if (lite_goto == null) {
return;
}
mc2.lite_const("openSDK_LOG.ReportManager", "-->doReportVia, params: " + lite_goto.toString());
int lite_do = gc2.lite_do();
int i2 = 0;
long elapsedRealtime = SystemClock.elapsedRealtime();
boolean z = false;
int i3 = 0;
long j = 0;
long j2 = 0;
do {
int i4 = i2 + 1;
try {
try {
try {
hd2.b lite_else = HttpUtils.lite_else(bd2.lite_do(), "https://appsupport.qq.com/cgi-bin/appstage/mstats_batch_report", lb2.H, lite_goto);
try {
i = hd2.lite_throws(lite_else.lite_do).getInt("ret");
} catch (JSONException unused) {
i = -4;
}
if (i == 0 || !TextUtils.isEmpty(lite_else.lite_do)) {
i4 = lite_do;
z = true;
}
j = lite_else.lite_if;
j2 = lite_else.lite_for;
i2 = i4;
} catch (JSONException unused2) {
i2 = i4;
i3 = -4;
j = 0;
j2 = 0;
}
} catch (SocketTimeoutException unused3) {
elapsedRealtime = SystemClock.elapsedRealtime();
i2 = i4;
i3 = -8;
j = 0;
j2 = 0;
} catch (IOException e) {
i3 = HttpUtils.lite_byte(e);
i2 = i4;
j = 0;
j2 = 0;
}
} catch (HttpUtils.HttpStatusException e2) {
try {
i3 = Integer.parseInt(e2.getMessage().replace(HttpUtils.HttpStatusException.ERROR_INFO, ""));
} catch (Exception unused4) {
}
} catch (HttpUtils.NetworkUnavailableException unused5) {
ic2.this.lite_for.clear();
mc2.lite_try("openSDK_LOG.ReportManager", "doReportVia, NetworkUnavailableException.");
return;
} catch (ConnectTimeoutException unused6) {
elapsedRealtime = SystemClock.elapsedRealtime();
i2 = i4;
i3 = -7;
j = 0;
j2 = 0;
} catch (Exception unused7) {
i2 = lite_do;
i3 = -6;
j = 0;
j2 = 0;
}
} while (i2 < lite_do);
ic2.this.lite_new("mapp_apptrace_sdk", elapsedRealtime, j, j2, i3, null, false);
if (z) {
hc2.lite_do().lite_int("report_via");
} else {
hc2.lite_do().lite_for("report_via", ic2.this.lite_for);
}
ic2.this.lite_for.clear();
mc2.lite_try("openSDK_LOG.ReportManager", "-->doReportVia, uploadSuccess: " + z);
} catch (Exception e3) {
mc2.lite_char("openSDK_LOG.ReportManager", "-->doReportVia, exception in serial executor.", e3);
}
}
}
public class f implements Runnable {
public final String lite_boolean;
public final Bundle lite_static;
public final String lite_switch;
public final boolean lite_throws;
public f(Bundle bundle, String str, boolean z, String str2) {
this.lite_static = bundle;
this.lite_switch = str;
this.lite_throws = z;
this.lite_boolean = str2;
}
@Override
public void run() {
HttpUriRequest httpUriRequest;
HttpResponse httpResponse;
try {
if (this.lite_static == null) {
mc2.lite_case("openSDK_LOG.ReportManager", "-->httpRequest, params is null!");
return;
}
int lite_do = gc2.lite_do();
if (lite_do == 0) {
lite_do = 3;
}
mc2.lite_try("openSDK_LOG.ReportManager", "-->httpRequest, retryCount: " + lite_do);
HttpResponse httpResponse2 = null;
HttpClient lite_case = HttpUtils.lite_case(bd2.lite_do(), null, this.lite_switch);
String lite_try = HttpUtils.lite_try(this.lite_static);
if (this.lite_throws) {
lite_try = URLEncoder.encode(lite_try);
}
if (this.lite_boolean.toUpperCase().equals(lb2.G)) {
StringBuffer stringBuffer = new StringBuffer(this.lite_switch);
stringBuffer.append(lite_try);
httpUriRequest = new HttpGet(stringBuffer.toString());
} else if (this.lite_boolean.toUpperCase().equals(lb2.H)) {
HttpPost httpPost = new HttpPost(this.lite_switch);
httpPost.setEntity(new ByteArrayEntity(hd2.lite_implements(lite_try)));
httpUriRequest = httpPost;
} else {
mc2.lite_case("openSDK_LOG.ReportManager", "-->httpRequest unkonw request method return.");
return;
}
httpUriRequest.addHeader("Accept-Encoding", "gzip");
httpUriRequest.addHeader("Content-Type", "application/x-www-form-urlencoded");
int i = 0;
boolean z = false;
do {
i++;
try {
try {
httpResponse = lite_case.execute(httpUriRequest);
try {
int statusCode = httpResponse.getStatusLine().getStatusCode();
mc2.lite_try("openSDK_LOG.ReportManager", "-->httpRequest, statusCode: " + statusCode);
if (statusCode != 200) {
mc2.lite_try("openSDK_LOG.ReportManager", "-->ReportCenter httpRequest : HttpStatuscode != 200");
} else {
try {
mc2.lite_try("openSDK_LOG.ReportManager", "-->ReportCenter httpRequest Thread success");
z = true;
} catch (SocketTimeoutException e) {
e = e;
z = true;
try {
mc2.lite_char("openSDK_LOG.ReportManager", "-->ReportCenter httpRequest SocketTimeoutException:", e);
if (httpResponse != null) {
try {
HttpEntity entity = httpResponse.getEntity();
if (entity != null) {
entity.consumeContent();
}
} catch (Exception e2) {
e = e2;
mc2.lite_char("openSDK_LOG.ReportManager", "-->ReportCenter httpRequest consumeContent Exception:", e);
}
}
} catch (Throwable th) {
th = th;
httpResponse2 = httpResponse;
if (httpResponse2 != null) {
try {
HttpEntity entity2 = httpResponse2.getEntity();
if (entity2 != null) {
entity2.consumeContent();
}
} catch (Exception e3) {
mc2.lite_char("openSDK_LOG.ReportManager", "-->ReportCenter httpRequest consumeContent Exception:", e3);
}
}
throw th;
}
} catch (ConnectTimeoutException e4) {
e = e4;
z = true;
mc2.lite_char("openSDK_LOG.ReportManager", "-->ReportCenter httpRequest ConnectTimeoutException:", e);
if (httpResponse != null) {
try {
HttpEntity entity3 = httpResponse.getEntity();
if (entity3 != null) {
entity3.consumeContent();
}
} catch (Exception e5) {
e = e5;
mc2.lite_char("openSDK_LOG.ReportManager", "-->ReportCenter httpRequest consumeContent Exception:", e);
}
}
} catch (Exception e6) {
e = e6;
httpResponse2 = httpResponse;
z = true;
mc2.lite_char("openSDK_LOG.ReportManager", "-->ReportCenter httpRequest Exception:", e);
if (httpResponse2 != null) {
try {
HttpEntity entity4 = httpResponse2.getEntity();
if (entity4 != null) {
entity4.consumeContent();
}
} catch (Exception e7) {
e = e7;
mc2.lite_char("openSDK_LOG.ReportManager", "-->ReportCenter httpRequest consumeContent Exception:", e);
if (z) {
}
}
}
if (z) {
}
}
}
try {
HttpEntity entity5 = httpResponse.getEntity();
if (entity5 != null) {
entity5.consumeContent();
}
} catch (Exception e8) {
e = e8;
mc2.lite_char("openSDK_LOG.ReportManager", "-->ReportCenter httpRequest consumeContent Exception:", e);
if (z) {
}
}
} catch (SocketTimeoutException e9) {
e = e9;
} catch (ConnectTimeoutException e10) {
e = e10;
} catch (Exception e11) {
e = e11;
httpResponse2 = httpResponse;
}
} catch (Throwable th2) {
th = th2;
if (httpResponse2 != null) {
}
throw th;
}
} catch (SocketTimeoutException e12) {
e = e12;
httpResponse = null;
} catch (ConnectTimeoutException e13) {
e = e13;
httpResponse = null;
} catch (Exception e14) {
e = e14;
}
if (z) {
mc2.lite_try("openSDK_LOG.ReportManager", "-->ReportCenter httpRequest Thread request success");
return;
} else {
mc2.lite_try("openSDK_LOG.ReportManager", "-->ReportCenter httpRequest Thread request failed");
return;
}
} while (i < lite_do);
if (z) {
}
} catch (Exception e15) {
mc2.lite_char("openSDK_LOG.ReportManager", "-->httpRequest, exception in serial executor:", e15);
}
}
}
private ic2() {
this.lite_int = null;
if (this.lite_int == null) {
HandlerThread handlerThread = new HandlerThread("opensdk.report.handlerthread", 10);
this.lite_int = handlerThread;
handlerThread.start();
}
if (!this.lite_int.isAlive() || this.lite_int.getLooper() == null) {
return;
}
this.lite_new = new a(this.lite_int.getLooper());
}
public static synchronized ic2 lite_if() {
ic2 ic2Var;
synchronized (ic2.class) {
if (lite_case == null) {
lite_case = new ic2();
}
ic2Var = lite_case;
}
return ic2Var;
}
public boolean lite_byte(String str, int i) {
int lite_if;
int i2 = 5;
if (str.equals("report_cgi")) {
lite_if = cd2.lite_int(bd2.lite_do(), null).lite_if("Common_CGIReportMaxcount");
} else if (str.equals("report_via")) {
lite_if = cd2.lite_int(bd2.lite_do(), null).lite_if("Agent_ReportBatchCount");
} else {
i2 = 0;
}
mc2.lite_try("openSDK_LOG.ReportManager", "-->availableCount, report: " + str + " | dataSize: " + i + " | maxcount: " + i2);
return i >= i2;
}
public boolean lite_case(String str, String str2) {
int lite_do;
mc2.lite_try("openSDK_LOG.ReportManager", "-->availableFrequency, report: " + str + " | ext: " + str2);
boolean z = false;
if (TextUtils.isEmpty(str)) {
return false;
}
int i = 100;
if (str.equals("report_cgi")) {
try {
lite_do = lite_do(Integer.parseInt(str2));
if (this.lite_do.nextInt(100) < lite_do) {
z = true;
}
} catch (Exception unused) {
return false;
}
} else {
if (str.equals("report_via")) {
lite_do = gc2.lite_if(str2);
if (this.lite_do.nextInt(100) < lite_do) {
i = lite_do;
z = true;
}
}
mc2.lite_try("openSDK_LOG.ReportManager", "-->availableFrequency, result: " + z + " | frequency: " + i);
return z;
}
i = lite_do;
mc2.lite_try("openSDK_LOG.ReportManager", "-->availableFrequency, result: " + z + " | frequency: " + i);
return z;
}
public void lite_char() {
this.lite_byte.execute(new d());
}
public int lite_do(int i) {
if (i == 0) {
int lite_if = cd2.lite_int(bd2.lite_do(), null).lite_if("Common_CGIReportFrequencySuccess");
if (lite_if == 0) {
return 10;
}
return lite_if;
}
int lite_if2 = cd2.lite_int(bd2.lite_do(), null).lite_if("Common_CGIReportFrequencyFailed");
if (lite_if2 == 0) {
return 100;
}
return lite_if2;
}
public Bundle lite_else() {
if (this.lite_if.size() == 0) {
return null;
}
com.tencent.open.a.b bVar = (com.tencent.open.a.b) this.lite_if.get(0);
if (bVar == null) {
mc2.lite_try("openSDK_LOG.ReportManager", "-->prepareCgiData, the 0th cgireportitem is null.");
return null;
}
String str = bVar.f1170a.get("appid");
List<Serializable> lite_if = hc2.lite_do().lite_if("report_cgi");
if (lite_if != null) {
this.lite_if.addAll(lite_if);
}
StringBuilder b2 = r5.b("-->prepareCgiData, mCgiList size: ");
b2.append(this.lite_if.size());
mc2.lite_try("openSDK_LOG.ReportManager", b2.toString());
if (this.lite_if.size() == 0) {
return null;
}
Bundle bundle = new Bundle();
try {
bundle.putString("appid", str);
bundle.putString("releaseversion", lb2.lite_this);
bundle.putString(m3.lite_catch, Build.DEVICE);
bundle.putString("qua", lb2.lite_goto);
bundle.putString(SslContext.ALIAS, "apn,frequency,commandid,resultcode,tmcost,reqsize,rspsize,detail,touin,deviceinfo");
for (int i = 0; i < this.lite_if.size(); i++) {
com.tencent.open.a.b bVar2 = (com.tencent.open.a.b) this.lite_if.get(i);
bundle.putString(i + ty0.x, bVar2.f1170a.get("apn"));
bundle.putString(i + "_2", bVar2.f1170a.get("frequency"));
bundle.putString(i + "_3", bVar2.f1170a.get("commandid"));
bundle.putString(i + "_4", bVar2.f1170a.get(ty0.lite_static));
bundle.putString(i + "_5", bVar2.f1170a.get("timeCost"));
bundle.putString(i + "_6", bVar2.f1170a.get("reqSize"));
bundle.putString(i + "_7", bVar2.f1170a.get("rspSize"));
bundle.putString(i + "_8", bVar2.f1170a.get("detail"));
bundle.putString(i + "_9", bVar2.f1170a.get("uin"));
bundle.putString(i + "_10", ec2.lite_byte(bd2.lite_do()) + "&" + bVar2.f1170a.get("deviceInfo"));
}
StringBuilder b3 = r5.b("-->prepareCgiData, end. params: ");
b3.append(bundle.toString());
mc2.lite_const("openSDK_LOG.ReportManager", b3.toString());
return bundle;
} catch (Exception e2) {
mc2.lite_char("openSDK_LOG.ReportManager", "-->prepareCgiData, exception.", e2);
return null;
}
}
public void lite_for(Bundle bundle, String str, boolean z) {
if (bundle == null) {
return;
}
StringBuilder b2 = r5.b("-->reportVia, bundle: ");
b2.append(bundle.toString());
mc2.lite_const("openSDK_LOG.ReportManager", b2.toString());
if (lite_case("report_via", str) || z) {
this.lite_try.execute(new b(bundle, z));
}
}
public Bundle lite_goto() {
List<Serializable> lite_if = hc2.lite_do().lite_if("report_via");
if (lite_if != null) {
this.lite_for.addAll(lite_if);
}
StringBuilder b2 = r5.b("-->prepareViaData, mViaList size: ");
b2.append(this.lite_for.size());
mc2.lite_try("openSDK_LOG.ReportManager", b2.toString());
if (this.lite_for.size() == 0) {
return null;
}
JSONArray jSONArray = new JSONArray();
for (Serializable serializable : this.lite_for) {
JSONObject jSONObject = new JSONObject();
com.tencent.open.a.b bVar = (com.tencent.open.a.b) serializable;
for (String str : bVar.f1170a.keySet()) {
try {
String str2 = bVar.f1170a.get(str);
if (str2 == null) {
str2 = "";
}
jSONObject.put(str, str2);
} catch (JSONException e2) {
mc2.lite_char("openSDK_LOG.ReportManager", "-->prepareViaData, put bundle to json array exception", e2);
}
}
jSONArray.put(jSONObject);
}
StringBuilder b3 = r5.b("-->prepareViaData, JSONArray array: ");
b3.append(jSONArray.toString());
mc2.lite_const("openSDK_LOG.ReportManager", b3.toString());
Bundle bundle = new Bundle();
JSONObject jSONObject2 = new JSONObject();
try {
jSONObject2.put("data", jSONArray);
bundle.putString("data", jSONObject2.toString());
return bundle;
} catch (JSONException e3) {
mc2.lite_char("openSDK_LOG.ReportManager", "-->prepareViaData, put bundle to json array exception", e3);
return null;
}
}
public void lite_int(String str, long j, long j2, long j3, int i) {
lite_new(str, j, j2, j3, i, "", false);
}
public void lite_long() {
this.lite_try.execute(new e());
}
public void lite_new(String str, long j, long j2, long j3, int i, String str2, boolean z) {
mc2.lite_const("openSDK_LOG.ReportManager", "-->reportCgi, command: " + str + " | startTime: " + j + " | reqSize:" + j2 + " | rspSize: " + j3 + " | responseCode: " + i + " | detail: " + str2);
if (lite_case("report_cgi", "" + i) || z) {
this.lite_byte.execute(new c(j, str, str2, i, j2, j3, z));
}
}
public void lite_try(String str, String str2, Bundle bundle, boolean z) {
fd2.lite_if(new f(bundle, str, z, str2));
}
}