正在查看: 万能钥匙 v1.1.23 应用的 c0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 万能钥匙 v1.1.23 应用的 c0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package qs;
import android.net.Uri;
import android.text.TextUtils;
import android.util.Base64;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.Constants;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import java.util.List;
import java.util.ListIterator;
import kotlin.Metadata;
import kotlin.jvm.internal.n;
import kotlin.jvm.internal.p;
import lg0.h;
import mg0.x;
import os.a7;
import os.f2;
import os.g1;
import ps.l0;
import ps.m0;
import ps.r0;
import qs.d6;
import qs.o0;
import qu.i;
import tj0.t;
import tj0.u;
import uu.q0;
import uu.w;
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0011\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\u0018\u00002\u00020\u00012\u00020\u0002B\u0007¢\u0006\u0004\b\u0003\u0010\u0004J\u0017\u0010\b\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\b\u0010\tJ\u0017\u0010\u000b\u001a\u00020\n2\u0006\u0010\u0006\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\u000b\u0010\fJ\u0019\u0010\r\u001a\u0004\u0018\u00010\u00052\u0006\u0010\u0006\u001a\u00020\u0005H\u0016¢\u0006\u0004\b\r\u0010\u000eJ\u0019\u0010\u0010\u001a\u0004\u0018\u00010\u00052\u0006\u0010\u000f\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\u0010\u0010\u000eJ-\u0010\u0014\u001a\u00020\u00052\b\u0010\u0011\u001a\u0004\u0018\u00010\u00052\b\u0010\u0012\u001a\u0004\u0018\u00010\u00052\b\u0010\u0013\u001a\u0004\u0018\u00010\u0005H\u0002¢\u0006\u0004\b\u0014\u0010\u0015R\u001a\u0010\u001b\u001a\u00020\u00168\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u0017\u0010\u0018\u001a\u0004\b\u0019\u0010\u001aR!\u0010!\u001a\b\u0012\u0004\u0012\u00020\u00050\u001c8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001d\u0010\u001e\u001a\u0004\b\u001f\u0010 R\u001b\u0010&\u001a\u00020\"8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b#\u0010\u001e\u001a\u0004\b$\u0010%¨\u0006'"}, d2 = {"Lxr/c0;", "Luu/q0;", "Los/a;", "<init>", "()V", "", "qrResult", "", "y9", "(Ljava/lang/String;)Z", "Llg0/e0;", "O3", "(Ljava/lang/String;)V", "yb", "(Ljava/lang/String;)Ljava/lang/String;", "sec", "Rf", "code", "aesKey", "aesIv", "Sf", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "Lqs/o0;", "d", "Lqs/o0;", "getId", "()Lqs/o0;", "id", "", "e", "Llg0/h;", "Uf", "()[Ljava/lang/String;", "PC_QR_HOSTS", "Lps/n1;", "f", "Tf", "()Lps/n1;", "mWifiQrAesConf", "feature-wifi_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class c0 extends os.a implements q0 {
public static ChangeQuickRedirect changeQuickRedirect;
public final o0 id = i.p.b();
public final h PC_QR_HOSTS = lg0.i.a(a.s);
public final h mWifiQrAesConf = lg0.i.a(n1.s);
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0011\n\u0002\u0010\u000e\n\u0002\b\u0002\u0010\u0000\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", "", "invoke", "()[Ljava/lang/String;"}, k = 3, mv = {1, 8, 0}, xi = 48)
public static final class a extends p implements ah0.a<String[]> {
public static ChangeQuickRedirect changeQuickRedirect;
public static final a s = new a();
public a() {
super(0);
}
public Object invoke() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 5288, new Class[0], Object.class);
return proxy.isSupported ? proxy.result : m396invoke();
}
public final String[] m396invoke() {
return new String[]{"http://stage.pc.sangotek.com", "http://pc.sangotek.com", "https://p.sangotek.com", "https://uat.lianwifi.com"};
}
}
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u0004\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
public static final class b extends p implements ah0.a<String> {
public static ChangeQuickRedirect changeQuickRedirect;
public final String s;
public final c0 t;
public b(String str, c0 c0Var) {
super(0);
this.s = str;
this.t = c0Var;
}
public Object invoke() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 5290, new Class[0], Object.class);
return proxy.isSupported ? proxy.result : m397invoke();
}
public final String m397invoke() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 5289, new Class[0], String.class);
if (proxy.isSupported) {
return (String) proxy.result;
}
if (t.L(this.s, "WiFiMasterKey://", false, 2, (Object) null) && u.Q(this.s, "wfm:", false, 2, (Object) null)) {
int d0 = u.d0(this.s, "wfm:", 0, false, 6, (Object) null);
c0 c0Var = this.t;
String substring = this.s.substring(d0 + 4);
n.h(substring, "this as java.lang.String).substring(startIndex)");
String Pf = c0.Pf(c0Var, substring, c0.Qf(this.t).b(), c0.Qf(this.t).a());
if (Pf.length() <= 0) {
Pf = null;
}
if (Pf != null) {
return c0.Of(this.t, Pf);
}
}
return null;
}
}
@Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
public static final class c extends p implements ah0.a<String> {
public static ChangeQuickRedirect changeQuickRedirect;
public final String s;
public final String t;
public final String u;
public c(String str, String str2, String str3) {
super(0);
this.s = str;
this.t = str2;
this.u = str3;
}
public Object invoke() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 5292, new Class[0], Object.class);
return proxy.isSupported ? proxy.result : m398invoke();
}
public final String m398invoke() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 5291, new Class[0], String.class);
if (proxy.isSupported) {
return (String) proxy.result;
}
byte[] a = qu.a.a(Base64.decode(this.s, 2), this.t, this.u);
if (a == null) {
return "";
}
String decode = Uri.decode(new String(a, tj0.c.b));
int length = decode.length() - 1;
int i = 0;
boolean z = false;
while (i <= length) {
boolean z2 = n.k(decode.charAt(!z ? i : length), 32) <= 0;
if (z) {
if (!z2) {
break;
}
length--;
} else if (z2) {
i++;
} else {
z = true;
}
}
String obj = decode.subSequence(i, length + 1).toString();
return obj == null ? "" : obj;
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Lps/n1;", "a", "()Lps/n1;"}, k = 3, mv = {1, 8, 0})
public static final class n1 extends p implements ah0.a<ps.n1> {
public static ChangeQuickRedirect changeQuickRedirect;
public static final n1 s = new n1();
public n1() {
super(0);
}
public final ps.n1 a() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 5293, new Class[0], ps.n1.class);
return proxy.isSupported ? (ps.n1) proxy.result : r0.b(g1.a(f2.d())).fe();
}
public Object invoke() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 5294, new Class[0], Object.class);
return proxy.isSupported ? proxy.result : a();
}
}
public static final String Of(c0 c0Var, String str) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{c0Var, str}, null, changeQuickRedirect, true, 5287, new Class[]{c0.class, String.class}, String.class);
return proxy.isSupported ? (String) proxy.result : c0Var.Rf(str);
}
public static final String Pf(c0 c0Var, String str, String str2, String str3) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{c0Var, str, str2, str3}, null, changeQuickRedirect, true, 5285, new Class[]{c0.class, String.class, String.class, String.class}, String.class);
return proxy.isSupported ? (String) proxy.result : c0Var.Sf(str, str2, str3);
}
public static final ps.n1 Qf(c0 c0Var) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{c0Var}, null, changeQuickRedirect, true, 5286, new Class[]{c0.class}, ps.n1.class);
return proxy.isSupported ? (ps.n1) proxy.result : c0Var.Tf();
}
public void O3(String qrResult) {
if (PatchProxy.proxy(new Object[]{qrResult}, this, changeQuickRedirect, false, 5281, new Class[]{String.class}, Void.TYPE).isSupported) {
return;
}
l0.a.a(m0.b(g1.a(f2.d())), qrResult, false, (a7) null, (com.wifitutu.link.foundation.kernel.ui.q0) null, 14, (Object) null);
}
public final String Rf(String sec) {
List j;
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{sec}, this, changeQuickRedirect, false, 5283, new Class[]{String.class}, String.class);
if (proxy.isSupported) {
return (String) proxy.result;
}
List i = new tj0.i(Constants.PACKNAME_END).i(t.F(sec, "WIFI:", "", false, 4, (Object) null), 0);
if (!i.isEmpty()) {
ListIterator listIterator = i.listIterator(i.size());
while (listIterator.hasPrevious()) {
if (((String) listIterator.previous()).length() != 0) {
j = x.S0(i, listIterator.nextIndex() + 1);
break;
}
}
}
j = mg0.p.j();
String[] strArr = (String[]) j.toArray(new String[0]);
if (strArr.length == 0) {
return null;
}
String str = null;
String str2 = null;
for (String str3 : strArr) {
if (!TextUtils.isEmpty(str3)) {
if (t.L(str3, "T:", false, 2, (Object) null)) {
t.F(str3, "T:", "", false, 4, (Object) null);
} else if (t.L(str3, "S:", false, 2, (Object) null)) {
str = t.F(str3, "S:", "", false, 4, (Object) null);
} else if (t.L(str3, "P:", false, 2, (Object) null)) {
str2 = t.F(str3, "P:", "", false, 4, (Object) null);
}
}
}
if (str == null || str.length() == 0) {
return null;
}
return w.a(g1.a(f2.d())).na(str, str2);
}
public final String Sf(String code, String aesKey, String aesIv) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{code, aesKey, aesIv}, this, changeQuickRedirect, false, 5284, new Class[]{String.class, String.class, String.class}, String.class);
return proxy.isSupported ? (String) proxy.result : (code == null || code.length() == 0) ? "" : (aesKey == null || aesKey.length() == 0 || aesIv == null || aesIv.length() == 0) ? code : (String) d6.j("", new c(code, aesKey, aesIv));
}
public final ps.n1 Tf() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 5279, new Class[0], ps.n1.class);
return proxy.isSupported ? (ps.n1) proxy.result : (ps.n1) this.mWifiQrAesConf.getValue();
}
public final String[] Uf() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 5278, new Class[0], String[].class);
return proxy.isSupported ? (String[]) proxy.result : (String[]) this.PC_QR_HOSTS.getValue();
}
public o0 getId() {
return this.id;
}
public boolean y9(String qrResult) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{qrResult}, this, changeQuickRedirect, false, 5280, new Class[]{String.class}, Boolean.TYPE);
if (proxy.isSupported) {
return ((Boolean) proxy.result).booleanValue();
}
for (String str : Uf()) {
if (t.L(qrResult, str, false, 2, (Object) null)) {
return true;
}
}
return false;
}
public String yb(String qrResult) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{qrResult}, this, changeQuickRedirect, false, 5282, new Class[]{String.class}, String.class);
return proxy.isSupported ? (String) proxy.result : (String) d6.j((Object) null, new b(qrResult, this));
}
}