rovo89 / Xposed

The native part of the Xposed framework (mainly the modified app_process binary).
Other
7.4k stars 1.47k forks source link

Some app disable xposed by setting field disableHooks in XposedBridge.class to true #338

Open qtiuto opened 6 years ago

qtiuto commented 6 years ago

For example: com.zhihu.android. I found that no module can't work in the app. And then, I got a warning in the logcat. Zhihu: Xposed has been disabled for better performance. You can put an empty file to "/sdcard/zhihu/.allowXposed" if you really, really, really want it. I figure that it might change the filed disableHooks in XopsedBridge.class. And then I write a test module. Yet,it's right. However, it's a little bit annoying to fix the problem as I don't wan't to handle it specifically but it's hard to find out when it disable the hook. Should I write a endless loop in another thread only to check when the field is changed. Can you disable all the reflection access to the bridge or change the boolean field to a native value.

aviraxp commented 6 years ago

https://github.com/AdBlocker-Reborn/AdBlocker_Reborn/blob/master/app/src/main/java/com/aviraxp/adblocker/continued/hook/AntiXposedHook.java#L18

amakuramio commented 6 years ago

wouldn't removing the disablehook ability and compiling it yourself fix the problem? no idea how though, I HATE compiling, it sucks your HDD space empty and million of errors need to be solved before anything is ever compiled (on my side)