导航菜单

页面标题

页面副标题

CashVia v1.6.02 - SmsAutoFileReceiver.java 源代码

正在查看: CashVia v1.6.02 应用的 SmsAutoFileReceiver.java JAVA 源代码文件

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


package com.xy.release;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.google.android.gms.common.api.Status;
import com.sensorsdata.analytics.android.sdk.aop.push.PushAutoTrackHelper;
import com.sensorsdata.analytics.android.sdk.data.SAProviderHelper;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;

@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/xy/release/SmsAutoFileReceiver;", "Landroid/content/BroadcastReceiver;", "<init>", "()V", "release_release"}, k = 1, mv = {1, SAProviderHelper.URI_CODE.FLUSH_DATA, 0})
public final class SmsAutoFileReceiver extends BroadcastReceiver {
    @Override
    public final void onReceive(Context context, Intent intent) {
        PushAutoTrackHelper.onBroadcastReceiver(this, context, intent);
        Intrinsics.checkNotNullParameter(intent, "intent");
        if (Intrinsics.areEqual("com.google.android.gms.auth.api.phone.SMS_RETRIEVED", intent.getAction())) {
            Bundle extras = intent.getExtras();
            Object obj = extras != null ? extras.get("com.google.android.gms.auth.api.phone.EXTRA_STATUS") : null;
            Status status = obj instanceof Status ? (Status) obj : null;
            Integer valueOf = status != null ? Integer.valueOf(status.a) : null;
            if ((valueOf != null && valueOf.intValue() == 13) || valueOf == null || valueOf.intValue() != 0) {
                return;
            }
            Bundle extras2 = intent.getExtras();
            Matcher matcher = Pattern.compile("[0-9]{4}").matcher((String) (extras2 != null ? extras2.get("com.google.android.gms.auth.api.phone.EXTRA_SMS_MESSAGE") : null));
            if (matcher.find()) {
                String group = matcher.group();
                Intent intent2 = new Intent();
                intent2.setAction("com.auto.sms");
                intent2.putExtra("code", group);
                if (context != null) {
                    context.sendBroadcast(intent2);
                }
            }
        }
    }
}