Cyber Surfer v5.2.5版本的 MD5 值为:db13c5fce988de393e52d2679f934b22
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.fyber.inneractive.sdk.activities;
import android.webkit.RenderProcessGoneDetail;
import android.webkit.WebResourceRequest;
import android.webkit.WebResourceResponse;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.fyber.inneractive.sdk.network.r;
import com.fyber.inneractive.sdk.network.s;
import com.fyber.inneractive.sdk.network.t;
import com.fyber.inneractive.sdk.util.IAlog;
import com.fyber.inneractive.sdk.util.n0;
import com.safedk.android.analytics.brandsafety.creatives.CreativeInfoManager;
import com.safedk.android.internal.partials.FyberNetworkBridge;
import com.safedk.android.utils.Logger;
import org.json.JSONArray;
import org.json.JSONObject;
public class a extends WebViewClient {
public final FyberReportAdActivity f3265a;
public a(FyberReportAdActivity fyberReportAdActivity) {
this.f3265a = fyberReportAdActivity;
}
@Override
public void onLoadResource(WebView webView, String str) {
super.onLoadResource(webView, str);
CreativeInfoManager.onResourceLoaded(com.safedk.android.utils.h.p, webView, str);
}
@Override
public void onPageFinished(WebView webView, String str) {
super.onPageFinished(webView, str);
CreativeInfoManager.onWebViewPageFinished(com.safedk.android.utils.h.p, webView, str);
}
@Override
public void onReceivedError(WebView webView, int i, String str, String str2) {
IAlog.e("Received Error on WebViewClient: Code: %d, Description: %s, failingUrl: %s", Integer.valueOf(i), str, str2);
}
@Override
public boolean onRenderProcessGone(WebView webView, RenderProcessGoneDetail renderProcessGoneDetail) {
t.a("WebViewRendererProcessGone", "Web view renderer process has gone. Web view destroyed", null, null);
this.f3265a.finish();
return true;
}
public boolean safedk_a_shouldOverrideUrlLoading_0e0a97058b8988959ba7eb7368f3240a(WebView webView, String str) {
com.fyber.inneractive.sdk.flow.f fVar;
if (str == null) {
return false;
}
if (n0.a(str)) {
WebView webView2 = this.f3265a.f3255a;
if (webView2 != null) {
FyberNetworkBridge.webviewLoadUrl(webView2, "chrome://crash");
}
return true;
} else if (!str.startsWith("fybermarketplace://reportAd?") || (fVar = FyberReportAdActivity.f3254b) == null) {
return false;
} else {
String substring = str.substring(28);
com.fyber.inneractive.sdk.flow.e eVar = (com.fyber.inneractive.sdk.flow.e) fVar;
s.a aVar = new s.a(r.FYBER_REPORT_AD, eVar.f3505a, eVar.f3506b, (JSONArray) null);
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("message", substring);
} catch (Exception unused) {
IAlog.e("Got exception adding param to json object: %s, %s", "message", substring);
}
aVar.f.put(jSONObject);
aVar.g = true;
aVar.a((String) null);
WebView webView3 = this.f3265a.f3255a;
if (webView3 != null) {
FyberNetworkBridge.webviewLoadUrl(webView3, "javascript:reportSent();");
}
return true;
}
}
@Override
public WebResourceResponse shouldInterceptRequest(WebView webView, WebResourceRequest webResourceRequest) {
return CreativeInfoManager.onWebViewResponseWithHeaders(com.safedk.android.utils.h.p, webView, webResourceRequest, super.shouldInterceptRequest(webView, webResourceRequest));
}
@Override
public WebResourceResponse shouldInterceptRequest(WebView webView, String str) {
return CreativeInfoManager.onWebViewResponse(com.safedk.android.utils.h.p, webView, str, super.shouldInterceptRequest(webView, str));
}
@Override
public boolean shouldOverrideUrlLoading(WebView webView, String str) {
Logger.d("Fyber|SafeDK: Execution> Lcom/fyber/inneractive/sdk/activities/a;->shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z");
boolean safedk_a_shouldOverrideUrlLoading_0e0a97058b8988959ba7eb7368f3240a = safedk_a_shouldOverrideUrlLoading_0e0a97058b8988959ba7eb7368f3240a(webView, str);
CreativeInfoManager.onOverrideUrlLoading(com.safedk.android.utils.h.p, webView, str, safedk_a_shouldOverrideUrlLoading_0e0a97058b8988959ba7eb7368f3240a);
return safedk_a_shouldOverrideUrlLoading_0e0a97058b8988959ba7eb7368f3240a;
}
}