导航菜单

页面标题

页面副标题

BetterTogether v3.0.0 - FCMBroadcastReceiver.java 源代码

正在查看: BetterTogether v3.0.0 应用的 FCMBroadcastReceiver.java JAVA 源代码文件

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


package com.onesignal;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
import android.os.PersistableBundle;
import com.mopub.common.Constants;

public class FCMBroadcastReceiver extends d5.a {
    public static final int d = 0;

    public static void a(Bundle bundle, e0 e0Var) {
        String jSONObject = m3.f(bundle).toString();
        int i = e0Var.a;
        switch (i) {
            case 2:
                ((Bundle) e0Var.b).putString("json_payload", jSONObject);
                break;
            default:
                ((PersistableBundle) e0Var.b).putString("json_payload", jSONObject);
                break;
        }
        y3.v.getClass();
        Long valueOf = Long.valueOf(System.currentTimeMillis() / 1000);
        switch (i) {
            case 2:
                ((Bundle) e0Var.b).putLong("timestamp", valueOf.longValue());
                break;
            default:
                ((PersistableBundle) e0Var.b).putLong("timestamp", valueOf.longValue());
                break;
        }
    }

    public static void b(Context context, Bundle bundle) {
        Parcelable parcelable;
        e0 e0Var = new e0(3);
        a(bundle, e0Var);
        Intent intent = new Intent(context, (Class<?>) FCMIntentJobService.class);
        switch (e0Var.a) {
            case 2:
                parcelable = (Bundle) e0Var.b;
                break;
            default:
                parcelable = (PersistableBundle) e0Var.b;
                break;
        }
        intent.putExtra("Bundle:Parcelable:Extras", parcelable);
        int i = FCMIntentJobService.M;
        ComponentName componentName = new ComponentName(context, (Class<?>) FCMIntentJobService.class);
        synchronized (i0.x) {
            JobIntentService$WorkEnqueuer b = i0.b(context, componentName, true, 123890, false);
            b.ensureJobId(123890);
            try {
                b.enqueueWork(intent);
            } catch (IllegalStateException e) {
                throw e;
            }
        }
    }

    public static void c(Context context, Bundle bundle) {
        Cloneable cloneable;
        ComponentName componentName = new ComponentName(context.getPackageName(), FCMIntentService.class.getName());
        e0 e0Var = new e0(2);
        a(bundle, e0Var);
        Intent intent = new Intent();
        switch (e0Var.a) {
            case 2:
                cloneable = (Bundle) e0Var.b;
                break;
            default:
                cloneable = (PersistableBundle) e0Var.b;
                break;
        }
        d5.a.startWakefulService(context, intent.replaceExtras((Bundle) cloneable).setComponent(componentName));
    }

    public final void onReceive(Context context, Intent intent) {
        String stringExtra;
        Bundle extras = intent.getExtras();
        if (extras == null || "google.com/iid".equals(extras.getString("from"))) {
            return;
        }
        y3.A(context);
        boolean z = false;
        androidx.recyclerview.widget.k0 k0Var = new androidx.recyclerview.widget.k0(this, 0);
        if ("com.google.android.c2dm.intent.RECEIVE".equals(intent.getAction()) && ((stringExtra = intent.getStringExtra(Constants.VAST_TRACKER_MESSAGE_TYPE)) == null || "gcm".equals(stringExtra))) {
            z = true;
        }
        if (!z) {
            k0Var.e((t0) null);
        }
        m3.M(context, extras, new a(context, extras, k0Var));
    }
}