正在查看: Fancy Optimizer v4.6.3 应用的 LandingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.3 应用的 LandingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fancyclean.boost.main.ui.activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.SystemClock;
import android.text.TextUtils;
import android.widget.ProgressBar;
import com.fancyclean.boost.main.ui.activity.LandingActivity;
import com.mbridge.msdk.foundation.entity.CampaignUnit;
import com.mbridge.msdk.playercommon.exoplayer2.source.ExtractorMediaSource;
import f5.d;
import g9.c;
import hl.b;
import java.util.HashMap;
import k9.i;
import v7.a;
import vj.h;
public class LandingActivity extends a<b> {
public static final h r = new h("LandingActivity");
public Intent m;
public boolean n;
public ProgressBar o;
public final Handler l = new Handler(Looper.getMainLooper());
public volatile boolean p = false;
public volatile boolean q = false;
public final void X2() {
r.c("==> afterShowAppOpenAd");
if (isFinishing()) {
return;
}
if (Y2(this.m)) {
Z2(this.m);
} else {
a3();
}
finish();
}
public final boolean Y2(Intent intent) {
Uri data;
if ((this.m.getFlags() & ExtractorMediaSource.DEFAULT_LOADING_CHECK_INTERVAL_BYTES) != 0) {
return false;
}
h hVar = c.a;
if (!(intent == null ? false : "jump_feature".equals(intent.getAction()))) {
h hVar2 = g9.a.a;
if (!((intent == null || intent.getComponent() == null || !intent.getComponent().getShortClassName().startsWith("com.fancyclean.boost.alias")) ? false : true)) {
h hVar3 = g9.b.a;
if (!((intent == null || (data = intent.getData()) == null) ? false : "open.app.ace".equalsIgnoreCase(data.getHost()))) {
h hVar4 = d.a;
if (!((intent == null || TextUtils.isEmpty(intent.getStringExtra("google.message_id"))) ? false : true)) {
return false;
}
}
}
}
return true;
}
public final void Z2(Intent intent) {
Intent intent2 = new Intent((Context) this, (Class<?>) MainActivity.class);
intent2.setAction(intent.getAction());
intent2.setData(intent.getData());
intent2.putExtra("originalComponent", intent.getComponent());
intent2.addFlags(67108864);
intent2.putExtra("original_extra", intent.getExtras());
Bundle extras = intent.getExtras();
h hVar = y7.a.a;
if (extras == null) {
hVar.c("bundle is null");
} else {
hVar.c("print bundle");
for (String str : extras.keySet()) {
StringBuilder p = android.support.v4.media.b.p(str, ": ");
p.append(extras.getString(str));
hVar.c(p.toString());
}
}
String stringExtra = intent.getStringExtra("from_ui");
if (!TextUtils.isEmpty(stringExtra)) {
intent2.putExtra("from_ui", stringExtra);
}
String stringExtra2 = intent.getStringExtra("to_feature");
if (!TextUtils.isEmpty(stringExtra2)) {
intent2.putExtra("to_feature", stringExtra2);
}
Bundle bundleExtra = intent.getBundleExtra("params");
if (bundleExtra != null) {
intent2.putExtra("params", bundleExtra);
}
c.a(intent);
startActivity(intent2);
}
public final void a3() {
SharedPreferences sharedPreferences = getSharedPreferences("main", 0);
if (sharedPreferences != null ? sharedPreferences.getBoolean("should_show_init_engine", true) : true) {
SharedPreferences sharedPreferences2 = getSharedPreferences("main", 0);
if ((sharedPreferences2 == null ? 0 : sharedPreferences2.getInt("launch_times", 0)) == 0) {
startActivity(new Intent((Context) this, (Class<?>) InitEngineActivity.class));
SharedPreferences sharedPreferences3 = getSharedPreferences("main", 0);
SharedPreferences.Editor edit = sharedPreferences3 == null ? null : sharedPreferences3.edit();
if (edit != null) {
edit.putBoolean("should_show_init_engine", false);
edit.apply();
}
overridePendingTransition(2130771999, 2130772000);
}
}
startActivity(new Intent((Context) this, (Class<?>) MainActivity.class));
overridePendingTransition(2130771999, 2130772000);
}
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
com.adtiny.core.d.b().i(this);
setContentView(2131558490);
this.o = (ProgressBar) findViewById(2131362908);
Intent intent = getIntent();
this.m = intent;
this.n = Y2(intent);
SharedPreferences sharedPreferences = getSharedPreferences("main", 0);
if (sharedPreferences == null ? false : sharedPreferences.getBoolean("is_agreement_agreed", false)) {
return;
}
startActivity(new Intent((Context) this, (Class<?>) AgreementActivity.class));
finish();
overridePendingTransition(0, 0);
}
public final void onNewIntent(Intent intent) {
super/*androidx.fragment.app.FragmentActivity*/.onNewIntent(intent);
this.m = intent;
this.n = Y2(intent);
}
public final void onPause() {
this.o.setVisibility(8);
super/*wk.a*/.onPause();
}
public final void onResume() {
super/*wk.a*/.onResume();
if (!this.q) {
h hVar = o4.a.a;
if (nk.b.v().a(CampaignUnit.JSON_KEY_ADS, "IsAppOpenAdEnabled_v2", true)) {
SharedPreferences sharedPreferences = getSharedPreferences("main", 0);
if ((sharedPreferences == null ? 0 : sharedPreferences.getInt("launch_times", 0)) > 0 && !c7.b.a(this)) {
this.o.setVisibility(0);
c.a(this.m);
if (this.n && o4.a.c() && !nk.b.v().a(CampaignUnit.JSON_KEY_ADS, "ShowInterstitialForAppOpenWhenJump", true)) {
Z2(this.m);
finish();
return;
}
if (this.p) {
return;
}
this.p = true;
if (!o4.a.c()) {
tk.b a = tk.b.a();
HashMap hashMap = new HashMap();
hashMap.put("content_type", "AppOpen");
a.b("show_aod_cold_start", hashMap);
new Thread(new k9.c(this, SystemClock.elapsedRealtime(), 1)).start();
return;
}
tk.b a10 = tk.b.a();
HashMap hashMap2 = new HashMap();
hashMap2.put("content_type", "Interstitial");
a10.b("show_aod_cold_start", hashMap2);
final long elapsedRealtime = SystemClock.elapsedRealtime();
new Thread(new Runnable() {
@Override
public final void run() {
?? r02 = LandingActivity.this;
long j = elapsedRealtime;
vj.h hVar2 = LandingActivity.r;
while (!r02.isFinishing()) {
if (com.adtiny.core.d.b().c()) {
long elapsedRealtime2 = SystemClock.elapsedRealtime() - j;
vj.h hVar3 = o4.a.a;
nk.b v = nk.b.v();
if (elapsedRealtime2 >= v.p(v.j(CampaignUnit.JSON_KEY_ADS, "LoadAppOpenInterstitialAdMinDuration"), 2000L)) {
r02.q = true;
r02.runOnUiThread(new androidx.core.widget.a((Object) r02, 20));
return;
}
y7.a.d(200L);
} else {
if (SystemClock.elapsedRealtime() - j >= o4.a.d()) {
r02.runOnUiThread(new androidx.appcompat.widget.b((Object) r02, 12));
return;
}
y7.a.d(200L);
}
}
}
}).start();
return;
}
}
}
if (this.n) {
Z2(this.m);
finish();
} else {
this.o.setVisibility(0);
this.l.postDelayed(new i(this, 0), 2000L);
}
}
public final void onBackPressed() {
}
}