LSPosed / LSPatch

LSPatch: A non-root Xposed framework extending from LSPosed
GNU General Public License v3.0
6.71k stars 707 forks source link

[Bug] On some app same method is getting hooked twice #223

Closed harshitshah4 closed 11 months ago

harshitshah4 commented 1 year ago

Steps to reproduce/复现步骤

  1. Create an Xposed module
  2. Hooked any methods, I had hooked android.media.Imagereader#newInstance
  3. Hooked Methods were getting called twice

Same is not happening with other apps. Can't share app as its an internal app. I have attached the logs, in that you can see Inside Image Reader newInstance log coming twice, whereas it should have come only once.

Not sure if its bug with LSPatch or LSPosed or something else.

Expected behaviour/预期行为

Methods should not be hooked twice.

Actual behaviour/实际行为

Methods are getting hooked twice.

Xposed Module List/Xposed 模块列表

Custom module, but also happening with https://github.com/w2016561536/android_virtual_cam

LSPatch version/LSPatch 版本

v0.5.1-382

Android version/Android 版本

12.0

Shizuku version/Shizuku 版本

N/A

Version requirement/版本要求

Apk file/Apk 文件

No response

Logs/日志

[log.txt](https://github.com/LSPosed/LSPatch/files/12179931/log.txt)