[Xposed General] coolman7:
I have modified an this old xposed module and compiled into APK. I can run this newly build APK with magisk and xposed on android 6 and 7, and it works as expected.

LeEco Infrared Fix | Xposed Module Repository

repo.xposed.info

On android 9, I tried to run same APK with magisk and lsposed and give System Framework permission to this module, lsposed crashes. If I don't give this permission to module, module does not work as expected.

These are the logs that I grab from logcat. What could be the problem? How can I solve?

Thanks

06-17 10:46:06.216 1100 1100 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:1611 at.zweng.xposed.lepro3infrared.InfraredMagic.bindQuickSetService:96 at.zweng.xposed.lepro3infrared.MethodHooks$6.beforeHookedMethod:101 de.robv.android.xposed.XposedBridge$AdditionalHookInfo.callback:79 LSPHooker_.halOpen:5
06-17 10:46:06.217 1100 1100 W ActivityManager: Unable to start service Intent { act=com.uei.control.IControl cmp=com.uei.quicksetsdk.letvitwo/com.uei.control.Service } U=0: not found
06-17 10:46:06.218 1100 1100 E System : ******************************************
06-17 10:46:06.218 1100 1100 E System : ************ Failure starting core service
06-17 10:46:06.218 1100 1100 E System : java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Boolean
06-17 10:46:06.218 1100 1100 E System : at LSPHooker_.halOpen(Unknown Source:9)
06-17 10:46:06.218 1100 1100 E System : at com.android.server.ConsumerIrService.<init>(ConsumerIrService.java:50)
06-17 10:46:06.218 1100 1100 E System : at java.lang.reflect.Method.invoke(Native Method)
06-17 10:46:06.218 1100 1100 E System : at org.lsposed.lspd.nativebridge.HookBridge.invokeOriginalMethod(Native Method)
06-17 10:46:06.218 1100 1100 E System : at de.robv.android.xposed.XposedBridge$AdditionalHookInfo.callback(Unknown Source:110)
06-17 10:46:06.218 1100 1100 E System : at LSPHooker_.constructor(Unknown Source:11)
06-17 10:46:06.218 1100 1100 E System : at com.android.server.SystemServer.startOtherServices(SystemServer.java:876)
06-17 10:46:06.218 1100 1100 E System : at com.android.server.SystemServer.run(SystemServer.java:457)
06-17 10:46:06.218 1100 1100 E System : at com.android.server.SystemServer.main(SystemServer.java:303)
06-17 10:46:06.218 1100 1100 E System : at java.lang.reflect.Method.invoke(Native Method)
06-17 10:46:06.218 1100 1100 E System : at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)
06-17 10:46:06.218 1100 1100 E System : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:838)
06-17 10:46:06.218 1100 1100 I SystemServer: StartInputMethodManagerLifecycle
06-17 10:46:06.218 1100 1100 I SystemServiceManager: Starting com.android.server.InputMethodManagerService$Lifecycle
06-17 10:46:06.231 1100 1100 D SystemServerTiming: StartInputMethodManagerLifecycle took to complete: 12ms
06-17 10:46:06.231 1100 1100 I SystemServer: StartAccessibilityManagerService
06-17 10:46:06.238 1100 1100 D SystemServerTiming: StartAccessibilityManagerService took to complete: 6ms
06-17 10:46:06.238 1100 1100 I SystemServer: MakeDisplayReady
06-17 10:46:06.238 1100 1100 W SystemServer: ***********************************************
06-17 10:46:06.239 1100 1100 E SystemServer: BOOT FAILURE making display ready
06-17 10:46:06.239 1100 1100 E SystemServer: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.server.wm.WindowManagerService.displayReady()' on a null object reference
06-17 10:46:06.239 1100 1100 E SystemServer: at com.android.server.SystemServer.startOtherServices(SystemServer.java:1000)
06-17 10:46:06.239 1100 1100 E SystemServer: at com.android.server.SystemServer.run(SystemServer.java:457)
06-17 10:46:06.239 1100 1100 E SystemServer: at com.android.server.SystemServer.main(SystemServer.java:303)
06-17 10:46:06.239 1100 1100 E SystemServer: at java.lang.reflect.Method.invoke(Native Method)
06-17 10:46:06.239 1100 1100 E SystemServer: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)
06-17 10:46:06.239 1100 1100 E SystemServer: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:838)
06-17 10:46:06.240 1100 1100 D SystemServerTiming: MakeDisplayReady took to complete: 2ms
06-17 10:46:06.240 1100 1100 I SystemServer: StartStorageManagerService
06-17 10:46:06.241 1100 1100 I SystemServiceManager: Starting com.android.server.StorageManagerService$Lifecycle
06-17 10:46:06.255 1100 2657 D StorageManagerService: Thinking about init, mSystemReady=false, mDaemonConnected=true
06-17 10:46:06.255 1100 1100 D SystemServerTiming: StartStorageManagerService took to complete: 15ms
06-17 10:46:06.255 1100 1100 I SystemServer: StartStorageStatsService
06-17 10:46:06.255 1100 1100 I SystemServiceManager: Starting com.android.server.usage.StorageStatsService$Lifecycle
06-17 10:46:06.256 1100 2657 D StorageManagerService: Thinking about reset, mSystemReady=false, mDaemonConnected=true