正在查看: 万能钥匙 v1.1.23 应用的 m.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 万能钥匙 v1.1.23 应用的 m.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package l60;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.wifitutu.widget.svc.wkconfig.config.api.generate.app.NetworkPingConfig;
import f60.h6;
import f60.i6;
import f60.x1;
import f60.y1;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import kotlin.Metadata;
import os.f2;
import os.q0;
import qs.o0;
import qs.p0;
import qs.r0;
@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u00002\u00020\u00012\u00020\u0002B\u0007¢\u0006\u0004\b\u0003\u0010\u0004J\u000f\u0010\u0006\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\u0006\u0010\u0007J!\u0010\f\u001a\u00020\u00052\b\u0010\t\u001a\u0004\u0018\u00010\b2\u0006\u0010\u000b\u001a\u00020\nH\u0016¢\u0006\u0004\b\f\u0010\rJ%\u0010\u0010\u001a\u00020\u00052\u0006\u0010\t\u001a\u00020\b2\u0006\u0010\u000b\u001a\u00020\n2\u0006\u0010\u000f\u001a\u00020\u000e¢\u0006\u0004\b\u0010\u0010\u0011J'\u0010\u0012\u001a\u00020\u00052\u0006\u0010\t\u001a\u00020\b2\u0006\u0010\u000b\u001a\u00020\n2\u0006\u0010\u000f\u001a\u00020\u000eH\u0002¢\u0006\u0004\b\u0012\u0010\u0011R\u001a\u0010\u0018\u001a\u00020\u00138\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u0014\u0010\u0015\u001a\u0004\b\u0016\u0010\u0017¨\u0006\u0019"}, d2 = {"Ll60/m;", "Lf60/x1;", "Los/a;", "<init>", "()V", "Lf60/i6;", "H", "()Lf60/i6;", "", "host", "", "count", "Qf", "(Ljava/lang/String;I)Lf60/i6;", "Lqs/r0;", "commandResult", "Pf", "(Ljava/lang/String;ILqs/r0;)Lf60/i6;", "Of", "Lqs/o0;", bg.d.f9423d, "Lqs/o0;", "getId", "()Lqs/o0;", "id", "widget-sdk_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class m extends os.a implements x1 {
public static ChangeQuickRedirect changeQuickRedirect;
public final o0 id = y1.a();
@Override
public i6 H() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 36139, new Class[0], i6.class);
if (proxy.isSupported) {
return (i6) proxy.result;
}
NetworkPingConfig a11 = com.wifitutu.widget.svc.wkconfig.config.api.generate.app.t.a(q0.a(f2.d()));
List<String> host = a11.getHost();
if (host == null || !(!host.isEmpty())) {
host = null;
}
if (host == null) {
host = mg0.p.m("8.8.8.8", "223.5.5.5", "1.1.1.1");
}
return Qf((String) mg0.x.I0(host, eh0.d.INSTANCE), a11.getCount());
}
public final i6 Of(String host, int count, r0 commandResult) {
String str;
String str2;
String group;
Matcher matcher;
Matcher matcher2;
int size;
tj0.g c11;
Double d11;
Double d12;
Double d13;
Double d14;
String group2;
Double k11;
String group3;
int i11 = count;
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{host, new Integer(i11), commandResult}, this, changeQuickRedirect, false, 36142, new Class[]{String.class, Integer.TYPE, r0.class}, i6.class);
if (proxy.isSupported) {
return (i6) proxy.result;
}
String rawError = commandResult.getRawError();
if (rawError != null && rawError.length() > 0) {
return tj0.u.Q(rawError, "unknown host", false, 2, null) ? new i6(h6.CODE_ERR_UNKNOWN_HOST, "Unknown host", commandResult, host, null, null, null, 0, 0, 0, null, null, null, null, null, 32752, null) : tj0.u.Q(rawError, "Network is unreachable", false, 2, null) ? new i6(h6.CODE_ERR_NETWORK_UNREACHABLE, "Network unreachable", commandResult, host, null, null, null, 0, 0, 0, null, null, null, null, null, 32752, null) : new i6(h6.CODE_ERR_UNKNOWN_ERROR, "Unknown error", commandResult, host, null, null, null, 0, 0, 0, null, null, null, null, null, 32752, null);
}
String rawOutput = commandResult.getRawOutput();
if (rawOutput == null) {
return new i6(h6.CODE_ERR_NO_RESPONSE, "Host cannot be empty", new r0(p0.CODE_ERROR_CMD, "", "Host cannot be empty"), null, null, null, null, 0, 0, 0, null, null, null, null, null, 32760, null);
}
Matcher matcher3 = Pattern.compile("PING ([^ ]+) \\(([0-9.]+)\\)").matcher(rawOutput);
if (matcher3.find()) {
str = matcher3.group(1);
group = matcher3.group(2);
} else {
Matcher matcher4 = Pattern.compile("from ([^ ]+) \\(([0-9.]+)\\)").matcher(rawOutput);
if (!matcher4.find()) {
str = null;
str2 = null;
Matcher matcher5 = Pattern.compile("([0-9]+) bytes from").matcher(rawOutput);
Integer m11 = (matcher5.find() || (group3 = matcher5.group(1)) == null) ? null : tj0.s.m(group3);
matcher = Pattern.compile("^.*time=([0-9.]+) ms", 8).matcher(rawOutput);
ArrayList arrayList = new ArrayList();
while (matcher.find()) {
String group4 = matcher.group(0);
if (group4 != null && tj0.u.O(group4, "bytes from", true) && (group2 = matcher.group(1)) != null && (k11 = tj0.r.k(group2)) != null) {
arrayList.add(Double.valueOf(k11.doubleValue()));
}
}
matcher2 = Pattern.compile("([0-9]+) packets transmitted, ([0-9]+) received").matcher(rawOutput);
if (matcher2.find()) {
Matcher matcher6 = Pattern.compile("([0-9]+) packets transmitted, ([0-9]+) packets received").matcher(rawOutput);
if (matcher6.find()) {
i11 = Integer.parseInt(matcher6.group(1));
size = Integer.parseInt(matcher6.group(2));
} else {
size = tj0.u.D0(rawOutput, new String[]{"time="}, false, 0, 6, null).size() - 1;
}
} else {
i11 = Integer.parseInt(matcher2.group(1));
size = Integer.parseInt(matcher2.group(2));
}
int i12 = i11;
int i13 = size;
c11 = tj0.i.c(new tj0.i("rtt min/avg/max/mdev = (\\d+\\.\\d+)/(\\d+\\.\\d+)/(\\d+\\.\\d+)/(\\d+\\.\\d+) ms"), rawOutput, 0, 2, null);
if (c11 == null) {
Double k12 = tj0.r.k(c11.b().get(1));
Double k13 = tj0.r.k(c11.b().get(2));
Double k14 = tj0.r.k(c11.b().get(3));
d12 = k13;
d14 = tj0.r.k(c11.b().get(4));
d13 = k14;
d11 = k12;
} else {
d11 = null;
d12 = null;
d13 = null;
d14 = null;
}
return new i6(h6.CODE_SUCCESS, null, commandResult, host, str, str2, m11, i12, i13, i12 - i13, arrayList, d11, d12, d13, d14, 2, null);
}
group = matcher4.group(2);
str = host;
}
str2 = group;
Matcher matcher52 = Pattern.compile("([0-9]+) bytes from").matcher(rawOutput);
if (matcher52.find()) {
}
matcher = Pattern.compile("^.*time=([0-9.]+) ms", 8).matcher(rawOutput);
ArrayList arrayList2 = new ArrayList();
while (matcher.find()) {
}
matcher2 = Pattern.compile("([0-9]+) packets transmitted, ([0-9]+) received").matcher(rawOutput);
if (matcher2.find()) {
}
int i122 = i11;
int i132 = size;
c11 = tj0.i.c(new tj0.i("rtt min/avg/max/mdev = (\\d+\\.\\d+)/(\\d+\\.\\d+)/(\\d+\\.\\d+)/(\\d+\\.\\d+) ms"), rawOutput, 0, 2, null);
if (c11 == null) {
}
return new i6(h6.CODE_SUCCESS, null, commandResult, host, str, str2, m11, i122, i132, i122 - i132, arrayList2, d11, d12, d13, d14, 2, null);
}
public final i6 Pf(String host, int count, r0 commandResult) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{host, new Integer(count), commandResult}, this, changeQuickRedirect, false, 36141, new Class[]{String.class, Integer.TYPE, r0.class}, i6.class);
if (proxy.isSupported) {
return (i6) proxy.result;
}
try {
return Of(host, count, commandResult);
} catch (Throwable unused) {
return new i6(h6.CODE_ERR_PARSE_ERROR, "Command result parse error", commandResult, host, null, null, null, 0, 0, 0, null, null, null, null, null, 32752, null);
}
}
public i6 Qf(String host, int count) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{host, new Integer(count)}, this, changeQuickRedirect, false, 36140, new Class[]{String.class, Integer.TYPE}, i6.class);
return proxy.isSupported ? (i6) proxy.result : (host == null || host.length() == 0) ? new i6(h6.CODE_ERR_EMPTY_HOST, "Host cannot be empty", new r0(p0.CODE_ERROR_CMD, "", "Host cannot be empty"), null, null, null, null, 0, 0, 0, mg0.p.j(), null, null, null, null, 31224, null) : Pf(host, count, qs.q0.f68016a.a("ping", "-c", String.valueOf(count), host));
}
@Override
public o0 getId() {
return this.id;
}
}