百度手机卫士 v8.8.0版本的 MD5 值为:a85894a6923c8a39f0c3a3a686ad7443
以下内容为反编译后的 ivi.java 源代码,内容仅作参考
package dxoptimizer;
import android.os.Bundle;
import android.os.SystemClock;
import android.text.TextUtils;
import com.tencent.open.utils.HttpUtils;
import java.io.IOException;
import java.net.SocketTimeoutException;
import org.apache.http.conn.ConnectTimeoutException;
import org.json.JSONException;
public class ivi implements Runnable {
final ivd a;
public ivi(ivd ivdVar) {
this.a = ivdVar;
}
@Override
public void run() {
boolean z;
HttpUtils.HttpStatusException httpStatusException;
boolean z2;
int i;
long j;
long j2;
int i2;
try {
Bundle d = this.a.d();
if (d != null) {
ius.a("openSDK_LOG.ReportManager", "-->doReportVia, params: " + d.toString());
int a = ivb.a();
int i3 = 0;
boolean z3 = false;
long elapsedRealtime = SystemClock.elapsedRealtime();
long j3 = 0;
long j4 = 0;
int i4 = 0;
do {
i3++;
try {
try {
try {
try {
iwh a2 = HttpUtils.a(ivt.a(), "http://appsupport.qq.com/cgi-bin/appstage/mstats_batch_report", "POST", d);
try {
i2 = iwg.d(a2.a).getInt("ret");
} catch (JSONException e) {
i2 = -4;
}
if (i2 == 0 || !TextUtils.isEmpty(a2.a)) {
z3 = true;
i3 = a;
}
long j5 = a2.b;
try {
j4 = a2.c;
j3 = j5;
} catch (HttpUtils.HttpStatusException e2) {
z = z3;
httpStatusException = e2;
j3 = j5;
try {
i4 = Integer.parseInt(httpStatusException.getMessage().replace(HttpUtils.HttpStatusException.ERROR_INFO, ""));
} catch (Exception e3) {
}
z2 = z;
i = i4;
long j6 = elapsedRealtime;
j = j4;
j2 = j6;
this.a.a("mapp_apptrace_sdk", j2, j3, j, i, null, false);
if (!z2) {
}
this.a.d.clear();
ius.b("openSDK_LOG.ReportManager", "-->doReportVia, uploadSuccess: " + z2);
}
} catch (HttpUtils.HttpStatusException e4) {
z = z3;
httpStatusException = e4;
}
} catch (JSONException e5) {
j3 = 0;
j4 = 0;
i4 = -4;
}
} catch (SocketTimeoutException e6) {
elapsedRealtime = SystemClock.elapsedRealtime();
j3 = 0;
j4 = 0;
i4 = -8;
} catch (IOException e7) {
j3 = 0;
j4 = 0;
i4 = HttpUtils.a(e7);
}
} catch (HttpUtils.NetworkUnavailableException e8) {
this.a.d.clear();
ius.b("openSDK_LOG.ReportManager", "doReportVia, NetworkUnavailableException.");
return;
} catch (ConnectTimeoutException e9) {
elapsedRealtime = SystemClock.elapsedRealtime();
i3 = i3;
i4 = -7;
j4 = 0;
j3 = 0;
} catch (Exception e10) {
j3 = 0;
j4 = 0;
i4 = -6;
i3 = a;
}
} while (i3 < a);
i = i4;
z2 = z3;
long j7 = elapsedRealtime;
j = j4;
j2 = j7;
this.a.a("mapp_apptrace_sdk", j2, j3, j, i, null, false);
if (!z2) {
ivc.a().b("report_via");
} else {
ivc.a().a("report_via", this.a.d);
}
this.a.d.clear();
ius.b("openSDK_LOG.ReportManager", "-->doReportVia, uploadSuccess: " + z2);
}
} catch (Exception e11) {
ius.b("openSDK_LOG.ReportManager", "-->doReportVia, exception in serial executor.", e11);
}
}
}