如何在 IBM MobileFirst 中禁用 WLTrusteerInternal.init

How to disable WLTrusteerInternal.init in IBM MobileFirst

是否有任何配置或方法可以禁用 MFP 的 WLTrusteerInternal.init() 例程?

我在 MFP 7.1 上有一个 adroid 应用程序。为了灵活性,我想使用 phone_gap 插件而不是 MFP 的 WLTrusteerInternal class 来编写我的受托者代码。但是,MFP 似乎每次在 Lib 文件夹中找到 Trusteer SDK 时都会尝试自动初始化 SDK。

07-28 23:25:13.201 24643-24643/com.sampleapp D/ResourcesManager: creating new AssetManager and set to /data/app/com.sampleapp-2/base.apk
07-28 23:25:13.421 24643-24671/com.sampleapp W/WLClient: WLClient.createInstance in WLClient.java:225 :: You should pass a context that is assignable from the Activity class. WLClient instance may be used to start an activity.
07-28 23:25:13.801 24643-24671/com.sampleapp I/com.worklight.common.WLTrusteer: WLTrusteer.checkTrusteerSDK in WLTrusteer.java:127 :: Trusteer SDK found.
07-28 23:25:13.821 24643-24643/com.sampleapp I/TAZ: libtaz for arm
07-28 23:25:13.911 24643-24643/com.sampleapp I/TAZ: [INFO ] Creating TSSVM sigfile header
07-28 23:25:13.911 24643-24643/com.sampleapp I/TAZ: [INFO ] Creating TSSVM sigfile header
07-28 23:25:13.911 24643-24643/com.sampleapp I/TAZ: [INFO ] Creating TSSVM sigfile header
07-28 23:25:13.921 24643-24643/com.sampleapp I/TAZ: [INFO ] Creating TSSVM sigfile header
07-28 23:25:13.921 24643-24643/com.sampleapp I/TAZ: [INFO ] TAS Version <4.1.31>
07-28 23:25:13.921 24643-24671/com.sampleapp E/com.worklight.common.internal.WLTrusteerInternal: WLTrusteerInternal.init in WLTrusteerInternal.java:61 :: TasInitialize() failed. Invalid or missing license.
07-28 23:25:13.931 24643-24671/com.sampleapp D/wl.splashscreen: WLSplashScreen.show in WLSplashScreen.java:64 :: Showing Splash Screen

我试图从 android/native/res/xml/config.xml 中注释掉 Trusteer 插件,但它仍然尝试过初始化受托人。

<!--<feature name="WLTrusteer">
    <param name="android-package" value="com.worklight.androidgap.plugin.WLTrusteerPlugin" />
</feature> -->

目前无法。 Trusteer 初始化内置于 MobileFirst 客户端框架初始化代码中。

您可以打开功能请求来更改此行为:https://mobilefirstplatform.ibmcloud.com/help/

但是请注意,在最近发布的 MobileFirst Foundation 8.0 中,您现在可以自由地做任何您想做的事情。了解有关 v8.0 的更多信息:https://mobilefirstplatform.ibmcloud.com