导航菜单

页面标题

页面副标题

FanCode v7.24.0 - g.java 源代码

正在查看: FanCode v7.24.0 应用的 g.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package a6;

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.sdk.pushnotification.CTNotificationIntentService;
import com.connectsdk.service.DeviceService;
import d6.t1;
import java.util.ArrayList;
import java.util.Random;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;

@Metadata
public final class g {

    @NotNull
    public static final g f233a = new g();

    private static Intent f234b;

    private g() {
    }

    @NotNull
    public static final PendingIntent a(@NotNull Context context, @NotNull Bundle bundle, @NotNull String str, int i9) {
        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.a.a("No Intent Service found");
            cls = null;
        }
        boolean x9 = t1.x(context, cls);
        if (Build.VERSION.SDK_INT >= 31 || !x9) {
            bundle.putString("wzrk_dl", str);
            PendingIntent a9 = com.clevertap.android.sdk.pushnotification.f.a(bundle, context);
            Intrinsics.checkNotNullExpressionValue(a9, "{\n            extras.put…xtras, context)\n        }");
            return a9;
        }
        bundle.putBoolean("autoCancel", true);
        bundle.putInt("notificationId", i9);
        Intent intent = new Intent(CTNotificationIntentService.MAIN_ACTION);
        f234b = intent;
        Intrinsics.checkNotNull(intent);
        intent.putExtras(bundle);
        Intent intent2 = f234b;
        Intrinsics.checkNotNull(intent2);
        intent2.putExtra("dl", str);
        Intent intent3 = f234b;
        Intrinsics.checkNotNull(intent3);
        intent3.setPackage(context.getPackageName());
        Intent intent4 = f234b;
        Intrinsics.checkNotNull(intent4);
        intent4.putExtra("ct_type", CTNotificationIntentService.TYPE_BUTTON_CLICK);
        int currentTimeMillis = (int) System.currentTimeMillis();
        Intent intent5 = f234b;
        Intrinsics.checkNotNull(intent5);
        PendingIntent service = PendingIntent.getService(context, currentTimeMillis, intent5, 201326592);
        Intrinsics.checkNotNullExpressionValue(service, "{\n            extras.put…t\n            )\n        }");
        return service;
    }

    public static final PendingIntent b(@NotNull Context context, int i9, @NotNull Bundle bundle, boolean z9, int i10, com.clevertap.android.pushtemplates.c cVar) {
        Intrinsics.checkNotNullParameter(context, "context");
        Intrinsics.checkNotNullParameter(bundle, "extras");
        f234b = null;
        if (z9 && Build.VERSION.SDK_INT < 31) {
            f234b = new Intent(context, (Class<?>) PTPushNotificationReceiver.class);
        } else if (!z9) {
            f234b = new Intent(context, (Class<?>) PushTemplateReceiver.class);
        }
        int i11 = Build.VERSION.SDK_INT;
        switch (i10) {
            case 1:
            case 2:
            case 3:
                break;
            case 4:
                Intent intent = f234b;
                Intrinsics.checkNotNull(intent);
                intent.putExtra("right_swipe", true);
                Intent intent2 = f234b;
                Intrinsics.checkNotNull(intent2);
                intent2.putExtra("notificationId", i9);
                Intent intent3 = f234b;
                Intrinsics.checkNotNull(intent3);
                intent3.putExtras(bundle);
                return d(context, i9, bundle, f234b);
            case 5:
                Intent intent4 = f234b;
                Intrinsics.checkNotNull(intent4);
                intent4.putExtra("right_swipe", false);
                Intent intent5 = f234b;
                Intrinsics.checkNotNull(intent5);
                intent5.putExtra("notificationId", i9);
                Intent intent6 = f234b;
                Intrinsics.checkNotNull(intent6);
                intent6.putExtras(bundle);
                return d(context, i9, bundle, f234b);
            case 6:
                return c(context, bundle, new Intent(context, (Class<?>) PushTemplateReceiver.class));
            case 7:
                bundle.putString("wzrk_dl", cVar != null ? cVar.L() : null);
                return i11 < 31 ? d(context, i9, bundle, f234b) : com.clevertap.android.sdk.pushnotification.f.a(bundle, context);
            case 8:
                Intent intent7 = f234b;
                Intrinsics.checkNotNull(intent7);
                intent7.putExtras(bundle);
                Intent intent8 = f234b;
                Intrinsics.checkNotNull(intent8);
                intent8.putExtra("click1", true);
                Intent intent9 = f234b;
                Intrinsics.checkNotNull(intent9);
                intent9.putExtra("clickedStar", 1);
                Intent intent10 = f234b;
                Intrinsics.checkNotNull(intent10);
                intent10.putExtra("notificationId", i9);
                Intent intent11 = f234b;
                Intrinsics.checkNotNull(intent11);
                intent11.putExtra(DeviceService.KEY_CONFIG, cVar != null ? cVar.m() : null);
                int nextInt = new Random().nextInt();
                Intent intent12 = f234b;
                Intrinsics.checkNotNull(intent12);
                return PendingIntent.getBroadcast(context, nextInt, intent12, 67108864);
            case 9:
                Intent intent13 = f234b;
                Intrinsics.checkNotNull(intent13);
                intent13.putExtras(bundle);
                Intent intent14 = f234b;
                Intrinsics.checkNotNull(intent14);
                intent14.putExtra("click2", true);
                Intent intent15 = f234b;
                Intrinsics.checkNotNull(intent15);
                intent15.putExtra("clickedStar", 2);
                Intent intent16 = f234b;
                Intrinsics.checkNotNull(intent16);
                intent16.putExtra("notificationId", i9);
                Intent intent17 = f234b;
                Intrinsics.checkNotNull(intent17);
                intent17.putExtra(DeviceService.KEY_CONFIG, cVar != null ? cVar.m() : null);
                int nextInt2 = new Random().nextInt();
                Intent intent18 = f234b;
                Intrinsics.checkNotNull(intent18);
                return PendingIntent.getBroadcast(context, nextInt2, intent18, 67108864);
            case 10:
                Intent intent19 = f234b;
                Intrinsics.checkNotNull(intent19);
                intent19.putExtras(bundle);
                Intent intent20 = f234b;
                Intrinsics.checkNotNull(intent20);
                intent20.putExtra("click3", true);
                Intent intent21 = f234b;
                Intrinsics.checkNotNull(intent21);
                intent21.putExtra("clickedStar", 3);
                Intent intent22 = f234b;
                Intrinsics.checkNotNull(intent22);
                intent22.putExtra("notificationId", i9);
                Intent intent23 = f234b;
                Intrinsics.checkNotNull(intent23);
                intent23.putExtra(DeviceService.KEY_CONFIG, cVar != null ? cVar.m() : null);
                int nextInt3 = new Random().nextInt();
                Intent intent24 = f234b;
                Intrinsics.checkNotNull(intent24);
                return PendingIntent.getBroadcast(context, nextInt3, intent24, 67108864);
            case 11:
                Intent intent25 = f234b;
                Intrinsics.checkNotNull(intent25);
                intent25.putExtras(bundle);
                Intent intent26 = f234b;
                Intrinsics.checkNotNull(intent26);
                intent26.putExtra("click4", true);
                Intent intent27 = f234b;
                Intrinsics.checkNotNull(intent27);
                intent27.putExtra("clickedStar", 4);
                Intent intent28 = f234b;
                Intrinsics.checkNotNull(intent28);
                intent28.putExtra("notificationId", i9);
                Intent intent29 = f234b;
                Intrinsics.checkNotNull(intent29);
                intent29.putExtra(DeviceService.KEY_CONFIG, cVar != null ? cVar.m() : null);
                int nextInt4 = new Random().nextInt();
                Intent intent30 = f234b;
                Intrinsics.checkNotNull(intent30);
                return PendingIntent.getBroadcast(context, nextInt4, intent30, 67108864);
            case 12:
                Intent intent31 = f234b;
                Intrinsics.checkNotNull(intent31);
                intent31.putExtras(bundle);
                Intent intent32 = f234b;
                Intrinsics.checkNotNull(intent32);
                intent32.putExtra("click5", true);
                Intent intent33 = f234b;
                Intrinsics.checkNotNull(intent33);
                intent33.putExtra("clickedStar", 5);
                Intent intent34 = f234b;
                Intrinsics.checkNotNull(intent34);
                intent34.putExtra("notificationId", i9);
                Intent intent35 = f234b;
                Intrinsics.checkNotNull(intent35);
                intent35.putExtra(DeviceService.KEY_CONFIG, cVar != null ? cVar.m() : null);
                int nextInt5 = new Random().nextInt();
                Intent intent36 = f234b;
                Intrinsics.checkNotNull(intent36);
                return PendingIntent.getBroadcast(context, nextInt5, intent36, 67108864);
            case 13:
                bundle.putString("wzrk_dl", null);
                return d(context, i9, bundle, f234b);
            default:
                switch (i10) {
                    case 19:
                        int nextInt6 = new Random().nextInt();
                        Intent intent37 = f234b;
                        Intrinsics.checkNotNull(intent37);
                        intent37.putExtra("close", true);
                        Intent intent38 = f234b;
                        Intrinsics.checkNotNull(intent38);
                        intent38.putExtra("notificationId", i9);
                        Intent intent39 = f234b;
                        Intrinsics.checkNotNull(intent39);
                        intent39.putExtras(bundle);
                        Intent intent40 = f234b;
                        Intrinsics.checkNotNull(intent40);
                        return PendingIntent.getBroadcast(context, nextInt6, intent40, 67108864);
                    case 20:
                    case 29:
                    case 30:
                    case 31:
                        break;
                    case 21:
                        int nextInt7 = new Random().nextInt();
                        Intent intent41 = f234b;
                        Intrinsics.checkNotNull(intent41);
                        intent41.putExtras(bundle);
                        Intent intent42 = f234b;
                        Intrinsics.checkNotNull(intent42);
                        intent42.putExtra("pt_current_position", 0);
                        Intent intent43 = f234b;
                        Intrinsics.checkNotNull(intent43);
                        intent43.putExtra("notificationId", i9);
                        Intent intent44 = f234b;
                        Intrinsics.checkNotNull(intent44);
                        ArrayList<String> o9 = cVar != null ? cVar.o() : null;
                        Intrinsics.checkNotNull(o9);
                        intent44.putExtra("pt_buy_now_dl", o9.get(0));
                        Intent intent45 = f234b;
                        Intrinsics.checkNotNull(intent45);
                        return PendingIntent.getBroadcast(context, nextInt7, intent45, 67108864);
                    case 22:
                        int nextInt8 = new Random().nextInt();
                        Intent intent46 = f234b;
                        Intrinsics.checkNotNull(intent46);
                        intent46.putExtras(bundle);
                        Intent intent47 = f234b;
                        Intrinsics.checkNotNull(intent47);
                        intent47.putExtra("pt_current_position", 1);
                        Intent intent48 = f234b;
                        Intrinsics.checkNotNull(intent48);
                        intent48.putExtra("notificationId", i9);
                        Intent intent49 = f234b;
                        Intrinsics.checkNotNull(intent49);
                        ArrayList<String> o10 = cVar != null ? cVar.o() : null;
                        Intrinsics.checkNotNull(o10);
                        intent49.putExtra("pt_buy_now_dl", o10.get(1));
                        Intent intent50 = f234b;
                        Intrinsics.checkNotNull(intent50);
                        return PendingIntent.getBroadcast(context, nextInt8, intent50, 67108864);
                    case 23:
                        int nextInt9 = new Random().nextInt();
                        Intent intent51 = f234b;
                        Intrinsics.checkNotNull(intent51);
                        intent51.putExtras(bundle);
                        Intent intent52 = f234b;
                        Intrinsics.checkNotNull(intent52);
                        intent52.putExtra("pt_current_position", 2);
                        Intent intent53 = f234b;
                        Intrinsics.checkNotNull(intent53);
                        intent53.putExtra("notificationId", i9);
                        Intent intent54 = f234b;
                        Intrinsics.checkNotNull(intent54);
                        ArrayList<String> o11 = cVar != null ? cVar.o() : null;
                        Intrinsics.checkNotNull(o11);
                        intent54.putExtra("pt_buy_now_dl", o11.get(2));
                        Intent intent55 = f234b;
                        Intrinsics.checkNotNull(intent55);
                        return PendingIntent.getBroadcast(context, nextInt9, intent55, 67108864);
                    case 24:
                        ArrayList<String> o12 = cVar != null ? cVar.o() : null;
                        Intrinsics.checkNotNull(o12);
                        bundle.putString("wzrk_dl", o12.get(0));
                        return d(context, i9, bundle, f234b);
                    case 25:
                        ArrayList<String> o13 = cVar != null ? cVar.o() : null;
                        Intrinsics.checkNotNull(o13);
                        bundle.putString("wzrk_dl", o13.get(1));
                        return d(context, i9, bundle, f234b);
                    case 26:
                        ArrayList<String> o14 = cVar != null ? cVar.o() : null;
                        Intrinsics.checkNotNull(o14);
                        bundle.putString("wzrk_dl", o14.get(2));
                        return d(context, i9, bundle, f234b);
                    case 27:
                        Intent intent56 = f234b;
                        Intrinsics.checkNotNull(intent56);
                        intent56.putExtra("img1", true);
                        Intent intent57 = f234b;
                        Intrinsics.checkNotNull(intent57);
                        intent57.putExtra("notificationId", i9);
                        Intent intent58 = f234b;
                        Intrinsics.checkNotNull(intent58);
                        ArrayList<String> o15 = cVar != null ? cVar.o() : null;
                        Intrinsics.checkNotNull(o15);
                        intent58.putExtra("pt_buy_now_dl", o15.get(0));
                        Intent intent59 = f234b;
                        Intrinsics.checkNotNull(intent59);
                        intent59.putExtra("buynow", true);
                        Intent intent60 = f234b;
                        Intrinsics.checkNotNull(intent60);
                        intent60.putExtra(DeviceService.KEY_CONFIG, cVar != null ? cVar.m() : null);
                        Intent intent61 = f234b;
                        Intrinsics.checkNotNull(intent61);
                        intent61.putExtras(bundle);
                        int nextInt10 = new Random().nextInt();
                        Intent intent62 = f234b;
                        Intrinsics.checkNotNull(intent62);
                        return PendingIntent.getBroadcast(context, nextInt10, intent62, 67108864);
                    case 28:
                        return c(context, bundle, new Intent(context, (Class<?>) PushTemplateReceiver.class));
                    case 32:
                        ArrayList<String> o16 = cVar != null ? cVar.o() : null;
                        Intrinsics.checkNotNull(o16);
                        if (o16.size() > 0) {
                            ArrayList<String> o17 = cVar != null ? cVar.o() : null;
                            Intrinsics.checkNotNull(o17);
                            bundle.putString("wzrk_dl", o17.get(0));
                        }
                        Intent intent63 = f234b;
                        Intrinsics.checkNotNull(intent63);
                        intent63.putExtra("pt_input_feedback", cVar != null ? cVar.z() : null);
                        Intent intent64 = f234b;
                        Intrinsics.checkNotNull(intent64);
                        intent64.putExtra("pt_input_auto_open", cVar != null ? cVar.y() : null);
                        Intent intent65 = f234b;
                        Intrinsics.checkNotNull(intent65);
                        intent65.putExtra(DeviceService.KEY_CONFIG, cVar != null ? cVar.m() : null);
                        if ((cVar != null ? cVar.o() : null) != null) {
                            return d(context, i9, bundle, f234b);
                        }
                        bundle.putString("wzrk_dl", null);
                        return d(context, i9, bundle, f234b);
                    default:
                        throw new IllegalArgumentException("invalid pendingIntentType");
                }
        }
        if ((cVar != null ? cVar.o() : null) != null) {
            ArrayList<String> o18 = cVar.o();
            Intrinsics.checkNotNull(o18);
            if (o18.size() > 0) {
                ArrayList<String> o19 = cVar.o();
                Intrinsics.checkNotNull(o19);
                bundle.putString("wzrk_dl", o19.get(0));
                return d(context, i9, bundle, f234b);
            }
        }
        if (bundle.get("wzrk_dl") == null) {
            bundle.putString("wzrk_dl", null);
        }
        return d(context, i9, bundle, f234b);
    }

    @NotNull
    public static final PendingIntent c(@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, (int) System.currentTimeMillis(), intent, Build.VERSION.SDK_INT >= 31 ? 301989888 : 268435456);
        Intrinsics.checkNotNullExpressionValue(broadcast, "getBroadcast(\n          …chPendingIntent\n        )");
        return broadcast;
    }

    @NotNull
    public static final PendingIntent d(@NotNull Context context, int i9, @NotNull Bundle bundle, Intent intent) {
        Intrinsics.checkNotNullParameter(context, "context");
        Intrinsics.checkNotNullParameter(bundle, "extras");
        Object obj = bundle.get("wzrk_dl");
        bundle.putInt("notificationId", i9);
        if (obj != null) {
            bundle.putBoolean("default_dl", true);
        }
        if (intent == null) {
            PendingIntent a9 = com.clevertap.android.sdk.pushnotification.f.a(bundle, context);
            Intrinsics.checkNotNullExpressionValue(a9, "getActivityIntent(extras, context)");
            return a9;
        }
        intent.putExtras(bundle);
        intent.removeExtra("wzrk_acts");
        intent.putExtra("wzrk_from", "CTPushNotificationReceiver");
        intent.setFlags(872415232);
        PendingIntent broadcast = PendingIntent.getBroadcast(context, (int) System.currentTimeMillis(), intent, Build.VERSION.SDK_INT >= 31 ? 167772160 : 134217728);
        Intrinsics.checkNotNullExpressionValue(broadcast, "getBroadcast(\n          …ndingIntent\n            )");
        return broadcast;
    }
}