正在查看: Chaupal v3.2 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Chaupal v3.2 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package o3;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import com.clevertap.android.pushtemplates.PTPushNotificationReceiver;
import com.clevertap.android.pushtemplates.PushTemplateReceiver;
import com.clevertap.android.pushtemplates.TemplateRenderer;
import com.clevertap.android.sdk.pushnotification.CTNotificationIntentService;
import com.connectsdk.service.DeviceService;
import java.util.ArrayList;
import java.util.Random;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import r3.x0;
@Metadata
public final class g {
@NotNull
public static final g f17680a = new g();
private static Intent f17681b;
private g() {
}
@NotNull
public static final PendingIntent a(@NotNull Context context, @NotNull Bundle bundle, @NotNull String str, int i7) {
Class<?> cls;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(bundle, "extras");
Intrinsics.checkNotNullParameter(str, "dl");
try {
cls = Class.forName("com.clevertap.android.sdk.pushnotification.CTNotificationIntentService");
} catch (ClassNotFoundException unused) {
com.clevertap.android.pushtemplates.a.a("No Intent Service found");
cls = null;
}
boolean w6 = x0.w(context, cls);
int i8 = Build.VERSION.SDK_INT;
if (i8 >= 31 || !w6) {
bundle.putString("wzrk_dl", str);
PendingIntent a7 = com.clevertap.android.sdk.pushnotification.g.a(bundle, context);
Intrinsics.checkNotNullExpressionValue(a7, "{\n extras.put…xtras, context)\n }");
return a7;
}
bundle.putBoolean("autoCancel", true);
bundle.putInt("notificationId", i7);
Intent intent = new Intent(CTNotificationIntentService.MAIN_ACTION);
f17681b = intent;
Intrinsics.e(intent);
intent.putExtras(bundle);
Intent intent2 = f17681b;
Intrinsics.e(intent2);
intent2.putExtra("dl", str);
Intent intent3 = f17681b;
Intrinsics.e(intent3);
intent3.setPackage(context.getPackageName());
Intent intent4 = f17681b;
Intrinsics.e(intent4);
intent4.putExtra("ct_type", CTNotificationIntentService.TYPE_BUTTON_CLICK);
int i9 = i8 >= 23 ? 201326592 : 134217728;
int nextInt = new Random().nextInt();
Intent intent5 = f17681b;
Intrinsics.e(intent5);
PendingIntent service = PendingIntent.getService(context, nextInt, intent5, i9);
Intrinsics.checkNotNullExpressionValue(service, "{\n extras.put…t\n )\n }");
return service;
}
public static final PendingIntent b(@NotNull Context context, int i7, @NotNull Bundle bundle, boolean z6, int i8, TemplateRenderer templateRenderer) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(bundle, "extras");
f17681b = null;
if (z6 && Build.VERSION.SDK_INT < 31) {
f17681b = new Intent(context, (Class<?>) PTPushNotificationReceiver.class);
} else if (!z6) {
f17681b = new Intent(context, (Class<?>) PushTemplateReceiver.class);
}
int i9 = Build.VERSION.SDK_INT;
int i10 = i9 >= 23 ? 67108864 : 0;
int nextInt = new Random().nextInt();
switch (i8) {
case 1:
case 2:
case 3:
break;
case 4:
Intent intent = f17681b;
Intrinsics.e(intent);
intent.putExtra("right_swipe", true);
Intent intent2 = f17681b;
Intrinsics.e(intent2);
intent2.putExtra("notificationId", i7);
Intent intent3 = f17681b;
Intrinsics.e(intent3);
intent3.putExtras(bundle);
return e(context, i7, bundle, f17681b, nextInt);
case 5:
Intent intent4 = f17681b;
Intrinsics.e(intent4);
intent4.putExtra("right_swipe", false);
Intent intent5 = f17681b;
Intrinsics.e(intent5);
intent5.putExtra("notificationId", i7);
Intent intent6 = f17681b;
Intrinsics.e(intent6);
intent6.putExtras(bundle);
return e(context, i7, bundle, f17681b, nextInt);
case 6:
return d(context, bundle, new Intent(context, (Class<?>) PushTemplateReceiver.class));
case 7:
bundle.putString("wzrk_dl", templateRenderer != null ? templateRenderer.K() : null);
return i9 < 31 ? e(context, i7, bundle, f17681b, nextInt) : com.clevertap.android.sdk.pushnotification.g.a(bundle, context);
case 8:
case 9:
case 10:
case 11:
case 12:
int c7 = c(i8);
Intent intent7 = f17681b;
Intrinsics.e(intent7);
intent7.putExtras(bundle);
Intent intent8 = f17681b;
Intrinsics.e(intent8);
intent8.putExtra("click" + c7, true);
Intent intent9 = f17681b;
Intrinsics.e(intent9);
intent9.putExtra("clickedStar", c7);
Intent intent10 = f17681b;
Intrinsics.e(intent10);
intent10.putExtra("notificationId", i7);
Intent intent11 = f17681b;
Intrinsics.e(intent11);
intent11.putExtra(DeviceService.KEY_CONFIG, templateRenderer != null ? templateRenderer.l() : null);
int[] intArray = bundle.getIntArray("requestCodes");
Integer valueOf = intArray != null ? Integer.valueOf(intArray[c7 - 1]) : null;
Intrinsics.e(valueOf);
int intValue = valueOf.intValue();
Intent intent12 = f17681b;
Intrinsics.e(intent12);
return PendingIntent.getBroadcast(context, intValue, intent12, i10);
case 13:
bundle.putString("wzrk_dl", null);
return e(context, i7, bundle, f17681b, nextInt);
default:
switch (i8) {
case 19:
Intent intent13 = f17681b;
Intrinsics.e(intent13);
intent13.putExtra("close", true);
Intent intent14 = f17681b;
Intrinsics.e(intent14);
intent14.putExtra("notificationId", i7);
Intent intent15 = f17681b;
Intrinsics.e(intent15);
intent15.putExtras(bundle);
Intent intent16 = f17681b;
Intrinsics.e(intent16);
return PendingIntent.getBroadcast(context, nextInt, intent16, i10);
case 20:
case 29:
case 30:
case 31:
break;
case 21:
Intent intent17 = f17681b;
Intrinsics.e(intent17);
intent17.putExtras(bundle);
Intent intent18 = f17681b;
Intrinsics.e(intent18);
intent18.putExtra("pt_current_position", 0);
Intent intent19 = f17681b;
Intrinsics.e(intent19);
intent19.putExtra("notificationId", i7);
Intent intent20 = f17681b;
Intrinsics.e(intent20);
ArrayList<String> n7 = templateRenderer != null ? templateRenderer.n() : null;
Intrinsics.e(n7);
intent20.putExtra("pt_buy_now_dl", n7.get(0));
Intent intent21 = f17681b;
Intrinsics.e(intent21);
return PendingIntent.getBroadcast(context, nextInt, intent21, i10);
case 22:
Intent intent22 = f17681b;
Intrinsics.e(intent22);
intent22.putExtras(bundle);
Intent intent23 = f17681b;
Intrinsics.e(intent23);
intent23.putExtra("pt_current_position", 1);
Intent intent24 = f17681b;
Intrinsics.e(intent24);
intent24.putExtra("notificationId", i7);
Intent intent25 = f17681b;
Intrinsics.e(intent25);
ArrayList<String> n8 = templateRenderer != null ? templateRenderer.n() : null;
Intrinsics.e(n8);
intent25.putExtra("pt_buy_now_dl", n8.get(1));
Intent intent26 = f17681b;
Intrinsics.e(intent26);
return PendingIntent.getBroadcast(context, nextInt, intent26, i10);
case 23:
Intent intent27 = f17681b;
Intrinsics.e(intent27);
intent27.putExtras(bundle);
Intent intent28 = f17681b;
Intrinsics.e(intent28);
intent28.putExtra("pt_current_position", 2);
Intent intent29 = f17681b;
Intrinsics.e(intent29);
intent29.putExtra("notificationId", i7);
Intent intent30 = f17681b;
Intrinsics.e(intent30);
ArrayList<String> n9 = templateRenderer != null ? templateRenderer.n() : null;
Intrinsics.e(n9);
intent30.putExtra("pt_buy_now_dl", n9.get(2));
Intent intent31 = f17681b;
Intrinsics.e(intent31);
return PendingIntent.getBroadcast(context, nextInt, intent31, i10);
case 24:
ArrayList<String> n10 = templateRenderer != null ? templateRenderer.n() : null;
Intrinsics.e(n10);
bundle.putString("wzrk_dl", n10.get(0));
return e(context, i7, bundle, f17681b, nextInt);
case 25:
ArrayList<String> n11 = templateRenderer != null ? templateRenderer.n() : null;
Intrinsics.e(n11);
bundle.putString("wzrk_dl", n11.get(1));
return e(context, i7, bundle, f17681b, nextInt);
case 26:
ArrayList<String> n12 = templateRenderer != null ? templateRenderer.n() : null;
Intrinsics.e(n12);
bundle.putString("wzrk_dl", n12.get(2));
return e(context, i7, bundle, f17681b, nextInt);
case 27:
Intent intent32 = f17681b;
Intrinsics.e(intent32);
intent32.putExtra("img1", true);
Intent intent33 = f17681b;
Intrinsics.e(intent33);
intent33.putExtra("notificationId", i7);
Intent intent34 = f17681b;
Intrinsics.e(intent34);
ArrayList<String> n13 = templateRenderer != null ? templateRenderer.n() : null;
Intrinsics.e(n13);
intent34.putExtra("pt_buy_now_dl", n13.get(0));
Intent intent35 = f17681b;
Intrinsics.e(intent35);
intent35.putExtra("buynow", true);
Intent intent36 = f17681b;
Intrinsics.e(intent36);
intent36.putExtra(DeviceService.KEY_CONFIG, templateRenderer != null ? templateRenderer.l() : null);
Intent intent37 = f17681b;
Intrinsics.e(intent37);
intent37.putExtras(bundle);
Intent intent38 = f17681b;
Intrinsics.e(intent38);
return PendingIntent.getBroadcast(context, nextInt, intent38, i10);
case 28:
return d(context, bundle, new Intent(context, (Class<?>) PushTemplateReceiver.class));
case 32:
ArrayList<String> n14 = templateRenderer != null ? templateRenderer.n() : null;
Intrinsics.e(n14);
if (n14.size() > 0) {
ArrayList<String> n15 = templateRenderer != null ? templateRenderer.n() : null;
Intrinsics.e(n15);
bundle.putString("wzrk_dl", n15.get(0));
}
Intent intent39 = f17681b;
Intrinsics.e(intent39);
intent39.putExtra("pt_input_feedback", templateRenderer != null ? templateRenderer.y() : null);
Intent intent40 = f17681b;
Intrinsics.e(intent40);
intent40.putExtra("pt_input_auto_open", templateRenderer != null ? templateRenderer.x() : null);
Intent intent41 = f17681b;
Intrinsics.e(intent41);
intent41.putExtra(DeviceService.KEY_CONFIG, templateRenderer != null ? templateRenderer.l() : null);
if ((templateRenderer != null ? templateRenderer.n() : null) != null) {
return e(context, i7, bundle, f17681b, nextInt);
}
bundle.putString("wzrk_dl", null);
return e(context, i7, bundle, f17681b, nextInt);
default:
throw new IllegalArgumentException("invalid pendingIntentType");
}
}
if ((templateRenderer != null ? templateRenderer.n() : null) != null) {
ArrayList<String> n16 = templateRenderer.n();
Intrinsics.e(n16);
if (n16.size() > 0) {
ArrayList<String> n17 = templateRenderer.n();
Intrinsics.e(n17);
bundle.putString("wzrk_dl", n17.get(0));
return e(context, i7, bundle, f17681b, nextInt);
}
}
if (bundle.get("wzrk_dl") == null) {
bundle.putString("wzrk_dl", null);
}
return e(context, i7, bundle, f17681b, nextInt);
}
private static final int c(int i7) {
switch (i7) {
case 8:
return 1;
case 9:
return 2;
case 10:
return 3;
case 11:
return 4;
default:
return 5;
}
}
@NotNull
public static final PendingIntent d(@NotNull Context context, @NotNull Bundle bundle, @NotNull Intent intent) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(bundle, "extras");
Intrinsics.checkNotNullParameter(intent, "intent");
intent.putExtras(bundle);
intent.putExtra("pt_dismiss_intent", true);
PendingIntent broadcast = PendingIntent.getBroadcast(context, new Random().nextInt(), intent, Build.VERSION.SDK_INT >= 31 ? 335544320 : 268435456);
Intrinsics.checkNotNullExpressionValue(broadcast, "getBroadcast(\n …chPendingIntent\n )");
return broadcast;
}
@NotNull
public static final PendingIntent e(@NotNull Context context, int i7, @NotNull Bundle bundle, Intent intent, int i8) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(bundle, "extras");
Object obj = bundle.get("wzrk_dl");
bundle.putInt("notificationId", i7);
if (obj != null) {
bundle.putBoolean("default_dl", true);
}
if (intent == null) {
PendingIntent a7 = com.clevertap.android.sdk.pushnotification.g.a(bundle, context);
Intrinsics.checkNotNullExpressionValue(a7, "getActivityIntent(extras, context)");
return a7;
}
intent.putExtras(bundle);
intent.removeExtra("wzrk_acts");
intent.putExtra("wzrk_from", "CTPushNotificationReceiver");
intent.setFlags(872415232);
PendingIntent broadcast = PendingIntent.getBroadcast(context, i8, intent, Build.VERSION.SDK_INT >= 31 ? 201326592 : 134217728);
Intrinsics.checkNotNullExpressionValue(broadcast, "getBroadcast(\n …ndingIntent\n )");
return broadcast;
}
}