鑫垚影视 v20.42版本的 MD5 值为:e3822d25ef47121f1770bb4806abacfe
以下内容为反编译后的 b.java 源代码,内容仅作参考
package bykvm_19do.bykvm_19do.bykvm_if122.bykvm_byte12b;
import android.content.Context;
import android.content.pm.ProviderInfo;
import android.os.Build;
import android.text.TextUtils;
import androidx.exifinterface.media.ExifInterface;
import com.bytedance.msdk.adapter.config.DefaultAdapterClasses;
import com.bytedance.msdk.adapter.config.ITTAdapterConfiguration;
import com.bytedance.msdk.adapter.util.Logger;
import com.bytedance.msdk.api.v2.GMMediationAdSdk;
import com.bytedance.msdk.api.v2.GMSettingConfigCallback;
import com.umeng.analytics.pro.ak;
import e.l.a.b;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
public class b {
private static final GMSettingConfigCallback f793a = new a();
public static class a implements GMSettingConfigCallback {
@Override
public void configLoad() {
try {
b.d();
} finally {
try {
} finally {
}
}
}
}
public static void c() {
try {
if (Logger.isDebug() && GMMediationAdSdk.configLoadSuccess()) {
d();
}
} catch (Throwable unused) {
}
}
public static synchronized void d() {
List<String> a2;
synchronized (b.class) {
Context d2 = bykvm_19do.bykvm_19do.bykvm_if122.bykvm_19do.a.d();
if (d2 == null) {
return;
}
Map<String, bykvm_19do.bykvm_19do.bykvm_if122.bykvm_19do.bykvm_goto109.a> b2 = bykvm_19do.bykvm_19do.bykvm_if122.bykvm_19do.a.f().b();
if (b2 == null) {
return;
}
int i2 = d2.getApplicationInfo().targetSdkVersion;
Logger.i("TTMediationSDK_SDK_Init", "------------------ GroMore 接入信息 start ---------------------");
Logger.d("TTMediationSDK_SDK_Init", "当前接入的GroMore SDK版本是:3.2.2.0");
if ((Build.VERSION.SDK_INT >= 24 || i2 >= 24) && (a2 = a(d2)) != null) {
for (String str : b2.keySet()) {
if (!"unity".equals(str)) {
if (a2.contains(str)) {
Logger.i("TTMediationSDK_SDK_Init", "已按要求接入三方广告sdk【" + str + "】");
} else {
Logger.e("TTMediationSDK_SDK_Init", "未按要求接入三方广告sdk【" + str + "】,请检查接入配置");
}
}
}
}
Logger.i("TTMediationSDK_SDK_Init", "------------------ GroMore 接入信息 end ---------------------");
Logger.i("TTMediationSDK_SDK_Init", "------------------ GroMore 版本信息 start ---------------------");
Map<String, ITTAdapterConfiguration> d3 = bykvm_19do.bykvm_19do.bykvm_if122.bykvm_byte12b.a.d();
Map<String, bykvm_19do.bykvm_19do.bykvm_if122.bykvm_19do.bykvm_goto109.a> b3 = bykvm_19do.bykvm_19do.bykvm_if122.bykvm_19do.a.f().b();
if (d3 != null && b3 != null) {
for (String str2 : b3.keySet()) {
try {
if (!TextUtils.isEmpty(str2)) {
ITTAdapterConfiguration iTTAdapterConfiguration = d3.get(DefaultAdapterClasses.getClassNameByAdnName(str2));
if (iTTAdapterConfiguration != null) {
iTTAdapterConfiguration.checkVersion();
} else {
Logger.e("TTMediationSDK_InitChecker", "没有引入" + str2 + "Adapter,请检查相关引入情况");
}
}
} catch (Throwable th) {
th.printStackTrace();
}
}
}
Logger.i("TTMediationSDK_SDK_Init", "------------------ GroMore 版本信息 end ---------------------");
}
}
private static int a(String str, String str2) {
if (TextUtils.isEmpty(str) && TextUtils.isEmpty(str2)) {
return 0;
}
if (TextUtils.isEmpty(str)) {
return -1;
}
if (TextUtils.isEmpty(str2)) {
return 1;
}
if (str.startsWith(ak.aE) || str.startsWith(ExifInterface.GPS_MEASUREMENT_INTERRUPTED)) {
str = str.substring(1);
}
if (str2.startsWith(ak.aE) || str2.startsWith(ExifInterface.GPS_MEASUREMENT_INTERRUPTED)) {
str2 = str2.substring(1);
}
String[] split = str.split("\\.");
String[] split2 = str2.split("\\.");
int min = Math.min(split.length, split2.length);
for (int i2 = 0; i2 < min; i2++) {
if (split[i2].length() != split2[i2].length()) {
return split[i2].length() > split2[i2].length() ? 1 : -1;
}
int compareTo = split[i2].compareTo(split2[i2]);
if (compareTo != 0) {
return compareTo;
}
}
if (split.length == split2.length) {
return 0;
}
return split.length > split2.length ? 1 : -1;
}
public static boolean b(String str, String str2) {
if (TextUtils.isEmpty(str) || TextUtils.isEmpty(str2)) {
return false;
}
if (str.equals("pangle")) {
return true;
}
str.hashCode();
char c2 = 65535;
switch (str.hashCode()) {
case -1128782217:
if (str.equals("klevin")) {
c2 = 0;
break;
}
break;
case -902468465:
if (str.equals("sigmob")) {
c2 = 1;
break;
}
break;
case b.h.c8:
if (str.equals("ks")) {
c2 = 2;
break;
}
break;
case 102199:
if (str.equals("gdt")) {
c2 = 3;
break;
}
break;
case 92668925:
if (str.equals("admob")) {
c2 = 4;
break;
}
break;
case 93498907:
if (str.equals("baidu")) {
c2 = 5;
break;
}
break;
case 111433589:
if (str.equals("unity")) {
c2 = 6;
break;
}
break;
case 1126045977:
if (str.equals("mintegral")) {
c2 = 7;
break;
}
break;
}
switch (c2) {
case 0:
if (a(str2, "2.4.2.4.0") != 0) {
Logger.e("TTMediationSDK_InitChecker", "klevinAdapter版本不符合, 要求版本等于2.4.2.4.0,当前是" + str2);
return false;
}
Logger.d("TTMediationSDK_InitChecker", "klevinAdapter版本正常, 要求版本等于2.4.2.4.0,当前是" + str2);
return true;
case 1:
if (a(str2, "3.5.4.0") != 0) {
Logger.e("TTMediationSDK_InitChecker", "sigmobAdapter版本不符合, 要求版本等于3.5.4.0,当前是" + str2);
return false;
}
Logger.d("TTMediationSDK_InitChecker", "sigmobAdapter版本正常, 要求版本等于3.5.4.0,当前是" + str2);
return true;
case 2:
if (a(str2, "3.3.20.0") != 0) {
Logger.e("TTMediationSDK_InitChecker", "快手Adapter版本不符合, 要求版本等于3.3.20.0,当前是" + str2);
return false;
}
Logger.d("TTMediationSDK_InitChecker", "快手Adapter版本正常, 要求版本等于3.3.20.0,当前是" + str2);
return true;
case 3:
if (a(str2, "4.440.1310.0") != 0) {
Logger.e("TTMediationSDK_InitChecker", "gdtAdapter版本不符合,要求等于4.440.1310.0,当前是" + str2);
return false;
}
Logger.d("TTMediationSDK_InitChecker", "gdtAdapter版本正常,要求等于4.440.1310.0,当前是" + str2);
return true;
case 4:
if (a(str2, "17.2.0.18") != 0) {
Logger.e("TTMediationSDK_InitChecker", "admobAdapter版本不符合,要求<=17.2.0.18,当前是" + str2);
return false;
}
Logger.d("TTMediationSDK_InitChecker", "admobAdapter版本正常,要求<=17.2.0.18,当前是" + str2);
return true;
case 5:
if (a(str2, "9.183.0") != 0) {
Logger.e("TTMediationSDK_InitChecker", "百度Adapter版本不符合,要求等于9.183.0,当前是" + str2);
return false;
}
Logger.d("TTMediationSDK_InitChecker", "百度Adapter版本正常,要求等于9.183.0,当前是" + str2);
return true;
case 6:
if (a(str2, "4.0.0.1") != 0) {
Logger.e("TTMediationSDK_InitChecker", "unityAdapter版本不符合,要求等于4.0.0.1,当前是" + str2);
return false;
}
Logger.d("TTMediationSDK_InitChecker", "unityAdapter版本正常,要求等于4.0.0.1,当前是" + str2);
return true;
case 7:
if (a(str2, "15.8.07.1") != 0) {
Logger.e("TTMediationSDK_InitChecker", "MintegralAdapter版本不符合, 要求版本等于15.8.07.1,当前是" + str2);
return false;
}
Logger.d("TTMediationSDK_InitChecker", "MintegralAdapter版本正常, 要求版本等于15.8.07.1,当前是" + str2);
return true;
default:
return false;
}
}
public static boolean c(String str, String str2) {
if (TextUtils.isEmpty(str) || TextUtils.isEmpty(str2)) {
return false;
}
if (str.equals("baidu") || str.equals("admob")) {
return true;
}
str.hashCode();
char c2 = 65535;
switch (str.hashCode()) {
case -1128782217:
if (str.equals("klevin")) {
c2 = 0;
break;
}
break;
case -995541405:
if (str.equals("pangle")) {
c2 = 1;
break;
}
break;
case -902468465:
if (str.equals("sigmob")) {
c2 = 2;
break;
}
break;
case b.h.c8:
if (str.equals("ks")) {
c2 = 3;
break;
}
break;
case 102199:
if (str.equals("gdt")) {
c2 = 4;
break;
}
break;
case 111433589:
if (str.equals("unity")) {
c2 = 5;
break;
}
break;
case 1126045977:
if (str.equals("mintegral")) {
c2 = 6;
break;
}
break;
}
switch (c2) {
case 0:
if (a(str2, "2.4.2.4") != 0) {
Logger.e("TTMediationSDK_InitChecker", "klevin版本不符合, 要求版本等于2.4.2.4,当前是" + str2);
return false;
}
Logger.d("TTMediationSDK_InitChecker", "klevin版本正常, 要求版本等于2.4.2.4,当前是" + str2);
return true;
case 1:
if (a(str2, "4.2.5.1") != 0) {
Logger.e("TTMediationSDK_InitChecker", "穿山甲版本不符合,要求等于4.2.5.1,当前是" + str2);
return false;
}
Logger.d("TTMediationSDK_InitChecker", "穿山甲版本正常,要求等于4.2.5.1,当前是" + str2);
return true;
case 2:
if (a(str2, "3.5.4") != 0) {
Logger.e("TTMediationSDK_InitChecker", "sigmob版本不符合, 要求版本等于3.5.4,当前是" + str2);
return false;
}
Logger.d("TTMediationSDK_InitChecker", "sigmob版本正常, 要求版本等于3.5.4,当前是" + str2);
return true;
case 3:
if (a(str2, "3.3.20") != 0) {
Logger.e("TTMediationSDK_InitChecker", "快手版本不符合, 要求版本等于3.3.20,当前是" + str2);
return false;
}
Logger.d("TTMediationSDK_InitChecker", "快手版本正常, 要求版本等于3.3.20,当前是" + str2);
return true;
case 4:
if (a(str2, "4.440.1310") != 0) {
Logger.e("TTMediationSDK_InitChecker", "gdt版本不符合,要求等于4.440.1310,当前是" + str2);
return false;
}
Logger.d("TTMediationSDK_InitChecker", "gdt版本正常,要求等于4.440.1310,当前是" + str2);
return true;
case 5:
if (a(str2, "4.0.0") != 0) {
Logger.e("TTMediationSDK_InitChecker", "unity版本不符合,要求等于4.0.0,当前是" + str2);
return false;
}
Logger.d("TTMediationSDK_InitChecker", "unity版本正常,要求等于4.0.0,当前是" + str2);
return true;
case 6:
if (!TextUtils.isEmpty(str2) && str2.contains("15.8.07")) {
Logger.d("TTMediationSDK_InitChecker", "Mintegral版本正常, 要求版本等于15.8.07,当前是" + str2);
return true;
}
Logger.e("TTMediationSDK_InitChecker", "Mintegral版本不符合, 要求版本等于15.8.07,当前是" + str2);
return false;
default:
return false;
}
}
private static List<String> a(Context context) {
List<ProviderInfo> queryContentProviders = context.getPackageManager().queryContentProviders(context.getApplicationInfo().processName, context.getApplicationInfo().uid, 131072);
if (queryContentProviders == null) {
return null;
}
ArrayList arrayList = new ArrayList();
context.getPackageName();
Iterator<ProviderInfo> it = queryContentProviders.iterator();
while (it.hasNext()) {
String str = it.next().name;
str.hashCode();
char c2 = 65535;
switch (str.hashCode()) {
case -2132028139:
if (str.equals("com.baidu.mobads.sdk.api.BdFileProvider")) {
c2 = 0;
}
switch (c2) {
case 0:
arrayList.add("baidu");
break;
case 1:
arrayList.add("mintegral");
break;
case 2:
arrayList.add("sigmob");
break;
case 3:
arrayList.add("klevin");
break;
case 4:
arrayList.add("admob");
break;
case 5:
arrayList.add("ks");
break;
case 6:
arrayList.add("pangle");
break;
case 7:
arrayList.add("unity");
break;
case '\b':
arrayList.add("gdt");
break;
}
break;
case -1630533804:
if (str.equals("com.mbridge.msdk.foundation.tools.MBFileProvider")) {
c2 = 1;
}
switch (c2) {
}
break;
case -1097984862:
if (str.equals("com.sigmob.sdk.SigmobFileProvider")) {
c2 = 2;
}
switch (c2) {
}
break;
case 8917003:
if (str.equals("com.tencent.klevin.utils.FileProvider")) {
c2 = 3;
}
switch (c2) {
}
break;
case 405711305:
if (str.equals("com.google.android.gms.ads.MobileAdsInitProvider")) {
c2 = 4;
}
switch (c2) {
}
break;
case 980611709:
if (str.equals("com.kwad.sdk.api.proxy.app.AdSdkFileProvider")) {
c2 = 5;
}
switch (c2) {
}
break;
case 1010345138:
if (str.equals("com.bytedance.sdk.openadsdk.TTFileProvider")) {
c2 = 6;
}
switch (c2) {
}
break;
case 1011081416:
if (str.equals("com.unity")) {
c2 = 7;
}
switch (c2) {
}
break;
case 1719438508:
if (str.equals("com.qq.e.comm.GDTFileProvider")) {
c2 = '\b';
}
switch (c2) {
}
break;
default:
switch (c2) {
}
break;
}
}
return arrayList;
}
}