APKPure v3.19.91版本的 MD5 值为:f9be25764b720fb55728dbddf2153619
以下内容为反编译后的 qdad.java 源代码,内容仅作参考
package v4;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.webkit.WebResourceResponse;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import bq.qdaa;
import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import java.util.HashSet;
import kotlin.jvm.internal.qdbb;
import kotlinx.coroutines.qddg;
import ku.qdbc;
import qu.qdbd;
import w4.qdah;
public final class qdad extends WebViewClient {
public qdbd<? super String, qdbc> f30882a;
public boolean f30883b;
public qdad(qdah qdahVar) {
}
@Override
public final void onPageFinished(WebView webView, String str) {
super.onPageFinished(webView, str);
qdbd<? super String, qdbc> qdbdVar = this.f30882a;
if (qdbdVar != null) {
qdbdVar.invoke(str);
}
}
@Override
public final void onPageStarted(WebView webView, String str, Bitmap bitmap) {
HashSet hashSet = bq.qdaa.f3895b;
qdaa.C0054qdaa.f3897a.getClass();
bq.qdaa.b(webView);
super.onPageStarted(webView, str, bitmap);
}
@Override
public final WebResourceResponse shouldInterceptRequest(WebView webView, String str) {
WebResourceResponse webResourceResponse;
if (webView != null && str != null) {
Context context = webView.getContext();
qdbb.e(context, "view.context");
if (qdbb.a(Uri.parse(str).getLastPathSegment(), "mraid.js")) {
webResourceResponse = or.qdac.T(context);
if (webResourceResponse != null) {
this.f30883b = true;
}
if (webResourceResponse != null) {
return super.shouldInterceptRequest(webView, str);
}
return webResourceResponse;
}
webResourceResponse = null;
if (webResourceResponse != null) {
}
if (webResourceResponse != null) {
}
} else {
return super.shouldInterceptRequest(webView, str);
}
}
@Override
public final boolean shouldOverrideUrlLoading(WebView webView, String str) {
boolean z10;
String str2;
Intent intent;
if (webView == null || str == null) {
return true;
}
if (!this.f30883b) {
return false;
}
Context context = webView.getContext();
qdbb.e(context, "view.context");
if (kotlin.text.qdbd.U(str, "market://details", false) || kotlin.text.qdbd.U(str, "http://play.google.com/store/apps/details", false) || kotlin.text.qdbd.U(str, "https://play.google.com/store/apps/details", false)) {
if (context.getPackageManager().getPackageInfo("com.android.vending", UserMetadata.MAX_ROLLOUT_ASSIGNMENTS) != null) {
z10 = true;
if (z10) {
if (kotlin.text.qdbd.U(str, "https://play.google.com/store/apps/details", false)) {
str2 = kotlin.text.qdbd.Q(str, "https://play.google.com/store/apps/details", "market://details", false);
} else if (kotlin.text.qdbd.U(str, "http://play.google.com/store/apps/details", false)) {
str2 = kotlin.text.qdbd.Q(str, "http://play.google.com/store/apps/details", "market://details", false);
} else {
str2 = str;
}
try {
intent = new Intent("android.intent.action.VIEW", Uri.parse(str2));
intent.setPackage("com.android.vending");
intent.addFlags(268435456);
context.startActivity(intent);
} catch (Exception e10) {
e = e10;
qddg.X("JumpUtil", "The jump url is invalid: ".concat(str), new Object[0]);
e.printStackTrace();
return true;
}
return true;
}
}
z10 = false;
if (z10) {
}
}
intent = new Intent("android.intent.action.VIEW", Uri.parse(str));
intent.addFlags(268435456);
context.startActivity(intent);
return true;
}
}