百度手机卫士 v8.1.5版本的 MD5 值为:15af71eae74e2f2b5b9f845fe77a4804
以下内容为反编译后的 pt.java 源代码,内容仅作参考
package dxoptimizer;
import android.graphics.Bitmap;
import android.net.http.SslError;
import android.os.Handler;
import android.text.TextUtils;
import android.webkit.SslErrorHandler;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import java.net.URLDecoder;
final class pt extends WebViewClient {
final ps a;
private pt(ps psVar) {
this.a = psVar;
}
public pt(ps psVar, byte b) {
this(psVar);
}
@Override
public final void onPageFinished(WebView webView, String str) {
Handler handler;
Runnable runnable;
ps.f(this.a);
handler = this.a.c;
runnable = this.a.f;
handler.removeCallbacks(runnable);
}
@Override
public final void onPageStarted(WebView webView, String str, Bitmap bitmap) {
Handler handler;
Runnable runnable;
ps.c(this.a);
handler = this.a.c;
runnable = this.a.f;
handler.postDelayed(runnable, 30000L);
super.onPageStarted(webView, str, bitmap);
}
@Override
public final void onReceivedError(WebView webView, int i, String str, String str2) {
ps.a(this.a);
super.onReceivedError(webView, i, str, str2);
}
@Override
public final void onReceivedSslError(WebView webView, SslErrorHandler sslErrorHandler, SslError sslError) {
boolean z;
z = this.a.d;
if (!z) {
this.a.runOnUiThread(new px(this, sslErrorHandler));
} else {
sslErrorHandler.proceed();
this.a.d = false;
}
}
@Override
public final boolean shouldOverrideUrlLoading(WebView webView, String str) {
if (TextUtils.equals(str, "sdklite://h5quit") || TextUtils.equals(str, "http://m.alipay.com/?action=h5quit")) {
qg.a = qg.a();
this.a.finish();
} else if (str.startsWith("sdklite://h5quit?result=")) {
try {
String substring = str.substring(str.indexOf("sdklite://h5quit?result=") + 24);
int parseInt = Integer.parseInt(substring.substring(substring.lastIndexOf("&end_code=") + 10));
if (parseInt == com.alipay.sdk.app.m.SUCCEEDED.a()) {
String decode = URLDecoder.decode(str);
String substring2 = decode.substring(decode.indexOf("sdklite://h5quit?result=") + 24, decode.lastIndexOf("&end_code="));
com.alipay.sdk.app.m a = com.alipay.sdk.app.m.a(parseInt);
qg.a = qg.a(a.a(), a.b(), substring2);
} else {
com.alipay.sdk.app.m a2 = com.alipay.sdk.app.m.a(com.alipay.sdk.app.m.FAILED.a());
qg.a = qg.a(a2.a(), a2.b(), "");
}
} catch (Exception e) {
qg.a = qg.b();
}
this.a.runOnUiThread(new qa(this));
} else {
webView.loadUrl(str);
}
return true;
}
}