手机管家 v7.2.0版本的 MD5 值为:dd92ba71696e35a4b841cd1b5de53cd3
以下内容为反编译后的 cbj.java 源代码,内容仅作参考
package tcs;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text.ClipboardManager;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.widget.ImageView;
import com.tencent.kingkong.database.SQLiteDatabase;
import com.tencent.qqpimsecure.R;
import com.tencent.qqpimsecure.plugin.main.PiMain;
import com.tencent.qqpimsecure.storage.NativeSharedPreferences;
import com.tencent.tmsecurelite.commom.FileSafeConst;
import java.util.ArrayList;
import java.util.List;
import meri.pluginsdk.PluginIntent;
import tcs.ve;
import uilib.components.QImageView;
import uilib.components.QLinearLayout;
import uilib.components.QRoundedPanel;
import uilib.components.QTextView;
public class cbj extends uilib.frame.a {
private meri.pluginsdk.l bvu;
private int eTm;
private int exl;
private QLinearLayout hBA;
private QTextView hBB;
private QTextView hBC;
private QTextView hBD;
private QRoundedPanel hBE;
private uilib.components.c hBF;
private QImageView hBG;
private long hBw;
private int hBx;
private long hBy;
private boolean hBz;
private cao hqR;
private PiMain hwO;
static int b(cbj cbjVar) {
int i = cbjVar.eTm;
cbjVar.eTm = i + 1;
return i;
}
static int m(cbj cbjVar) {
int i = cbjVar.hBx;
cbjVar.hBx = i + 1;
return i;
}
public cbj(Context context) {
super(context, R.layout.s);
this.eTm = 0;
this.hBx = 0;
this.hwO = PiMain.aEr();
this.hqR = cao.aFs();
this.bvu = this.hwO.kH();
this.exl = 0;
this.hBz = false;
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
wG();
aKj();
}
@Override
public void onPause() {
super.onPause();
if (this.hBF != null) {
this.hBF.dismiss();
}
}
@Override
public void onResume() {
super.onResume();
aKj();
}
private void wG() {
this.hBG = (QImageView) cao.b(this.dqh, R.id.b6);
this.hBA = (QLinearLayout) cao.b(this.dqh, R.id.w2);
this.hBB = (QTextView) cao.b(this.dqh, R.id.w3);
this.hBC = (QTextView) cao.b(this.dqh, R.id.b7);
String ua = com.tencent.qqpimsecure.service.b.tU().ua();
if (ua != null && ua.length() > 0) {
this.hBC.setText(ua);
}
this.hBD = (QTextView) cao.b(this.dqh, R.id.b8);
this.hBE = (QRoundedPanel) cao.b(this.dqh, R.id.a5);
}
private void aKj() {
final String dz = caj.dz(this.mContext);
final String guid = ((aic) this.bvu.gf(5)).getGuid();
final String vA = com.tencent.qqpimsecure.dao.r.afP().vA();
final String uO = com.tencent.qqpimsecure.service.i.uM().uO();
com.tencent.qqpimsecure.service.i uM = com.tencent.qqpimsecure.service.i.uM();
this.hBD.setText(String.format(this.hqR.gh(R.string.mz), uM.uQ(), uM.uN()));
this.hBB.setText(SQLiteDatabase.KeyEmpty);
this.hBA.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (cbj.this.eTm != 0) {
if (cbj.this.eTm == 1) {
if (System.currentTimeMillis() - cbj.this.hBw < 500) {
cbj.this.eTm = 0;
if (TextUtils.isEmpty(cbj.this.hBB.getText().toString())) {
cbj.this.hBB.setText("IMEI:" + dz);
return;
}
if (cbj.this.hBB.getText().toString().equals("IMEI:" + dz)) {
cbj.this.hBB.setText("GUID:" + guid + "|" + uO);
return;
} else if (cbj.this.hBB.getText().toString().equals("GUID:" + guid + "|" + uO)) {
cbj.this.hBB.setText("VID:" + vA);
return;
} else {
if (cbj.this.hBB.getText().toString().equals("VID:" + vA)) {
cbj.this.hBB.setText(SQLiteDatabase.KeyEmpty);
return;
}
return;
}
}
cbj.this.hBw = System.currentTimeMillis();
return;
}
return;
}
cbj.this.hBw = System.currentTimeMillis();
cbj.b(cbj.this);
}
});
this.hBB.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View view) {
if (cbj.this.hBB.getText().toString().equals("IMEI:" + dz)) {
uilib.components.g.F(cbj.this.mContext, cbj.this.hqR.gh(R.string.lc));
((ClipboardManager) cbj.this.mContext.getSystemService("clipboard")).setText(dz);
return true;
}
if (cbj.this.hBB.getText().toString().equals("GUID:" + guid + "|" + uO)) {
uilib.components.g.F(cbj.this.mContext, cbj.this.hqR.gh(R.string.ld));
((ClipboardManager) cbj.this.mContext.getSystemService("clipboard")).setText(guid);
return true;
}
if (cbj.this.hBB.getText().toString().equals("VID:" + vA)) {
uilib.components.g.F(cbj.this.mContext, cbj.this.hqR.gh(R.string.j6));
((ClipboardManager) cbj.this.mContext.getSystemService("clipboard")).setText(vA);
return true;
}
return true;
}
});
this.hBG.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (cbj.this.hBx < 3) {
if (cbj.this.hBx == 0) {
cbj.this.hBy = System.currentTimeMillis();
}
cbj.m(cbj.this);
return;
}
if (System.currentTimeMillis() - cbj.this.hBy < 800) {
cbj.this.hBx = 0;
ahf kJ = PiMain.aEr().kJ();
if (kJ instanceof NativeSharedPreferences) {
((NativeSharedPreferences) kJ).flush();
return;
}
return;
}
cbj.this.hBx = 0;
cbj.this.hBy = System.currentTimeMillis();
}
});
this.hBE.clear();
this.hBE.setViewList(aKk());
}
@Override
public boolean onKeyDown(int i, KeyEvent keyEvent) {
switch (i) {
case 82:
if (acc.So() || to.SQ()) {
int i2 = this.exl + 1;
this.exl = i2;
if (i2 > 4) {
this.exl = FileSafeConst.FileType.ASHMEM_FLAG;
this.hBz = true;
aKj();
uilib.components.g.B(this.mContext, "用户日志已打开");
break;
}
}
break;
}
return super.onKeyDown(i, keyEvent);
}
private ArrayList<View> aKk() {
List<aow> aKl = aKl();
ArrayList<View> arrayList = new ArrayList<>();
for (aow aowVar : aKl) {
KeyEvent.Callback b = ara.b(this.mContext, aowVar);
((uilib.components.item.e) b).updateView(aowVar);
arrayList.add(b);
}
return arrayList;
}
private List<aow> aKl() {
ArrayList arrayList = new ArrayList();
if (aD(this.mContext, "com.tencent.mm") >= 62) {
apy apyVar = new apy((Drawable) null, this.hqR.gh(R.string.z_), SQLiteDatabase.KeyEmpty);
a(apyVar, this.hqR.gi(R.drawable.ir));
apyVar.a(new uilib.components.item.b() {
@Override
public void a(aow aowVar, int i) {
new zb(cbj.this.getActivity()).w("http://mp.weixin.qq.com/s?__biz=MzA4NTA5NzM3OA==&mid=404556357&idx=1&sn=e7a4d07508bb89d17bfc9fed70329dcb#rd");
}
});
arrayList.add(apyVar);
}
apy apyVar2 = new apy((Drawable) null, this.hqR.gh(R.string.ms), SQLiteDatabase.KeyEmpty);
a(apyVar2, this.hqR.gi(R.drawable.gw));
apyVar2.a(new uilib.components.item.b() {
@Override
public void a(aow aowVar, int i) {
cbj.this.um("http://tools.3g.qq.com/j/fans");
}
});
arrayList.add(apyVar2);
if (this.hBz) {
apy apyVar3 = new apy((Drawable) null, this.hqR.gh(R.string.n5), SQLiteDatabase.KeyEmpty);
a(apyVar3, this.hqR.gi(R.drawable.gh));
apyVar3.a(new uilib.components.item.b() {
@Override
public void a(aow aowVar, int i) {
cbj.this.hwO.a(new PluginIntent(7803144), false);
}
});
arrayList.add(apyVar3);
apy apyVar4 = new apy((Drawable) null, this.hqR.gh(R.string.n6), SQLiteDatabase.KeyEmpty);
a(apyVar4, this.hqR.gi(R.drawable.gh));
apyVar4.a(new uilib.components.item.b() {
@Override
public void a(aow aowVar, int i) {
cbj.this.hwO.a(new PluginIntent(7803149), false);
}
});
arrayList.add(apyVar4);
}
apy apyVar5 = new apy((Drawable) null, this.hqR.gh(R.string.m4), SQLiteDatabase.KeyEmpty);
a(apyVar5, this.hqR.gi(R.drawable.j6));
apyVar5.a(new uilib.components.item.b() {
@Override
public void a(aow aowVar, int i) {
View inflate = cbj.this.hqR.inflate(cbj.this.mContext, R.layout.a_, null);
ImageView imageView = (ImageView) inflate.findViewById(R.id.d1);
ImageView imageView2 = (ImageView) inflate.findViewById(R.id.d2);
imageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
yz.c(cbj.this.bvu, 260425, 4);
if (!ajt.aM(cbj.this.mContext)) {
uilib.components.g.B(cbj.this.mContext, cbj.this.hqR.gh(R.string.r5));
} else {
cap.aFt().a(cbj.this.hqR.gh(R.string.mc), cbj.this.hqR.gh(R.string.md), "http://m.qq.com", ((BitmapDrawable) cbj.this.hqR.gi(R.drawable.ur)).getBitmap(), true);
}
}
});
imageView2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
yz.c(cbj.this.bvu, 260426, 4);
if (!ajt.aM(cbj.this.mContext)) {
uilib.components.g.B(cbj.this.mContext, cbj.this.hqR.gh(R.string.r5));
return;
}
Bitmap bitmap = null;
Drawable gi = cbj.this.hqR.gi(R.drawable.ur);
if (gi instanceof BitmapDrawable) {
bitmap = ((BitmapDrawable) gi).getBitmap();
}
cap.aFt().a(cbj.this.hqR.gh(R.string.me), cbj.this.hqR.gh(R.string.mf), "http://m.qq.com", bitmap, false);
}
});
if (cbj.this.hBF == null) {
cbj.this.hBF = new uilib.components.c(cbj.this.mContext);
cbj.this.hBF.setTitle(cbj.this.hqR.gh(R.string.n0));
cbj.this.hBF.setContentView(inflate);
cbj.this.hBF.setPositiveButton(R.string.jf, new View.OnClickListener() {
@Override
public void onClick(View view) {
cbj.this.hBF.dismiss();
}
});
}
cbj.this.hBF.show();
}
});
arrayList.add(apyVar5);
apy apyVar6 = new apy((Drawable) null, this.hqR.gh(R.string.m5), SQLiteDatabase.KeyEmpty);
a(apyVar6, this.hqR.gi(R.drawable.gh));
apyVar6.a(new uilib.components.item.b() {
@Override
public void a(aow aowVar, int i) {
cbj.this.um("http://m.qq.com/agreement/index_zhcn.jsp?pageNo=1&type=1");
}
});
arrayList.add(apyVar6);
apy apyVar7 = new apy((Drawable) null, this.hqR.gh(R.string.mq), SQLiteDatabase.KeyEmpty);
a(apyVar7, this.hqR.gi(R.drawable.hc));
apyVar7.a(new uilib.components.item.b() {
@Override
public void a(aow aowVar, int i) {
cbj.this.um("http://m.qq.com/index.jsp?g_f=23754");
}
});
arrayList.add(apyVar7);
return arrayList;
}
public void um(String str) {
PluginIntent pluginIntent = new PluginIntent(ve.g.aBA);
pluginIntent.putExtra("lxKcgA", str);
this.hwO.a(pluginIntent, false);
}
@Override
public uilib.frame.b Zl() {
return new uilib.templates.d(this.mContext, this.hqR.gh(R.string.m3));
}
@Override
public int ID() {
return arc.a(this.mContext, 200.0f);
}
private void a(apy apyVar, Drawable drawable) {
if (apyVar != null) {
aoy aoyVar = new aoy(null, null);
aoyVar.e(drawable);
apyVar.b(aoyVar);
apyVar.mF(-2);
}
}
private int aD(Context context, String str) {
try {
String[] split = context.getPackageManager().getPackageInfo(str, 0).versionName.split("\\.");
return Integer.parseInt(split[0] + split[1]);
} catch (Exception e) {
e.printStackTrace();
return 0;
}
}
}