导航菜单

页面标题

页面副标题

Minits v4.9.3.32 - PushNotificationReceiver.java 源代码

正在查看: Minits v4.9.3.32 应用的 PushNotificationReceiver.java JAVA 源代码文件

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


package com.xone.android.push;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.xone.android.javascript.ScriptBundleWrapper;
import com.xone.android.utils.Utils;
import com.xone.interfaces.IXoneApp;
import ua.InterfaceC1038m0;

public final class PushNotificationReceiver extends BroadcastReceiver {
    public static IXoneApp a(Context context, Bundle bundle) {
        IXoneApp G0 = ((InterfaceC1038m0) context.getApplicationContext()).G0();
        if (G0 != null) {
            return G0;
        }
        Intent launchIntentForPackage = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());
        if (launchIntentForPackage == null) {
            Utils.l("XOneAndroidFramework", "PushNotificationClickReceiver.runAppIfDead(): Cannot find launch intent. Aborting.");
            return null;
        }
        launchIntentForPackage.setFlags(268435456);
        launchIntentForPackage.addFlags(32768);
        launchIntentForPackage.putExtra("executeOnRecovery", true);
        launchIntentForPackage.putExtra("executeOnMessage", false);
        launchIntentForPackage.putExtra("intentBundle", bundle);
        context.startActivity(launchIntentForPackage);
        return null;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        Intent intent2;
        Bundle extras;
        if (intent == null || (intent2 = (Intent) intent.getParcelableExtra("push_server_intent")) == null || (extras = intent2.getExtras()) == null) {
            return;
        }
        Bundle bundle = new Bundle(extras);
        bundle.remove("from");
        bundle.remove("android.support.content.wakelockid");
        bundle.remove("collapse_key");
        bundle.remove("source");
        IXoneApp a = a(context, bundle);
        if (a == null) {
            return;
        }
        try {
            a.getCurrentCompany().ExecuteNode("onpushnotificationclick", new Object[]{new ScriptBundleWrapper(bundle)});
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}