百度手机卫士 v8.8.0版本的 MD5 值为:a85894a6923c8a39f0c3a3a686ad7443
以下内容为反编译后的 AboutActivity.java 源代码,内容仅作参考
package com.dianxinos.optimizer;
import android.annotation.SuppressLint;
import android.app.NotificationManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import cn.opda.a.phonoalbumshoushou.R;
import com.baidu.security.plugin.alarm.AlarmUtil;
import com.dianxinos.common.ui.view.DxPreference;
import com.dianxinos.optimizer.module.mms.ui.MessageUtils;
import dxoptimizer.aam;
import dxoptimizer.aar;
import dxoptimizer.acx;
import dxoptimizer.arz;
import dxoptimizer.asb;
import dxoptimizer.axj;
import dxoptimizer.cpq;
import dxoptimizer.cqj;
import dxoptimizer.css;
import dxoptimizer.hti;
import dxoptimizer.hum;
import dxoptimizer.hvk;
import dxoptimizer.hvm;
import dxoptimizer.hvw;
import dxoptimizer.hwi;
import dxoptimizer.hwj;
import dxoptimizer.hwk;
import dxoptimizer.hyn;
import dxoptimizer.hyy;
import dxoptimizer.hzh;
import dxoptimizer.hzq;
import dxoptimizer.ibk;
import dxoptimizer.ibu;
import dxoptimizer.icl;
import dxoptimizer.ico;
import dxoptimizer.icu;
import dxoptimizer.icv;
public class AboutActivity extends axj implements View.OnClickListener, acx, hvm, hwi {
private TextView a;
private DxPreference b;
private DxPreference c;
private DxPreference d;
private hum e;
private BroadcastReceiver f;
private boolean g = false;
private int[] h = {R.string.jadx_deobf_0x00001d51, R.string.jadx_deobf_0x00001d56, R.string.jadx_deobf_0x00001d50, R.string.jadx_deobf_0x00001d52};
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.jadx_deobf_0x000007ee);
f();
d();
}
public void b() {
this.b.a(this.g);
this.b.setDescription(this.g ? R.string.jadx_deobf_0x000024e7 : R.string.jadx_deobf_0x000024eb);
e();
}
@SuppressLint({"MyBroadcastHelper"})
private void c() {
this.f = new hwj(this);
registerReceiver(this.f, new IntentFilter("com.dianxinos.appupdate.intent.UPDATE_UICMD_CALLBACK"), getPackageName() + ".permission.UPDATE", null);
}
private void d() {
this.g = ico.a(getIntent(), "update_version", false);
g();
this.b.setOnClickListener(this);
this.d.setOnClickListener(this);
this.c.setOnClickListener(this);
b();
c();
}
public void e() {
if (css.h(this).longValue() == 0) {
this.d.a(true);
this.d.setDescription(R.string.jadx_deobf_0x000024f0);
return;
}
this.d.a(false);
long abs = Math.abs(System.currentTimeMillis() - css.h(this).longValue());
if (!hyn.a(System.currentTimeMillis(), css.h(this).longValue())) {
int i = (int) (abs / AlarmUtil.DAY);
if (i == 0) {
i = 1;
}
this.d.setDescription(getResources().getString(R.string.jadx_deobf_0x000024e8, Integer.valueOf(i)));
return;
}
if (abs < 3600000) {
this.d.setDescription(R.string.jadx_deobf_0x000024ea);
}
if (abs > 3600000 && abs < AlarmUtil.DAY) {
this.d.setDescription(getResources().getString(R.string.jadx_deobf_0x000024e9, Integer.valueOf((int) (abs / 3600000))));
}
}
@Override
public void onDestroy() {
super.onDestroy();
if (this.e != null && this.e.isShowing()) {
this.e.dismiss();
}
if (this.f != null) {
unregisterReceiver(this.f);
}
}
private void f() {
ibu.a(this, R.id.jadx_deobf_0x00001078, R.string.jadx_deobf_0x00000501, this);
this.a = (TextView) findViewById(R.id.jadx_deobf_0x00001079);
this.b = (DxPreference) findViewById(R.id.jadx_deobf_0x0000107c);
this.d = (DxPreference) findViewById(R.id.jadx_deobf_0x0000107d);
this.c = (DxPreference) findViewById(R.id.jadx_deobf_0x0000107e);
}
private void g() {
String str = null;
try {
PackageManager a = ibk.a(this);
if (a != null) {
str = a.getPackageInfo(getPackageName(), 0).versionName;
}
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
if (TextUtils.isEmpty(str)) {
this.a.setText("");
} else {
this.a.setText(getString(R.string.jadx_deobf_0x00001d55, new Object[]{str}));
}
}
@Override
public void onClick(View view) {
if (view == this.b) {
boolean h = h();
if (this.g && !h) {
a(true);
} else {
hvw.a().a(this, this);
}
icu.a("misc", "new", (Number) 1);
return;
}
if (view == this.d) {
cpq.d(this);
if (!cqj.a) {
new asb(this, null).execute(new Void[0]);
}
icu.a("misc", "gsuvdc", (Number) 1);
return;
}
if (view == this.c) {
hvk hvkVar = new hvk(this);
hvkVar.a(this.h);
hvkVar.c(false);
hvkVar.a((hvm) this);
hvkVar.show();
return;
}
b(view.getId());
}
@Override
public void a(int i, boolean z) {
hti.a().b(new arz(this, i, z));
}
private void a(boolean z) {
aam a = hwk.a(this);
boolean c = hyy.c(this);
if (a != null) {
if (z || a.e == 1 || a.e == 2 || c) {
if (c) {
((NotificationManager) getSystemService("notification")).cancel(4);
hyy.c((Context) this, false);
}
hvw.a().a(this, !z, this);
if (z) {
aar.a(this).a("dl-ck");
} else {
aar.a(this).a("dl-sta");
}
icu.b("susns", String.valueOf(hzq.b(this)), (Number) 1);
}
}
}
private boolean h() {
return aar.a(this).h() && !hzq.c(this);
}
private void b(int i) {
switch (i) {
case R.id.jadx_deobf_0x0000107f:
icl.a(this, getString(R.string.jadx_deobf_0x00002c79), getString(R.string.jadx_deobf_0x00002c7a), false);
return;
case R.id.jadx_deobf_0x00001080:
icl.a(this, getString(R.string.jadx_deobf_0x00002c73), getString(R.string.jadx_deobf_0x00002c74), false);
return;
default:
return;
}
}
private void i() {
icu.a("misc", "misc_ofc", (Number) 1);
}
private void a(String str) {
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse(str));
if (!hzh.a(this, intent)) {
icv.b(this, R.string.jadx_deobf_0x000029eb, 0);
return;
}
intent.setPackage("com.baidu.searchbox");
if (!hzh.a(this, intent)) {
intent.setPackage(null);
}
intent.addFlags(268435456);
b(intent);
}
@Override
public void l_() {
finish();
}
@Override
public void b_(int i) {
switch (i) {
case 0:
a("https://weibo.com/shoujiweishi");
icu.a("misc", "misc_is", (Number) 1);
return;
case 1:
MessageUtils.b(this, getString(R.string.jadx_deobf_0x00001d58));
icv.b(this, R.string.jadx_deobf_0x00001d57, 0);
return;
case 2:
a("http://jq.qq.com/?_wv=1027&k=Wtkzv3");
i();
return;
case 3:
a("http://tieba.baidu.com/f?ie=utf-8&kw=%E7%99%BE%E5%BA%A6%E6%89%8B%E6%9C%BA%E5%8D%AB%E5%A3%AB&fr=search");
i();
return;
default:
return;
}
}
}