Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97
以下内容为反编译后的 l.java 源代码,内容仅作参考
package com.bytedance.sdk.openadsdk.core.settings;
import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import android.util.Log;
import androidx.annotation.NonNull;
import com.bytedance.sdk.component.utils.w;
import com.bytedance.sdk.openadsdk.core.o;
import com.bytedance.sdk.openadsdk.core.v;
import com.bytedance.sdk.openadsdk.multipro.aidl.BinderPoolService;
import com.bytedance.sdk.openadsdk.utils.DeviceUtils;
import com.bytedance.sdk.openadsdk.utils.a0;
import com.bytedance.sdk.openadsdk.utils.s;
import com.mbridge.msdk.foundation.download.Command;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import java.io.IOException;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
public class l extends s5 {
private final b c;
private final k d;
private final c e;
public interface b {
void a(boolean z);
}
public l(b bVar, k kVar, c cVar) {
super("SetF");
this.c = bVar;
this.d = kVar;
this.e = cVar;
}
public boolean b(@NonNull JSONObject jSONObject) {
this.d.a(jSONObject);
this.e.a(jSONObject);
return this.d.j;
}
@Override
public void run() {
Log.d("TTAD.SdkSettingsFetch", "Start Try");
int a2 = w.a(o.a(), 0L);
if (a2 == 0) {
Log.d("TTAD.SdkSettingsFetch", "No net");
this.c.a(false);
return;
}
com.bytedance.sdk.openadsdk.l.c.c cVar = new com.bytedance.sdk.openadsdk.l.c.c();
JSONObject a3 = a(a2);
LAc0lbj O2WW392N = com.bytedance.sdk.openadsdk.n.c.b().d().O2WW392N();
try {
String a4 = com.bytedance.sdk.openadsdk.g.d.a(O2WW392N, a0.j("/api/ad/union/mediation/settings/"));
O2WW392N.VJ(a4);
O2WW392N.Bcny5qC1(Command.HTTP_HEADER_USER_AGENT, a0.t());
cVar.d(a4);
} catch (Exception unused) {
}
String jSONObject = a(a3).toString();
if (o.d().n() && v.a().c() == 1) {
a0.a("Pangle_Debug_Mode", jSONObject, o.a());
}
O2WW392N.EAU(jSONObject, o.d().v());
cVar.a(O2WW392N.MN0()).c();
O2WW392N.O2WW392N(new a(cVar));
DeviceUtils.l();
}
public void a(String str, Map<String, String> map) {
int i;
try {
if (!TextUtils.isEmpty(str) && map != null) {
HashMap hashMap = new HashMap();
for (Map.Entry<String, String> entry : map.entrySet()) {
String key = entry.getKey();
if (key != null) {
hashMap.put(key.toLowerCase(Locale.US), entry.getValue());
}
}
i = Integer.parseInt((String) hashMap.get("active-control"));
long parseLong = Long.parseLong((String) hashMap.get(CampaignEx.JSON_KEY_ST_TS));
String str2 = (String) hashMap.get("pst");
String gt65QHUX = d90L3h.gt65QHUX(str + i + parseLong);
if (gt65QHUX != null) {
}
}
} catch (Throwable unused) {
}
i = 1;
j.a(i);
}
@NonNull
private JSONObject a(int i) {
JSONObject jSONObject = new JSONObject();
try {
d d = o.d();
jSONObject.put("model", Build.MODEL);
jSONObject.put("device_city", a0.m());
if (d.A("gaid")) {
jSONObject.put("gaid", QY.g8().gt65QHUX());
}
jSONObject.put("gdpr", com.bytedance.sdk.openadsdk.core.h.a().h());
jSONObject.put("coppa", com.bytedance.sdk.openadsdk.core.h.a().m());
jSONObject.put("ccpa", com.bytedance.sdk.openadsdk.core.h.a().e());
if (d.A("mcc")) {
jSONObject.put("mcc", s.c());
}
Context a2 = o.a();
jSONObject.put("conn_type", a0.a(i));
jSONObject.put("os", 1);
jSONObject.put("oversea_version_type", 1);
jSONObject.put("os_version", Build.VERSION.RELEASE);
jSONObject.put("sdk_version", "5.4.1.1");
jSONObject.put("language", com.bytedance.sdk.openadsdk.core.j.b());
jSONObject.put("time_zone", a0.h());
jSONObject.put(CampaignEx.JSON_KEY_PACKAGE_NAME, a0.i());
jSONObject.put("position", a0.v() ? 1 : 2);
jSONObject.put("app_version", a0.s());
jSONObject.put("vendor", Build.MANUFACTURER);
jSONObject.put("uuid", com.bytedance.sdk.openadsdk.core.j.d(a2));
String d2 = com.bytedance.sdk.openadsdk.core.h.a().d();
if (d2 != null) {
jSONObject.put("app_id", d2);
}
long currentTimeMillis = System.currentTimeMillis() / 1000;
jSONObject.put(CampaignEx.JSON_KEY_ST_TS, currentTimeMillis);
jSONObject.put("req_sign", com.bytedance.sdk.component.utils.e.a(d2 != null ? d2.concat(String.valueOf(currentTimeMillis)).concat("5.4.1.1") : ""));
jSONObject.put("tcstring", n.d(a2));
jSONObject.put("tcf_gdpr", n.c(a2));
jSONObject.put("lmt", DeviceUtils.g());
jSONObject.put("locale_language", DeviceUtils.h());
jSONObject.put("channel", "main");
JSONObject g = d.g();
if (g != null) {
jSONObject.put("digest", g);
}
jSONObject.put("data_time", d.Z());
jSONObject.put("app_set_id_scope", AppSetIdAndScope.b());
jSONObject.put("app_set_id", AppSetIdAndScope.a());
jSONObject.put("installed_source", AppSetIdAndScope.d());
} catch (Exception unused) {
}
return jSONObject;
}
class a extends TN2cVaBe {
final com.bytedance.sdk.openadsdk.l.c.c a;
a(com.bytedance.sdk.openadsdk.l.c.c cVar) {
this.a = cVar;
}
@Override
public void a(hE hEVar, d4 d4Var) {
JSONObject jSONObject;
int optInt;
int g8 = d4Var.g8();
String gt65QHUX = d4Var.gt65QHUX();
if (o.d().n() && v.a().c() == 1) {
a0.a("Pangle_Debug_Mode", gt65QHUX, o.a());
}
if (d4Var.EAU() && !TextUtils.isEmpty(gt65QHUX)) {
this.a.b(gt65QHUX).a(g8).a(true).b();
String str = null;
try {
jSONObject = new JSONObject(gt65QHUX);
} catch (JSONException unused) {
jSONObject = null;
}
if (jSONObject != null && (optInt = jSONObject.optInt("cypher", -1)) != -1) {
if (optInt == 3) {
str = com.bytedance.sdk.component.utils.a.a(jSONObject.optString("message"));
if (!TextUtils.isEmpty(str)) {
try {
jSONObject = new JSONObject(str);
} catch (Throwable unused2) {
}
}
}
try {
l.this.a(str, d4Var.VJ());
} catch (Throwable unused3) {
}
try {
l.this.b(jSONObject);
o.d().a(System.currentTimeMillis());
} catch (Throwable unused4) {
}
l.this.c.a(true);
com.bytedance.sdk.openadsdk.core.h0.a.a();
return;
}
}
this.a.b(gt65QHUX).a(g8).c(d4Var.O2WW392N()).a(d4Var.EAU()).b();
l.this.c.a(false);
}
@Override
public void a(hE hEVar, IOException iOException) {
this.a.c(iOException != null ? iOException.getMessage() : null).a(false).b();
l.this.c.a(false);
com.bytedance.sdk.openadsdk.core.h0.a.a();
}
}
private JSONObject a(JSONObject jSONObject) {
return com.bytedance.sdk.component.utils.a.a(jSONObject);
}
public static boolean a() {
return BinderPoolService.f2145b;
}
}