Commit 3d49f3b5 authored by Him188's avatar Him188

Testing tools

parent 1eea7dfd
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
package androidPacketTests package androidPacketTests
import kotlinx.io.core.* import kotlinx.io.core.*
import net.mamoe.mirai.qqandroid.network.protocol.packet.PacketLogger
import net.mamoe.mirai.utils.cryptor.* import net.mamoe.mirai.utils.cryptor.*
import net.mamoe.mirai.utils.io.* import net.mamoe.mirai.utils.io.*
import net.mamoe.mirai.utils.io.discardExact import net.mamoe.mirai.utils.io.discardExact
...@@ -322,7 +323,7 @@ fun ByteReadPacket.decodeSso() { ...@@ -322,7 +323,7 @@ fun ByteReadPacket.decodeSso() {
println(" unknownHex=" + readBytes(12).toUHexString()) println(" unknownHex=" + readBytes(12).toUHexString())
println(" extraData=" + readBytes(readInt() - 4).toUHexString()) println(" extraData=" + readBytes(readInt() - 4).toUHexString())
val commandName = readBytes(readInt() - 4).encodeToString() val commandName = readBytes(readInt() - 4).encodeToString()
println(" commandName=" + commandName) PacketLogger.info(" commandName=" + commandName)
(" unknown4Bytes=" + readBytes(readInt() - 4).toUHexString()) (" unknown4Bytes=" + readBytes(readInt() - 4).toUHexString())
(" imei=" + readBytes(readInt() - 4).toUHexString()) (" imei=" + readBytes(readInt() - 4).toUHexString())
(" 0 bytes=" + readBytes(readInt() - 4).toUHexString()) (" 0 bytes=" + readBytes(readInt() - 4).toUHexString())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment