正在查看: Minits v4.9.3.32 应用的 PushNotificationActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Minits v4.9.3.32 应用的 PushNotificationActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.xone.android.push;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.fragment.app.j;
import com.xone.android.javascript.ScriptBundleWrapper;
import com.xone.android.utils.Utils;
import com.xone.interfaces.IXoneApp;
import ua.InterfaceC1038m0;
public final class PushNotificationActivity extends j {
public static IXoneApp h0(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;
}
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
Intent intent = getIntent();
if (intent == null) {
finish();
return;
}
Intent intent2 = (Intent) intent.getParcelableExtra("push_server_intent");
if (intent2 == null) {
finish();
return;
}
Bundle extras = intent2.getExtras();
if (extras == null) {
finish();
return;
}
Bundle bundle2 = new Bundle(extras);
bundle2.remove("from");
bundle2.remove("android.support.content.wakelockid");
bundle2.remove("collapse_key");
bundle2.remove("source");
IXoneApp h0 = h0(this, bundle2);
if (h0 == null) {
finish();
return;
}
try {
h0.getCurrentCompany().ExecuteNode("onpushnotificationclick", new Object[]{new ScriptBundleWrapper(bundle2)});
} catch (Exception e) {
e.printStackTrace();
}
finish();
}
}