그늘 v4.6.9版本的 MD5 值为:45bd3dac9e441bb87fea09c92b437adc
以下内容为反编译后的 k.java 源代码,内容仅作参考
package zd;
import android.content.Context;
import android.os.SystemClock;
import java.io.IOException;
import java.io.Serializable;
import java.net.SocketTimeoutException;
import java.util.HashMap;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
public final class k implements Runnable {
public final h f16465a;
public k(h hVar) {
this.f16465a = hVar;
}
@Override
public final void run() {
int i;
int i10;
long j10;
long j11;
long j12;
long j13;
yd.b d7;
int i11;
JSONObject s10;
int i12;
h hVar = this.f16465a;
try {
HashMap i13 = hVar.i();
if (i13 == null) {
return;
}
ae.a.b("openSDK_LOG.ReportManager", "-->doReportVia, params: " + i13.toString());
Context context = be.g.f864a;
if (context == null) {
context = null;
}
int a10 = be.h.b(context, null).a("Common_HttpRetryCount");
if (a10 == 0) {
i = 2;
} else {
i = a10;
}
long elapsedRealtime = SystemClock.elapsedRealtime();
int i14 = 0;
int i15 = 0;
while (true) {
int i16 = i14 + 1;
try {
try {
d7 = yd.a.a().d("https://appsupport.qq.com/cgi-bin/appstage/mstats_batch_report", i13);
i11 = d7.f15902c;
ae.a.f("openSDK_LOG.ReportManager", "-->reportVia: statusCode " + i11);
s10 = be.l.s(d7.a());
i10 = i16;
j13 = d7.f15903d;
} catch (Exception unused) {
j10 = 0;
i15 = -6;
i14 = i;
j11 = 0;
continue;
}
try {
try {
j12 = d7.f15904e;
} catch (JSONException unused2) {
j10 = 0;
j11 = 0;
i14 = i10;
i15 = -4;
continue;
if (i14 >= i) {
}
}
} catch (SocketTimeoutException unused3) {
j10 = 0;
elapsedRealtime = SystemClock.elapsedRealtime();
i15 = -8;
j11 = j10;
i14 = i10;
continue;
if (i14 >= i) {
}
} catch (IOException e10) {
e = e10;
j10 = 0;
i15 = be.b.d(e);
j11 = j10;
i14 = i10;
continue;
if (i14 >= i) {
}
}
} catch (SocketTimeoutException unused4) {
i10 = i16;
} catch (IOException e11) {
e = e11;
i10 = i16;
} catch (JSONException unused5) {
i10 = i16;
}
if (i11 != 200) {
i15 = i11;
break;
}
try {
i12 = s10.getInt("ret");
} catch (JSONException unused6) {
i12 = -4;
}
if (i12 != 0 && j12 == 0) {
j10 = j12;
i14 = i10;
j11 = j13;
continue;
if (i14 >= i) {
j13 = j11;
j12 = j10;
break;
}
} else {
break;
}
}
long j14 = elapsedRealtime;
long j15 = j13;
long j16 = j12;
boolean z10 = false;
this.f16465a.e("mapp_apptrace_sdk", j14, j15, j16, i15, null);
List<Serializable> list = hVar.f16448c;
if (z10) {
g.g().n("report_via");
} else {
g.g().m("report_via", list);
}
list.clear();
ae.a.f("openSDK_LOG.ReportManager", "-->doReportVia, uploadSuccess: " + z10 + " resultCode: " + i15);
} catch (Exception e12) {
ae.a.d("openSDK_LOG.ReportManager", "-->doReportVia, exception in serial executor.", e12);
}
}
}