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;

/**
 * Up Bank — React Native + 原生 FCM HandlerService。
 * 逆向结论：au.com.up.money.notifications.HandlerService#onMessageReceived(RemoteMessage)
 */
public final class UpBankMessageHook {

    private static final String HANDLER_SERVICE = "au.com.up.money.notifications.HandlerService";

    private UpBankMessageHook() {
    }

    public static void install(XC_LoadPackage.LoadPackageParam lpparam) {
        BankHookHelper.hookFcmService(lpparam, HANDLER_SERVICE, HookBridge.SOURCE_XPOSED_UP);
        BankNotificationHook.install(lpparam, HookBridge.SOURCE_XPOSED_UP_NOTIFY);
        XposedBridge.log("notiMessageHook/Up installed for " + lpparam.packageName);
    }
}
