暗网解密 v2.0.4版本的 MD5 值为:d3a04548fef88e775cbe4c3c6e7d81ad
以下内容为反编译后的 SplashActivity.java 源代码,内容仅作参考
package com.spaceseven.qidu.activity;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.camera.core.FocusMeteringAction;
import c.b.a.n.o.j;
import c.o.a.f.t1;
import c.o.a.m.b0;
import c.o.a.m.c1;
import c.o.a.m.f1;
import c.o.a.m.j0;
import c.o.a.m.j1;
import c.o.a.m.l0;
import c.o.a.m.o0;
import c.o.a.m.o1;
import c.o.a.m.p1;
import c.o.a.m.y0;
import com.alibaba.fastjson.JSON;
import com.gyf.immersionbar.BarHide;
import com.gyf.immersionbar.ImmersionBar;
import com.lzy.okgo.OkGo;
import com.lzy.okgo.callback.StringCallback;
import com.lzy.okgo.model.Response;
import com.spaceseven.qidu.activity.SplashActivity;
import com.spaceseven.qidu.bean.AdsPopBean;
import com.spaceseven.qidu.bean.ConfigBean;
import com.spaceseven.qidu.bean.OpenScreenAdBean;
import com.spaceseven.qidu.bean.UserBean;
import com.spaceseven.qidu.service.DownloadAdImgService;
import com.spaceseven.qidu.view.CountDownProgressView;
import com.spaceseven.qidu.view.OnFinishListener;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import live.lpjtm.fqglrv.R;
public class SplashActivity extends AbsActivity {
public d f8965d;
public f f8966e;
public List<String> f8967f = new ArrayList();
public ImageView f8968g;
public RelativeLayout f8969h;
public CountDownProgressView i;
public TextView j;
public t1 k;
public Dialog l;
public class a extends c.o.a.j.a<ConfigBean> {
public class C0109a implements t1.b {
public C0109a() {
}
@Override
public void a(String str) {
}
@Override
public void onCancel() {
SplashActivity.this.s0();
b0.a(SplashActivity.this.k);
}
}
public a() {
}
@Override
public void a(ConfigBean configBean) {
if (configBean != null) {
SplashActivity.this.z0(configBean);
if (configBean.getVersion() == null || !j1.b(configBean.getVersion().getVersion())) {
SplashActivity.this.s0();
return;
}
if (SplashActivity.this.k == null) {
SplashActivity.this.k = new t1(SplashActivity.this, configBean.getVersion());
}
SplashActivity.this.k.m(new C0109a());
SplashActivity splashActivity = SplashActivity.this;
b0.d(splashActivity, splashActivity.k);
return;
}
SplashActivity.this.r0();
}
}
public class b extends c.o.a.j.a<UserBean> {
public b() {
}
@Override
public void a(UserBean userBean) {
if (userBean != null) {
SplashActivity.this.O0();
SplashActivity.this.N0();
return;
}
SplashActivity.this.r0();
}
}
public class c extends StringCallback {
public c() {
}
@Override
public void onSuccess(Response<String> response) {
if (response != null) {
String body = response.body();
if (TextUtils.isEmpty(body)) {
return;
}
String[] split = body.split(",");
if (split.length > 0) {
for (int i = 0; i < split.length; i++) {
split[i] = split[i].replaceAll("\n", "");
}
SplashActivity.this.w0(split, 0, 2);
}
}
}
}
public class d extends CountDownTimer {
public d(long j, long j2) {
super(j, j2);
}
@Override
public void onFinish() {
SplashActivity.this.j.setText(SplashActivity.this.getResources().getString(R.string.enter_app));
MainActivity.e0(SplashActivity.this);
SplashActivity.this.finish();
}
@Override
public void onTick(long j) {
SplashActivity.this.j.setText(String.format("%sS", String.valueOf(((int) ((j - 1) / 1000)) + 1)));
}
}
public class e implements Runnable {
public e() {
}
@Override
public void run() {
String h2 = y0.i().h();
if (TextUtils.isEmpty(h2)) {
h2 = c1.b(SplashActivity.this);
}
y0.i().A(h2);
if (SplashActivity.this.f8966e != null) {
SplashActivity.this.f8966e.sendEmptyMessage(3);
}
}
public e(SplashActivity splashActivity, a aVar) {
this();
}
}
public class f extends Handler {
public f() {
}
@Override
public void handleMessage(@NonNull Message message) {
super.handleMessage(message);
int i = message.what;
if (i == 0) {
SplashActivity.this.x0();
} else if (i == 1) {
try {
int i2 = message.arg1 + 1;
String[] strArr = (String[]) message.obj;
if (i2 < strArr.length) {
SplashActivity.this.w0(strArr, i2, i);
} else {
SplashActivity.this.v0();
}
} catch (Exception e2) {
e2.printStackTrace();
}
} else if (i != 2) {
if (i != 3) {
return;
}
SplashActivity.this.t0();
} else {
try {
int i3 = message.arg1 + 1;
String[] strArr2 = (String[]) message.obj;
if (i3 < strArr2.length) {
SplashActivity.this.w0(strArr2, i3, i);
}
} catch (Exception e3) {
e3.printStackTrace();
}
}
}
public f(SplashActivity splashActivity, a aVar) {
this();
}
}
public void D0(String[] strArr, int i, int i2) {
if (strArr == null || strArr.length == 0) {
return;
}
String str = strArr[i];
try {
if (!TextUtils.isEmpty(str)) {
K0(str);
} else {
M0(strArr, i, i2);
}
} catch (Exception unused) {
M0(strArr, i, i2);
if (TextUtils.isEmpty(str)) {
return;
}
o0(str);
}
}
public void F0(OpenScreenAdBean openScreenAdBean, View view) {
try {
String jump_url = openScreenAdBean.getJump_url();
if (TextUtils.isEmpty(jump_url)) {
return;
}
o1.a(this, jump_url);
} catch (Exception e2) {
e2.printStackTrace();
}
}
public void H0(View view) {
MainActivity.e0(this);
finish();
}
public void J0() {
this.f8969h.setEnabled(true);
}
public final void A0() {
this.f8968g = (ImageView) findViewById(R.id.img_splash);
this.f8969h = (RelativeLayout) findViewById(R.id.rl_enter);
this.i = (CountDownProgressView) findViewById(R.id.progressView);
this.j = (TextView) findViewById(R.id.tv_count_down);
this.f8969h.setVisibility(8);
this.f8969h.setEnabled(false);
this.f8969h.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SplashActivity.this.H0(view);
}
});
}
public final void K0(String str) {
OkGo.get(str).execute();
j0.a("线路检测url后----->" + str);
y0.i().v(str);
runOnUiThread(new Runnable() {
@Override
public final void run() {
SplashActivity.this.p0();
}
});
}
public final void L0() {
f fVar = this.f8966e;
if (fVar != null) {
Message obtainMessage = fVar.obtainMessage();
obtainMessage.what = 0;
this.f8966e.sendMessage(obtainMessage);
}
}
public final void M0(String[] strArr, int i, int i2) {
f fVar = this.f8966e;
if (fVar != null) {
Message obtainMessage = fVar.obtainMessage();
obtainMessage.what = i2;
obtainMessage.arg1 = i;
obtainMessage.obj = strArr;
this.f8966e.sendMessage(obtainMessage);
}
}
public final void N0() {
try {
this.f8969h.setVisibility(0);
d dVar = new d(FocusMeteringAction.DEFAULT_AUTOCANCEL_DURATION, 1000L);
this.f8965d = dVar;
dVar.start();
this.i.startDownTime(FocusMeteringAction.DEFAULT_AUTOCANCEL_DURATION, new OnFinishListener() {
@Override
public final void onFinish() {
SplashActivity.this.J0();
}
});
} catch (Exception e2) {
e2.printStackTrace();
}
}
public final void O0() {
b0.a(this.l);
}
@Override
public int Q() {
return R.layout.activity_splash;
}
@Override
public void R(Bundle bundle) {
A0();
this.f8966e = new f(this, null);
this.l = b0.c(this, p1.d(this, R.string.str_loading));
y0();
q0();
}
@Override
public void W() {
super.W();
ImmersionBar.with(this).reset().hideBar(BarHide.FLAG_HIDE_BAR).transparentBar().fullScreen(true).init();
}
public final void o0(String str) {
try {
List<String> list = this.f8967f;
if (list != null) {
list.add(str);
}
} catch (Exception e2) {
e2.printStackTrace();
}
}
public final void p0() {
u0();
}
public final void q0() {
if (o0.a(this)) {
b0.d(this, this.l);
L0();
return;
}
b0.a(this.l);
f1.d(this, p1.d(this, R.string.network_exception));
}
public final void r0() {
f1.d(this, getResources().getString(R.string.get_data_fail));
b0.a(this.l);
}
public final void s0() {
c.o.a.j.e.d0(new b());
}
public final void t0() {
c.o.a.j.e.K(new a());
}
public final void u0() {
new Thread(new e(this, null)).start();
}
public final void v0() {
OkGo.get("https://raw.githubusercontent.com/little-5/backup/master/lolyaw.txt").execute(new c());
}
public final void w0(final String[] strArr, final int i, final int i2) {
new Thread(new Runnable() {
@Override
public final void run() {
SplashActivity.this.D0(strArr, i, i2);
}
}).start();
}
public final void x0() {
String q = y0.i().q();
if (!TextUtils.isEmpty(q)) {
String[] split = q.split(",");
if (split.length > 0) {
w0(split, 0, 1);
return;
} else {
v0();
return;
}
}
v0();
}
public final void y0() {
final OpenScreenAdBean openScreenAdBean;
String l = y0.i().l();
if (TextUtils.isEmpty(l) || (openScreenAdBean = (OpenScreenAdBean) JSON.parseObject(l, OpenScreenAdBean.class)) == null) {
return;
}
String local_path = openScreenAdBean.getLocal_path();
if (!TextUtils.isEmpty(local_path)) {
File file = new File(local_path);
if (file.exists()) {
c.b.a.c.v(this).r(file).R(R.mipmap.launch_screen).f(j.f678a).s0(this.f8968g);
}
}
this.f8968g.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
SplashActivity.this.F0(openScreenAdBean, view);
}
});
}
public final void z0(ConfigBean configBean) {
try {
if (l0.a(configBean.getAds_screen())) {
return;
}
AdsPopBean adsPopBean = configBean.getAds_screen().get(0);
String url = adsPopBean.getUrl();
int type = adsPopBean.getType();
String img_url_full = adsPopBean.getImg_url_full();
OpenScreenAdBean openScreenAdBean = new OpenScreenAdBean();
openScreenAdBean.setImg_url(img_url_full);
openScreenAdBean.setJump_url(url);
openScreenAdBean.setType(String.valueOf(type));
Intent intent = new Intent(this, DownloadAdImgService.class);
intent.putExtra("open_screen_ad", openScreenAdBean);
startService(intent);
} catch (Exception e2) {
e2.printStackTrace();
}
}
}