- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
95 lines
3.6 KiB
Java
95 lines
3.6 KiB
Java
package com.mbridge.msdk.splash.a;
|
|
|
|
import android.content.Context;
|
|
import com.fyber.inneractive.sdk.external.InneractiveMediationDefs;
|
|
import com.mbridge.msdk.MBridgeConstans;
|
|
import com.mbridge.msdk.foundation.same.DomainNameUtils;
|
|
import com.mbridge.msdk.foundation.tools.ab;
|
|
import com.mbridge.msdk.foundation.tools.af;
|
|
import com.mbridge.msdk.foundation.tools.ak;
|
|
import com.mbridge.msdk.foundation.tools.f;
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class a {
|
|
public String e;
|
|
public String f;
|
|
public String g;
|
|
public String h;
|
|
public String i;
|
|
public String j;
|
|
public String k;
|
|
public String l;
|
|
public String m;
|
|
public String n;
|
|
public String o;
|
|
public int p;
|
|
public int q;
|
|
public String c = "android";
|
|
public String a = ab.m();
|
|
public String b = ab.w();
|
|
public String d = f.c();
|
|
|
|
public a(Context context) {
|
|
int m = ab.m(context);
|
|
this.e = String.valueOf(m);
|
|
this.f = ab.a(context, m);
|
|
this.g = ab.g(context);
|
|
this.h = com.mbridge.msdk.foundation.controller.c.m().b();
|
|
this.i = com.mbridge.msdk.foundation.controller.c.m().k();
|
|
this.j = String.valueOf(ak.f(context));
|
|
this.k = String.valueOf(ak.e(context));
|
|
this.m = String.valueOf(ak.d(context));
|
|
if (context.getResources().getConfiguration().orientation == 2) {
|
|
this.l = "landscape";
|
|
} else {
|
|
this.l = "portrait";
|
|
}
|
|
this.n = ab.n();
|
|
this.o = f.d();
|
|
this.p = f.a();
|
|
this.q = com.mbridge.msdk.foundation.controller.authoritycontroller.b.b() ? 1 : 0;
|
|
}
|
|
|
|
public final JSONObject a() {
|
|
JSONObject jSONObject = new JSONObject();
|
|
try {
|
|
if (com.mbridge.msdk.foundation.controller.authoritycontroller.c.j().c(MBridgeConstans.AUTHORITY_GENERAL_DATA)) {
|
|
jSONObject.put("device", this.a);
|
|
jSONObject.put("system_version", this.b);
|
|
jSONObject.put("network_type", this.e);
|
|
jSONObject.put("network_type_str", this.f);
|
|
jSONObject.put("device_ua", this.g);
|
|
jSONObject.put("has_wx", ab.v(com.mbridge.msdk.foundation.controller.c.m().c()));
|
|
jSONObject.put("integrated_wx", ab.z());
|
|
jSONObject.put("mnc", ab.l(com.mbridge.msdk.foundation.controller.c.m().c()));
|
|
jSONObject.put("mcc", ab.k(com.mbridge.msdk.foundation.controller.c.m().c()));
|
|
jSONObject.put("adid_limit", this.p);
|
|
jSONObject.put("adid_limit_dev", this.q);
|
|
}
|
|
jSONObject.put("plantform", this.c);
|
|
if (com.mbridge.msdk.foundation.controller.authoritycontroller.c.j().c(MBridgeConstans.AUTHORITY_DEVICE_ID)) {
|
|
jSONObject.put("google_ad_id", this.d);
|
|
jSONObject.put("az_aid_info", this.o);
|
|
}
|
|
jSONObject.put("appkey", this.h);
|
|
jSONObject.put("appId", this.i);
|
|
jSONObject.put("screen_width", this.j);
|
|
jSONObject.put("screen_height", this.k);
|
|
jSONObject.put("orientation", this.l);
|
|
jSONObject.put("scale", this.m);
|
|
if (ab.q() != 0) {
|
|
jSONObject.put("tun", ab.q());
|
|
}
|
|
jSONObject.put(InneractiveMediationDefs.GENDER_FEMALE, this.n);
|
|
if (DomainNameUtils.getInstance().isExcludeCNDomain()) {
|
|
jSONObject.put("re_domain", "1");
|
|
}
|
|
} catch (JSONException e) {
|
|
af.b("BaseDeviceInfo", e.getMessage());
|
|
}
|
|
return jSONObject;
|
|
}
|
|
}
|