正在查看: Kickcash v16.1 应用的 CTFirebaseMessagingReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Kickcash v16.1 应用的 CTFirebaseMessagingReceiver.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.clevertap.android.sdk.pushnotification.fcm;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import com.clevertap.android.sdk.h;
import com.clevertap.android.sdk.pushnotification.fcm.CTFirebaseMessagingReceiver;
import com.clevertap.android.sdk.v;
import com.google.firebase.messaging.RemoteMessage;
import com.microsoft.clarity.o7.e;
import com.microsoft.clarity.u7.j;
import com.microsoft.clarity.w6.m;
import com.microsoft.clarity.w6.o0;
import java.util.concurrent.TimeUnit;
public class CTFirebaseMessagingReceiver extends BroadcastReceiver implements e {
private CountDownTimer a;
private String b = "";
private boolean c;
private BroadcastReceiver.PendingResult d;
private long e;
public void d(String str) {
try {
v.s("CTRM", "got a signal to kill receiver and timer because " + str);
if (!this.b.trim().isEmpty()) {
h.r1(this.b);
}
long nanoTime = System.nanoTime();
if (this.d == null || this.c) {
v.s("CTRM", "have already informed OS to kill receiver, can not inform again else OS will get angry :-O");
return;
}
v.s("CTRM", "informing OS to kill receiver...");
this.d.finish();
this.c = true;
CountDownTimer countDownTimer = this.a;
if (countDownTimer != null) {
countDownTimer.cancel();
}
v.s("CTRM", "informed OS to kill receiver...");
v.s("CTRM", "receiver was alive for " + TimeUnit.NANOSECONDS.toSeconds(nanoTime - this.e) + " seconds");
} catch (Exception e) {
e.printStackTrace();
}
}
public void e(Context context, Bundle bundle) {
try {
try {
h k0 = h.k0(context, j.b(bundle));
if (k0 != null) {
m.e(k0, "CTRM#flushQueueSync", "PI_R", context);
}
} catch (Exception e) {
e.printStackTrace();
v.t("CTRM", "Failed executing CTRM flushQueueSync thread.", e);
}
} finally {
d("flush from receiver is done!");
}
}
@Override
public void a(boolean z) {
v.s("CTRM", "push impression sent successfully by core, i should inform OS to kill receiver. my callback key is " + this.b);
d("push impression sent successfully by core");
}
@Override
public void onReceive(final Context context, Intent intent) {
RemoteMessage remoteMessage;
final Bundle a2;
this.e = System.nanoTime();
v.e("CTRM", "received a message from Firebase");
if (context == null || intent == null || (a2 = new b().a((remoteMessage = new RemoteMessage(intent.getExtras())))) == null) {
return;
}
if (remoteMessage.V() != 2) {
v.e("CTRM", "returning from CTRM because message priority is not normal");
return;
}
long parseLong = Long.parseLong(a2.getString("ctrmt", "4500"));
this.d = goAsync();
if (!h.r0(a2).a) {
v.s("CTRM", "Notification payload is not from CleverTap.");
d("push is not from CleverTap.");
return;
}
if (!o0.v(remoteMessage, context)) {
v.s("CTRM", "Notification payload does not have a fallback key.");
d("isRenderFallback is false");
return;
}
String a3 = j.a(j.b(a2), j.d(a2));
this.b = a3;
h.k(a3, this);
a aVar = new a(parseLong, 1000L);
this.a = aVar;
aVar.start();
new Thread(new Runnable() {
@Override
public final void run() {
CTFirebaseMessagingReceiver.this.e(context, a2);
}
}).start();
}
class a extends CountDownTimer {
a(long j, long j2) {
super(j, j2);
}
@Override
public void onFinish() {
CTFirebaseMessagingReceiver.this.d("receiver life time is expired");
}
@Override
public void onTick(long j) {
}
}
}