TIM v2.3.1版本的 MD5 值为:d6957e3ee7ce901ccc491cefdea0da8c
以下内容为反编译后的 SecurityProtectActivity.java 源代码,内容仅作参考
package com.tencent.mobileqq.activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.tencent.mobileqq.app.IphoneTitleBarActivity;
import com.tencent.mobileqq.app.ThreadManager;
import com.tencent.mobileqq.emoticon.DownloadInfo;
import com.tencent.mobileqq.filemanager.core.UniformDownloadMgr;
import com.tencent.mobileqq.statistics.ReportController;
import com.tencent.mobileqq.utils.HttpDownloadUtil;
import com.tencent.mobileqq.utils.JumpQqPimSecureUtil;
import com.tencent.mobileqq.utils.NetworkUtil;
import com.tencent.tim.R;
public class SecurityProtectActivity extends IphoneTitleBarActivity implements View.OnClickListener, HttpDownloadUtil.DownloadInfoListener {
private Button f85361a;
private ImageView f11139a;
private TextView f11140a;
private boolean f11143a;
private TextView f85362b;
private boolean f11145b;
private boolean f85363c;
public String f11142a = "http://qqwx.qq.com/s?aid=index&g_f=407";
public String f11144b = QQSettingCleanActivity.f10890b;
public Long f11141a = 0L;
@Override
public boolean doOnCreate(Bundle bundle) {
super.doOnCreate(bundle);
super.setContentView(R.layout.f58190name_res_0x7f030735);
setTitle(R.string.f65352name_res_0x7f0a1b2c);
this.rightViewText.setVisibility(8);
this.leftView.setText(R.string.f65324name_res_0x7f0a1b10);
this.leftView.setOnClickListener(this);
this.f11139a = (ImageView) findViewById(R.id.f55787name_res_0x7f092208);
this.f11140a = (TextView) findViewById(R.id.f52739name_res_0x7f09161f);
this.f85362b = (TextView) findViewById(R.id.f52748name_res_0x7f091628);
this.f85361a = (Button) findViewById(R.id.f52740ug_btn);
this.f85361a.setOnClickListener(this);
this.f85361a.setClickable(true);
this.f85361a.setFocusable(true);
return true;
}
@Override
public void doOnStop() {
super.doOnStop();
if (this.f85363c) {
finish();
}
}
@Override
public void doOnResume() {
String str;
super.doOnResume();
if (this.f85363c) {
finish();
return;
}
this.f11143a = JumpQqPimSecureUtil.a(this);
this.f11145b = JumpQqPimSecureUtil.b(this);
if (!this.f11143a) {
this.f11139a.setImageResource(R.drawable.f46303name_res_0x7f02146f);
this.f11140a.setText(R.string.f65353name_res_0x7f0a1b2d);
this.f85362b.setVisibility(0);
this.f85361a.setText(R.string.f65355name_res_0x7f0a1b2f);
} else if (!this.f11145b) {
this.f11139a.setImageResource(R.drawable.f46304name_res_0x7f021470);
this.f11140a.setText(R.string.f65357name_res_0x7f0a1b31);
this.f85362b.setVisibility(4);
this.f85361a.setText(R.string.f65358name_res_0x7f0a1b32);
} else {
this.f11139a.setImageResource(R.drawable.f46301name_res_0x7f02146d);
this.f11140a.setText(R.string.f65359name_res_0x7f0a1b33);
this.f85362b.setVisibility(4);
this.f85361a.setText(R.string.f65361name_res_0x7f0a1b35);
}
if (this.f11145b) {
str = "qqpimsecure is running";
} else if (this.f11143a) {
str = "qqpimsecure installed but not running";
} else {
str = "qqpimsecure not installed";
}
ReportController.b(null, "dc01332", "Safe_SecurityDetect", "", "SecurityDetect_", str, 0, 0, "", "", "", "");
}
@Override
public void onClick(View view) {
switch (view.getId()) {
case R.id.f47677ivTitleBtnLeft:
finish();
return;
case R.id.f52740ug_btn:
if (!this.f11143a) {
ThreadManager.d(new lff(this));
this.f85363c = true;
this.f11140a.setText(R.string.f65354name_res_0x7f0a1b2e);
this.f85362b.setVisibility(4);
this.f85361a.setVisibility(8);
((LinearLayout) findViewById(R.id.f53150name_res_0x7f0917bb)).setVisibility(0);
ReportController.b(null, "dc01332", "Safe_SecurityDetect", "", "SecurityDetect_", "click on bluebtn download qqpimsecure", 0, 0, "", "", "", "");
return;
} else if (!this.f11145b) {
JumpQqPimSecureUtil.a(this, "mobileqq", JumpQqPimSecureUtil.TokenDestViewId.f94570a);
ReportController.b(null, "dc01332", "Safe_SecurityDetect", "", "SecurityDetect_", "click on bluebtn weakup qqpimsecure", 0, 0, "", "", "", "");
return;
} else {
JumpQqPimSecureUtil.a(this, "mobileqq", JumpQqPimSecureUtil.TokenDestViewId.f94572c);
ReportController.b(null, "dc01332", "Safe_SecurityDetect", "", "SecurityDetect_", "click on bluebtn run_scan", 0, 0, "", "", "", "");
return;
}
default:
return;
}
}
@Override
public boolean a(DownloadInfo downloadInfo) {
if (downloadInfo.f89074b == 0) {
this.f11141a = Long.valueOf(downloadInfo.e);
if (NetworkUtil.e(getActivity()) && this.f11141a.longValue() > 0) {
Bundle bundle = new Bundle();
bundle.putString(UniformDownloadMgr.f23239b, this.f11144b);
bundle.putLong(UniformDownloadMgr.f23240c, this.f11141a.longValue());
UniformDownloadMgr.m6277a().m6293b(this.f11142a, bundle);
return true;
}
} else {
this.f11141a = 0L;
}
new Handler(Looper.getMainLooper()).post(new lfg(this));
return true;
}
}