导航菜单

页面标题

页面副标题

Engineering Physics 2 v13.0 - FCMBroadcastReceiver.java 源代码

正在查看: Engineering Physics 2 v13.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.PersistableBundle;
import defpackage.zi;

public class FCMBroadcastReceiver extends hs {
    public static final int a = 0;

    public static void a(Context context, Bundle bundle) {
        PersistableBundle persistableBundle = new PersistableBundle();
        persistableBundle.putString("json_payload", AbstractC0027c.f(bundle).toString());
        y.s.getClass();
        persistableBundle.putLong("timestamp", System.currentTimeMillis() / 1000);
        Intent intent = new Intent(context, (Class<?>) FCMIntentJobService.class);
        intent.putExtra("Bundle:Parcelable:Extras", persistableBundle);
        int i = FCMIntentJobService.j;
        ComponentName componentName = new ComponentName(context, (Class<?>) FCMIntentJobService.class);
        synchronized (i.h) {
            try {
                JobIntentService$WorkEnqueuer b = i.b(context, componentName, true, 123890, false);
                b.ensureJobId(123890);
                try {
                    b.enqueueWork(intent);
                } catch (IllegalStateException e) {
                    throw e;
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    public static void b(Context context, Bundle bundle) {
        ComponentName componentName = new ComponentName(context.getPackageName(), FCMIntentService.class.getName());
        Bundle bundle2 = new Bundle();
        bundle2.putString("json_payload", AbstractC0027c.f(bundle).toString());
        y.s.getClass();
        bundle2.putLong("timestamp", System.currentTimeMillis() / 1000);
        hs.startWakefulService(context, new Intent().replaceExtras(bundle2).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;
        }
        y.y(context);
        zi ziVar = new zi(this, 14);
        if (!"com.google.android.c2dm.intent.RECEIVE".equals(intent.getAction()) || ((stringExtra = intent.getStringExtra("message_type")) != null && !"gcm".equals(stringExtra))) {
            ziVar.a(null);
        }
        m3 m3Var = new m3();
        m3Var.c = ziVar;
        m3Var.e = context;
        m3Var.d = extras;
        AbstractC0027c.u(context, extras, m3Var);
    }
}