正在查看: VIP-LODDER v3.3.1 应用的 FirebaseMessaging.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: VIP-LODDER v3.3.1 应用的 FirebaseMessaging.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fultaj.service;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import androidx.core.app.NotificationCompat;
import com.fultaj.activity.GroupActivity;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
import io.michaelrocks.paranoid.Deobfuscator;
public class FirebaseMessaging extends FirebaseMessagingService {
public void onMessageReceived(RemoteMessage remoteMessage) {
super.onMessageReceived(remoteMessage);
String user = (String) remoteMessage.getData().get(Deobfuscator.app.Debug.getString(-18120346678906L));
FirebaseUser firebaseUser = FirebaseAuth.getInstance().getCurrentUser();
if (firebaseUser == null || firebaseUser.getUid().equals(user)) {
if (Build.VERSION.SDK_INT >= 26) {
sendOreoNotification(remoteMessage);
return;
} else {
sendNotification(remoteMessage);
return;
}
}
if (Build.VERSION.SDK_INT >= 26) {
sendOreoNotification(remoteMessage);
} else {
sendNotification(remoteMessage);
}
}
private void sendOreoNotification(RemoteMessage remoteMessage) {
String user = (String) remoteMessage.getData().get(Deobfuscator.app.Debug.getString(-18141821515386L));
String icon = (String) remoteMessage.getData().get(Deobfuscator.app.Debug.getString(-18163296351866L));
String title = (String) remoteMessage.getData().get(Deobfuscator.app.Debug.getString(-18184771188346L));
String body = (String) remoteMessage.getData().get(Deobfuscator.app.Debug.getString(-18210540992122L));
remoteMessage.getNotification();
int j = Integer.parseInt(user.replaceAll(Deobfuscator.app.Debug.getString(-18232015828602L), Deobfuscator.app.Debug.getString(-18253490665082L)));
Intent intent = new Intent((Context) this, (Class<?>) GroupActivity.class);
Bundle bundle = new Bundle();
bundle.putString(Deobfuscator.app.Debug.getString(-18257785632378L), user);
intent.putExtras(bundle);
intent.addFlags(67108864);
PendingIntent pendingIntent = PendingIntent.getActivity(this, j, intent, 1073741824);
Uri defaultSound = RingtoneManager.getDefaultUri(2);
OreoNotification oreoNotification = new OreoNotification(this);
Notification.Builder builder = oreoNotification.getOreoNotification(title, body, pendingIntent, defaultSound, icon);
int i = 0;
if (j > 0) {
i = j;
}
oreoNotification.getManager().notify(i, builder.build());
}
private void sendNotification(RemoteMessage remoteMessage) {
String user = (String) remoteMessage.getData().get(Deobfuscator.app.Debug.getString(-18287850403450L));
String icon = (String) remoteMessage.getData().get(Deobfuscator.app.Debug.getString(-18309325239930L));
String title = (String) remoteMessage.getData().get(Deobfuscator.app.Debug.getString(-18330800076410L));
String body = (String) remoteMessage.getData().get(Deobfuscator.app.Debug.getString(-18356569880186L));
remoteMessage.getNotification();
int j = Integer.parseInt(user.replaceAll(Deobfuscator.app.Debug.getString(-18378044716666L), Deobfuscator.app.Debug.getString(-18399519553146L)));
Intent intent = new Intent((Context) this, (Class<?>) GroupActivity.class);
Bundle bundle = new Bundle();
bundle.putString(Deobfuscator.app.Debug.getString(-18403814520442L), user);
intent.putExtras(bundle);
intent.addFlags(67108864);
PendingIntent pendingIntent = PendingIntent.getActivity(this, j, intent, 1073741824);
Uri defaultSound = RingtoneManager.getDefaultUri(2);
NotificationCompat.Builder builder = new NotificationCompat.Builder(this).setSmallIcon(Integer.parseInt(icon)).setContentTitle(title).setContentText(body).setAutoCancel(true).setSound(defaultSound).setContentIntent(pendingIntent);
NotificationManager noti = (NotificationManager) getSystemService(Deobfuscator.app.Debug.getString(-18433879291514L));
int i = 0;
if (j > 0) {
i = j;
}
noti.notify(i, builder.build());
}
}