正在查看: Aplazo v2.4.68 应用的 CTFirebaseMessagingReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Aplazo v2.4.68 应用的 CTFirebaseMessagingReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.clevertap.android.sdk.pushnotification.fcm;
import A2.AbstractC0007g;
import I5.A;
import I5.T;
import I5.a0;
import Q.f;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import c6.InterfaceC1397b;
import com.google.firebase.messaging.RemoteMessage;
import f9.RunnableC1737D;
import h2.C1893g;
import j6.CountDownTimerC2043a;
import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern;
public class CTFirebaseMessagingReceiver extends BroadcastReceiver implements InterfaceC1397b {
public static final int f21387h = 0;
public CountDownTimerC2043a f21388c;
public String f21389d = "";
public boolean f21390e;
public BroadcastReceiver.PendingResult f21391f;
public long f21392g;
public final void a(String str) {
try {
T.p("CTRM", "got a signal to kill receiver and timer because ".concat(str));
if (!this.f21389d.trim().isEmpty()) {
}
long nanoTime = System.nanoTime();
if (this.f21391f == null || this.f21390e) {
T.p("CTRM", "have already informed OS to kill receiver, can not inform again else OS will get angry :-O");
return;
}
T.p("CTRM", "informing OS to kill receiver...");
this.f21391f.finish();
this.f21390e = true;
CountDownTimerC2043a countDownTimerC2043a = this.f21388c;
if (countDownTimerC2043a != null) {
countDownTimerC2043a.cancel();
}
T.p("CTRM", "informed OS to kill receiver...");
T.p("CTRM", "receiver was alive for " + TimeUnit.NANOSECONDS.toSeconds(nanoTime - this.f21392g) + " seconds");
} catch (Exception e10) {
e10.printStackTrace();
}
}
@Override
public final void onReceive(Context context, Intent intent) {
RemoteMessage remoteMessage;
Bundle j10;
this.f21392g = System.nanoTime();
T.e("CTRM", "received a message from Firebase");
if (context == null || intent == null || (j10 = C1893g.j((remoteMessage = new RemoteMessage(intent.getExtras())))) == null) {
return;
}
if (remoteMessage.p() != 2) {
T.e("CTRM", "returning from CTRM because message priority is not normal");
return;
}
long parseLong = Long.parseLong(j10.getString("ctrmt", "4500"));
this.f21391f = goAsync();
if (!A.q(j10).f16b) {
T.p("CTRM", "Notification payload is not from CleverTap.");
a("push is not from CleverTap.");
return;
}
Pattern pattern = a0.f6504a;
boolean parseBoolean = Boolean.parseBoolean((String) ((f) remoteMessage.o()).get("wzrk_tsr_fb"));
boolean parseBoolean2 = Boolean.parseBoolean((String) ((f) remoteMessage.o()).get("wzrk_fallback"));
if (parseBoolean || !parseBoolean2) {
T.p("CTRM", "Notification payload does not have a fallback key.");
a("isRenderFallback is false");
return;
}
String j11 = AbstractC0007g.j(j10.getString("wzrk_acct_id", ""), "_", j10.getString("wzrk_pid", ""));
this.f21389d = j11;
A.f6339h.put(j11, this);
CountDownTimerC2043a countDownTimerC2043a = new CountDownTimerC2043a(this, parseLong);
this.f21388c = countDownTimerC2043a;
countDownTimerC2043a.start();
new Thread(new RunnableC1737D(this, context, j10, 3)).start();
}
}