百度手机卫士 v8.1.5版本的 MD5 值为:15af71eae74e2f2b5b9f845fe77a4804
以下内容为反编译后的 pu.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 com.alipay.sdk.app.H5PayActivity;
import java.net.URLDecoder;
public final class pu extends WebViewClient {
final H5PayActivity a;
private pu(H5PayActivity h5PayActivity) {
this.a = h5PayActivity;
}
public pu(H5PayActivity h5PayActivity, byte b) {
this(h5PayActivity);
}
@Override
public final void onLoadResource(WebView webView, String str) {
}
@Override
public final void onPageFinished(WebView webView, String str) {
Handler handler;
Runnable runnable;
H5PayActivity.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;
H5PayActivity.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) {
H5PayActivity.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.e;
if (!z) {
this.a.runOnUiThread(new qc(this, sslErrorHandler));
} else {
sslErrorHandler.proceed();
this.a.e = false;
}
}
@Override
public final boolean shouldOverrideUrlLoading(WebView webView, String str) {
if (str.startsWith("alipays://platformapi/startApp?")) {
return false;
}
if (TextUtils.equals(str, "sdklite://h5quit") || TextUtils.equals(str, "http://m.alipay.com/?action=h5quit")) {
qg.a = qg.a();
this.a.finish();
return true;
}
if (!str.startsWith("sdklite://h5quit?result=")) {
webView.loadUrl(str);
return true;
}
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() || parseInt == com.alipay.sdk.app.m.PAY_WAITTING.a()) {
StringBuilder sb = new StringBuilder();
String decode = URLDecoder.decode(str);
String substring2 = decode.substring(decode.indexOf("sdklite://h5quit?result=") + 24, decode.lastIndexOf("&end_code="));
if (substring2.contains("&return_url=\"")) {
String str2 = substring2.split("&return_url=\"")[0];
int indexOf = substring2.indexOf("&return_url=\"") + 13;
sb.append(str2).append("&return_url=\"").append(substring2.substring(indexOf, substring2.indexOf("\"&", indexOf))).append(substring2.substring(substring2.indexOf("\"&", indexOf)));
substring2 = sb.toString();
}
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 qf(this));
return true;
}
}