Closed AllenChangMusic closed 7 months ago
I don't have a Google Pixel and Android 14 QPR3 was not released as an AVD image so I can't reproduce the issue.
same issue as https://github.com/LSPosed/LSPosed/issues/2869
Here's the relevant section of the log:
[ 2024-02-13T12:25:59.101 2000: 6979: 6979 I/LSPosed ] Loaded manager, skipping next steps
[ 2024-02-13T12:25:59.101 2000: 6979: 6979 D/LSPosed ] magisk_loader.cpp:220#void lspd::MagiskLoader::OnNativeForkAndSpecializePost(JNIEnv *, jstring, jstring): injected xposed into com.android.shell
[ 2024-02-13T12:25:59.127 2000: 6979: 6979 D/LSPosed ] ActivityThread#handleBindApplication() starts: pkg=null, prc=null
[ 2024-02-13T12:25:59.132 2000: 6979: 6979 V/LSPlant ] class.hpp:53#auto lsplant::art::mirror::Class::BackupClassMethods(const dex::ClassDef *, art::Thread *)::(anonymous class)::operator()(const auto &) const [it:auto = std::pair<const lsplant::art::dex::ClassDef *const, phmap::flat_hash_set<lsplant::art::ArtMethod *, phmap::priv::HashEq<lsplant::art::ArtMethod *>::Hash, phmap::priv::HashEq<lsplant::art::ArtMethod *>::Eq>>]: Backup deoptimized method 0x788016d030 because of initialization
[ 2024-02-13T12:25:59.132 2000: 6979: 6979 V/LSPlant ] class_linker.hpp:85#static auto lsplant::art::ClassLinker::RestoreBackup(const dex::ClassDef *, art::Thread *): re-deoptimize for 0x788016d030
[ 2024-02-13T12:25:59.132 2000: 6979: 6979 V/LSPlant ] class_linker.hpp:196#static bool lsplant::art::ClassLinker::SetEntryPointsToInterpreter(ArtMethod *): deoptimize method android.webkit.WebViewFactoryProvider android.webkit.WebViewFactory.getProvider() from 0x727277e0 to 0x7957d55710
[ 2024-02-13T12:25:59.153 2000: 6979: 6979 W/LSPosed ] Could not send binder to LSPosed Manager
CyByFuCaoo.l.WtNhgm.fS.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: org.lsposed.manager.Constants
at CyByFuCaoo.l.WtNhgm.fS.XposedHelpers.findClass(XposedHelpers.java:207)
at org.lsposed.lspd.util.ParasiticManagerHooker.sendBinderToManager(ParasiticManagerHooker.java:94)
at org.lsposed.lspd.util.ParasiticManagerHooker.-$$Nest$smsendBinderToManager(Unknown Source:0)
at org.lsposed.lspd.util.ParasiticManagerHooker$2.afterHookedMethod(ParasiticManagerHooker.java:126)
at CyByFuCaoo.l.WtNhgm.fS.XposedBridge$LegacyApiSupport.handleAfter(XposedBridge.java:430)
at org.lsposed.lspd.impl.LSPosedBridge$NativeHooker.callback(LSPosedBridge.java:192)
at LSPHooker_.getClassLoader(Unknown Source:8)
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1443)
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1399)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7283)
at java.lang.reflect.Method.invoke(Native Method)
at iBAY.OjDTh.xYlBKQDHmG.PPyQ.PQ.HookBridge.invokeOriginalMethod(Native Method)
at org.lsposed.lspd.impl.LSPosedBridge$NativeHooker.callback(LSPosedBridge.java:158)
at LSPHooker_.handleBindApplication(Unknown Source:11)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2348)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8516)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
Caused by: java.lang.ClassNotFoundException: org.lsposed.manager.Constants
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:536)
at org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:532)
at CyByFuCaoo.l.WtNhgm.fS.XposedHelpers.findClass(XposedHelpers.java:205)
... 22 more
Caused by: java.lang.ClassNotFoundException: org.lsposed.manager.Constants
... 26 more
[ 2024-02-13T12:25:59.156 2000: 6979: 6979 E/AndroidRuntime ] FATAL EXCEPTION: main
Process: com.android.shell, PID: 6979
java.lang.RuntimeException: Unable to instantiate application org.lsposed.manager.App package com.android.shell: java.lang.ClassNotFoundException: Didn't find class "org.lsposed.manager.App" on path: DexPathList[[],nativeLibraryDirectories=[/system/priv-app/Shell/lib/arm64, /system/lib64, /system_ext/lib64]]
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1474)
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1399)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7283)
at java.lang.reflect.Method.invoke(Native Method)
at iBAY.OjDTh.xYlBKQDHmG.PPyQ.PQ.HookBridge.invokeOriginalMethod(Native Method)
at org.lsposed.lspd.impl.LSPosedBridge$NativeHooker.callback(LSPosedBridge.java:158)
at LSPHooker_.handleBindApplication(Unknown Source:11)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2348)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8516)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.lsposed.manager.App" on path: DexPathList[[],nativeLibraryDirectories=[/system/priv-app/Shell/lib/arm64, /system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76)
at android.app.Instrumentation.newApplication(Instrumentation.java:1345)
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1467)
... 15 more
@Hana2736 could you try installing the manager and see if you have the same issue?
as root you can execute this command pm install /data/adb/modules/zygisk_lsposed/manager.apk
Still no luck after installing the apk thru the shell and rebooting. Log remains the same as above.
did you start the manager from the notification or by clicking on the icon of the installed app?
I've tried the app, dialer code, and persistent notification. Edited the log in my previous comment to use the debug build. That log is from just tapping the persistent notification.
This was a persistent issue before, every so often with the updates, the main lsposed repo needed to change a reference to allow it to work. Something about how it was hard coded and updates would occasionally break it. Wonder if referring back to those changes would help. UpsideDownCake I think is A14, so you're on an older version compared to QPR3.
yeah they changed something specifically for qpr3 because it worked fine on qpr1 and the base Android 14
I had to put in a bug report for QRP2 and QPR1 though in the original repo It breaks every so often, but I recall A14 main stream didn't have issues, it did have issues during the beta process tho
For what it's worth A15 DP1 is out with images, it doesn't work either, so that might be a good place to test?
UPDATE: @mywalkb on A15 DP1, lsposed apps don't even work, it's not even the manager not opening! And hooked apps themselves won't open anymore
Is there a way to enable/disable modules by a command line or a file? It seems like that modules enabled before the update still work, just the manager is broken.
@Hana2736 unsure of what xposed modules you use but in my case dreamland worked https://github.com/canyie/Dreamland?tab=readme-ov-file you can give it a try I am using Pixel 8 QPR3 and recently also tried dreamland latest canary with android 15 DP1 works well for me
Is there a way to enable/disable modules by a command line or a file? It seems like that modules enabled before the update still work, just the manager is broken.
this will require magisk for the cli enablement it is there in this mod however i was using KSU which is why switched to dreamland
UPDATE: @mywalkb on A15 DP1, lsposed apps don't even work, it's not even the manager not opening! And hooked apps themselves won't open anymore
libart.so is now stripped so LSPlant can't find symbols. Maybe 14 QRP3 has the same issue. In your verbose log in /data/adb/lsp/log you should see something like this:
[ 2024-02-17T11:56:41.637 2000: 3917: 3917 D/LSPosed ] elf_util.cpp:261#bool SandHook::ElfImg::findModuleBase(): found: 74f64b600000-74f64b797000 r--p 00000000 fe:0b 49 /apex/com.android.art/lib64/libart.so
[ 2024-02-17T11:56:41.637 2000: 3917: 3917 D/LSPosed ] elf_util.cpp:267#bool SandHook::ElfImg::findModuleBase(): update path: /apex/com.android.art/lib64/libart.so
[ 2024-02-17T11:56:41.637 2000: 3917: 3917 D/LSPosed ] elf_util.cpp:287#bool SandHook::ElfImg::findModuleBase(): get module base /apex/com.android.art/lib64/libart.so: 0x74f64b600000
[ 2024-02-17T11:56:41.637 2000: 3917: 3917 E/LSPlant ] Failed to find GetMethodShorty
[ 2024-02-17T11:56:41.637 2000: 3917: 3917 E/LSPlant ] Failed to init art method
[ 2024-02-17T11:56:41.637 2000: 3917: 3917 E/LSPosed ] Failed to init lsplant
[ 2024-02-17T11:56:41.637 2000: 3917: 3917 D/LSPosed ] resources_hook.cpp:56#std::string lspd::GetXResourcesClassName(): lhc/fikJPSmCzPNkib/lv/g/ources
[ 2024-02-17T11:56:41.638 2000: 3917: 3917 D/LSPosed ] magisk_loader.cpp:216#void lspd::MagiskLoader::OnNativeForkAndSpecializePost(JNIEnv *, jstring, jstring): Done prepare
[ 2024-02-17T11:56:41.642 0: 525: 576 D/LSPosedService ] LSPApplicationService.onTransact: code=1598968902
Is there a way to enable/disable modules by a command line or a file? It seems like that modules enabled before the update still work, just the manager is broken.
Yes there is /data/adb/lspd/bin/cli but must be enabled from the gui. Unfortunately without a manager available the only way is to act on the LSPosed database, with a sqlite3 client on db /data/adb/lspd/config/modules_config.db just execute this sql commands:
INSERT OR REPLACE INTO configs VALUES('lspd',0,'config','enable_cli',X'aced0005737200116a6176612e6c616e672e426f6f6c65616ecd207280d59cfaee0200015a000576616c7565787001');
INSERT OR REPLACE INTO configs VALUES('lspd',0,'config','cli_session_timeout',X'aced0005737200116a6176612e6c616e672e496e746567657212e2a0a4f781873802000149000576616c7565787200106a6176612e6c616e672e4e756d62657286ac951d0b94e08b0200007870fffffffe');
and reboot.
Here there is a wiki with all options available.
so that might be a good place to test?
I'm working on it....
Would libart.so being stripped cause both manager not being able to open, but also Lsposed itself not working? Manager didn't work in A14 QPR3 but Lsposed did for modules already activated Neither work in A15 DP1
Would libart.so being stripped cause both manager not being able to open, but also Lsposed itself not working?
With stripped libart.so lsplant doesn't work correctly. LSPlant manage the hooks, so no hooks nothing is working. LSPosed is useless without lsplant. Parasitic manager work with hooks, that's why I asked to try installing the manager.
Manager didn't work in A14 QPR3 but Lsposed did for modules already activated Neither work in A15 DP1
this is different send me yours /apex/com.android.art/lib64/libart.so
so I can check if you have the same issue. Since you're here, send me the /data/adb/lspd/log
directory too.
Here ya go. I only pulled the most recent verbose log, couldn't figure out how to pull the whole folder with root.
I've updated to A15 DP1 btw. Looks like same error you are seeing. I'm also seeing a NullPointerException that is linked to libart.so each time it tries to hook an app, so maybe it's all one common cause?
Is the same issue:
[ 2024-02-17T09:46:56.721 10281: 5772: 5772 D/LSPosed ] elf_util.cpp:287#bool SandHook::ElfImg::findModuleBase(): get module base /apex/com.android.art/lib64/libart.so: 0x7193a00000
[ 2024-02-17T09:46:56.721 10281: 5772: 5772 E/LSPlant ] Failed to find GetMethodShorty
[ 2024-02-17T09:46:56.721 10281: 5772: 5772 E/LSPlant ] Failed to init art method
[ 2024-02-17T09:46:56.721 10281: 5772: 5772 E/LSPosed ] Failed to init lsplant
[ 2024-02-17T09:46:56.721 10281: 5772: 5772 D/LSPosed ] resources_hook.cpp:56#std::string lspd::GetXResourcesClassName(): Zuv/yEzG/f/Mi/p/l/X/T/c/ources
but I don't know why the old modules still work, I admit I don't know everything about LSPosed. Without lsplant hooks it shouldn't work.
couldn't figure out how to pull the whole folder with root.
you can make a tar with command tar cf /sdcard/log.tar /data/adb/lspd/log
and pull tar. It's ok, now we know that the problem on android 15 dp1 is the same as on android 14 QPR3
That's a good start!
Let me know if you want me to device test anything
This was the change they had to make for DP2 last year, not sure if it's a related issue to why the manager not opening. https://github.com/LSPosed/LSPosed/issues/2433
@mywalkb why do we have to re-create LSPlant?
Could we not just replace libart.so with one that isn't stripped down?
@mywalkb why do we have to re-create LSPlant?
where did you read that we need to recreate LSPlant? At the moment I'm improving the elf parse with the analysis of the debugdata header when it exist, now I can get the symbols but it still doesn't work, so I have to understand what has changed.
Could we not just replace libart.so with one that isn't stripped down?
it may have changes introduced by the vendor that are impossible to have and maintain all.
@AllenChangMusic could you send me your /system/framework/framework.jar? I have a strange issue on avd android 15, I'd like understand if you have the same strange behaviour.
@mywalkb framework.zip
Ok you have the same new field isArchived in class PackageItemInfo which is not found. I wanted to let you try a build to see if you had the same problem, but unfortunately the compilation on github fails and I still haven't understood why, I give priority to the main problem, then we'll see what's wrong on github. Now lsplant starts without errors.
Sounds good! If you're able to compile and upload, I'll give it a try. Github compilations do weird things lol
Here a test LSPosed-v1.9.2_mod-7229-zygisk-debug.zip compilation of this branch
@mywalkb it works! Back to QPR3 behavior. Dialer or previous icon will NOT open the manager. Modules work otherwise.
Any idea why manager doesn't work?
it works!
sorry I don't understand, it works but not 100%, so I would say it still doesn't work. What were the improvements with this update?
Any idea why manager doesn't work?
I'm still working on it, I think the issue is the missing isArchived field, I think it concerns the hiddenapi.
So basically modules previously installed and activated work great.
But without manager, would need to go through command line above to enable cli and enable specific modules.
Thanks for the amazing work!
So basically modules previously installed and activated work great.
Wasn't it like this before? At least that's how I seemed to understand it. I haven't tried the CLI on Android 15 yet, so does it work? At least we have a workaround.
No, the modules and apps they were associated with would just hang or crash before on DP1, whereas they would work on QPR3.
Now with the new module, DP1 also has functioning modules.
Manager does not work on either. I have not tried CLI on DP1
No, the modules and apps they were associated with would just hang or crash before on DP1, whereas they would work on QPR3.
Ok, so this patch improve only on DP1 and nothing on QPR3. I hope I can figure out what throws the exception on the missing isArchivied field.
@mywalkb So I tried the pm install /data/adb/modules/zygisk_lsposed/manager.apk command for kicks. It can open manager! BUT it shows LSPosed is not installed. Not sure if that's the same issue you're running into?
So from what I can see, we have 2 issues:
This is the error I captured from logcat when trigger via dialer. Looks like it's a signature error on the apk
failed to open manager apk java.io.IOException: java.io.IOException: apk signature mismatch: CN=mywalkb,OU=mywalkb,O=mywalkb,L=World,ST=World,C=XX at org.lsposed.lspd.util.InstallerVerifier.verifyInstallerSignature(InstallerVerifier.java:28) at org.lsposed.lspd.service.ConfigFileManager.getManagerApk(ConfigFileManager.java:162) at org.lsposed.lspd.service.ConfigManager.getManagerApk(ConfigManager.java:1106) at org.lsposed.lspd.service.LSPApplicationService.requestInjectedManagerBinder(LSPApplicationService.java:161) at org.lsposed.lspd.service.ILSPApplicationService$Stub.onTransact(ILSPApplicationService.java:109) at org.lsposed.lspd.service.LSPApplicationService.onTransact(LSPApplicationService.java:107) at android.os.Binder.execTransactInternal(Binder.java:1500) at android.os.Binder.execTransact(Binder.java:1444) Caused by: java.io.IOException: apk signature mismatch: CN=mywalkb,OU=mywalkb,O=mywalkb,L=World,ST=World,C=XX at org.lsposed.lspd.util.InstallerVerifier.verifyInstallerSignature(InstallerVerifier.java:25) at org.lsposed.lspd.service.ConfigFileManager.getManagerApk(ConfigFileManager.java:162) at org.lsposed.lspd.service.ConfigManager.getManagerApk(ConfigManager.java:1106) at org.lsposed.lspd.service.LSPApplicationService.requestInjectedManagerBinder(LSPApplicationService.java:161) at org.lsposed.lspd.service.ILSPApplicationService$Stub.onTransact(ILSPApplicationService.java:109) at org.lsposed.lspd.service.LSPApplicationService.onTransact(LSPApplicationService.java:107) at android.os.Binder.execTransactInternal(Binder.java:1500) at android.os.Binder.execTransact(Binder.java:1444)
The problematic code: if (!Arrays.equals(mainCert.getEncoded(), CERTIFICATE)) { var dname = mainCert.getSubjectX500Principal().getName(); throw new IOException("apk signature mismatch: " + dname); }
You might just need to re-compile the apk or just remove that check
Capturing the logcat while opening LSPosed manager which shows not installed, here's the log:
2024-02-23 16:27:33.102 1430-2228 ActivityTaskManager system_server I START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.lsposed.manager/.ui.activity.MainActivity bnds=[222,253][409,562]} with LAUNCH_SINGLE_TOP from uid 10241 (BAL_ALLOW_ALLOWLISTED_COMPONENT) result code=0
2024-02-23 16:27:33.103 2176-2204 WindowManagerShell com.android.systemui V Transition requested (#414): android.os.BinderProxy@ce69b7c TransitionRequestInfo { type = OPEN, triggerTask = TaskInfo{userId=0 taskId=4707 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.lsposed.manager/.ui.activity.MainActivity } baseActivity=ComponentInfo{org.lsposed.manager/org.lsposed.manager.ui.activity.MainActivity} topActivity=ComponentInfo{org.lsposed.manager/org.lsposed.manager.ui.activity.MainActivity} origActivity=null realActivity=ComponentInfo{org.lsposed.manager/org.lsposed.manager.ui.activity.MainActivity} numActivities=1 lastActiveTime=21286584 supportsMultiWindow=true resizeMode=1 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{android.window.IWindowContainerToken$Stub$Proxy@f782c05} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=-1 lastParentTaskIdBeforePip=-1 displayCutoutSafeInsets=Rect(0, 113 - 0, 0) topActivityInfo=ActivityInfo{472745a org.lsposed.manager.ui.activity.MainActivity} launchCookies=[android.os.BinderProxy@bcb268b] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=false isVisible=false isVisibleRequested=false isSleeping=false locusId=null displayAreaFeatureId=1 isTopActivityTransparent=false appCompatTaskInfo=AppCompatTaskInfo { topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false isLetterboxDoubleTapEnabled= false topActivityEligibleForUserAspectRatioButton= false topActivityBoundsLetterboxed= false isFromLetterboxDoubleTap= false topActivityLetterboxVerticalPosition= -1 topActivityLetterboxHorizontalPosition= -1 topActivityLetterboxWidth=1008 topActivityLetterboxHeight=2244 isUserFullscreenOverrideEnabled=false isSystemFullscreenOverrideEnabled=false cameraCompatControlState=hidden}}, pipTask = null, remoteTransition = RemoteTransition { remoteTransition = android.window.IRemoteTransition$Stub$Proxy@5bff368, appThread = android.app.IApplicationThread$Stub$Proxy@9548381, debugName = QuickstepLaunch }, displayChange = null, flags = 0, debugId = 414 }
2024-02-23 16:27:33.118 1430-1721 ActivityManager system_server I Start proc 17842:org.lsposed.manager/u0a380 for next-top-activity {org.lsposed.manager/org.lsposed.manager.ui.activity.MainActivity}
2024-02-23 16:27:33.120 1430-2253 CoreBackPreview system_server D Window{949ef91 u0 Splash Screen org.lsposed.manager}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@f0f6793, mPriority=0, mIsAnimationCallback=false}
2024-02-23 16:27:33.123 1430-1695 WindowManager system_server V Sent Transition (#414) createdAt=02-23 16:27:33.091 via request=TransitionRequestInfo { type = OPEN, triggerTask = TaskInfo{userId=0 taskId=4707 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.lsposed.manager/.ui.activity.MainActivity } baseActivity=ComponentInfo{org.lsposed.manager/org.lsposed.manager.ui.activity.MainActivity} topActivity=ComponentInfo{org.lsposed.manager/org.lsposed.manager.ui.activity.MainActivity} origActivity=null realActivity=ComponentInfo{org.lsposed.manager/org.lsposed.manager.ui.activity.MainActivity} numActivities=1 lastActiveTime=21286584 supportsMultiWindow=true resizeMode=1 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{RemoteToken{fbf56ce Task{86ca2a #4707 type=standard A=10380:org.lsposed.manager}}} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=-1 lastParentTaskIdBeforePip=-1 displayCutoutSafeInsets=Rect(0, 113 - 0, 0) topActivityInfo=ActivityInfo{23ee9ef org.lsposed.manager.ui.activity.MainActivity} launchCookies=[android.os.BinderProxy@dea9cfc] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=false isVisible=false isVisibleRequested=false isSleeping=false locusId=null displayAreaFeatureId=1 isTopActivityTransparent=false appCompatTaskInfo=AppCompatTaskInfo { topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false isLetterboxDoubleTapEnabled= false topActivityEligibleForUserAspectRatioButton= false topActivityBoundsLetterboxed= false isFromLetterboxDoubleTap= false topActivityLetterboxVerticalPosition= -1 topActivityLetterboxHorizontalPosition= -1 topActivityLetterboxWidth=1008 topActivityLetterboxHeight=2244 isUserFullscreenOverrideEnabled=false isSystemFullscreenOverrideEnabled=false cameraCompatControlState=hidden}}, pipTask = null, remoteTransition = RemoteTransition { remoteTransition = android.window.IRemoteTransition$Stub$Proxy@fa1cf85, appThread = android.app.IApplicationThread$Stub$Proxy@afe11da, debugName = QuickstepLaunch }, displayChange = null, flags = 0, debugId = 414 }
2024-02-23 16:27:33.123 1430-1695 WindowManager system_server V info={id=414 t=OPEN f=0x0 trk=0 r=[0@Point(0, 0)] c=[
{WCT{RemoteToken{fbf56ce Task{86ca2a #4707 type=standard A=10380:org.lsposed.manager}}} m=OPEN f=NONE leash=Surface(name=Task=4707)/@0x9d013d0 sb=Rect(0, 0 - 1008, 2244) eb=Rect(0, 0 - 1008, 2244) d=0},
{WCT{RemoteToken{8dcd496 Task{bacc0cc #1 type=home}}} m=TO_BACK f=SHOW_WALLPAPER leash=Surface(name=Task=1)/@0x19cea9e sb=Rect(0, 0 - 1008, 2244) eb=Rect(0, 0 - 1008, 2244) d=0}
]}
2024-02-23 16:27:33.132 17842-17842 lsposed.manager pid-17842 I Late-enabling -Xcheck:jni
2024-02-23 16:27:33.145 17842-17842 lsposed.manager pid-17842 I Using CollectorTypeCMC GC.
2024-02-23 16:27:33.149 1430-2253 LSPosed Bridge system_server D onTransact: action=ACTION_GET_BINDER, callingUid=10380, callingPid=17842
2024-02-23 16:27:33.150 865-2075 LSPosedService org.lsposed.daemon D Skipped org.lsposed.manager/10380
2024-02-23 16:27:33.150 17842-17842 LSPosed pid-17842 D magisk_loader.cpp:227#void lspd::MagiskLoader::OnNativeForkAndSpecializePost(JNIEnv , jstring, jstring): skipped org.lsposed.manager
2024-02-23 16:27:33.178 17842-17842 ApplicationLoaders org.lsposed.manager D Returning zygote-cached class loader: /system_ext/framework/androidx.window.extensions.jar
2024-02-23 16:27:33.178 17842-17842 ApplicationLoaders org.lsposed.manager D Returning zygote-cached class loader: /system_ext/framework/androidx.window.sidecar.jar
2024-02-23 16:27:33.179 17842-17842 ziparchive org.lsposed.manager W Unable to open '/data/app/~~X6T2yHNjAMgFElLCiRCPew==/org.lsposed.manager-TxPC4BUXVmptBZlSTme6_w==/base.dm': No such file or directory
2024-02-23 16:27:33.179 17842-17842 ziparchive org.lsposed.manager W Unable to open '/data/app/~~X6T2yHNjAMgFElLCiRCPew==/org.lsposed.manager-TxPC4BUXVmptBZlSTme6_w==/base.dm': No such file or directory
2024-02-23 16:27:33.276 17842-17842 nativeloader org.lsposed.manager D Configuring clns-6 for other apk /data/app/X6T2yHNjAMgFElLCiRCPew==/org.lsposed.manager-TxPC4BUXVmptBZlSTme6_w==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/X6T2yHNjAMgFElLCiRCPew==/org.lsposed.manager-TxPC4BUXVmptBZlSTme6_w==/lib/arm64, permitted_path=/data:/mnt/expand:/data/user/0/org.lsposed.manager
2024-02-23 16:27:33.284 17842-17842 GraphicsEnvironment org.lsposed.manager V Currently set values for:
2024-02-23 16:27:33.284 17842-17842 GraphicsEnvironment org.lsposed.manager V angle_gl_driver_selection_pkgs=[com.android.angle, com.snapchat.android, com.vidku.app.flipgrid]
2024-02-23 16:27:33.284 17842-17842 GraphicsEnvironment org.lsposed.manager V angle_gl_driver_selection_values=[angle, native, native]
2024-02-23 16:27:33.284 17842-17842 GraphicsEnvironment org.lsposed.manager V org.lsposed.manager is not listed in per-application setting
2024-02-23 16:27:33.284 17842-17842 GraphicsEnvironment org.lsposed.manager V Neither updatable production driver nor prerelease driver is supported.
2024-02-23 16:27:33.335 1430-2228 AppsFilter system_server I interaction: PackageSetting{86ae97 org.lsposed.manager/10380} -> PackageSetting{2548884 com.google.android.apps.nexuslauncher/10241} BLOCKED
2024-02-23 16:27:33.336 17842-17862 okhttp.OkHttpClient org.lsposed.manager I --> GET https://api.github.com/repos/mywalkb/LSPosed_mod/releases/latest
2024-02-23 16:27:33.336 17842-17862 okhttp.OkHttpClient org.lsposed.manager I Accept: application/vnd.github.v3+json
2024-02-23 16:27:33.336 17842-17862 okhttp.OkHttpClient org.lsposed.manager I --> END GET
2024-02-23 16:27:33.364 17842-17862 okhttp.OkHttpClient org.lsposed.manager I <-- 200 https://api.github.com/repos/mywalkb/LSPosed_mod/releases/latest (28ms)
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I server: GitHub.com
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I date: Fri, 23 Feb 2024 20:27:15 GMT
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I content-type: application/json; charset=utf-8
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I cache-control: public, max-age=60, s-maxage=60
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I vary: Accept, Accept-Encoding, Accept, X-Requested-With
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I etag: W/"bfad4e92a2c4ce1fdf46b388e998288713d18e33e7443c2647d4aaaab2fb50c0"
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I last-modified: Wed, 11 Oct 2023 17:00:42 GMT
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I x-github-media-type: github.v3; format=json
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I x-github-api-version-selected: 2022-11-28
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I access-control-expose-headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I access-control-allow-origin:
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I strict-transport-security: max-age=31536000; includeSubdomains; preload
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I x-frame-options: deny
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I x-content-type-options: nosniff
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I x-xss-protection: 0
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I content-security-policy: default-src 'none'
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I x-ratelimit-limit: 60
2024-02-23 16:27:33.365 17842-17862 okhttp.OkHttpClient org.lsposed.manager I x-ratelimit-remaining: 56
2024-02-23 16:27:33.366 17842-17862 okhttp.OkHttpClient org.lsposed.manager I x-ratelimit-reset: 1708722093
2024-02-23 16:27:33.366 17842-17862 okhttp.OkHttpClient org.lsposed.manager I x-ratelimit-resource: core
2024-02-23 16:27:33.366 17842-17862 okhttp.OkHttpClient org.lsposed.manager I x-ratelimit-used: 4
2024-02-23 16:27:33.366 17842-17862 okhttp.OkHttpClient org.lsposed.manager I accept-ranges: bytes
2024-02-23 16:27:33.366 17842-17862 okhttp.OkHttpClient org.lsposed.manager I x-github-request-id: 854A:5B7D:604FC0:C070C2:65D8FFA3
2024-02-23 16:27:33.366 17842-17862 okhttp.OkHttpClient org.lsposed.manager I <-- END HTTP
2024-02-23 16:27:33.368 17842-17842 AppCompatDelegate org.lsposed.manager D Checking for metadata for AppLocalesMetadataHolderService : Service not found
2024-02-23 16:27:33.391 17842-17842 Compatibil...geReporter org.lsposed.manager D Compat change id reported: 279646685; UID 10380; state: DISABLED
2024-02-23 16:27:33.393 20673-20673 HotseatPre...Controller com...le.android.apps.nexuslauncher D Predicted items: [WorkspaceItemInfo(id=-1 type=APP container=# com.android.launcher3.logger.LauncherAtom$ContainerInfo@19f79dd targetComponent=ComponentInfo{org.lsposed.manager/org.lsposed.manager.ui.activity.MainActivity} screen=-1 cell(-1,-1) span(1,1) minSpan(1,1) rank=0 user=UserHandle{0} title=LSPosed), WorkspaceItemInfo(id=-1 type=APP container=# com.android.launcher3.logger.LauncherAtom$ContainerInfo@19f79dd targetComponent=ComponentInfo{com.facebook.orca/com.facebook.orca.auth.StartScreenActivity} screen=-1 cell(-1,-1) span(1,1) minSpan(1,1) rank=0 user=UserHandle{0} title=Messenger), WorkspaceItemInfo(id=-1 type=APP container=# com.android.launcher3.logger.LauncherAtom$ContainerInfo@19f79dd targetComponent=ComponentInfo{co.hinge.app/co.hinge.app.ui.AppActivity} screen=-1 cell(-1,-1) span(1,1) minSpan(1,1) rank=0 user=UserHandle{0} title=Hinge), WorkspaceItemInfo(id=-1 type=APP container=# com.android.launcher3.logger.LauncherAtom$ContainerInfo@19f79dd targetComponent=ComponentInfo{com.google.android.apps.maps/com.google.android.maps.MapsActivity} screen=-1 cell(-1,-1) span(1,1) minSpan(1,1) rank=0 user=UserHandle{0} title=Maps), WorkspaceItemInfo(id=-1 type=APP container=# com.android.launcher3.logger.LauncherAtom$ContainerInfo@19f79dd targetComponent=ComponentInfo{com.facebook.katana/com.facebook.katana.LoginActivity} screen=-1 cell(-1,-1) span(1,1) minSpan(1,1) rank=0 user=UserHandle{0} title=Facebook), WorkspaceItemInfo(id=-1 type=APP container=# com.android.launcher3.logger.LauncherAtom$ContainerInfo@19f79dd targetComponent=ComponentInfo{com.google.android.youtube/com.google.android.youtube.app.honeycomb.Shell$HomeActivity} screen=-1 cell(-1,-1) span(1,1) minSpan(1,1) rank=0 user=UserHandle{0} title=YouTube), WorkspaceItemInfo(id=-1 type=APP container=# com.android.launcher3.logger.LauncherAtom$ContainerInfo@19f79dd targetComponent=ComponentInfo{com.bumble.app/com.bumble.app.ui.launcher.BumbleLauncherActivity} screen=-1 cell(-1,-1) span(1,1) minSpan(1,1) rank=0 user=UserHandle{0} title=Bumble), WorkspaceItemInfo(id=-1 type=APP container=# com.android.launcher3.logger.LauncherAtom$ContainerInfo@19f79dd targetComponent=ComponentInfo{com.instagram.android/com.instagram.android.activity.MainTabActivity} screen=-1 cell(-1,-1) span(1,1) minSpan(1,1) rank=0 user=UserHandle{0} title=Instagram), WorkspaceItemInfo(id=-1 type=APP container=# com.android.launcher3.logger.LauncherAtom$ContainerInfo@19f79dd targetComponent=ComponentInfo{com.google.android.apps.youtube.creator/com.google.android.apps.youtube.creator.main.MainActivity} screen=-1 cell(-1,-1) span(1,1) minSpan(1,1) rank=0 user=UserHandle{0} title=YT Studio), WorkspaceItemInfo(id=-1 type=APP container=# com.android.launcher3.logger.LauncherAtom$ContainerInfo@19f79dd targetComponent=ComponentInfo{com.android.vending/com.android.vending.AssetBrowserActivity} screen=-1 cell(-1,-1) span(1,1) minSpan(1,1) rank=0 user=UserHandle{0} title=Play Store), WorkspaceItemInfo(id=-1 type=APP container=# com.android.launcher3.logger.LauncherAtom$ContainerInfo@19f79dd targetComponent=ComponentInfo{com.nianticlabs.pokemongo/com.nianticproject.holoholo.libholoholo.unity.UnityMainActivity} screen=-1 cell(-1,-1) span(1,1) minSpan(1,1) rank=0 user=UserHandle{0} title=Pokémon GO), WorkspaceItemInfo(id=-1 type=APP container=# com.android.launcher3.logger.LauncherAtom$ContainerInfo@19f79dd targetComponent=ComponentInfo{com.github.android/com.github.android.activities.MainActivity} screen=-1 cell(-1,-1) span(1,1) minSpan(1,1) rank=0 user=UserHandle{0} title=GitHub), WorkspaceItemInfo(id=-1 type=APP container=# com.android.launcher3.logger.LauncherAtom$ContainerInfo@19f79dd targetComponent=ComponentInfo{yhotndeeau.wv/fOa.O} screen=-1 cell(-1,-1) span(1,1) minSpan(1,1) rank=0 user=UserHandle{0} title=Manager), WorkspaceItemInfo(id=-1 type=APP container=# com.android.launcher3.logger.LauncherAtom$ContainerInfo@19f79dd targetComponent=ComponentInfo{enterprises.dating.boo/dating.boo.MainActivity} screen=-1 cell(-1,-1) span(1,1) minS
2024-02-23 16:27:33.408 17842-17842 AppCompatDelegate org.lsposed.manager I The Activity's LayoutInflater already has a Factory installed so we can not install AppCompat's
2024-02-23 16:27:33.509 17842-17842 Compatibil...geReporter org.lsposed.manager D Compat change id reported: 210923482; UID 10380; state: ENABLED
2024-02-23 16:27:33.509 17842-17842 Compatibil...geReporter org.lsposed.manager D Compat change id reported: 63938206; UID 10380; state: DISABLED
2024-02-23 16:27:33.576 17842-17842 Compatibil...geReporter org.lsposed.manager D Compat change id reported: 171228096; UID 10380; state: ENABLED
2024-02-23 16:27:33.719 17842-17842 Compatibil...geReporter org.lsposed.manager D Compat change id reported: 237531167; UID 10380; state: DISABLED
2024-02-23 16:27:33.721 17842-17874 okhttp.OkHttpClient org.lsposed.manager I --> GET https://modules.lsposed.org/modules.json
2024-02-23 16:27:33.722 17842-17874 okhttp.OkHttpClient org.lsposed.manager I --> END GET
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I <-- 200 https://modules.lsposed.org/modules.json (7ms)
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I server: GitHub.com
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I content-type: application/json; charset=utf-8
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I x-origin-cache: HIT
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I last-modified: Fri, 23 Feb 2024 13:52:47 GMT
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I access-control-allow-origin: *
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I x-proxy-cache: HIT
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I x-github-request-id: F496:10CD:2ABF8B:3445A8:65D8A431
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I accept-ranges: bytes
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I date: Fri, 23 Feb 2024 20:27:15 GMT
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I via: 1.1 varnish
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I cache-control: max-age=600
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I etag: W/"65d8a32f-16aa37"
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I expires: Fri, 23 Feb 2024 14:06:48 GMT
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I age: 8
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I x-served-by: cache-lga21967-LGA
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I x-cache: HIT
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I x-cache-hits: 1
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I x-timer: S1708720036.773965,VS0,VE2
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I vary: Accept-Encoding
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I x-fastly-request-id: f473d80652869a51e5b169926911544e7f838bbb
2024-02-23 16:27:33.729 17842-17874 okhttp.OkHttpClient org.lsposed.manager I <-- END HTTP
2024-02-23 16:27:33.738 1430-2228 CoreBackPreview system_server D Window{bad763 u0 org.lsposed.manager/org.lsposed.manager.ui.activity.MainActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@ca224de, mPriority=0, mIsAnimationCallback=false}
2024-02-23 16:27:33.812 1430-1695 ziparchive system_server W Unable to open '/data/app/~~X6T2yHNjAMgFElLCiRCPew==/org.lsposed.manager-TxPC4BUXVmptBZlSTme6_w==/base.dm': No such file or directory
2024-02-23 16:27:33.815 1430-1695 ActivityTaskManager system_server I Displayed org.lsposed.manager/.ui.activity.MainActivity for user 0: +726ms
2024-02-23 16:27:33.838 1430-2253 ImeTracker system_server I org.lsposed.manager:3cadb1e5: onRequestHide at ORIGIN_SERVER_HIDE_INPUT reason HIDE_UNSPECIFIED_WINDOW
2024-02-23 16:27:33.838 1430-2253 ImeTracker system_server I org.lsposed.manager:3cadb1e5: onCancelled at PHASE_SERVER_SHOULD_HIDE
2024-02-23 16:27:33.844 3639-3639 GoogleInpu...hodService com...gle.android.inputmethod.latin I GoogleInputMethodService.onStartInput():1950 onStartInput(EditorInfo{EditorInfo{packageName=org.lsposed.manager, inputType=0, inputTypeString=NULL, enableLearning=false, autoCorrection=false, autoComplete=false, imeOptions=0, privateImeOptions=null, actionName=UNSPECIFIED, actionLabel=null, initialSelStart=-1, initialSelEnd=-1, initialCapsMode=0, label=null, fieldId=0, fieldName=null, extras=null, hintText=null, hintLocales=[]}}, false)
2024-02-23 16:27:33.845 1430-2228 PackageConfigPersister system_server W App-specific configuration not found for packageName: org.lsposed.manager and userId: 0
2024-02-23 16:27:33.902 17842-17850 lsposed.manager org.lsposed.manager I Compiler allocated 4331KB to compile void android.widget.TextView.
You might just need to re-compile the apk or just remove that check
the apk is re-compiled for each build always with the same certificate. This mismatch is very strange.
Capturing the logcat while opening LSPosed manager which shows not installed, here's the log:
I don't see anything strange, your version on google pixel works better than mine on avd. Also searches for updates. On avd it stuck on the activity with logo.
I tried the cli on DP1 and it works, except that there is a bug on the scope setting, so I can't enable the modules. I didn't develop the CLI and I didn't do much testing, I tried the basic functions but still there was the manager who did something, now without the manager the CLI having to do everything, it doesn't work perfectly, but I think it can be improved.
I mean if we can figure out why the Manager doesn't detect the install, then that's all we need to fix. For the time being, we can manually install the manager. What does the manager check for to know if things are installed?
What does the manager check for to know if things are installed?
search for the class org.lsposed.manager.Constants and invoke the setBinder method via xposed, unfortunately the search for the class fails so for it lsposed is not installed.
Is it failing because of obfuscation? Or is it something new in A15 that causes the search to fail? Or is it related to the isArchived field?
I'm still not sure how to understand it, however I tried to disable the obfuscation amd nothing changed. As for anything new in A15 I don't think so, there must still be something about hook initialization that doesn't work properly.
You think it's worthwhile to look into ILSPManagerService.Stub? The parasitic notification also calls that, and it causes problems. So maybe that's the common denominator? Are we getting a null return when we call that?
Because service = ILSPManagerService.Stub.asInterface(binder); Unless the binder that is being fed in is null? Might need a few System.outs or Log.ERRORs to figure out where the problem is
From looking at the code quickly, it seems only parasitic manager calls var clazz = XposedHelpers.findClass("org.lsposed.manager.Constants", classLoader); The HomeFragment does something else, by calling ConfigManager.isBinderAlive(), doesn't look like it's looking for the Constants class?
@shanoaice could you test this build, it should be resolve you issue https://github.com/LSPosed/LSPosed/issues/2869 still don't work manager from Android 14 QPR3, but old versions works and should support stripped libart as in you case.
Because service = ILSPManagerService.Stub.asInterface(binder); Unless the binder that is being fed in is null? Might need a few System.outs or Log.ERRORs to figure out where the problem is
it doesn't get to that point it stops first. However you seem like a good developer, you can fork, debug and once solved you create a PR. I'm alone on this project, while on the original project there were 3 or 4 developers.
I still haven't found a solution, but binder and hooks works. manager.apk in not injected correctly in com.android.shell, so when the Constants class is searched for, it doesn't exist and throws an exception.
Steps to reproduce/复现步骤
Install Android 14 QPR3 Try opening Crash
Expected behaviour/预期行为
Expected to open menu
Actual behaviour/实际行为
Crash
Xposed Module List/Xposed 模块列表
Magisk Module List/Magisk 模块列表
LSPosed version/LSPosed 版本
1.9.2
Android version/Android 版本
14 QPR3
Magisk version/Magisk 版本
27001
Riru version/Riru 版本
N/A
Version requirement/版本要求
Logs/日志
Unable to provide logs -> crash