百度手机卫士 v8.8.0版本的 MD5 值为:a85894a6923c8a39f0c3a3a686ad7443
以下内容为反编译后的 ise.java 源代码,内容仅作参考
package dxoptimizer;
import android.R;
import android.annotation.SuppressLint;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import com.baidu.mobads.interfaces.error.XAdErrorCode;
import com.baidu.security.plugin.ICloudScanCallback;
import java.io.File;
import java.util.HashMap;
import java.util.Locale;
import org.json.JSONException;
import org.json.JSONObject;
public class ise extends Dialog {
private String a;
private isk b;
private iwp c;
private Handler d;
private FrameLayout e;
private LinearLayout f;
private FrameLayout g;
private ProgressBar h;
private String i;
private ivl j;
private Context k;
private iwm l;
private boolean m;
private int n;
private String o;
private String p;
private long q;
private long r;
private HashMap<String, Runnable> s;
public static String a(ise iseVar, Object obj) {
String str = iseVar.a + obj;
iseVar.a = str;
return str;
}
public static int m(ise iseVar) {
int i = iseVar.n;
iseVar.n = i + 1;
return i;
}
static {
try {
Context a = ivt.a();
if (a != null) {
if (new File(a.getFilesDir().toString() + "/" + irv.b).exists()) {
System.load(a.getFilesDir().toString() + "/" + irv.b);
ius.c("openSDK_LOG.AuthDialog", "-->load lib success:" + irv.b);
} else {
ius.c("openSDK_LOG.AuthDialog", "-->fail, because so is not exists:" + irv.b);
}
} else {
ius.c("openSDK_LOG.AuthDialog", "-->load lib fail, because context is null:" + irv.b);
}
} catch (Exception e) {
ius.b("openSDK_LOG.AuthDialog", "-->load lib error:" + irv.b, e);
}
}
public ise(Context context, String str, String str2, iwp iwpVar, isq isqVar) {
super(context, R.style.Theme.Translucent.NoTitleBar);
this.m = false;
this.q = 0L;
this.r = 30000L;
this.k = context;
this.a = str2;
this.b = new isk(this, str, str2, isqVar.b(), iwpVar);
this.d = new isl(this, this.b, context.getMainLooper());
this.c = iwpVar;
this.i = str;
this.l = new iwm();
getWindow().setSoftInputMode(32);
}
@Override
protected void onCreate(Bundle bundle) {
requestWindowFeature(1);
super.onCreate(bundle);
b();
d();
this.s = new HashMap<>();
}
@Override
public void onBackPressed() {
if (!this.m) {
this.b.onCancel();
}
super.onBackPressed();
}
@Override
protected void onStop() {
super.onStop();
}
public String a(String str) {
StringBuilder sb = new StringBuilder(str);
if (!TextUtils.isEmpty(this.p) && this.p.length() >= 4) {
sb.append("_u_").append(this.p.substring(this.p.length() - 4));
}
return sb.toString();
}
public String a() {
String str = "http://qzs.qq.com/open/mobile/login/qzsjump.html?" + this.a.substring(this.a.indexOf("?") + 1);
ius.c("openSDK_LOG.AuthDialog", "-->generateDownloadUrl, url: http://qzs.qq.com/open/mobile/login/qzsjump.html?");
return str;
}
private void b() {
c();
FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, -1);
this.j = new ivl(this.k);
this.j.setLayoutParams(layoutParams);
this.e = new FrameLayout(this.k);
layoutParams.gravity = 17;
this.e.setLayoutParams(layoutParams);
this.e.addView(this.j);
this.e.addView(this.g);
setContentView(this.e);
}
private void c() {
this.h = new ProgressBar(this.k);
this.h.setLayoutParams(new LinearLayout.LayoutParams(-2, -2));
this.f = new LinearLayout(this.k);
TextView textView = null;
if (this.i.equals("action_login")) {
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-2, -2);
layoutParams.gravity = 16;
layoutParams.leftMargin = 5;
textView = new TextView(this.k);
if (Locale.getDefault().getLanguage().equals("zh")) {
textView.setText("登录中...");
} else {
textView.setText("Logging in...");
}
textView.setTextColor(Color.rgb(ICloudScanCallback.CLOUDSCAN_STOP, ICloudScanCallback.CLOUDSCAN_STOP, ICloudScanCallback.CLOUDSCAN_STOP));
textView.setTextSize(18.0f);
textView.setLayoutParams(layoutParams);
}
FrameLayout.LayoutParams layoutParams2 = new FrameLayout.LayoutParams(-2, -2);
layoutParams2.gravity = 17;
this.f.setLayoutParams(layoutParams2);
this.f.addView(this.h);
if (textView != null) {
this.f.addView(textView);
}
this.g = new FrameLayout(this.k);
FrameLayout.LayoutParams layoutParams3 = new FrameLayout.LayoutParams(-1, -2);
layoutParams3.leftMargin = 80;
layoutParams3.rightMargin = 80;
layoutParams3.topMargin = 40;
layoutParams3.bottomMargin = 40;
layoutParams3.gravity = 17;
this.g.setLayoutParams(layoutParams3);
this.g.setBackgroundResource(R.drawable.alert_dark_frame);
this.g.addView(this.f);
}
@SuppressLint({"SetJavaScriptEnabled"})
private void d() {
this.j.setVerticalScrollBarEnabled(false);
this.j.setHorizontalScrollBarEnabled(false);
this.j.setWebViewClient(new isi(this, null));
this.j.setWebChromeClient(new WebChromeClient());
this.j.clearFormData();
this.j.clearSslPreferences();
this.j.setOnLongClickListener(new isf(this));
this.j.setOnTouchListener(new isg(this));
WebSettings settings = this.j.getSettings();
settings.setSavePassword(false);
settings.setSaveFormData(false);
settings.setCacheMode(-1);
settings.setNeedInitialFocus(false);
settings.setBuiltInZoomControls(true);
settings.setSupportZoom(true);
settings.setRenderPriority(WebSettings.RenderPriority.HIGH);
settings.setJavaScriptEnabled(true);
settings.setDatabaseEnabled(true);
settings.setDatabasePath(this.k.getDir("databases", 0).getPath());
settings.setDomStorageEnabled(true);
ius.a("openSDK_LOG.AuthDialog", "-->mUrl : " + this.a);
this.o = this.a;
this.j.loadUrl(this.a);
this.j.setVisibility(4);
this.j.getSettings().setSavePassword(false);
this.l.a(new iwk(), "SecureJsInterface");
iwk.a = false;
super.setOnDismissListener(new ish(this));
}
public boolean e() {
isn a = isn.a();
String c = a.c();
iso isoVar = new iso();
isoVar.a = this.c;
isoVar.b = this;
isoVar.c = c;
String a2 = a.a(isoVar);
String substring = this.a.substring(0, this.a.indexOf("?"));
Bundle b = iwg.b(this.a);
b.putString("token_key", c);
b.putString("serial", a2);
b.putString("browser", "1");
this.a = substring + "?" + iwg.a(b);
return iwg.a(this.k, this.a);
}
public static void b(Context context, String str) {
try {
JSONObject d = iwg.d(str);
int i = d.getInt("type");
Toast.makeText(context.getApplicationContext(), d.getString(XAdErrorCode.ERROR_CODE_MESSAGE), i).show();
} catch (JSONException e) {
e.printStackTrace();
}
}
public void a(String str, String str2) {
this.j.loadUrl("javascript:" + str + "(" + str2 + ");void(" + System.currentTimeMillis() + ");");
}
@Override
public void dismiss() {
this.s.clear();
this.d.removeCallbacksAndMessages(null);
if (isShowing()) {
super.dismiss();
}
if (this.j != null) {
this.j.destroy();
this.j = null;
}
}
}