public static final String BINDER_NAME = "HardwareManager";
private final WeakReference<Context> mReference;
public HardwareBinder(Context context) {
mReference = new WeakReference<>(context);
}
public static void register(Context context) {
RePlugin.registerPluginBinder(HardwareBinder.BINDER_NAME, new HardwareBinder(context));
插件中registerPluginBinder:
复现问题步骤
其它重要信息 Other important information
replugin-host-lib/gradle Version: 2.3.2 rePlugin-plugin-lib/gradle Version: 2.3.2
Logcat上下文 Logcat context
2021-12-16 10:11:15.294 3042-3139/? W/libEGL: EGLNativeWindowType 0xeb36a008 disconnect failed 2021-12-16 10:11:16.103 3042-3042/? D/HwAppInnerBoostImpl: asyncReportData com.sgcc.pda.hardwaretest,2,1,1,0 interval=113 2021-12-16 10:11:16.154 3042-3042/? W/RePlugin.PluginFastInstallPr: install: Already loaded, no need to install. pi=PInfo { <hw:220(4)> [BUILTIN] [DEX_EXTRACTED] [RUNNING] processes=[com.sgcc.pda.hardwaretest] js={ver=220, verv=2814792716779740, type=2, path=plugins/hw.jar, high=10, frm_ver=4, low=10, pkgname=com.sgcc.pda.hw, name=hw, ali=hw} dex=/data/user/0/com.sgcc.pda.hardwaretest/app_plugins_v3/oat/arm/hw-10-10-220.odex nlib=/data/user/0/com.sgcc.pda.hardwaretest/app_plugins_v3_libs/hw-10-10-220 } 2021-12-16 10:11:16.155 3042-3042/? D/RePlugin.ws001: query: name=hw binder=HardwareManager 2021-12-16 10:11:16.156 3042-3042/? D/RePlugin.ws001: PStatusC.getStatus(): ps is null. pn=hw 2021-12-16 10:11:16.156 3042-3042/? I/RePlugin.ws000: loadLocked(): Initialized, is loaded = true 2021-12-16 10:11:16.179 3042-3042/? V/AudioManager: playSoundEffect effectType: 0 2021-12-16 10:11:16.179 3042-3042/? V/AudioManager: querySoundEffectsEnabled... 2021-12-16 10:11:16.192 3042-3042/? D/HwAppInnerBoostImpl: asyncReportData com.sgcc.pda.hardwaretest,2,2,1,4 interval=203 2021-12-16 10:11:16.211 3042-3139/? D/OpenGLRenderer: HWUI Binary is enabled 2021-12-16 10:11:16.211 3042-3139/? D/OpenGLRenderer: disableOutlineDraw is true 2021-12-16 10:11:16.256 3042-3139/? D/mali_winsys: EGLint new_window_surface(egl_winsys_display , void , EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 2021-12-16 10:11:16.257 3042-3139/? D/OpenGLRenderer: HWUI Binary is enabled 2021-12-16 10:11:16.258 3042-3139/? D/OpenGLRenderer: disableOutlineDraw is true 2021-12-16 10:11:16.365 3042-3042/? D/HwAppInnerBoostImpl: asyncReportData com.sgcc.pda.hardwaretest,2,1,2,0 interval=375 2021-12-16 10:11:18.192 3042-3139/? W/libEGL: EGLNativeWindowType 0xeb36a008 disconnect failed