package com.miraclegarden.smsmessage.xposed.hook;

import com.miraclegarden.smsmessage.xposed.HookBridge;

import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.callbacks.XC_LoadPackage;

/**
 * Suncorp Bank — Kotlin 原生 App。
 * 逆向结论：au.com.suncorp.marketplace.base.application.SuncorpMessagingService#onMessageReceived
 */
public final class SuncorpBankMessageHook {

    private static final String MESSAGING_SERVICE =
            "au.com.suncorp.marketplace.base.application.SuncorpMessagingService";

    private SuncorpBankMessageHook() {
    }

    public static void install(XC_LoadPackage.LoadPackageParam lpparam) {
        BankHookHelper.hookFcmService(lpparam, MESSAGING_SERVICE, HookBridge.SOURCE_XPOSED_SUNCORP);
        BankNotificationHook.install(lpparam, HookBridge.SOURCE_XPOSED_SUNCORP_NOTIFY);
        XposedBridge.log("notiMessageHook/Suncorp installed for " + lpparam.packageName);
    }
}
