Fix methodinfo with different classloader #61
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some AdditionalHookInfo instance may create by ProxyClassLoader instead of class that already loaded with classloader that same as XposedBridge's classloader.
Invert hookMethod.getDeclaringClass().getClassLoader() and DynamicBridge.class.getClassLoader() may fix.
This problem may lead for crash (also bootloop) with EdXposed+MIUI12 device or make module lose efficacy with SandVXposed+MIUI12 device.
修复了类加载器引起的EdXposed当中小米设备无限重启或者模块失效的问题。
XposedHelpers.setStaticObjectField(mHookClass, FIELD_NAME_HOOK_INFO, mHookInfo);
报错修复以及部分安卓10+设备的错误修复。
有的手机应用PathClassLoader就是能加载出来Xposed类,或者因为某些玄学原因(应用加固改了环境等等)XposedBridge的类跟DexMaker的类加载器不同,会出现一些有趣的问题。