正在查看: PrestaMax v1.0.9 应用的 MaxMessagingService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: PrestaMax v1.0.9 应用的 MaxMessagingService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.prestamx.max.service;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.os.Build;
import com.google.firebase.messaging.FirebaseMessagingService;
import com.google.firebase.messaging.RemoteMessage;
import com.prestamx.max.MainActivity;
import com.prestamx.max.R$mipmap;
import com.prestamx.max.R$string;
import com.prestamx.max.activity.HomeActivity;
import com.prestamx.max.activity.LoginActivity;
import com.prestamx.max.java_calss.ActivityUtil;
import java.security.SecureRandom;
import java.util.Map;
import jbpl.etol;
import jbpl.zppskyagv;
import momzvk.yyqsz;
public class MaxMessagingService extends FirebaseMessagingService {
public static class mwowwskti {
public static final int[] f13837mwowwskti;
static {
int[] iArr = new int[MaxMessagingEnum.values().length];
f13837mwowwskti = iArr;
try {
iArr[MaxMessagingEnum.LOGIN.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
f13837mwowwskti[MaxMessagingEnum.HOME.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
f13837mwowwskti[MaxMessagingEnum.MAIN.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
}
}
public static String jzzsan(Intent intent) {
if (intent != null) {
return intent.getStringExtra("hjhmal");
}
return null;
}
public static Intent nqymzx(Intent intent, MaxMessagingEnum maxMessagingEnum) {
intent.putExtra("ghasto", maxMessagingEnum.type);
return intent;
}
public static MaxMessagingEnum sjdatecqy(Intent intent) {
if (intent != null) {
return MaxMessagingEnum.zppskyagv(intent.getStringExtra("ghasto"));
}
return null;
}
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
yyqsz.slyvsmo slyvsmoVar;
super.onMessageReceived(remoteMessage);
Map pzetpkg2 = remoteMessage.pzetpkg();
if (pzetpkg2.isEmpty()) {
return;
}
try {
String str = (String) pzetpkg2.get(com.prestamx.max.java_calss.yyqsz.zppskyagv("1X/p9gu1OYupGEwocpm9Vg=="));
String str2 = (String) pzetpkg2.get(com.prestamx.max.java_calss.yyqsz.zppskyagv("xIOnr6rZHOc+9eqHHoTyEw=="));
String str3 = (String) pzetpkg2.get(com.prestamx.max.java_calss.yyqsz.zppskyagv("nrhsNoskYmHGcOIEEyAWdA=="));
MaxMessagingEnum zppskyagv2 = MaxMessagingEnum.zppskyagv((String) pzetpkg2.get(com.prestamx.max.java_calss.yyqsz.zppskyagv("YWxFMq/E2tE75la9/4ssoQ==")));
Intent intent = new Intent();
ActivityUtil.dytr(intent);
if (zppskyagv2 != null) {
int i = mwowwskti.f13837mwowwskti[zppskyagv2.ordinal()];
if (i == 1) {
intent.setClass(this, LoginActivity.class);
} else if (i == 2) {
intent.setClass(this, HomeActivity.class);
} else if (i == 3) {
intent.setClass(this, MainActivity.class);
}
intent.putExtra("hjhmal", str3);
intent.putExtra("ghasto", zppskyagv2.type);
} else {
intent.setClass(this, HomeActivity.class);
}
intent.addFlags(268435456);
intent.addFlags(8388608);
PendingIntent activity = PendingIntent.getActivity(this, new SecureRandom().nextInt(1000), intent, 67108864);
NotificationManager notificationManager = (NotificationManager) getSystemService("notification");
String replace = getString(R$string.app_name).replace(" ", "");
if (Build.VERSION.SDK_INT >= 26) {
etol.mwowwskti();
NotificationChannel mwowwskti2 = zppskyagv.mwowwskti(replace, replace, 4);
mwowwskti2.enableLights(true);
mwowwskti2.setDescription(replace);
mwowwskti2.setLightColor(-1);
notificationManager.createNotificationChannel(mwowwskti2);
slyvsmoVar = new yyqsz.slyvsmo(this, replace);
} else {
slyvsmoVar = new yyqsz.slyvsmo(this);
}
slyvsmoVar.wavzltwms(str).ksocihbb(str2).xhtwr(str2).tfcj(System.currentTimeMillis()).zppskyagv(true).pzetpkg(2).vpqvb(-1).vikxvh(activity).imtveu(R$mipmap.ic_launcher);
notificationManager.notify(123, slyvsmoVar.emazevgh());
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public void onNewToken(String str) {
super.onNewToken(str);
}
}