public static byte[] CreateConnectCommand() { var hostData = "host::features=stat_v2,shell_v2,cmd"; var packet = new AdbPacket(CNXN, 0x01000000, 4096, hostData); return(packet.ToBuffer()); }
public static byte[] CreateOkCommand(uint localId, uint remoteId) { var packet = new AdbPacket(OKAY, localId, remoteId); return(packet.ToBuffer()); }
public static byte[] CreateWriteCommand(uint streamId, uint remoteStreamId, byte[] data) { var packet = new AdbPacket(WRTE, streamId, remoteStreamId, data); return(packet.ToBuffer()); }
public static byte[] CreateOpenCommand(string path, uint id) { var packet = new AdbPacket(OPEN, id, 0, path); return(packet.ToBuffer()); }