Skip to content

Commit

Permalink
fix: FakePicSize default size
Browse files Browse the repository at this point in the history
Closes #1232
  • Loading branch information
HdShare committed Nov 3, 2024
1 parent 5778483 commit deeaa77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/me/hd/hook/FakePicSize.kt
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ object FakePicSize : BaseFunctionHook(
}

override fun initOnce(): Boolean {
if (sizeIndex == 0) return true
val msgServiceClass = Initiator.loadClass("com.tencent.qqnt.kernel.nativeinterface.IKernelMsgService\$CppProxy")
hookBeforeIfEnabled(msgServiceClass.method("sendMsg")!!) { param ->
val size = sizeMap.values.toList()[sizeIndex]
if (size == 0) return@hookBeforeIfEnabled
val contact = ContactCompat.fromKernelObject(param.args[1] as Serializable)
val elements = param.args[2] as ArrayList<*>
for (element in elements) {
Expand Down

0 comments on commit deeaa77

Please sign in to comment.