正在查看: Oolka v2.4.42 应用的 h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Oolka v2.4.42 应用的 h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.clevertap.android.pushtemplates.content;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import co.hyperverge.hypersnapsdk.activities.HVRetakeActivity;
import co.hyperverge.hypersnapsdk.objects.HVError;
import com.clevertap.android.pushtemplates.PTPushNotificationReceiver;
import com.clevertap.android.pushtemplates.PushTemplateReceiver;
import com.clevertap.android.sdk.Utils;
import com.clevertap.android.sdk.pushnotification.CTNotificationIntentService;
import com.clevertap.android.sdk.pushnotification.LaunchPendingIntentFactory;
import java.util.ArrayList;
import java.util.Random;
import kotlin.Metadata;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
@Metadata
public final class h {
@NotNull
public static final h a = new h();
public static Intent b;
@JvmStatic
@NotNull
public static final PendingIntent a(@NotNull Context context, @NotNull Bundle bundle, @NotNull String str, int i) {
Class<CTNotificationIntentService> cls;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(bundle, "extras");
Intrinsics.checkNotNullParameter(str, "dl");
try {
cls = CTNotificationIntentService.class;
String str2 = CTNotificationIntentService.MAIN_ACTION;
} catch (ClassNotFoundException unused) {
com.clevertap.android.pushtemplates.e.a("No Intent Service found");
cls = null;
}
boolean x = Utils.x(context, cls);
if (Build.VERSION.SDK_INT >= 31 || !x) {
bundle.putString("wzrk_dl", str);
PendingIntent a2 = LaunchPendingIntentFactory.a(bundle, context);
Intrinsics.checkNotNull(a2);
return a2;
}
bundle.putBoolean("autoCancel", true);
bundle.putInt("notificationId", i);
Intent intent = new Intent(CTNotificationIntentService.MAIN_ACTION);
b = intent;
Intrinsics.checkNotNull(intent);
intent.putExtras(bundle);
Intent intent2 = b;
Intrinsics.checkNotNull(intent2);
intent2.putExtra("dl", str);
Intent intent3 = b;
Intrinsics.checkNotNull(intent3);
intent3.setPackage(context.getPackageName());
Intent intent4 = b;
Intrinsics.checkNotNull(intent4);
intent4.putExtra("ct_type", CTNotificationIntentService.TYPE_BUTTON_CLICK);
int nextInt = new Random().nextInt();
Intent intent5 = b;
Intrinsics.checkNotNull(intent5);
PendingIntent service = PendingIntent.getService(context, nextInt, intent5, 201326592);
Intrinsics.checkNotNull(service);
return service;
}
@JvmStatic
public static final PendingIntent b(@NotNull Context context, int i, @NotNull Bundle bundle, boolean z, int i2, com.clevertap.android.pushtemplates.m mVar) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(bundle, "extras");
b = null;
if (z && Build.VERSION.SDK_INT < 31) {
b = new Intent(context, (Class<?>) PTPushNotificationReceiver.class);
} else if (!z) {
b = new Intent(context, (Class<?>) PushTemplateReceiver.class);
}
int i3 = Build.VERSION.SDK_INT;
int nextInt = new Random().nextInt();
switch (i2) {
case 1:
case 2:
case 3:
break;
case 4:
Intent intent = b;
Intrinsics.checkNotNull(intent);
intent.putExtra("right_swipe", true);
Intent intent2 = b;
Intrinsics.checkNotNull(intent2);
intent2.putExtra("notificationId", i);
Intent intent3 = b;
Intrinsics.checkNotNull(intent3);
intent3.putExtras(bundle);
return e(context, i, bundle, b, nextInt);
case 5:
Intent intent4 = b;
Intrinsics.checkNotNull(intent4);
intent4.putExtra("right_swipe", false);
Intent intent5 = b;
Intrinsics.checkNotNull(intent5);
intent5.putExtra("notificationId", i);
Intent intent6 = b;
Intrinsics.checkNotNull(intent6);
intent6.putExtras(bundle);
return e(context, i, bundle, b, nextInt);
case 6:
return d(context, bundle, new Intent(context, (Class<?>) PushTemplateReceiver.class));
case 7:
bundle.putString("wzrk_dl", mVar != null ? mVar.Q() : null);
return i3 < 31 ? e(context, i, bundle, b, nextInt) : LaunchPendingIntentFactory.a(bundle, context);
case 8:
case 9:
case 10:
case 11:
case HVError.NETWORK_ERROR:
int c = c(i2);
Intent intent7 = b;
Intrinsics.checkNotNull(intent7);
intent7.putExtras(bundle);
Intent intent8 = b;
Intrinsics.checkNotNull(intent8);
intent8.putExtra("click" + c, true);
Intent intent9 = b;
Intrinsics.checkNotNull(intent9);
intent9.putExtra("clickedStar", c);
Intent intent10 = b;
Intrinsics.checkNotNull(intent10);
intent10.putExtra("notificationId", i);
Intent intent11 = b;
Intrinsics.checkNotNull(intent11);
intent11.putExtra("config", mVar != null ? mVar.q() : null);
int[] intArray = bundle.getIntArray("requestCodes");
Integer valueOf = intArray != null ? Integer.valueOf(intArray[c - 1]) : null;
Intrinsics.checkNotNull(valueOf);
int intValue = valueOf.intValue();
Intent intent12 = b;
Intrinsics.checkNotNull(intent12);
return PendingIntent.getBroadcast(context, intValue, intent12, 67108864);
case 13:
bundle.putString("wzrk_dl", null);
return e(context, i, bundle, b, nextInt);
default:
switch (i2) {
case HVRetakeActivity.CLOSE_ACTION:
case 29:
case 30:
case HVError.INSTRUCTION_ERROR:
break;
case HVRetakeActivity.RECHECK_ACTION:
Intent intent13 = b;
Intrinsics.checkNotNull(intent13);
intent13.putExtras(bundle);
Intent intent14 = b;
Intrinsics.checkNotNull(intent14);
intent14.putExtra("pt_current_position", 0);
Intent intent15 = b;
Intrinsics.checkNotNull(intent15);
intent15.putExtra("notificationId", i);
Intent intent16 = b;
Intrinsics.checkNotNull(intent16);
ArrayList<String> s = mVar != null ? mVar.s() : null;
Intrinsics.checkNotNull(s);
intent16.putExtra("pt_buy_now_dl", s.get(0));
Intent intent17 = b;
Intrinsics.checkNotNull(intent17);
return PendingIntent.getBroadcast(context, nextInt, intent17, 67108864);
case 22:
Intent intent18 = b;
Intrinsics.checkNotNull(intent18);
intent18.putExtras(bundle);
Intent intent19 = b;
Intrinsics.checkNotNull(intent19);
intent19.putExtra("pt_current_position", 1);
Intent intent20 = b;
Intrinsics.checkNotNull(intent20);
intent20.putExtra("notificationId", i);
Intent intent21 = b;
Intrinsics.checkNotNull(intent21);
ArrayList<String> s2 = mVar != null ? mVar.s() : null;
Intrinsics.checkNotNull(s2);
intent21.putExtra("pt_buy_now_dl", s2.get(1));
Intent intent22 = b;
Intrinsics.checkNotNull(intent22);
return PendingIntent.getBroadcast(context, nextInt, intent22, 67108864);
case HVError.BLURRY_FACE_DETECTION_ERROR:
Intent intent23 = b;
Intrinsics.checkNotNull(intent23);
intent23.putExtras(bundle);
Intent intent24 = b;
Intrinsics.checkNotNull(intent24);
intent24.putExtra("pt_current_position", 2);
Intent intent25 = b;
Intrinsics.checkNotNull(intent25);
intent25.putExtra("notificationId", i);
Intent intent26 = b;
Intrinsics.checkNotNull(intent26);
ArrayList<String> s3 = mVar != null ? mVar.s() : null;
Intrinsics.checkNotNull(s3);
intent26.putExtra("pt_buy_now_dl", s3.get(2));
Intent intent27 = b;
Intrinsics.checkNotNull(intent27);
return PendingIntent.getBroadcast(context, nextInt, intent27, 67108864);
case HVError.TILT_FACE_DETECTED_ERROR:
ArrayList<String> s4 = mVar != null ? mVar.s() : null;
Intrinsics.checkNotNull(s4);
bundle.putString("wzrk_dl", s4.get(0));
return e(context, i, bundle, b, nextInt);
case 25:
ArrayList<String> s5 = mVar != null ? mVar.s() : null;
Intrinsics.checkNotNull(s5);
bundle.putString("wzrk_dl", s5.get(1));
return e(context, i, bundle, b, nextInt);
case 26:
ArrayList<String> s6 = mVar != null ? mVar.s() : null;
Intrinsics.checkNotNull(s6);
bundle.putString("wzrk_dl", s6.get(2));
return e(context, i, bundle, b, nextInt);
case 27:
Intent intent28 = b;
Intrinsics.checkNotNull(intent28);
intent28.putExtra("img1", true);
Intent intent29 = b;
Intrinsics.checkNotNull(intent29);
intent29.putExtra("notificationId", i);
Intent intent30 = b;
Intrinsics.checkNotNull(intent30);
ArrayList<String> s7 = mVar != null ? mVar.s() : null;
Intrinsics.checkNotNull(s7);
intent30.putExtra("pt_buy_now_dl", s7.get(0));
Intent intent31 = b;
Intrinsics.checkNotNull(intent31);
intent31.putExtra("buynow", true);
Intent intent32 = b;
Intrinsics.checkNotNull(intent32);
intent32.putExtra("config", mVar != null ? mVar.q() : null);
Intent intent33 = b;
Intrinsics.checkNotNull(intent33);
intent33.putExtras(bundle);
Intent intent34 = b;
Intrinsics.checkNotNull(intent34);
return PendingIntent.getBroadcast(context, nextInt, intent34, 67108864);
case 28:
return d(context, bundle, new Intent(context, (Class<?>) PushTemplateReceiver.class));
case HVError.QR_SCANNER_ERROR:
ArrayList<String> s8 = mVar != null ? mVar.s() : null;
Intrinsics.checkNotNull(s8);
if (s8.size() > 0) {
ArrayList<String> s9 = mVar != null ? mVar.s() : null;
Intrinsics.checkNotNull(s9);
bundle.putString("wzrk_dl", s9.get(0));
}
Intent intent35 = b;
Intrinsics.checkNotNull(intent35);
intent35.putExtra("pt_input_feedback", mVar != null ? mVar.E() : null);
Intent intent36 = b;
Intrinsics.checkNotNull(intent36);
intent36.putExtra("pt_input_auto_open", mVar != null ? mVar.D() : null);
Intent intent37 = b;
Intrinsics.checkNotNull(intent37);
intent37.putExtra("config", mVar != null ? mVar.q() : null);
if (mVar.s() == null) {
bundle.putString("wzrk_dl", null);
}
return e(context, i, bundle, b, nextInt);
default:
throw new IllegalArgumentException("invalid pendingIntentType");
}
}
if ((mVar != null ? mVar.s() : null) != null) {
ArrayList<String> s10 = mVar.s();
Intrinsics.checkNotNull(s10);
if (s10.size() > 0) {
ArrayList<String> s11 = mVar.s();
Intrinsics.checkNotNull(s11);
bundle.putString("wzrk_dl", s11.get(0));
return e(context, i, bundle, b, nextInt);
}
}
if (bundle.get("wzrk_dl") == null) {
bundle.putString("wzrk_dl", null);
}
return e(context, i, bundle, b, nextInt);
}
@JvmStatic
public static final int c(int i) {
switch (i) {
case 8:
return 1;
case 9:
return 2;
case 10:
return 3;
case 11:
return 4;
default:
return 5;
}
}
@JvmStatic
@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, 335544320);
Intrinsics.checkNotNullExpressionValue(broadcast, "getBroadcast(...)");
return broadcast;
}
@JvmStatic
@NotNull
public static final PendingIntent e(@NotNull Context context, int i, @NotNull Bundle bundle, Intent intent, int i2) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(bundle, "extras");
Object obj = bundle.get("wzrk_dl");
bundle.putInt("notificationId", i);
if (obj != null) {
bundle.putBoolean("default_dl", true);
}
if (intent == null) {
PendingIntent a2 = LaunchPendingIntentFactory.a(bundle, context);
Intrinsics.checkNotNullExpressionValue(a2, "getActivityIntent(...)");
return a2;
}
intent.putExtras(bundle);
intent.removeExtra("wzrk_acts");
intent.putExtra("wzrk_from", "CTPushNotificationReceiver");
intent.setFlags(872415232);
PendingIntent broadcast = PendingIntent.getBroadcast(context, i2, intent, (intent.hasExtra("pt_input_feedback") ? 33554432 : 67108864) | 134217728);
Intrinsics.checkNotNullExpressionValue(broadcast, "getBroadcast(...)");
return broadcast;
}
}