导航菜单

页面标题

页面副标题

Minits v4.9.3.32 - FrameworkSmsReceiverJobIntentService.java 源代码

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

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


package com.xone.android.sms;

import android.content.Context;
import android.content.Intent;
import android.telephony.SmsMessage;
import android.text.TextUtils;
import android.util.SparseArray;
import ba.AbstractC0514c;
import ba.i;
import com.xone.android.utils.Utils;
import ua.F;
import ua.InterfaceC1038m0;
import z0.h;

public final class FrameworkSmsReceiverJobIntentService extends h {
    public static void j(Context context, Intent intent) {
        h.d(context.getApplicationContext(), FrameworkSmsReceiverJobIntentService.class, 2000, intent);
    }

    public void g(Intent intent) {
        i.a("FrameworkSmsReceiverJobIntentService(): onHandleWork()");
        try {
            if ("android.provider.Telephony.SMS_RECEIVED".equals(intent.getAction())) {
                m(intent);
            }
        } catch (Exception e) {
            l(e);
        }
    }

    public final InterfaceC1038m0 k() {
        return (InterfaceC1038m0) getApplicationContext();
    }

    public final void l(Throwable th) {
        F g = k().g();
        if (g instanceof F) {
            g.b(th);
        } else {
            th.printStackTrace();
        }
    }

    public final void m(Intent intent) {
        i.a("SmsReceiverService(): Intercept SMS");
        if (intent == null) {
            i.a("SmsReceiverService(): Empty intent received");
            return;
        }
        if (intent.getExtras() == null) {
            return;
        }
        SmsMessage[] X1 = Utils.X1(intent);
        if (X1.length == 0) {
            return;
        }
        SmsMessage smsMessage = X1[0];
        if (smsMessage.getMessageClass() == SmsMessage.MessageClass.CLASS_0 || smsMessage.isReplace()) {
            return;
        }
        String originatingAddress = smsMessage.getOriginatingAddress();
        SparseArray sparseArray = new SparseArray();
        StringBuilder sb2 = new StringBuilder();
        for (int i = 0; i < X1.length; i++) {
            sparseArray.put(i, X1[i].getMessageBody());
            sb2.append(X1[i].getMessageBody());
        }
        n(originatingAddress, sb2.toString());
    }

    public final void n(String str, String str2) {
        if (!TextUtils.isEmpty(str2) && AbstractC0514c.w(k(), str, str2) > 0) {
            AbstractC0514c.b(k(), str, str2);
        }
    }
}