导航菜单

页面标题

页面副标题

Minits v4.9.3.32 - NfcReceiverActivity.java 源代码

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

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


package com.xone.android.nfc;

import K9.l;
import android.app.Activity;
import android.content.ComponentCallbacks2;
import android.content.Context;
import android.content.Intent;
import android.nfc.Tag;
import android.os.Bundle;
import android.text.TextUtils;
import com.xone.android.nfc.runtimeobjects.NfcTagScriptWrapper;
import com.xone.android.utils.Utils;
import com.xone.interfaces.IXoneApp;
import com.xone.interfaces.IXoneObject;
import fb.AbstractC0698k;
import ua.F;
import ua.InterfaceC1038m0;

public final class NfcReceiverActivity extends Activity {
    public IXoneApp a(Tag tag) {
        InterfaceC1038m0 interfaceC1038m0 = (InterfaceC1038m0) getApplicationContext();
        IXoneApp G0 = interfaceC1038m0.G0();
        if (G0 != null) {
            return G0;
        }
        Intent launchIntentForPackage = interfaceC1038m0.getPackageManager().getLaunchIntentForPackage(interfaceC1038m0.getPackageName());
        if (launchIntentForPackage == null) {
            Utils.l("XOneAndroidFramework", "NfcReceiverActivity.runAppIfDead(): Cannot find launch intent. Aborting.");
            return null;
        }
        launchIntentForPackage.setFlags(268435456);
        launchIntentForPackage.addFlags(32768);
        launchIntentForPackage.putExtra("executeOnRecovery", true);
        launchIntentForPackage.putExtra("executeOnMessage", false);
        launchIntentForPackage.putExtra("nfcTag", tag);
        interfaceC1038m0.startActivity(launchIntentForPackage);
        return null;
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        try {
            try {
                Intent intent = getIntent();
                if (!TextUtils.equals(AbstractC0698k.a(intent), "android.nfc.action.NDEF_DISCOVERED")) {
                    finish();
                    return;
                }
                Tag tag = (Tag) intent.getParcelableExtra("android.nfc.extra.TAG");
                if (tag == null) {
                    finish();
                    return;
                }
                IXoneApp a = a(tag);
                if (a == null) {
                    finish();
                    return;
                }
                Context applicationContext = getApplicationContext();
                InterfaceC1038m0 interfaceC1038m0 = (InterfaceC1038m0) applicationContext;
                NfcTagScriptWrapper nfcTagScriptWrapper = new NfcTagScriptWrapper(applicationContext, a, tag);
                IXoneObject currentCompany = a.getCurrentCompany();
                if (currentCompany == null) {
                    finish();
                } else {
                    new l(interfaceC1038m0, currentCompany, false, "onnfctagdiscovered", nfcTagScriptWrapper).runSeriallyAsyncTask();
                    finish();
                }
            } catch (Exception e) {
                ComponentCallbacks2 I0 = ((InterfaceC1038m0) getApplicationContext()).I0();
                if (I0 instanceof F) {
                    ((F) I0).b(e);
                    finish();
                } else {
                    e.printStackTrace();
                    finish();
                }
            }
        } catch (Throwable th) {
            finish();
            throw th;
        }
    }
}