Skip to content

Commit

Permalink
[fix] 关闭wechat所有 sql 语句查询结果格式化打印,避免可能的敏感信息泄露、性能问题和潜在崩溃。因为普通用户不需要,开发者调…
Browse files Browse the repository at this point in the history
…式可自己打开
  • Loading branch information
Mingyueyixi committed Jul 14, 2024
1 parent f227a2d commit e8ee79b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/src/main/java/com/lu/wxmask/plugin/CommonPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.lu.lposed.plugin.IPlugin
import com.lu.lposed.plugin.PluginProviders
import com.lu.magic.util.CursorUtil
import com.lu.magic.util.log.LogUtil
import com.lu.wxmask.BuildConfig
import com.lu.wxmask.ClazzN
import de.robv.android.xposed.callbacks.XC_LoadPackage

Expand Down Expand Up @@ -146,9 +147,12 @@ class CommonPlugin : IPlugin {
}

override fun afterHookedMethod(param: MethodHookParam) {
// 不打印,开发者自己打开来调试。
// for debug watch sql query result
LogUtil.d("sql: ", param.args[1])
LogUtil.d("sql reqult: ", CursorUtil.getAll(param.result as Cursor?, true, true))
// if (BuildConfig.DEBUG) {
// LogUtil.d("sql: ", param.args[1])
// LogUtil.d("sql reqult: ", CursorUtil.getAll(param.result as Cursor?, true, true))
// }
}
})

Expand Down

0 comments on commit e8ee79b

Please sign in to comment.