From 0d60b34e7e76e2ee1cad1840e932a3830eaeb287 Mon Sep 17 00:00:00 2001 From: Samuel Carlsson Date: Wed, 27 Apr 2016 20:32:09 +0200 Subject: [PATCH] Depricating the old executeShell method. --- src/se/vidstige/jadb/JadbDevice.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/se/vidstige/jadb/JadbDevice.java b/src/se/vidstige/jadb/JadbDevice.java index 823c4eb..0909264 100644 --- a/src/se/vidstige/jadb/JadbDevice.java +++ b/src/se/vidstige/jadb/JadbDevice.java @@ -58,6 +58,12 @@ public class JadbDevice { return new AdbFilterInputStream(new BufferedInputStream(transport.getInputStream())); } + /** + * + * @deprecated Use InputStream executeShell(String command, String... args) method instead. Together with + * Stream.copy(in, out), it is possible to achieve the same effect. + */ + @Deprecated public void executeShell(OutputStream output, String command, String... args) throws IOException, JadbException { Transport transport = getTransport(); StringBuilder shellLine = new StringBuilder(command);