WaEnhancer icon indicating copy to clipboard operation
WaEnhancer copied to clipboard

Android 15 (NoSuchFieldError - LSPosed)

Open UltraZenitsu opened this issue 8 months ago • 10 comments

Hello! First of all, thank you for the amazing module.

I'm reporting a bug that occurs on Android 15 using LSPosed (latest stable version). The module WaEnhancer does not work and shows the message "Module Disabled" even when it is enabled correctly in LSPosed.

I checked the logs, and this is the key part:

java.lang.NoSuchFieldError: at XposedHelpers.findField(Unknown Source) at Helper.getResourcesMap(Unknown Source) at Helper.addActiveResource(SourceFile) at com.wmods.wppenhacer.WppXposed.handleInitPackageResources(WppXposed.java:83)

This crash occurs on Android SDK 35 (Android 15). The log shows that WaEnhancer fails to hook WhatsApp properly due to a missing field it expects.

Device info:

  • Device: Motorola Xpeng (Moto G200)
  • Android Version: 15 (SDK 35)
  • WhatsApp Version: 2.25.10.x
  • LSPosed Version: 1.9.2 (also tried with 1.8.x)
  • WaEnhancer Version: latest available
  • KernelSU used instead of Magisk (but same error under Magisk)

I’ve confirmed LSPosed works fine with other modules like DisableFlagSecure and AlwaysBatterySaver, so it seems specific to WaEnhancer.

Please let me know if you need more logs or testing help. I'd love to help make it compatible with Android 15.

Thanks again!

UltraZenitsu avatar Apr 19 '25 09:04 UltraZenitsu

I need more details from the log, the field it reports is missing.

Dev4Mod avatar Apr 19 '25 10:04 Dev4Mod

Can't reproduce (Android 15, Whatsapp 2.25.11.75, LSPosed (JingMatrix) 1.10.1, Zygisk Next 1.2.8, KernelSU 12018, WaEnhancer de915d14)

sewnie avatar Apr 19 '25 11:04 sewnie

I need more details from the log, the field it reports is missing.

Hi, Thanks for replying, yes I thought the log file had been sent. There I send you the complete log of the LSPosed.

https://drive.google.com/file/d/1-wJhtA7OFLdmw9OIqzxUA4_pmpKhQs8C/view?usp=drivesdk

UltraZenitsu avatar Apr 19 '25 13:04 UltraZenitsu

Have you tried using JingMatrix's lsposed? It's giving a lot of hook errors in lsposed itself

Dev4Mod avatar Apr 19 '25 13:04 Dev4Mod

Have you tried using JingMatrix's lsposed? It's giving a lot of hook errors in lsposed itself

Hi! First of all, thanks a lot for your time and for the great work you're doing with WaEnhancer.

Regarding what you mentioned about LSPosed by JingMatrix — I understand that version might have issues, but I was already using the official LSPosed version from the beginning. I only switched to alternative builds like JingMatrix’s after encountering errors, hoping it would solve the problem.

Eventually, I returned to the official version, and the same issue persists. After trying many things and even checking logs with ChatGPT, we concluded that the root of the problem is likely not LSPosed, but a compatibility issue with WaEnhancer itself, possibly on Android 15.

Here’s the link to a full debug log taken while using the official LSPosed version and KernelSU Next: https://drive.google.com/file/d/10FYtG3npauYL_4gUEQsh7J2xcbg_eqRn/view?usp=drivesdk

Let me know if there's anything else I can test or provide to help!

Thanks again for your work and attention.

UltraZenitsu avatar Apr 19 '25 14:04 UltraZenitsu

Okay, let's go, first your lsposed is giving an error when loading the main binary for hooks, the lsp

[ 2025-04-19T10:51:41.864     1000:  1387:  1387 E/LSPlant         ] Hook Fails: _ZN3art11ClassLinker22FixupStaticTrampolinesEPNS_6ThreadENS_6ObjPtrINS_6mirror5ClassEEE
[ 2025-04-19T10:51:41.864     1000:  1387:  1387 E/LSPlant         ] Failed to init class linker
[ 2025-04-19T10:51:41.864     1000:  1387:  1387 E/LSPosed         ] Failed to init lsplant

This is a problem, seriously.

My module needs to use the resources to get the texts from the WAE apk and inject into WA via resources hooks (official lsposed).

This is not working:

[ 2025-04-19T10:52:06.979    10488:  4079:  4079 E/LSPosed-Bridge  ] java.lang.NoSuchFieldError: android.app.ActivityThread#mResourcesManager

This hook is made by lsposed and not by me. Therefore the incompatibility with Android 15 comes from lsposed.

Dev4Mod avatar Apr 19 '25 14:04 Dev4Mod

The other modules may work by not using resources, and not injecting dynamic texts,drawables and arrays inside the target application, but my module does.

Dev4Mod avatar Apr 19 '25 14:04 Dev4Mod

I suggest you try the compilations of JingMatrix actions, if the error persists, open an issue on JingMatrix's lsposed, it is very active in solving these types of problems.

Dev4Mod avatar Apr 19 '25 14:04 Dev4Mod

I suggest you try the compilations of JingMatrix actions, if the error persists, open an issue on JingMatrix's lsposed, it is very active in solving these types of problems.

thank you so much for taking the time to explain everything in such detail.

I now understand that your module, unlike others, requires injecting texts, drawables, and arrays directly into the target application using resource hooks, which makes it dependent on LSPosed's deep-level functionality.

It's clear to me now that the issue isn’t with your module, but with the way LSPosed handles those hooks on Android 15, which unfortunately is breaking that critical functionality.

I’ll try JingMatrix’s LSPosed builds as you suggested, and if the issue continues, I’ll open an issue directly on JingMatrix’s LSPosed repository so they can take a look.

Thanks again for your patience and dedication. I really appreciate your work on WAEnhancer, and I hope to use it properly on Android 15 soon.

UltraZenitsu avatar Apr 19 '25 14:04 UltraZenitsu

You mentioned that you used ksu. As far as I know, the kernel version of this phone is 5.4, and it is not native to ksu. Can you share the boot image file and other related files that you used or found? Thank you very much for your help.

fly634236360-coder avatar Sep 26 '25 17:09 fly634236360-coder