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.
好好好,自动解密总算写完了
目前我本地的测试结果来看,4.0 版本微信的数据更新延迟大约是 12 秒,macOS 和 Windows 版本行为一致
3.x 版本微信的自动解密基本不可用,因为微信长时间不写数据库文件,所以哪怕做了文件监控也无法获得新的内容
由于 Windows 平台系统限制,无法操作更新已打开的数据库文件,为了避免影响 API 可用性,做了一个骚操作,每次打开数据库时,将数据库文件拷贝到临时目录再打开,这样就能规避原文件被锁定无法更新的问题