AdbLib
AdbLib copied to clipboard
How to send Ctrl+C?
I know it's possible you have a Ctrl+C send option in the adb app built in, but I was wondering how to send such a command for myself using this library. I can't seem to find out how.
Looks like my code is just sending 0x03 to the stream.
case MENU_ID_CTRL_C:
if (connection != null) {
connection.queueBytes(new byte[]{0x03});
/* Force scroll to the bottom */
scrollViewAtBottom = true;
doAsyncGuiUpdate();
}
break;
Thanks for your response! And after sending this, do you automatically create a new connection/stream?