导航菜单

页面标题

页面副标题

Minits v4.9.3.32 - FrameworkSmsCommandReceiver.java 源代码

正在查看: Minits v4.9.3.32 应用的 FrameworkSmsCommandReceiver.java JAVA 源代码文件

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


package com.xone.android.sms;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.SmsMessage;
import android.text.TextUtils;
import ba.AbstractC0514c;
import ba.i;
import com.xone.android.utils.Utils;
import ua.InterfaceC1038m0;

public final class FrameworkSmsCommandReceiver extends BroadcastReceiver {
    public final int a(InterfaceC1038m0 interfaceC1038m0, String str, String str2) {
        if (TextUtils.isEmpty(str2)) {
            return 0;
        }
        return Math.max(AbstractC0514c.w(interfaceC1038m0, str, str2), 0);
    }

    public final int b(InterfaceC1038m0 interfaceC1038m0, Intent intent) {
        if (intent.getExtras() == null) {
            return 0;
        }
        SmsMessage[] X1 = Utils.X1(intent);
        if (X1.length == 0) {
            return 0;
        }
        String originatingAddress = X1[0].getOriginatingAddress();
        StringBuilder sb2 = new StringBuilder();
        for (SmsMessage smsMessage : X1) {
            sb2.append(smsMessage.getMessageBody());
        }
        return a(interfaceC1038m0, originatingAddress, sb2.toString());
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        try {
            Context applicationContext = context.getApplicationContext();
            i.a("FrameworkSmsCommandReceiver.onReceive()");
            intent.setClass(applicationContext, FrameworkSmsReceiverJobIntentService.class);
            intent.putExtra("result", getResultCode());
            FrameworkSmsReceiverJobIntentService.j(applicationContext, intent);
            int b = b((InterfaceC1038m0) applicationContext, intent);
            if (b <= 0 || b != 1) {
                return;
            }
            i.a("Error, android version >= KitKat. Cannot abort command SMS broadcast.");
            abortBroadcast();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}