正在查看: 万能钥匙 v1.1.23 应用的 n.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 万能钥匙 v1.1.23 应用的 n.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package kw;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Build;
import android.util.Log;
import androidx.core.content.ContextCompat;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import java.util.List;
import java.util.concurrent.SynchronousQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import kotlin.Metadata;
import lg0.e0;
import mg0.p;
@Metadata(d1 = {"\u0000Z\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u000e\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\f\n\u0002\u0010\t\n\u0002\b\u0006\n\u0002\u0010\b\n\u0002\b\u0012\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\t\bÇ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u0017\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u0007\u0010\bJ\r\u0010\n\u001a\u00020\t¢\u0006\u0004\b\n\u0010\u0003R\"\u0010\u0011\u001a\u00020\u00048\u0006@\u0006X\u0086.¢\u0006\u0012\n\u0004\b\u000b\u0010\f\u001a\u0004\b\r\u0010\u000e\"\u0004\b\u000f\u0010\u0010R2\u0010\u001a\u001a\u0012\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00060\u0012j\u0002`\u00138\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0014\u0010\u0015\u001a\u0004\b\u0016\u0010\u0017\"\u0004\b\u0018\u0010\u0019R\"\u0010!\u001a\u00020\u00068\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u001b\u0010\u001c\u001a\u0004\b\u001d\u0010\u001e\"\u0004\b\u001f\u0010 R(\u0010)\u001a\b\u0012\u0004\u0012\u00020#0\"8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b$\u0010%\u001a\u0004\b\u001b\u0010&\"\u0004\b'\u0010(R(\u0010,\u001a\b\u0012\u0004\u0012\u00020#0\"8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u001d\u0010%\u001a\u0004\b*\u0010&\"\u0004\b+\u0010(R(\u0010/\u001a\b\u0012\u0004\u0012\u00020#0\"8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b-\u0010%\u001a\u0004\b\u0014\u0010&\"\u0004\b.\u0010(R\"\u00106\u001a\u0002008\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\r\u00101\u001a\u0004\b2\u00103\"\u0004\b4\u00105R\"\u0010=\u001a\u0002078\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b8\u00109\u001a\u0004\b$\u0010:\"\u0004\b;\u0010<R\"\u0010D\u001a\u00020#8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b>\u0010?\u001a\u0004\b@\u0010A\"\u0004\bB\u0010CR\"\u0010G\u001a\u00020#8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b*\u0010?\u001a\u0004\bE\u0010A\"\u0004\bF\u0010CR\"\u0010I\u001a\u00020#8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b2\u0010?\u001a\u0004\b>\u0010A\"\u0004\bH\u0010CR\"\u0010O\u001a\u00020J8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bE\u0010K\u001a\u0004\b-\u0010L\"\u0004\bM\u0010NR\"\u0010U\u001a\u00020P8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b@\u0010Q\u001a\u0004\b8\u0010R\"\u0004\bS\u0010TR.\u0010X\u001a\u000e\u0012\u0004\u0012\u00020#\u0012\u0004\u0012\u00020\t0\u00128\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\n\u0010\u0015\u001a\u0004\bV\u0010\u0017\"\u0004\bW\u0010\u0019¨\u0006Y"}, d2 = {"Lkw/n;", "", "<init>", "()V", "Landroid/content/Context;", "context", "", "p", "(Landroid/content/Context;)Z", "Llg0/e0;", "o", "b", "Landroid/content/Context;", "h", "()Landroid/content/Context;", "u", "(Landroid/content/Context;)V", "globalContext", "Lkotlin/Function1;", "Lcom/wifitutu/metis/PermissionCheck;", "c", "Lah0/l;", "getPermissionCheck", "()Lah0/l;", "w", "(Lah0/l;)V", "permissionCheck", "d", "Z", "f", "()Z", "t", "(Z)V", "enableArpSocket", "", "", "e", "Ljava/util/List;", "()Ljava/util/List;", "r", "(Ljava/util/List;)V", "dnsDomainList", "k", "z", "sslUrlList", "g", "q", "backupDnsServer", "", "J", "l", "()J", "A", "(J)V", "timeout", "", "i", "I", "()I", "s", "(I)V", "dnsThresholdCount", "j", "Ljava/lang/String;", "n", "()Ljava/lang/String;", "C", "(Ljava/lang/String;)V", "webUrl", "m", "B", "webMd5", "x", "portalTestUrl", "Ljava/util/concurrent/ThreadPoolExecutor;", "Ljava/util/concurrent/ThreadPoolExecutor;", "()Ljava/util/concurrent/ThreadPoolExecutor;", "setExecutor", "(Ljava/util/concurrent/ThreadPoolExecutor;)V", "executor", "Lkw/g;", "Lkw/g;", "()Lkw/g;", "v", "(Lkw/g;)V", "logger", "getSoLoader", "y", "soLoader", "wifidetect_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
@SuppressLint({"StaticFieldLeak"})
public final class n {
public static final n a;
public static Context globalContext;
public static ah0.l<? super Context, Boolean> permissionCheck;
public static ChangeQuickRedirect changeQuickRedirect;
public static boolean enableArpSocket;
public static List<String> dnsDomainList;
public static List<String> sslUrlList;
public static List<String> backupDnsServer;
public static long timeout;
public static int dnsThresholdCount;
public static String webUrl;
public static String webMd5;
public static String portalTestUrl;
public static ThreadPoolExecutor executor;
public static g logger;
public static ah0.l<? super String, e0> soLoader;
@Metadata(d1 = {"\u0000\u001d\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u000f\u0010\u0003\u001a\u00020\u0002H\u0016¢\u0006\u0004\b\u0003\u0010\u0004J\u0015\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005H\u0016¢\u0006\u0004\b\u0007\u0010\b¨\u0006\t"}, d2 = {"kw/n$a", "Lum0/a;", "", "l", "()Z", "", "", "o", "()Ljava/util/List;", "wifidetect_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
public static final class a extends um0.a {
public static ChangeQuickRedirect changeQuickRedirect;
public a() {
super("", 3000);
}
public boolean l() {
return true;
}
public List<String> o() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 20626, new Class[0], List.class);
if (proxy.isSupported) {
return (List) proxy.result;
}
lw.f fVar = lw.f.a;
n nVar = n.a;
List<String> e = fVar.e(nVar.h());
return e.isEmpty() ? nVar.c() : e;
}
}
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u001f\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u0002H\u0016¢\u0006\u0004\b\u0006\u0010\u0007J\u001f\u0010\b\u001a\u00020\u00052\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u0002H\u0016¢\u0006\u0004\b\b\u0010\u0007¨\u0006\t"}, d2 = {"kw/n$b", "Lkw/g;", "", "tag", "msg", "Llg0/e0;", "debug", "(Ljava/lang/String;Ljava/lang/String;)V", "a", "wifidetect_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
public static final class b implements g {
public static ChangeQuickRedirect changeQuickRedirect;
@Override
public void a(String tag, String msg) {
if (PatchProxy.proxy(new Object[]{tag, msg}, this, changeQuickRedirect, false, 20629, new Class[]{String.class, String.class}, Void.TYPE).isSupported) {
return;
}
kotlin.jvm.internal.n.i(tag, "tag");
kotlin.jvm.internal.n.i(msg, "msg");
Log.w(tag, msg);
}
@Override
public void debug(String tag, String msg) {
if (PatchProxy.proxy(new Object[]{tag, msg}, this, changeQuickRedirect, false, 20628, new Class[]{String.class, String.class}, Void.TYPE).isSupported) {
return;
}
kotlin.jvm.internal.n.i(tag, "tag");
kotlin.jvm.internal.n.i(msg, "msg");
Log.d(tag, msg);
}
}
@Metadata(k = 3, mv = {2, 0, 0}, xi = 48)
public final class c extends kotlin.jvm.internal.l implements ah0.l<Context, Boolean> {
public static ChangeQuickRedirect changeQuickRedirect;
public c(Object obj) {
super(1, obj, n.class, "permissionCheckImpl", "permissionCheckImpl(Landroid/content/Context;)Z", 0);
}
@Override
public Boolean invoke(Context context) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{context}, this, changeQuickRedirect, false, 20632, new Class[]{Object.class}, Object.class);
return proxy.isSupported ? proxy.result : u(context);
}
public final Boolean u(Context context) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{context}, this, changeQuickRedirect, false, 20631, new Class[]{Context.class}, Boolean.class);
if (proxy.isSupported) {
return (Boolean) proxy.result;
}
kotlin.jvm.internal.n.i(context, "p0");
return Boolean.valueOf(n.b((n) ((kotlin.jvm.internal.d) this).receiver, context));
}
}
static {
n nVar = new n();
a = nVar;
permissionCheck = new c(nVar);
enableArpSocket = true;
dnsDomainList = p.m(new String[]{"m.qq.com", "www.sohu.com", "www.sina.com.cn", "gm.58.com", "w.mail.qq.com", "www.baidu.com"});
sslUrlList = p.m(new String[]{"https://m.qq.com", "https://www.sohu.com", "https://www.sina.com.cn", "https://gm.58.com", "https://w.mail.qq.com", "https://www.baidu.com"});
backupDnsServer = p.m(new String[]{"114.114.114.114", "223.5.5.5"});
timeout = 8000L;
dnsThresholdCount = 3;
webUrl = "http://static.swaqds.com/WifiSafetyDecisionMaker/static-web/1.html";
webMd5 = "0e0eef56235c1cd439c1ee8bbaf159d1";
portalTestUrl = "http://static.swaqds.com/WifiSafetyDecisionMaker/static-web/1.html";
executor = new ThreadPoolExecutor(0, (dnsDomainList.size() * 2) + sslUrlList.size() + 2, timeout, TimeUnit.SECONDS, new SynchronousQueue(), tk0.e.N("Wifi::Detector", false));
logger = new b();
soLoader = new ah0.l() {
@Override
public final Object invoke(Object obj) {
e0 D;
D = n.D((String) obj);
return D;
}
};
}
public static final e0 D(String str) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{str}, (Object) null, changeQuickRedirect, true, 20624, new Class[]{String.class}, e0.class);
if (proxy.isSupported) {
return (e0) proxy.result;
}
kotlin.jvm.internal.n.i(str, "name");
System.loadLibrary(str);
return e0.a;
}
public static final boolean b(n nVar, Context context) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{nVar, context}, (Object) null, changeQuickRedirect, true, 20625, new Class[]{n.class, Context.class}, Boolean.TYPE);
return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : nVar.p(context);
}
public final void A(long j) {
timeout = j;
}
public final void B(String str) {
if (PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 20617, new Class[]{String.class}, Void.TYPE).isSupported) {
return;
}
kotlin.jvm.internal.n.i(str, "<set-?>");
webMd5 = str;
}
public final void C(String str) {
if (PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 20616, new Class[]{String.class}, Void.TYPE).isSupported) {
return;
}
kotlin.jvm.internal.n.i(str, "<set-?>");
webUrl = str;
}
public final List<String> c() {
return backupDnsServer;
}
public final List<String> d() {
return dnsDomainList;
}
public final int e() {
return dnsThresholdCount;
}
public final boolean f() {
return enableArpSocket;
}
public final ThreadPoolExecutor g() {
return executor;
}
public final Context h() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 20610, new Class[0], Context.class);
if (proxy.isSupported) {
return (Context) proxy.result;
}
Context context = globalContext;
if (context != null) {
return context;
}
kotlin.jvm.internal.n.z("globalContext");
return null;
}
public final g i() {
return logger;
}
public final String j() {
return portalTestUrl;
}
public final List<String> k() {
return sslUrlList;
}
public final long l() {
return timeout;
}
public final String m() {
return webMd5;
}
public final String n() {
return webUrl;
}
public final void o() {
if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 20622, new Class[0], Void.TYPE).isSupported) {
return;
}
soLoader.invoke("metis");
nm0.c.i(new a());
}
public final boolean p(Context context) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{context}, this, changeQuickRedirect, false, 20623, new Class[]{Context.class}, Boolean.TYPE);
return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : Build.VERSION.SDK_INT < 26 || ContextCompat.checkSelfPermission(context, "android.permission.ACCESS_FINE_LOCATION") == 0;
}
public final void q(List<String> list) {
if (PatchProxy.proxy(new Object[]{list}, this, changeQuickRedirect, false, 20615, new Class[]{List.class}, Void.TYPE).isSupported) {
return;
}
kotlin.jvm.internal.n.i(list, "<set-?>");
backupDnsServer = list;
}
public final void r(List<String> list) {
if (PatchProxy.proxy(new Object[]{list}, this, changeQuickRedirect, false, 20613, new Class[]{List.class}, Void.TYPE).isSupported) {
return;
}
kotlin.jvm.internal.n.i(list, "<set-?>");
dnsDomainList = list;
}
public final void s(int i) {
dnsThresholdCount = i;
}
public final void t(boolean z) {
enableArpSocket = z;
}
public final void u(Context context) {
if (PatchProxy.proxy(new Object[]{context}, this, changeQuickRedirect, false, 20611, new Class[]{Context.class}, Void.TYPE).isSupported) {
return;
}
kotlin.jvm.internal.n.i(context, "<set-?>");
globalContext = context;
}
public final void v(g gVar) {
if (PatchProxy.proxy(new Object[]{gVar}, this, changeQuickRedirect, false, 20620, new Class[]{g.class}, Void.TYPE).isSupported) {
return;
}
kotlin.jvm.internal.n.i(gVar, "<set-?>");
logger = gVar;
}
public final void w(ah0.l<? super Context, Boolean> lVar) {
if (PatchProxy.proxy(new Object[]{lVar}, this, changeQuickRedirect, false, 20612, new Class[]{ah0.l.class}, Void.TYPE).isSupported) {
return;
}
kotlin.jvm.internal.n.i(lVar, "<set-?>");
permissionCheck = lVar;
}
public final void x(String str) {
if (PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 20618, new Class[]{String.class}, Void.TYPE).isSupported) {
return;
}
kotlin.jvm.internal.n.i(str, "<set-?>");
portalTestUrl = str;
}
public final void y(ah0.l<? super String, e0> lVar) {
if (PatchProxy.proxy(new Object[]{lVar}, this, changeQuickRedirect, false, 20621, new Class[]{ah0.l.class}, Void.TYPE).isSupported) {
return;
}
kotlin.jvm.internal.n.i(lVar, "<set-?>");
soLoader = lVar;
}
public final void z(List<String> list) {
if (PatchProxy.proxy(new Object[]{list}, this, changeQuickRedirect, false, 20614, new Class[]{List.class}, Void.TYPE).isSupported) {
return;
}
kotlin.jvm.internal.n.i(list, "<set-?>");
sslUrlList = list;
}
}