MD5 校验值:c9acc583577d8b1a394e7959c947bec3
a.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package com.applovin.impl.mediation.debugger.ui.b; import android.R; import android.content.Context; import android.content.Intent; import android.database.DataSetObserver; import android.os.Bundle; import android.text.TextUtils; import android.view.Menu; import android.view.MenuItem; import android.view.MotionEvent; import android.widget.FrameLayout; import android.widget.ListAdapter; import android.widget.ListView; import com.applovin.impl.mediation.debugger.ui.b.b; import com.applovin.impl.mediation.debugger.ui.d.c; import com.applovin.impl.mediation.debugger.ui.d.d; import com.applovin.impl.sdk.n; import com.applovin.impl.sdk.utils.StringUtils; import com.applovin.impl.sdk.utils.Utils; import com.applovin.impl.sdk.utils.b; import com.applovin.mediation.MaxDebuggerAdUnitsListActivity; import com.applovin.mediation.MaxDebuggerDetailActivity; import com.applovin.mediation.MaxDebuggerTestLiveNetworkActivity; import com.applovin.mediation.MaxDebuggerTestModeNetworkActivity; import com.safedk.android.analytics.brandsafety.BrandSafetyUtils; import com.safedk.android.analytics.brandsafety.DetectTouchUtils; import com.safedk.android.utils.Logger; import com.safedk.android.utils.f; public class a extends com.applovin.impl.mediation.debugger.ui.a { private b a; private DataSetObserver b; private FrameLayout c; private ListView d; private com.applovin.impl.adview.a e; private void a() { String l = this.a.l(); if (TextUtils.isEmpty(l)) { return; } Intent intent = new Intent("android.intent.action.SEND"); intent.setType("text/plain"); intent.putExtra("android.intent.extra.TEXT", l); intent.putExtra("android.intent.extra.TITLE", "Mediation Debugger logs"); intent.putExtra("android.intent.extra.SUBJECT", "MAX Mediation Debugger logs"); safedk_a_startActivity_72089c07c055777128c1d83905283aa6(this, Intent.createChooser(intent, null)); } public void a(final Context context) { if (!StringUtils.isValidString(this.a.h()) || this.a.b()) { return; } this.a.a(true); runOnUiThread(new Runnable() { @Override public void run() { Utils.showAlert(a.this.a.g(), a.this.a.h(), context); } }); } private void b() { c(); com.applovin.impl.adview.a aVar = new com.applovin.impl.adview.a(this, 50, R.attr.progressBarStyleLarge); this.e = aVar; aVar.setColor(-3355444); this.c.addView(this.e, new FrameLayout.LayoutParams(-1, -1, 17)); this.c.bringChildToFront(this.e); this.e.a(); } public void c() { com.applovin.impl.adview.a aVar = this.e; if (aVar != null) { aVar.b(); this.c.removeView(this.e); this.e = null; } } public static void safedk_a_startActivity_72089c07c055777128c1d83905283aa6(a p0, Intent p1) { Logger.d("SafeDK-Special|SafeDK: Call> Lcom/applovin/impl/mediation/debugger/ui/b/a;->startActivity(Landroid/content/Intent;)V"); if (p1 == null) { return; } BrandSafetyUtils.detectAdClick(p1, f.a); p0.startActivity(p1); } @Override public boolean dispatchTouchEvent(MotionEvent me) { DetectTouchUtils.activityOnTouch(f.a, me); return super.dispatchTouchEvent(me); } @Override protected n getSdk() { b bVar = this.a; if (bVar != null) { return bVar.c(); } return null; } @Override public void onCreate(Bundle bundle) { super.onCreate(bundle); setTitle("MAX Mediation Debugger"); setContentView(com.applovin.sdk.R.layout.mediation_debugger_list_view); this.c = (FrameLayout) findViewById(R.id.content); this.d = (ListView) findViewById(com.applovin.sdk.R.id.listView); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(com.applovin.sdk.R.menu.mediation_debugger_activity_menu, menu); return true; } @Override public void onDestroy() { super.onDestroy(); b bVar = this.a; if (bVar != null) { bVar.unregisterDataSetObserver(this.b); this.a.a((d.a) null); } } @Override public boolean onOptionsItemSelected(MenuItem menuItem) { if (com.applovin.sdk.R.id.action_share != menuItem.getItemId()) { return super.onOptionsItemSelected(menuItem); } a(); return true; } @Override protected void onStart() { super.onStart(); this.d.setAdapter((ListAdapter) this.a); b bVar = this.a; if (bVar == null || bVar.a()) { return; } b(); } public void setListAdapter(b bVar, final com.applovin.impl.sdk.a aVar) { DataSetObserver dataSetObserver; b bVar2 = this.a; if (bVar2 != null && (dataSetObserver = this.b) != null) { bVar2.unregisterDataSetObserver(dataSetObserver); } this.a = bVar; this.b = new DataSetObserver() { @Override public void onChanged() { a.this.c(); a aVar2 = a.this; aVar2.a((Context) aVar2); } }; a((Context) this); this.a.registerDataSetObserver(this.b); this.a.a(new d.a() { @Override public void a(com.applovin.impl.mediation.debugger.ui.d.a aVar2, final c cVar) { a aVar3; Class cls; com.applovin.impl.sdk.a aVar4; b.a aVar5; int a = aVar2.a(); if (a == b.EnumC0061b.APP_INFO.ordinal() || a == b.EnumC0061b.MAX.ordinal()) { Utils.showAlert(cVar.l(), cVar.m(), a.this); return; } if (a != b.EnumC0061b.ADS.ordinal()) { if ((a == b.EnumC0061b.INCOMPLETE_NETWORKS.ordinal() || a == b.EnumC0061b.COMPLETED_NETWORKS.ordinal()) && (cVar instanceof com.applovin.impl.mediation.debugger.ui.b.a.a)) { com.applovin.impl.sdk.utils.b.a(a.this, MaxDebuggerDetailActivity.class, aVar, new b.a<MaxDebuggerDetailActivity>() { @Override public void a(MaxDebuggerDetailActivity maxDebuggerDetailActivity) { maxDebuggerDetailActivity.initialize(((com.applovin.impl.mediation.debugger.ui.b.a.a) cVar).f()); } }); return; } return; } if (aVar2.b() == b.a.AD_UNITS.ordinal()) { if (a.this.a.d().size() <= 0) { Utils.showAlert("No live ad units", "Please setup or enable your MAX ad units on https://applovin.com.", a.this); return; } aVar3 = a.this; cls = MaxDebuggerAdUnitsListActivity.class; aVar4 = aVar; aVar5 = new b.a<MaxDebuggerAdUnitsListActivity>() { @Override public void a(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) { maxDebuggerAdUnitsListActivity.initialize(a.this.a.d(), false, a.this.a.c()); } }; } else { if (aVar2.b() == b.a.SELECT_LIVE_NETWORKS.ordinal()) { if (a.this.a.i().size() > 0 || a.this.a.j().size() > 0) { if (!a.this.a.c().N().a()) { aVar3 = a.this; cls = MaxDebuggerTestLiveNetworkActivity.class; aVar4 = aVar; aVar5 = new b.a<MaxDebuggerTestLiveNetworkActivity>() { @Override public void a(MaxDebuggerTestLiveNetworkActivity maxDebuggerTestLiveNetworkActivity) { maxDebuggerTestLiveNetworkActivity.initialize(a.this.a.i(), a.this.a.j(), a.this.a.c()); } }; } Utils.showAlert("Restart Required", cVar.m(), a.this); return; } Utils.showAlert("Complete Integrations", "Please complete integrations in order to access this.", a.this); return; } if (aVar2.b() == b.a.SELECT_TEST_MODE_NETWORKS.ordinal()) { if (!a.this.a.c().N().a()) { a.this.getSdk().N().d(); Utils.showAlert("Restart Required", cVar.m(), a.this); return; } if (a.this.a.k().size() > 0) { aVar3 = a.this; cls = MaxDebuggerTestModeNetworkActivity.class; aVar4 = aVar; aVar5 = new b.a<MaxDebuggerTestModeNetworkActivity>() { @Override public void a(MaxDebuggerTestModeNetworkActivity maxDebuggerTestModeNetworkActivity) { maxDebuggerTestModeNetworkActivity.initialize(a.this.a.k(), a.this.a.c()); } }; } Utils.showAlert("Complete Integrations", "Please complete integrations in order to access this.", a.this); return; } if (aVar2.b() != b.a.INITIALIZATION_AD_UNITS.ordinal()) { return; } aVar3 = a.this; cls = MaxDebuggerAdUnitsListActivity.class; aVar4 = aVar; aVar5 = new b.a<MaxDebuggerAdUnitsListActivity>() { @Override public void a(MaxDebuggerAdUnitsListActivity maxDebuggerAdUnitsListActivity) { maxDebuggerAdUnitsListActivity.initialize(a.this.a.f(), true, a.this.a.c()); } }; } com.applovin.impl.sdk.utils.b.a(aVar3, cls, aVar4, aVar5); } }); } }