-
Notifications
You must be signed in to change notification settings - Fork 1.5k
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Compatibility for ROMs which extend the Resources class themselves #178
Comments
This is not a support forum, please use XDA. |
I don't want to support! actually, i just reported an issue!! |
Then please provide a logcat that shows the error. But in general, support (including "it doesn't work") is given only on XDA, because there are a lot more people who can help. |
The following line is the error of my logcat about XposedInstaller: I hope this line of my logcat useful to fix this bug. |
Unfortunately, that isn't helpful. It's unlikely that the relevant error has the tag of the installer. It might be something with tag "Xposed", or something completely different. There are lots of possibilities. |
I watched catlog again and i found these lines: I/Xposed ( 134): ----------------- |
Ok, that's it then. Some ROMs have theming engines that conflict with Xposed. I'm looking for solutions, but meanwhile, please use the "Disable resources API" setting in the installer. You might not be able to use some modules, but most should still work. |
I used this option but my modules deactivated and i have decided to downgrade to 1.5.1 and waiting for 2.6.1 version |
Ok, I'll keep this one open as a tracker for the general issue. I have an idea how this might be fixed, but it's a rather complex solution which needs some time to be developed and especially needs proper testing. It's not something that can be part of a bugfix release. |
Thank you Rovo |
When fix this bug? |
Probably some time this year. |
@rovo89 Some user reported that 2.4.1 xperia test works on Huawei devices. |
That's not surprising me at all. Up to 2.5.1, it should work with the regular versions - well, at least Xposed loads, ROM-specific theming functions get lost. On other ROMs, it was crashing completely. The problem is: Both the ROM and Xposed replace Resources with a specific subclass. But only one can win. Before 2.6, Xposed won, with the effect in parts of the ROM where the ROM-specific subclass is expected, the system crashes. Also some ROMs just add new fields to Resources, which I had to copy and manually copy over to the XResources instance. The new approach is generally safer and works fine for ROMs just adding fields, but Xposed detects conflicts and produces error messages as displayed here. As a general workaround, resource hooks can be disabled in the settings. For Huawei, I believe someone found out that changing ro.config.hwtheme will avoid that the ROM tries to use its own subclass, so there's no conflict and Xposed works fine. No idea how well that works and if there are any side-effects (except that the ROM's theming engine won't work). Basically, the solution would be that XResources extends the ROM's class instead of the Resources class directly. I have created such a hack for some MIUI version, but there are quite a few ROMs which would need this and especially Huawei sometimes needs this, but sometimes it would be counterproductive (depending on that parameter mentioned above). I thought about dynamically patching the XposedBridge dex on the ROM, but the specifications are too strict, it's much effort to change it without recompiling. I have another idea, involving an additional jar file with the specific intermediate class per ROM, but it's rather complicated as well, so I don't know when I will be able to try this. |
Here with an EMUI 3.0 ROM (Honor 6). Installing a precedent version of Xposed Framework and editing the build.prop file leads to having the framework working without disabling the hooks. Unfortunately, even if ther UI works, modules functions don't work. I tried GravityBox and it makes no changes; I tried minminguard and the ads are still there. If I install the newer versions I have to disable the hooks to make the framework work, so obviously these modules still don't work. Has anyone came up with a solution to make these modules work? :( |
@rovo89 Did you ever figure out how a global patch for rom that use their own theme engine? |
@rovo89 Can you at least write a guide on how we can have the Framework work without the need to disable Resource Hooks on some devices? A guide as in, a nod in the general direction where people need to look to fix this? |
Since one of the recent versions (85 or 86), this has been fixed. |
i guess its fixed for newer android version, sadly its not compatible with kitkat anymore. |
Hi,
My phone is Huawei P6 with android 4.4.2 and when i upgrade my Xposed to new version (2.6) that is installed but not activated and not worked!
Please fix this bug!
The text was updated successfully, but these errors were encountered: