导航菜单

页面标题

页面副标题

Baubap v3.9.7 - k0.java 源代码

正在查看: Baubap v3.9.7 应用的 k0.java JAVA 源代码文件

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


package i;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.provider.Telephony;
import android.telephony.SmsMessage;
import android.telephony.TelephonyManager;
import android.util.Log;
import bw.a5;
import bw.c4;
import bw.v4;
import com.baubap.modules.account.recovery.presentation.nip.NipRecoveryViewModel;
import com.baubap.modules.account.recovery.presentation.nip.VerifyCodeFragment;
import com.baubap.modules.auth.two.factor.presentation.TwoFactorAuthOtpFragment;
import com.baubap.presentation.sign.verify.NewVerifyPhoneViewModel;
import com.baubap.presentation.sign.verify.VerifyPhoneFragment;
import com.google.android.gms.internal.measurement.zzph;
import com.google.firebase.messaging.FirebaseMessaging;
import in.aabhasjindal.otptextview.OtpTextView;
import java.util.concurrent.Executor;

public final class k0 extends BroadcastReceiver {

    public static final int f15625c = 0;

    public final int f15626a;

    public Object f15627b;

    public k0(Object obj, int i10) {
        this.f15626a = i10;
        this.f15627b = obj;
    }

    public final void a() {
        if (Log.isLoggable("FirebaseMessaging", 3) || (Build.VERSION.SDK_INT == 23 && Log.isLoggable("FirebaseMessaging", 3))) {
            Log.d("FirebaseMessaging", "Connectivity change received registered");
        }
        ((com.google.firebase.messaging.z) this.f15627b).a().registerReceiver(this, new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE"));
    }

    @Override
    public final void onReceive(Context context, Intent intent) {
        Executor mainExecutor;
        int i10 = 3;
        int i11 = 1;
        switch (this.f15626a) {
            case 0:
                j0 j0Var = (j0) ((l0) this.f15627b);
                int i12 = j0Var.f15596c;
                o0 o0Var = j0Var.f15597d;
                switch (i12) {
                    case 0:
                        o0Var.o(true, true);
                        return;
                    default:
                        o0Var.o(true, true);
                        return;
                }
            case 1:
                ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService("connectivity");
                if (connectivityManager != null) {
                    try {
                        NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
                        if (activeNetworkInfo != null && activeNetworkInfo.isConnected()) {
                            int type = activeNetworkInfo.getType();
                            if (type != 0) {
                                if (type == 1) {
                                    i11 = 2;
                                } else if (type != 4 && type != 5) {
                                    i11 = type != 6 ? type != 9 ? 8 : 7 : 5;
                                }
                            }
                            switch (activeNetworkInfo.getSubtype()) {
                                case 1:
                                case 2:
                                    break;
                                case 3:
                                case 4:
                                case 5:
                                case 6:
                                case t5.i.DOUBLE_FIELD_NUMBER:
                                case j3.a.$stable:
                                case e1.g.f11465b:
                                case e1.g.f11467d:
                                case 11:
                                case 12:
                                case 14:
                                case e1.g.f11469f:
                                case 17:
                                    i10 = 4;
                                    break;
                                case 13:
                                    i10 = 5;
                                    break;
                                case 16:
                                case 19:
                                default:
                                    i10 = 6;
                                    break;
                                case 18:
                                    i10 = 2;
                                    break;
                                case 20:
                                    if (p6.f0.f24487a < 29) {
                                        i10 = 0;
                                        break;
                                    } else {
                                        i10 = 9;
                                        break;
                                    }
                            }
                            i11 = i10;
                        }
                    } catch (SecurityException unused) {
                    }
                    if (p6.f0.f24487a >= 31 || i11 != 5) {
                        p6.u.a((p6.u) this.f15627b, i11);
                        return;
                    }
                    p6.u uVar = (p6.u) this.f15627b;
                    try {
                        TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone");
                        telephonyManager.getClass();
                        p6.t tVar = new p6.t(uVar);
                        mainExecutor = context.getMainExecutor();
                        telephonyManager.registerTelephonyCallback(mainExecutor, tVar);
                        telephonyManager.unregisterTelephonyCallback(tVar);
                        return;
                    } catch (RuntimeException unused2) {
                        p6.u.a(uVar, 5);
                        return;
                    }
                }
                i11 = 0;
                if (p6.f0.f24487a >= 31) {
                }
                p6.u.a((p6.u) this.f15627b, i11);
                return;
            case 2:
                a0.a.z(this.f15627b);
                throw null;
            case 3:
                if (isInitialStickyBroadcast()) {
                    return;
                }
                v6.j jVar = (v6.j) this.f15627b;
                jVar.a(v6.g.c(context, intent, jVar.f31792i, jVar.f31791h));
                return;
            case 4:
                xu.b.y(context, "context");
                xu.b.y(intent, "intent");
                ((ca.d) this.f15627b).f(intent);
                return;
            case 5:
                if (intent != null) {
                    if (!((VerifyCodeFragment) this.f15627b).isAdded() || !xu.b.n(intent.getAction(), "android.provider.Telephony.SMS_RECEIVED")) {
                        intent = null;
                    }
                    if (intent != null) {
                        VerifyCodeFragment verifyCodeFragment = (VerifyCodeFragment) this.f15627b;
                        SmsMessage[] messagesFromIntent = Telephony.Sms.Intents.getMessagesFromIntent(intent);
                        xu.b.x(messagesFromIntent, "getMessagesFromIntent(...)");
                        String messageBody = ((SmsMessage) a40.a.M0(messagesFromIntent)).getMessageBody();
                        h40.k kVar = new h40.k("[0-9]{6}");
                        xu.b.v(messageBody);
                        h40.j a10 = h40.k.a(kVar, messageBody);
                        if (a10 != null) {
                            String group = a10.a.group();
                            xu.b.x(group, "group(...)");
                            int i13 = VerifyCodeFragment.f9278l;
                            verifyCodeFragment.w0().v(group);
                            NipRecoveryViewModel w02 = verifyCodeFragment.w0();
                            w02.getClass();
                            w02.V.setValue(w02, NipRecoveryViewModel.W[2], Boolean.TRUE);
                            return;
                        }
                        return;
                    }
                    return;
                }
                return;
            case 6:
                if (intent != null) {
                    if (!((TwoFactorAuthOtpFragment) this.f15627b).isAdded() || !xu.b.n(intent.getAction(), "android.provider.Telephony.SMS_RECEIVED")) {
                        intent = null;
                    }
                    if (intent != null) {
                        TwoFactorAuthOtpFragment twoFactorAuthOtpFragment = (TwoFactorAuthOtpFragment) this.f15627b;
                        SmsMessage[] messagesFromIntent2 = Telephony.Sms.Intents.getMessagesFromIntent(intent);
                        xu.b.x(messagesFromIntent2, "getMessagesFromIntent(...)");
                        String messageBody2 = ((SmsMessage) a40.a.M0(messagesFromIntent2)).getMessageBody();
                        OtpTextView otpTextView = twoFactorAuthOtpFragment.v0().f20674e;
                        xu.b.v(messageBody2);
                        String substring = messageBody2.substring(messageBody2.length() - 6);
                        xu.b.x(substring, "substring(...)");
                        otpTextView.setOTP(substring);
                        return;
                    }
                    return;
                }
                return;
            case t5.i.DOUBLE_FIELD_NUMBER:
                Log.d("VerifyPhoneFragment", "SMS received in inner class");
                if (intent == null || !xu.b.n("android.provider.Telephony.SMS_RECEIVED", intent.getAction())) {
                    return;
                }
                SmsMessage[] messagesFromIntent3 = Telephony.Sms.Intents.getMessagesFromIntent(intent);
                xu.b.v(messagesFromIntent3);
                Log.d("VerifyPhoneFragment", "SMS received " + a40.a.M0(messagesFromIntent3));
                String messageBody3 = ((SmsMessage) a40.a.M0(messagesFromIntent3)).getMessageBody();
                vl.i iVar = (vl.i) this.f15627b;
                xu.b.v(messageBody3);
                String substring2 = messageBody3.substring(messageBody3.length() - 4);
                xu.b.x(substring2, "substring(...)");
                Log.d("VerifyPhoneFragment", "SMS code:".concat(substring2));
                if (iVar.isAdded()) {
                    iVar.l().f21492f.setOTP(substring2);
                    return;
                }
                return;
            case j3.a.$stable:
                if (intent != null) {
                    if (!((VerifyPhoneFragment) this.f15627b).isAdded() || !xu.b.n(intent.getAction(), "android.provider.Telephony.SMS_RECEIVED")) {
                        intent = null;
                    }
                    if (intent != null) {
                        VerifyPhoneFragment verifyPhoneFragment = (VerifyPhoneFragment) this.f15627b;
                        SmsMessage[] messagesFromIntent4 = Telephony.Sms.Intents.getMessagesFromIntent(intent);
                        xu.b.x(messagesFromIntent4, "getMessagesFromIntent(...)");
                        String messageBody4 = ((SmsMessage) a40.a.M0(messagesFromIntent4)).getMessageBody();
                        h40.k kVar2 = new h40.k("[0-9]{6}");
                        xu.b.v(messageBody4);
                        h40.j a11 = h40.k.a(kVar2, messageBody4);
                        if (a11 != null) {
                            String group2 = a11.a.group();
                            xu.b.x(group2, "group(...)");
                            NewVerifyPhoneViewModel p02 = verifyPhoneFragment.p0();
                            p02.getClass();
                            p02.N.setValue(p02, NewVerifyPhoneViewModel.Q[0], group2);
                            return;
                        }
                        return;
                    }
                    return;
                }
                return;
            case e1.g.f11465b:
                np.t tVar2 = (np.t) this.f15627b;
                tVar2.getClass();
                np.t.h.execute(new np.s(tVar2, 2));
                return;
            case e1.g.f11467d:
                if (intent == null) {
                    c4 c4Var = ((a5) this.f15627b).j;
                    a5.d(c4Var);
                    c4Var.k.b("App receiver called with null intent");
                    return;
                }
                String action = intent.getAction();
                if (action == null) {
                    c4 c4Var2 = ((a5) this.f15627b).j;
                    a5.d(c4Var2);
                    c4Var2.k.b("App receiver called with null action");
                    return;
                }
                if (!action.equals("com.google.android.gms.measurement.TRIGGERS_AVAILABLE")) {
                    c4 c4Var3 = ((a5) this.f15627b).j;
                    a5.d(c4Var3);
                    c4Var3.k.b("App receiver called with unknown action");
                    return;
                }
                a5 a5Var = (a5) this.f15627b;
                if (zzph.zza() && a5Var.h.N((String) null, bw.w.D0)) {
                    c4 c4Var4 = a5Var.j;
                    a5.d(c4Var4);
                    c4Var4.p.b("App receiver notified triggers are available");
                    v4 v4Var = a5Var.k;
                    a5.d(v4Var);
                    v4Var.L(new a1(a5Var, 22));
                    return;
                }
                return;
            default:
                com.google.firebase.messaging.z zVar = (com.google.firebase.messaging.z) this.f15627b;
                if (zVar != null && zVar.b()) {
                    if (Log.isLoggable("FirebaseMessaging", 3) || (Build.VERSION.SDK_INT == 23 && Log.isLoggable("FirebaseMessaging", 3))) {
                        Log.d("FirebaseMessaging", "Connectivity changed. Starting background sync.");
                    }
                    com.google.firebase.messaging.z zVar2 = (com.google.firebase.messaging.z) this.f15627b;
                    ((FirebaseMessaging) zVar2.e).enqueueTaskWithDelaySeconds(zVar2, 0L);
                    ((com.google.firebase.messaging.z) this.f15627b).a().unregisterReceiver(this);
                    this.f15627b = null;
                    return;
                }
                return;
        }
    }

    public k0(Object obj, int i10, int i11) {
        this.f15626a = i10;
        this.f15627b = obj;
    }

    public k0(v6.j jVar) {
        this(jVar, 3);
        this.f15626a = 3;
    }

    public k0(p6.u uVar) {
        this(uVar, 1);
        this.f15626a = 1;
    }
}