导航菜单

页面标题

页面副标题

Tuna Cash v1.0.0 - FMCService.java 源代码

正在查看: Tuna Cash v1.0.0 应用的 FMCService.java JAVA 源代码文件

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


package com.efectivo.presto.credi.tuna.business;

import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import androidx.compose.runtime.internal.StabilityInferred;
import coil.coroutines.DiskLruCache;
import com.appsflyer.AppsFlyerLib;
import com.efectivo.presto.credi.tuna.presentation.ui.screens.main.MainActivity;
import com.google.firebase.messaging.FirebaseMessagingService;
import java.util.Map;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;

@StabilityInferred(parameters = 1)
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0007\u0018\u00002\u00020\u0001:\u0001\u0004B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0005"}, d2 = {"Lcom/efectivo/presto/credi/tuna/business/FMCService;", "Lcom/google/firebase/messaging/FirebaseMessagingService;", "<init>", "()V", "iillLi/LILlLi", "app_googleRelease"}, k = 1, mv = {2, 0, 0})
public final class FMCService extends FirebaseMessagingService {
    public static void LLiIl(NotificationManager notificationManager, String str, int i) {
        if (Build.VERSION.SDK_INT >= 26) {
            String str2 = Intrinsics.lIliL(str, "2") ? "Mensajes de operaciones" : Intrinsics.lIliL(str, "3") ? "Notificación de pedido" : "Miscellaneous";
            androidx.compose.ui.text.font.iliLLil.liIiI();
            NotificationChannel iliLLil = androidx.compose.ui.text.font.iliLLil.iliLLil(str, str2, i);
            if (notificationManager != null) {
                notificationManager.createNotificationChannel(iliLLil);
            }
        }
    }

    @Override
    public final void handleIntent(Intent intent) {
        if (Build.VERSION.SDK_INT >= 26) {
            Object systemService = getSystemService("notification");
            NotificationManager notificationManager = systemService instanceof NotificationManager ? (NotificationManager) systemService : null;
            LLiIl(notificationManager, "3", 4);
            LLiIl(notificationManager, "2", 4);
            LLiIl(notificationManager, DiskLruCache.VERSION, 3);
        }
        super.handleIntent(intent);
    }

    @Override
    public final void onMessageReceived(com.google.firebase.messaging.iiIiLl iiiill) {
        long parseLong;
        com.google.firebase.messaging.IILlL LLiIl;
        Intrinsics.checkNotNullParameter(iiiill, "remoteMessage");
        super.onMessageReceived(iiiill);
        String string = iiiill.lLlii.getString("from");
        Bundle bundle = iiiill.lLlii;
        String string2 = bundle.getString("google.message_id");
        if (string2 == null) {
            string2 = bundle.getString("message_id");
        }
        Object obj = bundle.get("google.sent_time");
        if (obj instanceof Long) {
            parseLong = ((Long) obj).longValue();
        } else {
            if (obj instanceof String) {
                try {
                    parseLong = Long.parseLong((String) obj);
                } catch (NumberFormatException unused) {
                    Log.w("FirebaseMessaging", "Invalid sent time: " + obj);
                }
            }
            parseLong = 0;
        }
        Map lIliL = iiiill.lIliL();
        String string3 = bundle.getString("google.to");
        com.google.firebase.messaging.IILlL LLiIl2 = iiiill.LLiIl();
        com.google.firebase.messaging.IILlL LLiIl3 = iiiill.LLiIl();
        String str = LLiIl3 != null ? LLiIl3.lLILIl : null;
        com.google.firebase.messaging.IILlL LLiIl4 = iiiill.LLiIl();
        LliILl.LLiIl.lLILIl("FMCService", "onMessageReceived: " + iiiill + "  From:" + string + " id of the message:" + string2 + " When the message was sent:" + parseLong + " the content of the message:" + lIliL + " the message was sent to:" + string3 + " notification of the message" + LLiIl2 + "Title : " + str + "Body : " + (LLiIl4 != null ? LLiIl4.lIliL : null));
        if (iiiill.lIliL().containsKey("af-uinstall-tracking") || (LLiIl = iiiill.LLiIl()) == null) {
            return;
        }
        String str2 = (String) iiiill.lIliL().get("actionType");
        String str3 = (String) iiiill.lIliL().get("action");
        String str4 = (String) iiiill.lIliL().get("eventCode");
        Intent intent = new Intent(this, (Class<?>) MainActivity.class);
        intent.addFlags(536870912);
        if (str2 != null && str2.length() != 0 && str3 != null && str3.length() != 0) {
            intent.putExtra("actionType", str2);
            intent.putExtra("action", str3);
            intent.putExtra("eventCode", str4);
        }
        PendingIntent activity = Build.VERSION.SDK_INT > 30 ? PendingIntent.getActivity(this, 0, intent, 201326592) : PendingIntent.getActivity(this, 0, intent, 134217728);
        String str5 = LLiIl.LLiIl;
        if (!Intrinsics.lIliL(str5, "2") && !Intrinsics.lIliL(str5, "3")) {
            str5 = DiskLruCache.VERSION;
        }
        LliILl.LLiIl.llLii("FMCService", "sendNotification channelId:" + str5);
        Uri defaultUri = RingtoneManager.getDefaultUri(2);
        LLLliL.liIiI liiii = new LLLliL.liIiI(this, str5);
        liiii.LLILli.icon = com.efectivo.presto.credi.tuna.lLILl.ic_launcher;
        liiii.llLii = LLLliL.liIiI.lIliL(LLiIl.lLILIl);
        liiii.ilLll = LLLliL.liIiI.lIliL(LLiIl.lIliL);
        liiii.iiILI = getResources().getColor(com.efectivo.presto.credi.tuna.IiLIL.theme_color);
        liiii.LLiIl(true);
        Notification notification = liiii.LLILli;
        notification.sound = defaultUri;
        notification.audioStreamType = -1;
        notification.audioAttributes = LLLliL.IiILLi.lLILIl(LLLliL.IiILLi.llLii(LLLliL.IiILLi.LLiIl(LLLliL.IiILLi.lIliL(), 4), 5));
        liiii.IiLlI = activity;
        Intrinsics.checkNotNullExpressionValue(liiii, "setContentIntent(...)");
        Object systemService = getSystemService("notification");
        Intrinsics.llLii(systemService, "null cannot be cast to non-null type android.app.NotificationManager");
        ((NotificationManager) systemService).notify(0, liiii.lLILIl());
    }

    @Override
    public final void onNewToken(String str) {
        Intrinsics.checkNotNullParameter(str, "token");
        super.onNewToken(str);
        LliILl.LLiIl.lLILIl("FMCService", "onNewToken token is :" + str);
        AppsFlyerLib.getInstance().updateServerUninstallToken(getApplicationContext(), str);
    }
}