Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,80 @@
package com.mbridge.msdk.advanced.common;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.telephony.TelephonyManager;
import android.util.Base64;
import android.webkit.WebView;
import com.mbridge.msdk.foundation.tools.ab;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.mbsignalcommon.windvane.g;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public class NetWorkStateReceiver extends BroadcastReceiver {
private static final String a = "NetWorkStateReceiver";
private WebView b;
private int c;
public final void a() {
this.b = null;
}
public NetWorkStateReceiver(WebView webView) {
this.b = webView;
}
@Override // android.content.BroadcastReceiver
public void onReceive(Context context, Intent intent) {
try {
ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
if (connectivityManager == null) {
a(this.b, 0);
return;
}
if (com.mbridge.msdk.foundation.same.a.z) {
NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
if (activeNetworkInfo == null) {
a(this.b, 0);
return;
}
if (activeNetworkInfo.getState() != NetworkInfo.State.CONNECTING && activeNetworkInfo.getState() != NetworkInfo.State.DISCONNECTING) {
if (activeNetworkInfo.getType() == 1) {
a(this.b, 9);
return;
}
TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone");
if (telephonyManager == null) {
a(this.b, 0);
return;
}
int networkType = telephonyManager.getNetworkType();
this.c = networkType;
int b = ab.b(networkType);
this.c = b;
a(this.b, b);
return;
}
return;
}
a(this.b, 0);
} catch (Throwable th) {
af.a(a, th.getMessage());
}
}
private void a(WebView webView, int i) {
if (webView != null) {
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put("netstat", i);
g.a().a(webView, "onNetstatChanged", Base64.encodeToString(jSONObject.toString().getBytes(), 2));
} catch (Throwable th) {
af.a(a, th.getMessage());
}
}
}
}

View File

@@ -0,0 +1,96 @@
package com.mbridge.msdk.advanced.common;
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("opensdk_ver", ab.u() + "");
jSONObject.put("wx_api_ver", ab.c(com.mbridge.msdk.foundation.controller.c.m().h()) + "");
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;
}
}

View File

@@ -0,0 +1,10 @@
package com.mbridge.msdk.advanced.common;
import android.content.Context;
/* loaded from: classes4.dex */
public final class b extends a {
public b(Context context) {
super(context);
}
}

View File

@@ -0,0 +1,24 @@
package com.mbridge.msdk.advanced.common;
import java.util.HashMap;
import java.util.Map;
/* loaded from: classes4.dex */
public final class c {
private static Map<String, Boolean> a = new HashMap();
public static void a(String str, boolean z) {
a.put(str, Boolean.valueOf(z));
}
public static boolean a(String str) {
if (a.containsKey(str)) {
return a.get(str).booleanValue();
}
return false;
}
public static void b(String str) {
a.remove(str);
}
}