what-the-bank/sources/o/Wwj.java

57 lines
2.0 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.os.Build;
import android.webkit.WebView;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.chromium.support_lib_boundary.WebViewProviderFactoryBoundaryInterface;
/* loaded from: classes.dex */
public final class Wwj {
/* loaded from: classes.dex */
static class IeS {
static final C0753NuB a = new C0753NuB(LWm.d.b());
}
/* loaded from: classes.dex */
static class LWm {
static final SDx d = Wwj.b();
}
private static Object e() {
try {
Method declaredMethod = WebView.class.getDeclaredMethod("getFactory", new Class[0]);
declaredMethod.setAccessible(true);
return declaredMethod.invoke(null, new Object[0]);
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
} catch (NoSuchMethodException e2) {
throw new RuntimeException(e2);
} catch (InvocationTargetException e3) {
throw new RuntimeException(e3);
}
}
static SDx b() {
ClassLoader classLoader;
try {
if (Build.VERSION.SDK_INT >= 28) {
classLoader = WebView.getWebViewClassLoader();
} else {
classLoader = e().getClass().getClassLoader();
}
return new gwB((WebViewProviderFactoryBoundaryInterface) C15269glx.d(WebViewProviderFactoryBoundaryInterface.class, (InvocationHandler) Class.forName("org.chromium.support_lib_glue.SupportLibReflectionUtil", false, classLoader).getDeclaredMethod("createWebViewProviderFactory", new Class[0]).invoke(null, new Object[0])));
} catch (ClassNotFoundException unused) {
return new Evf();
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
} catch (NoSuchMethodException e2) {
throw new RuntimeException(e2);
} catch (InvocationTargetException e3) {
throw new RuntimeException(e3);
}
}
}