Usage JDWP.encodeHandShakePacket() JDWP.IDSizes.encode() Or refer to the source code of Jadx for details.