mirror of
https://github.com/revanced/jadb.git
synced 2024-06-10 15:17:52 +02:00
4dd168bb16
Adding the following changes: * Adding a unit test * Removing a readToStringFunction * Adding handler into AdbProtocolHandler to enable testing *
24 lines
725 B
Java
24 lines
725 B
Java
package se.vidstige.jadb.server;
|
|
|
|
import se.vidstige.jadb.JadbException;
|
|
import se.vidstige.jadb.RemoteFile;
|
|
|
|
import java.io.*;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Created by vidstige on 20/03/14.
|
|
*/
|
|
public interface AdbDeviceResponder {
|
|
String getSerial();
|
|
String getType();
|
|
|
|
void filePushed(RemoteFile path, int mode, ByteArrayOutputStream buffer) throws JadbException;
|
|
void filePulled(RemoteFile path, ByteArrayOutputStream buffer) throws JadbException, IOException;
|
|
|
|
void shell(String command, DataOutputStream stdout, DataInput stdin) throws IOException;
|
|
void enableIpCommand(String ip, DataOutputStream outputStream) throws IOException;
|
|
|
|
List<RemoteFile> list(String path) throws IOException;
|
|
}
|