正在查看: Handling Master v2 应用的 o.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Handling Master v2 应用的 o.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.thinkup.expressad.advanced.view;
import android.content.Context;
import android.graphics.Bitmap;
import android.net.Uri;
import android.text.TextUtils;
import android.webkit.ValueCallback;
import android.webkit.WebResourceRequest;
import android.webkit.WebResourceResponse;
import android.webkit.WebView;
import com.thinkup.core.common.oo0.om0;
import com.thinkup.core.common.res.o0;
import com.thinkup.core.express.web.BaseWebView;
import com.thinkup.core.express.web.m;
import com.thinkup.expressad.advanced.js.NativeAdvancedJSBridgeImpl;
import com.thinkup.expressad.advanced.o0.n;
import com.thinkup.expressad.atsignalcommon.windvane.WindVaneWebView;
import com.thinkup.expressad.foundation.m0.o00;
import java.io.FileInputStream;
import java.net.URLDecoder;
import java.util.HashMap;
public final class o extends m {
com.thinkup.expressad.advanced.o0.o m;
String o;
private n o0;
private final String n = "NativeAdvancedWebViewClient";
private final String oo = com.thinkup.core.express.o.o.m("YkRXhr5AWBPfNgzuH7JQ+2Ha");
private final String om = com.thinkup.core.express.o.o.m("Y+xgWkl2");
public o(String str, com.thinkup.expressad.advanced.o0.o oVar, n nVar) {
this.o = str;
this.m = oVar;
this.o0 = nVar;
}
private WebResourceResponse o(WebView webView, String str) {
Uri parse;
String scheme;
if (!TextUtils.isEmpty(str) && this.o0 != null) {
try {
String replace = str.startsWith("file") ? str.replace("file://", "") : "";
boolean z = false;
if (!TextUtils.isEmpty(str) && (parse = Uri.parse(str)) != null && (scheme = parse.getScheme()) != null && !TextUtils.isEmpty(scheme) && (scheme.equals(this.om) || scheme.equals("mb-h5"))) {
z = true;
}
if (z) {
replace = this.o0.o(URLDecoder.decode(Uri.parse(str).getQueryParameter("uri")));
}
Context context = webView.getContext();
if (context == null) {
context = com.thinkup.expressad.foundation.m.m.n().oo();
}
boolean m = o00.m(replace, o0.o(context).o(4));
boolean z2 = com.thinkup.expressad.m.o;
if (!TextUtils.isEmpty(replace) && m && !replace.contains("127.0.0.1") && !replace.startsWith("http")) {
HashMap hashMap = new HashMap();
hashMap.put("Access-Control-Allow-Origin", "*");
WebResourceResponse webResourceResponse = new WebResourceResponse("video/mp4", com.thinkup.expressad.foundation.on.o.moo0, new FileInputStream(replace));
webResourceResponse.setResponseHeaders(hashMap);
return webResourceResponse;
}
return null;
} catch (Throwable th) {
th.getMessage();
}
}
return null;
}
public final void m() {
if (this.o0 != null) {
this.o0 = null;
}
}
public final void onPageStarted(WebView webView, String str, Bitmap bitmap) {
super/*android.webkit.WebViewClient*/.onPageStarted(webView, str, bitmap);
try {
webView.evaluateJavascript("javascript:" + om0.o().m(), new ValueCallback<String>() {
private static void o() {
}
@Override
public final void onReceiveValue(String str2) {
}
});
} catch (Throwable unused) {
}
}
public final WebResourceResponse shouldInterceptRequest(WebView webView, String str) {
return o(webView, str);
}
public final boolean shouldOverrideUrlLoading(WebView webView, String str) {
try {
try {
?? r7 = (WindVaneWebView) webView;
if (System.currentTimeMillis() - ((BaseWebView) r7).lastTouchTime > com.thinkup.expressad.m.n.o.n) {
com.thinkup.expressad.foundation.o0.o0 o0Var = ((NativeAdvancedJSBridgeImpl) r7.getObject()).getmCampaignList().get(0);
r7.getUrl();
com.thinkup.expressad.m.n.o.o(o0Var);
return false;
}
} catch (Exception e) {
e.printStackTrace();
}
com.thinkup.expressad.advanced.o0.o oVar = this.m;
if (oVar == null) {
return true;
}
oVar.o(str);
return true;
} catch (Throwable unused) {
return false;
}
}
public final WebResourceResponse shouldInterceptRequest(WebView webView, WebResourceRequest webResourceRequest) {
return o(webView, webResourceRequest.getUrl().toString());
}
private boolean o(String str) {
Uri parse;
String scheme;
if (TextUtils.isEmpty(str) || (parse = Uri.parse(str)) == null || (scheme = parse.getScheme()) == null || TextUtils.isEmpty(scheme)) {
return false;
}
return scheme.equals(this.om) || scheme.equals("mb-h5");
}
}