百度手机卫士 v8.6.2版本的 MD5 值为:fa60cb367e40201705a2d9f9ce2cbfdf
以下内容为反编译后的 qg.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 qg extends WebViewClient {
final qf a;
private qg(qf qfVar) {
this.a = qfVar;
}
public qg(qf qfVar, byte b) {
this(qfVar);
}
@Override
public final void onPageFinished(WebView webView, String str) {
Handler handler;
Runnable runnable;
qf.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;
qf.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) {
qf.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 qk(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")) {
qt.a = qt.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);
qt.a = qt.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());
qt.a = qt.a(a2.a(), a2.b(), "");
}
} catch (Exception e) {
qt.a = qt.b();
}
this.a.runOnUiThread(new qn(this));
} else {
webView.loadUrl(str);
}
return true;
}
}