正在查看: Kickcash v16.1 应用的 CTNotificationIntentService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Kickcash v16.1 应用的 CTNotificationIntentService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.clevertap.android.sdk.pushnotification;
import android.app.IntentService;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import com.clevertap.android.sdk.h;
import com.clevertap.android.sdk.v;
import com.microsoft.clarity.o7.a;
import com.microsoft.clarity.o7.d;
import com.microsoft.clarity.u7.i;
import com.microsoft.clarity.w6.o0;
@Deprecated(since = "4.3.0")
public class CTNotificationIntentService extends IntentService {
public static final String MAIN_ACTION = "com.clevertap.PUSH_EVENT";
public static final String TYPE_BUTTON_CLICK = "com.clevertap.ACTION_BUTTON_CLICK";
private a mActionButtonClickHandler;
public CTNotificationIntentService() {
super("CTNotificationIntentService");
}
private void handleActionButtonClick(Bundle bundle) {
Intent launchIntentForPackage;
NotificationManager notificationManager;
try {
boolean z = bundle.getBoolean("autoCancel", false);
int i = bundle.getInt("notificationId", -1);
String string = bundle.getString("dl");
Context applicationContext = getApplicationContext();
if (!this.mActionButtonClickHandler.b(applicationContext, bundle, i) && Build.VERSION.SDK_INT < 31) {
if (string != null) {
launchIntentForPackage = new Intent("android.intent.action.VIEW", Uri.parse(string));
o0.A(applicationContext, launchIntentForPackage);
} else {
launchIntentForPackage = applicationContext.getPackageManager().getLaunchIntentForPackage(applicationContext.getPackageName());
}
if (launchIntentForPackage == null) {
v.r("CTNotificationService: create launch intent.");
return;
}
launchIntentForPackage.setFlags(872415232);
launchIntentForPackage.putExtras(bundle);
launchIntentForPackage.removeExtra("dl");
String string2 = bundle.getString("pt_dismiss_on_click", "");
if (z && i > -1 && string2.isEmpty() && (notificationManager = (NotificationManager) getApplicationContext().getSystemService("notification")) != null) {
notificationManager.cancel(i);
}
sendBroadcast(new Intent("android.intent.action.CLOSE_SYSTEM_DIALOGS"));
startActivity(launchIntentForPackage);
}
} catch (Throwable th) {
v.r("CTNotificationService: unable to process action button click: " + th.getLocalizedMessage());
}
}
@Override
protected void onHandleIntent(Intent intent) {
Bundle extras = intent.getExtras();
if (extras == null) {
return;
}
d q0 = h.q0();
if (!i.e(extras) || q0 == null) {
this.mActionButtonClickHandler = (a) i.d();
} else {
this.mActionButtonClickHandler = (a) q0;
}
if (TYPE_BUTTON_CLICK.equals(extras.getString("ct_type"))) {
v.r("CTNotificationIntentService handling com.clevertap.ACTION_BUTTON_CLICK");
handleActionButtonClick(extras);
} else {
v.r("CTNotificationIntentService: unhandled intent " + intent.getAction());
}
}
}