Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一旦启用了xposed插件,wcdb抛出异常,微信就卡在地球页面了 #74

Closed
captain-black opened this issue Apr 18, 2018 · 7 comments

Comments

@captain-black
Copy link

一旦启用了xposed插件,wcdb就跑出异常,微信卡在启动时地球页面了。

微信版本6.6.1
VXP版本0.9.7
日志如下:

04-18 22:23:00.843 29925-29973/? E/AndroidRuntime: FATAL EXCEPTION: parallels-5
Process: com.tencent.mm, PID: 29925
com.tencent.wcdb.database.SQLiteException: no such table: userinfo (code 1, errno 0):
at com.tencent.wcdb.database.SQLiteConnection.nativeExecuteForCursorWindow(Native Method)
at com.tencent.wcdb.database.SQLiteConnection.executeForCursorWindow(SourceFile:910)
at com.tencent.wcdb.database.SQLiteSession.executeForCursorWindow(SourceFile:789)
at com.tencent.wcdb.database.SQLiteQuery.fillWindow(SourceFile:63)
at com.tencent.wcdb.database.SQLiteCursor.fillWindow(SourceFile:146)
at com.tencent.wcdb.database.SQLiteCursor.getCount(SourceFile:135)
at com.tencent.wcdb.AbstractCursor.moveToPosition(SourceFile:200)
at com.tencent.wcdb.AbstractCursor.moveToFirst(SourceFile:240)
at com.tencent.wcdb.CursorWrapper.moveToFirst(SourceFile:69)
at com.tencent.mm.storage.t.get(SourceFile:112)
at com.tencent.mm.storage.bc.cdg(SourceFile:34)
at com.tencent.mm.kernel.a.bh(SourceFile:229)
at com.tencent.mm.kernel.a.initialize(SourceFile:555)
at com.tencent.mm.plugin.h.a.execute(SourceFile:25)
at com.tencent.mm.kernel.a.c.a(SourceFile:57)
at com.tencent.mm.kernel.a.c$3.call(SourceFile:206)
at com.tencent.mm.kernel.a.b.e$1.run(SourceFile:264)
at android.os.Handler.handleCallback(Handler.java:754)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:163)
at android.os.HandlerThread.run(HandlerThread.java:61)

@captain-black
Copy link
Author

补充,手机是红米5A
Android系统 7.1.2
MIUI 9.5.3.0 稳定版

@tiann
Copy link
Member

tiann commented Apr 19, 2018

什么插件?

@captain-black
Copy link
Author

自己的插件,禁用了某段操作微信打开WCDB的代码就可以了。裸xposed的时候代码没问题的,在vxp里就出问题,我先做了绕开处理了

@tiann
Copy link
Member

tiann commented Apr 19, 2018

@captain-black 能分享一下吗,是否跟提前加载了wcdb相关的类有关?

@captain-black
Copy link
Author

captain-black commented Apr 19, 2018 via email

@tiann
Copy link
Member

tiann commented Apr 19, 2018

也就是说,你之前直接hook了微信对数据库的打开操作,这样会有问题吗?

之前有人反馈 hook native/static 方法有bug,是否跟这个有关?

@captain-black
Copy link
Author

就是以上代码引起了问题,注释了就正常了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants