Beispiel #1
0
        public static byte[] CreateConnectCommand()
        {
            var hostData = "host::features=stat_v2,shell_v2,cmd";
            var packet   = new AdbPacket(CNXN, 0x01000000, 4096, hostData);

            return(packet.ToBuffer());
        }
Beispiel #2
0
        public static byte[] CreateOkCommand(uint localId, uint remoteId)
        {
            var packet = new AdbPacket(OKAY, localId, remoteId);

            return(packet.ToBuffer());
        }
Beispiel #3
0
        public static byte[] CreateWriteCommand(uint streamId, uint remoteStreamId, byte[] data)
        {
            var packet = new AdbPacket(WRTE, streamId, remoteStreamId, data);

            return(packet.ToBuffer());
        }
Beispiel #4
0
        public static byte[] CreateOpenCommand(string path, uint id)
        {
            var packet = new AdbPacket(OPEN, id, 0, path);

            return(packet.ToBuffer());
        }