Active IQ v6.7.1版本的 MD5 值为:5082594ca2b69fbfbe64e6d6ee2159a7
以下内容为反编译后的 ja.java 源代码,内容仅作参考
package com.flurry.sdk;
import android.content.Context;
import android.widget.Toast;
import com.flurry.sdk.ku;
import com.flurry.sdk.kw;
import com.flurry.sdk.lt;
import java.util.Arrays;
public class ja extends la implements lt.a {
private static final String a = "ja";
private String f;
private boolean g;
public ja() {
this((byte) 0);
}
private ja(byte b) {
super("Analytics", ja.class.getSimpleName());
this.c = "AnalyticsData_";
ls a2 = ls.a();
this.g = ((Boolean) a2.a("UseHttps")).booleanValue();
a2.a("UseHttps", (lt.a) this);
String str = a;
kn.a(4, str, "initSettings, UseHttps = " + this.g);
String str2 = (String) a2.a("ReportUrl");
a2.a("ReportUrl", (lt.a) this);
b(str2);
String str3 = a;
kn.a(4, str3, "initSettings, ReportUrl = " + str2);
b();
}
private void b(String str) {
if (str != null && !str.endsWith(".do")) {
kn.a(5, a, "overriding analytics agent report URL without an endpoint, are you sure?");
}
this.f = str;
}
@Override
public final void a(String str, Object obj) {
char c;
int hashCode = str.hashCode();
if (hashCode != -239660092) {
if (hashCode == 1650629499 && str.equals("ReportUrl")) {
c = 1;
}
c = 65535;
} else {
if (str.equals("UseHttps")) {
c = 0;
}
c = 65535;
}
if (c == 0) {
this.g = ((Boolean) obj).booleanValue();
String str2 = a;
kn.a(4, str2, "onSettingUpdate, UseHttps = " + this.g);
} else if (c == 1) {
String str3 = (String) obj;
b(str3);
String str4 = a;
kn.a(4, str4, "onSettingUpdate, ReportUrl = " + str3);
} else {
kn.a(6, a, "onSettingUpdate internal error!");
}
}
@Override
public final void a(String str, String str2, final int i) {
jy.a().b(new ma() {
@Override
public final void a() {
if (i == 200) {
hn.a();
je b = hn.b();
if (b != null) {
b.j = true;
}
}
}
});
super.a(str, str2, i);
}
@Override
public final void a(byte[] bArr, final String str, final String str2) {
String str3 = this.f;
if (str3 == null) {
str3 = this.g ? "https://data.flurry.com/aap.do" : "http://data.flurry.com/aap.do";
}
String str4 = a;
kn.a(4, str4, "FlurryDataSender: start upload data " + Arrays.toString(bArr) + " with id = " + str + " to " + str3);
ku kuVar = new ku();
kuVar.g = str3;
kuVar.u = 100000;
kuVar.h = kw.a.kPost;
kuVar.a("Content-Type", "application/octet-stream");
kuVar.c = new le();
kuVar.b = bArr;
kuVar.a = new ku.a<byte[], Void>() {
@Override
public final void a(ku<byte[], Void> kuVar2, Void r4) {
final int i = kuVar2.q;
if (i > 0) {
kn.e(ja.a, "Analytics report sent.");
String str5 = ja.a;
kn.a(3, str5, "FlurryDataSender: report " + str + " sent. HTTP response: " + i);
if (kn.c() <= 3 && kn.d()) {
jy.a().a(new Runnable() {
@Override
public final void run() {
Context context = jy.a().a;
Toast.makeText(context, "SD HTTP Response Code: " + i, 0).show();
}
});
}
ja.this.a(str, str2, i);
ja.this.b();
return;
}
ja.this.a(str);
}
};
jw.a().a((Object) this, (ja) kuVar);
}
}