手机管家 v6.0.0版本的 MD5 值为:bf0bca2cb03f766137fe9ecf7383a634

以下内容为反编译后的 a.java 源代码,内容仅作参考


package com.tencent.qqpimsecure.plugin.main.page;

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.SpannableString;
import android.text.TextUtils;
import android.text.method.LinkMovementMethod;
import android.text.style.BackgroundColorSpan;
import android.text.style.ClickableSpan;
import android.text.style.ForegroundColorSpan;
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.tmsecurelite.commom.FileSafeConst;
import java.util.ArrayList;
import java.util.List;
import meri.pluginsdk.PluginIntent;
import tcs.acc;
import tcs.acg;
import tcs.aic;
import tcs.ajt;
import tcs.ako;
import tcs.aow;
import tcs.apy;
import tcs.ara;
import tcs.btb;
import tcs.btk;
import tcs.to;
import tcs.ve;
import tcs.yz;
import uilib.components.QLinearLayout;
import uilib.components.QRoundedPanel;
import uilib.components.QTextView;

public class a extends uilib.frame.a {
    private meri.pluginsdk.l bvu;
    private PiMain fBl;
    private int fJo;
    private long fJp;
    private int fJq;
    private boolean fJr;
    private QLinearLayout fJs;
    private QTextView fJt;
    private QTextView fJu;
    private QTextView fJv;
    private QRoundedPanel fJw;
    private QTextView fJx;
    private QTextView fJy;
    private uilib.components.c fJz;
    private btb fyK;

    static int e(a aVar) {
        int i = aVar.fJo;
        aVar.fJo = i + 1;
        return i;
    }

    public a(Context context) {
        super(context, R.layout.s);
        this.fJo = 0;
        this.fBl = PiMain.arf();
        this.fyK = btb.asY();
        this.bvu = this.fBl.kH();
        this.fJq = 0;
        this.fJr = false;
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        wG();
        avY();
    }

    @Override
    public void onPause() {
        super.onPause();
        if (this.fJz != null) {
            this.fJz.dismiss();
        }
    }

    @Override
    public void onResume() {
        super.onResume();
        avY();
    }

