天津出行司机端 v6.9.3版本的 MD5 值为:b7a18e0f0e865860fd80aa9ed7cf4ae1
以下内容为反编译后的 c.java 源代码,内容仅作参考
package com.iflytek.idata.extension;
import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import com.autonavi.ae.svg.SVGParser;
import com.iflytek.idata.extension.b;
import org.json.JSONObject;
public class c implements Runnable {
private Context a;
private b.a b = new a();
public c(Context context) {
this.a = context;
}
@Override
public void run() {
IFlyCollectorExt iFlyCollectorExt;
byte[] d;
try {
if (!com.iflytek.idata.extension.d.b.a(this.a) || (d = (iFlyCollectorExt = IFlyCollectorExt.getInstance(this.a)).d()) == null) {
return;
}
b bVar = new b();
bVar.b(20000);
bVar.a(1);
StringBuilder sb = new StringBuilder();
sb.append("product=freelog&appid=" + iFlyCollectorExt.getAppId());
String subId = iFlyCollectorExt.getSubId();
if (!TextUtils.isEmpty(subId)) {
sb.append("&subid=" + subId);
}
sb.append("&size=" + d.length + "&platform=android&source=daas&pv=1.1");
bVar.a("https://log.iflytek.com/log", sb.toString(), d);
bVar.a(this.b);
bVar.a();
} catch (Throwable th) {
com.iflytek.idata.extension.d.a.c("Collector", "exception occur while upload:" + th.toString());
}
}
public void a(String str) {
try {
JSONObject optJSONObject = new JSONObject(str).optJSONObject("rsp");
if (optJSONObject != null) {
String optString = optJSONObject.optString("des");
if (!TextUtils.isEmpty(optString)) {
SharedPreferences b = com.iflytek.idata.extension.d.b.b(this.a);
String string = b.getString("ifly_dynamic_business_conf", "");
SharedPreferences.Editor edit = b.edit();
if (SVGParser.XML_STYLESHEET_ATTR_ALTERNATE_NO.equals(optString)) {
if (!TextUtils.isEmpty(string)) {
edit.putString("ifly_dynamic_business_conf", "");
edit.apply();
}
} else if (!optString.equals(string)) {
edit.putString("ifly_dynamic_business_conf", optString);
edit.apply();
}
}
String optString2 = optJSONObject.optString("ver");
if (TextUtils.isEmpty(optString2) || optString2.equals(IFlyCollectorExt.getInstance(this.a).a())) {
return;
}
new Thread(new com.iflytek.idata.extension.a(this.a, true)).start();
}
} catch (Throwable th) {
com.iflytek.idata.extension.d.a.b("Collector", "parse result error:" + th.toString());
}
}
class a implements b.a {
a() {
}
@Override
public void a(b bVar, byte[] bArr) {
if (bArr != null) {
try {
String str = new String(bArr, "utf-8");
if (b.a(str)) {
return;
}
com.iflytek.idata.extension.d.a.a("Collector", "upload success");
c.this.a(str);
} catch (Throwable th) {
a(new Exception(th));
}
}
}
@Override
public void a(Exception exc) {
com.iflytek.idata.extension.d.a.b("Collector", "update error:" + exc);
}
}
}