LSPosed / LSPatch

LSPatch: A non-root Xposed framework extending from LSPosed
GNU General Public License v3.0
7.09k stars 755 forks source link

[Bug] App patched by manager can't load module randomly (local mode, 本地模式) #266

Closed dev-techmoe closed 11 months ago

dev-techmoe commented 11 months ago

Steps to reproduce/复现步骤

OS: MIUI 14.0.25 (Based on Android 13) non-rooted

  1. Download Bilibili APP 7.50.0 wandoujia link
  2. Download and install latest LSPatch manager (0.5.1), and enable Shizuku
  3. Patch Bilibili app using local mode (本地模式)
  4. Install apk
  5. Go to MIUI system setting and find out LSPatch app, enable the auto-startup permission and set battery-save mode to unlimited

Expected behaviour/预期行为

APP and module working normally

Actual behaviour/实际行为

Module can load randomly (kill patched bilibili app and reopen more times, BiliRoaming module can't be loaded sometimes) and no any notification or logs.

Xposed Module List/Xposed 模块列表

https://github.com/yujincheng08/BiliRoaming/releases/tag/v1.7.0 v1.7.0

LSPatch version/LSPatch 版本

0.5.1

Android version/Android 版本

Android 13 (MIUI 14.0.25) non-rooted

Shizuku version/Shizuku 版本

13.5, adb mode

Version requirement/版本要求

Apk file/Apk 文件

No response

Logs/日志

N/A

Howard20181 commented 11 months ago

Screenshot_2023-11-23-16-01-46-279_com.miui.securitycenter-edit.jpg

dev-techmoe commented 11 months ago

Screenshot_2023-11-23-16-01-46-279_com.miui.securitycenter-edit.jpg

给这个权限之后测试了一下问题依旧,复现非常稳定

Howard20181 commented 11 months ago

Screenshot_2023-11-23-16-01-46-279_com.miui.securitycenter-edit.jpg

给这个权限之后测试了一下问题依旧,复现非常稳定

adb logcat 获取日志发一下

dev-techmoe commented 11 months ago
# logcat | grep lsposed | tee lsposed.log
11-23 17:24:36.453 21148 21148 E LSPosed : java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List org.lsposed.lspd.core.ApplicationServiceClient.getModulesList()' on a null object reference
11-23 17:24:36.453 21148 21148 E LSPosed :  at org.lsposed.lspd.core.Startup.bootstrapXposed(Startup.java:68)
11-23 17:24:36.453 21148 21148 E LSPosed :  at org.lsposed.lspatch.loader.LSPApplication.onLoad(LSPApplication.java:90)
11-23 17:24:36.453 21148 21148 E LSPosed :  at org.lsposed.lspatch.metaloader.LSPAppComponentFactoryStub.<clinit>(Unknown Source:370)
11-23 17:24:37.044 21148 21191 E LSPosed : java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.IBinder org.lsposed.lspd.core.ApplicationServiceClient.requestModuleBinder(java.lang.String)' on a null object reference
11-23 17:24:37.044 21148 21191 E LSPosed :  at org.lsposed.lspd.hooker.LoadedApkGetCLHooker.afterHookedMethod(LoadedApkGetCLHooker.java:90)
11-23 17:24:37.380 21148 21380 E LSPosed : java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.IBinder org.lsposed.lspd.core.ApplicationServiceClient.requestModuleBinder(java.lang.String)' on a null object reference
11-23 17:24:37.380 21148 21380 E LSPosed :  at org.lsposed.lspd.hooker.LoadedApkGetCLHooker.afterHookedMethod(LoadedApkGetCLHooker.java:90)
11-23 17:24:37.390 21148 21380 E LSPosed : java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.IBinder org.lsposed.lspd.core.ApplicationServiceClient.requestModuleBinder(java.lang.String)' on a null object reference
11-23 17:24:37.390 21148 21380 E LSPosed :  at org.lsposed.lspd.hooker.LoadedApkGetCLHooker.afterHookedMethod(LoadedApkGetCLHooker.java:90)
11-23 17:24:40.297 21659 21659 E LSPosed : java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List org.lsposed.lspd.core.ApplicationServiceClient.getModulesList()' on a null object reference
11-23 17:24:40.297 21659 21659 E LSPosed :  at org.lsposed.lspd.core.Startup.bootstrapXposed(Startup.java:68)
11-23 17:24:40.297 21659 21659 E LSPosed :  at org.lsposed.lspatch.loader.LSPApplication.onLoad(LSPApplication.java:90)
11-23 17:24:40.297 21659 21659 E LSPosed :  at org.lsposed.lspatch.metaloader.LSPAppComponentFactoryStub.<clinit>(Unknown Source:370)

启动bilibili时一直在报这个,如果需要全部日志我得晚些时候再提供 @Howard20181

Howard20181 commented 11 months ago

这个时候管理器确定在后台运行吗?

dev-techmoe commented 11 months ago

这个时候管理器确定在后台运行吗?

我觉得只要MIUI不犯病应该是在的。

Howard20181 commented 11 months ago

不对旧版本提供支持

dev-techmoe commented 11 months ago

😂不好意思是我的疏忽,我看错了release的日期,还以为release就是顶端版本输出的。

换了action输出的就没问题了。

感谢您的耐心指导。