    private void wG() {
        this.fJs = (QLinearLayout) btb.b(this.dqh, R.id.w2);
        this.fJt = (QTextView) btb.b(this.dqh, R.id.w3);
        this.fJu = (QTextView) btb.b(this.dqh, R.id.b7);
        String ua = com.tencent.qqpimsecure.service.b.tU().ua();
        if (ua != null && ua.length() > 0) {
            this.fJu.setText(ua);
        }
        this.fJv = (QTextView) btb.b(this.dqh, R.id.b8);
        this.fJw = (QRoundedPanel) btb.b(this.dqh, R.id.a5);
        int gQ = this.fyK.gQ(R.color.by);
        this.fJx = (QTextView) btb.b(this.dqh, R.id.b9);
        this.fJx.setMovementMethod(LinkMovementMethod.getInstance());
        String gh = this.fyK.gh(R.string.mq);
        SpannableString spannableString = new SpannableString(gh);
        int indexOf = gh.indexOf("m.qq.com");
        int length = gh.length();
        spannableString.setSpan(new ClickableSpan() {
            @Override
            public void onClick(View view) {
            }
        }, indexOf, length, 33);
        spannableString.setSpan(new BackgroundColorSpan(0), indexOf, length, 33);
        spannableString.setSpan(new ForegroundColorSpan(gQ), indexOf, length, 33);
        this.fJx.setText(spannableString);
        this.fJx.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                com.tencent.qqpimsecure.plugin.main.qqbrowser.a.aC(a.this.mContext, "http://m.qq.com/index.jsp?g_f=23754");
                yz.c(a.this.bvu, 28905, 4);
            }
        });
        this.fJy = (QTextView) btb.b(this.dqh, R.id.ba);
        this.fJy.setMovementMethod(LinkMovementMethod.getInstance());
        String gh2 = this.fyK.gh(R.string.ms);
        SpannableString spannableString2 = new SpannableString(gh2);
        int indexOf2 = gh2.indexOf("bbs.m.qq.com");
        int length2 = gh2.length();
        spannableString2.setSpan(new ClickableSpan() {
            @Override
            public void onClick(View view) {
            }
        }, indexOf2, length2, 33);
        spannableString2.setSpan(new BackgroundColorSpan(0), indexOf2, length2, 33);
        spannableString2.setSpan(new ForegroundColorSpan(gQ), indexOf2, length2, 33);
        this.fJy.setText(spannableString2);
        this.fJy.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                com.tencent.qqpimsecure.plugin.main.qqbrowser.a.aC(a.this.mContext, "http://bbs.m.qq.com");
                yz.c(a.this.bvu, 28906, 4);
            }
        });
    }

    private void avY() {
        final String dQ = btk.dQ(this.mContext);
        final String guid = ((aic) this.bvu.gf(5)).getGuid();
        final String uO = com.tencent.qqpimsecure.service.i.uM().uO();
        com.tencent.qqpimsecure.service.i uM = com.tencent.qqpimsecure.service.i.uM();
        this.fJv.setText(String.format(this.fyK.gh(R.string.mz), uM.uQ(), uM.uN()));
        this.fJt.setText(SQLiteDatabase.KeyEmpty);
        this.fJs.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (a.this.fJo != 0) {
                    if (a.this.fJo == 1) {
                        if (System.currentTimeMillis() - a.this.fJp < 500) {
                            a.this.fJo = 0;
                            if (TextUtils.isEmpty(a.this.fJt.getText().toString())) {
                                a.this.fJt.setText("IMEI:" + dQ);
                                return;
                            } else if (a.this.fJt.getText().toString().equals("IMEI:" + dQ)) {
                                a.this.fJt.setText("GUID:" + guid + "|" + uO);
                                return;
                            } else {
                                if (a.this.fJt.getText().toString().equals("GUID:" + guid + "|" + uO)) {
                                    a.this.fJt.setText(SQLiteDatabase.KeyEmpty);
                                    return;
                                }
                                return;
                            }
                        }
                        a.this.fJp = System.currentTimeMillis();
                        return;
                    }
                    return;
                }
                a.this.fJp = System.currentTimeMillis();
                a.e(a.this);
            }
        });
        this.fJt.setOnLongClickListener(new View.OnLongClickListener() {
            @Override
            public boolean onLongClick(View view) {
                if (a.this.fJt.getText().toString().equals("IMEI:" + dQ)) {
                    uilib.components.g.F(a.this.mContext, a.this.fyK.gh(R.string.lc));
                    ((ClipboardManager) a.this.mContext.getSystemService("clipboard")).setText(dQ);
                    return true;
                }
                if (a.this.fJt.getText().toString().equals("GUID:" + guid + "|" + uO)) {
                    uilib.components.g.F(a.this.mContext, a.this.fyK.gh(R.string.ld));
                    ((ClipboardManager) a.this.mContext.getSystemService("clipboard")).setText(guid);
                    return true;
                }
                return true;
            }
        });
        this.fJw.clear();
        this.fJw.setViewList(TU());
    }

    @Override
    public boolean onKeyDown(int i, KeyEvent keyEvent) {
        switch (i) {
            case acg.e.bOa:
                if (acc.So() || to.SQ()) {
                    int i2 = this.fJq + 1;
                    this.fJq = i2;
                    if (i2 > 4) {
                        this.fJq = FileSafeConst.FileType.ASHMEM_FLAG;
                        this.fJr = true;
                        avY();
                        uilib.components.g.B(this.mContext, "用户日志已打开");
                        break;
                    }
                }
                break;
        }
        return super.onKeyDown(i, keyEvent);
    }

    private ArrayList<View> TU() {
        List<aow> TV = TV();
        ArrayList<View> arrayList = new ArrayList<>();
        for (aow aowVar : TV) {
            KeyEvent.Callback b = ara.b(this.mContext, aowVar);
            ((uilib.components.item.e) b).updateView(aowVar);
            arrayList.add(b);
        }
        return arrayList;
    }

    private List<aow> TV() {
        ArrayList arrayList = new ArrayList(3);
        apy apyVar = new apy((Drawable) null, this.fyK.gh(R.string.hr), SQLiteDatabase.KeyEmpty);
        apyVar.a(new uilib.components.item.b() {
            @Override
            public void a(aow aowVar, int i) {
                com.tencent.qqpimsecure.plugin.main.qqbrowser.a.aC(a.this.mContext, "http://kf.qq.com/touch/product/sjguanjia.html?platform=14");
                yz.c(a.this.bvu, 28900, 4);
            }
        });
        arrayList.add(apyVar);
        apy apyVar2 = new apy((Drawable) null, this.fyK.gh(R.string.ho), (CharSequence) null);
        apyVar2.a(new uilib.components.item.b() {
            @Override
            public void a(aow aowVar, int i) {
                com.tencent.qqpimsecure.plugin.main.qqbrowser.a.aC(a.this.mContext, ako.M(a.this.mContext, "http://fwd.3g.qq.com:8080/i?bid=1020&id=$id|guid,ver|j*5#L(0f$RGHR(&*fqnOi"));
                yz.c(a.this.bvu, 28902, 4);
            }
        });
        arrayList.add(apyVar2);
        apy apyVar3 = new apy((Drawable) null, this.fyK.gh(R.string.m4), SQLiteDatabase.KeyEmpty);
        apyVar3.a(new uilib.components.item.b() {
            @Override
            public void a(aow aowVar, int i) {
                yz.c(a.this.bvu, 28903, 4);
                View inflate = a.this.fyK.inflate(a.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(a.this.bvu, 260425, 4);
                        if (!ajt.aM(a.this.mContext)) {
                            uilib.components.g.B(a.this.mContext, a.this.fyK.gh(R.string.r5));
                        } else {
                            m.axo().a(a.this.fyK.gh(R.string.mc), a.this.fyK.gh(R.string.md), "http://m.qq.com", ((BitmapDrawable) a.this.fyK.gi(R.drawable.ur)).getBitmap(), true);
                        }
                    }
                });
                imageView2.setOnClickListener(new View.OnClickListener() {
                    @Override
                    public void onClick(View view) {
                        yz.c(a.this.bvu, 260426, 4);
                        if (!ajt.aM(a.this.mContext)) {
                            uilib.components.g.B(a.this.mContext, a.this.fyK.gh(R.string.r5));
                            return;
                        }
                        Bitmap bitmap = null;
                        Drawable gi = a.this.fyK.gi(R.drawable.ur);
                        if (gi instanceof BitmapDrawable) {
                            bitmap = ((BitmapDrawable) gi).getBitmap();
                        }
                        m.axo().a(a.this.fyK.gh(R.string.me), a.this.fyK.gh(R.string.mf), "http://m.qq.com", bitmap, false);
                    }
                });
                if (a.this.fJz == null) {
                    a.this.fJz = new uilib.components.c(a.this.mContext);
                    a.this.fJz.setTitle(a.this.fyK.gh(R.string.n0));
                    a.this.fJz.setContentView(inflate);
                    a.this.fJz.setPositiveButton(R.string.jf, new View.OnClickListener() {
                        @Override
                        public void onClick(View view) {
                            a.this.fJz.dismiss();
                        }
                    });
                }
                a.this.fJz.show();
            }
        });
        arrayList.add(apyVar3);
        apy apyVar4 = new apy((Drawable) null, this.fyK.gh(R.string.m5), SQLiteDatabase.KeyEmpty);
        apyVar4.a(new uilib.components.item.b() {
            @Override
            public void a(aow aowVar, int i) {
                a.this.qz("http://m.qq.com/agreement/index_zhcn.jsp?pageNo=1&type=1");
                yz.c(a.this.bvu, 28904, 4);
            }
        });
        arrayList.add(apyVar4);
        if (this.fJr) {
            apy apyVar5 = new apy((Drawable) null, this.fyK.gh(R.string.n5), SQLiteDatabase.KeyEmpty);
            apyVar5.a(new uilib.components.item.b() {
                @Override
                public void a(aow aowVar, int i) {
                    a.this.fBl.a(new PluginIntent(7803144), false);
                }
            });
            arrayList.add(apyVar5);
            apy apyVar6 = new apy((Drawable) null, this.fyK.gh(R.string.n6), SQLiteDatabase.KeyEmpty);
            apyVar6.a(new uilib.components.item.b() {
                @Override
                public void a(aow aowVar, int i) {
                    a.this.fBl.a(new PluginIntent(7803149), false);
                }
            });
            arrayList.add(apyVar6);
        }
        return arrayList;
    }

    public void qz(String str) {
        PluginIntent pluginIntent = new PluginIntent(ve.g.aBA);
        pluginIntent.putExtra("lxKcgA", str);
        this.fBl.a(pluginIntent, false);
    }

    @Override
    public uilib.frame.b Zl() {
        return new uilib.templates.d(this.mContext, this.fyK.gh(R.string.m3));
    }
}