导航菜单

页面标题

页面副标题

万能钥匙 v1.1.23 - c0.java 源代码

正在查看: 万能钥匙 v1.1.23 应用的 c0.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package xr;

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 com.zm.adxsdk.protocol.api.interfaces.WfConstant;
import java.util.List;
import java.util.ListIterator;
import kotlin.Metadata;
import os.f2;
import ps.l0;
import qs.d6;

@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", WfConstant.EVENT_KEY_FAIL_CODE, "aesKey", "aesIv", "Sf", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "Lqs/o0;", bg.d.f9423d, "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 uu.q0 {
    public static ChangeQuickRedirect changeQuickRedirect;

    public final qs.o0 id = qu.i.WIFI_QR.getId();

    public final lg0.h PC_QR_HOSTS = lg0.i.a(a.f79781s);

    public final lg0.h mWifiQrAesConf = lg0.i.a(d.f79787s);

    @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 kotlin.jvm.internal.p implements ah0.a<String[]> {
        public static ChangeQuickRedirect changeQuickRedirect;

        public static final a f79781s = new a();

        public a() {
            super(0);
        }

        @Override
        public String[] invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 5288, new Class[0], Object.class);
            return proxy.isSupported ? proxy.result : invoke();
        }

        @Override
        public final String[] invoke() {
            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 kotlin.jvm.internal.p implements ah0.a<String> {
        public static ChangeQuickRedirect changeQuickRedirect;

        public final String f79782s;

        public final c0 f79783t;

        public b(String str, c0 c0Var) {
            super(0);
            this.f79782s = str;
            this.f79783t = c0Var;
        }

        @Override
        public String invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 5290, new Class[0], Object.class);
            return proxy.isSupported ? proxy.result : invoke();
        }

        @Override
        public final String invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 5289, new Class[0], String.class);
            if (proxy.isSupported) {
                return (String) proxy.result;
            }
            if (tj0.t.L(this.f79782s, "WiFiMasterKey://", false, 2, null) && tj0.u.Q(this.f79782s, "wfm:", false, 2, null)) {
                int d02 = tj0.u.d0(this.f79782s, "wfm:", 0, false, 6, null);
                c0 c0Var = this.f79783t;
                String substring = this.f79782s.substring(d02 + 4);
                kotlin.jvm.internal.n.h(substring, "this as java.lang.String).substring(startIndex)");
                String Pf = c0.Pf(c0Var, substring, c0.Qf(this.f79783t).getAesKey(), c0.Qf(this.f79783t).getAesIv());
                if (Pf.length() <= 0) {
                    Pf = null;
                }
                if (Pf != null) {
                    return c0.Of(this.f79783t, 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 kotlin.jvm.internal.p implements ah0.a<String> {
        public static ChangeQuickRedirect changeQuickRedirect;

        public final String f79784s;

        public final String f79785t;

        public final String f79786u;

        public c(String str, String str2, String str3) {
            super(0);
            this.f79784s = str;
            this.f79785t = str2;
            this.f79786u = str3;
        }

        @Override
        public String invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 5292, new Class[0], Object.class);
            return proxy.isSupported ? proxy.result : invoke();
        }

        @Override
        public final String invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 5291, new Class[0], String.class);
            if (proxy.isSupported) {
                return (String) proxy.result;
            }
            byte[] a11 = qu.a.a(Base64.decode(this.f79784s, 2), this.f79785t, this.f79786u);
            if (a11 == null) {
                return "";
            }
            String decode = Uri.decode(new String(a11, tj0.c.UTF_8));
            int length = decode.length() - 1;
            int i11 = 0;
            boolean z11 = false;
            while (i11 <= length) {
                boolean z12 = kotlin.jvm.internal.n.k(decode.charAt(!z11 ? i11 : length), 32) <= 0;
                if (z11) {
                    if (!z12) {
                        break;
                    }
                    length--;
                } else if (z12) {
                    i11++;
                } else {
                    z11 = true;
                }
            }
            String obj = decode.subSequence(i11, 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 d extends kotlin.jvm.internal.p implements ah0.a<ps.n1> {
        public static ChangeQuickRedirect changeQuickRedirect;

        public static final d f79787s = new d();

        public d() {
            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 : ps.r0.b(os.g1.a(f2.d())).fe();
        }

        @Override
        public ps.n1 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();
    }

    @Override
    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(ps.m0.b(os.g1.a(f2.d())), qrResult, false, null, null, 14, null);
    }

    public final String Rf(String sec) {
        List j11;
        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<String> i11 = new tj0.i(Constants.PACKNAME_END).i(tj0.t.F(sec, "WIFI:", "", false, 4, null), 0);
        if (!i11.isEmpty()) {
            ListIterator<String> listIterator = i11.listIterator(i11.size());
            while (listIterator.hasPrevious()) {
                if (listIterator.previous().length() != 0) {
                    j11 = mg0.x.S0(i11, listIterator.nextIndex() + 1);
                    break;
                }
            }
        }
        j11 = mg0.p.j();
        String[] strArr = (String[]) j11.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 (tj0.t.L(str3, "T:", false, 2, null)) {
                    tj0.t.F(str3, "T:", "", false, 4, null);
                } else if (tj0.t.L(str3, "S:", false, 2, null)) {
                    str = tj0.t.F(str3, "S:", "", false, 4, null);
                } else if (tj0.t.L(str3, "P:", false, 2, null)) {
                    str2 = tj0.t.F(str3, "P:", "", false, 4, null);
                }
            }
        }
        if (str == null || str.length() == 0) {
            return null;
        }
        return uu.w.a(os.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();
    }

    @Override
    public qs.o0 getId() {
        return this.id;
    }

    @Override
    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 (tj0.t.L(qrResult, str, false, 2, null)) {
                return true;
            }
        }
        return false;
    }

    @Override
    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(null, new b(qrResult, this));
    }
}