JingMatrix / LSPosed

LSPosed Framework resuscitated
https://lsposed.org
GNU General Public License v3.0
1.99k stars 57 forks source link

Lsposed not working (not detected and no notification) #53

Closed spidermodders closed 1 month ago

spidermodders commented 1 month ago

Steps to reproduce/复现步骤

1: Root your phone with Magisk 2: Install a magisk fork named KitsuneMask to prevent root from being detected 3: Flash the latest ci build 4: Restart the phone and see that it is not working

Expected behaviour/预期行为

Lsposed manager should detect Lsposed and I should get a notification.

Actual behaviour/实际行为

Lsposed is not detected and there is no notification

Xposed Module List/Xposed 模块列表

HideMyAppList
CaptureSposed

Magisk Module List/Magisk 模块列表

KnoxPatch enhancer,
Magisk bootloop protector,
Play integrity fix,
Zygisk-Lsposed (v.1.10.1 (7106))

LSPosed version/LSPosed 版本

v.1.10.1 (7106)

Android version/Android 版本

Android 14

Magisk version/Magisk 版本

27001

Riru version/Riru 版本

N/A

Version requirement/版本要求

Logs/日志

magisk_log_2024-10-01T16.05.39.log

JingMatrix commented 1 month ago

Please upload new logs since your screen is on after reboot:

adb logcat -s AndroidRuntime LSPosed  LSPosed-Bridge LSPlant LSPosedContext zygisk64 LSPlt Dobby LSPosedService '*:F'
spidermodders commented 1 month ago

boot-log-2024-10-02_06:06:57.txt If that does help, I also flashed a custom kernel on my android device: https://github.com/fei-ke/android_kernel_samsung_sm8550

JingMatrix commented 1 month ago

Did you ever try rooting your phone without that custom kernel? (Since you are not using KernelSU, I don't see why it would be helpful.) It seems the log is a bit incomplete, I didn't the the part related to Magisk, maybe you run the adb command a bit late.

spidermodders commented 1 month ago

Yes my phone was rooted with the stock kernel before and LsPosed used to work fine, but I had huge performance issues and battery draining issues because the stock kernel had security features (proca, vaultkeeper etc) enabled. Apps kept crashing randomly and sometimes root stopped working. This is why I flashed the custom kernel and for whatever reason Lsposed stopped working.

Regarding the logs, I made a .sh script which saves the logs upon boot and starts logging after about 20 seconds, should I set the timeout time higher? As for myself the only errors I could find where: 10-02 06:06:40.623 2695 2695 W LSPosed : Fail to get binder for system server 10-02 06:06:40.624 2695 2695 F LSPosed : Failed to get system server binder, system server initialization failed. Appreciate your time and response 🙏

JingMatrix commented 1 month ago

Please upload new logs since your screen is on after reboot:

Please simply follow this advice, run adb through a cable connected to your PC.

Yes my phone was rooted with the stock kernel before and LsPosed used to work fine

Let us see the complete log first. If I couldn't find a reasonable solution, then it is still acceptable since I am not responsible to take care of your changes of kernels.

spidermodders commented 1 month ago

For sure! Apologies for the late response, here is my full log using adb on a computer while my phone is connected to it via usb: https://pastebin.com/QcN0LTXB If there is anything missing you can let me know

JingMatrix commented 1 month ago

My bad, I forget the tags for Magisk and so on, please provides logs with following tags included:

adb logcat -s Magisk lspd nativeloader AndroidRuntime LSPosed  LSPosed-Bridge LSPlant LSPosedContext zygisk64 LSPlt Dobby LSPosedService '*:F'

But it is very strange that I didn't see any lines of LSPosedService in your log, please ensure that you used the exact command given above. If possible, provide also your logs from the Magisk app.

spidermodders commented 1 month ago

No worries, here is the logs with the corrected tags included: log.txt

spidermodders commented 1 month ago

And here is the magisk log: magisk_log_2024-10-02T18.25.23.log

JingMatrix commented 1 month ago

It seems that the LSPosed daemon is not correctly loaded by Magisk. Could you please try use the official canary build of Magisk ? Or other root solution such as APatch and KernelSU?

spidermodders commented 1 month ago

Great news, you where absolutely right, I have now downloaded and flashed the Canary Build of magisk and LsPosed is working just fine now. At first I had a problem at hiding root because Magisk has removed MagiskHide (unlike KitsuneMask) but I found a module called zgysk assistant which does hide root and allows me to use banking apps just fine!

Thank you very much for your help and time, Best regards