platform_system_core/adb
Alistair Buxton dfa09fd635 Disable CR/LF translation for adb interactive shell.
adb shell uses termios to disable canonical input processing in order to
get raw control codes but it does not disable CR/LF translation. The default
for Linux terminals is to convert CR to LF unless the running program
specifically asks for this to be disabled. Since adb does not, there is no
way to send a CR to any program run on adb shell. Many programs do in fact
differentiate and so are broken by this behaviour, notably nano. This patch
sets the termios flags to disable all line ending translation.

Change-Id: I8b950220f7cc52fefaed2ee37d97e0789b40a078
Signed-off-by: Alistair Buxton <a.j.buxton@gmail.com>
2015-04-05 10:02:34 -07:00
..
tests Make the root/unroot test more robust. 2015-03-09 10:45:50 -07:00
.clang-format Fix clang-format file for correct indent settings. 2015-03-19 13:27:20 -07:00
adb.cpp Additional cleanup of start_device_log. 2015-03-20 09:49:15 -07:00
adb.h Revert "Revert "adb: support /oem partition"" 2015-03-16 20:05:21 -07:00
adb_auth.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
adb_auth.h File header cleanup. 2015-03-19 15:32:33 -07:00
adb_auth_client.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
adb_auth_host.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
adb_client.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
adb_client.h Move adb to C++. 2015-03-09 14:06:11 -07:00
adb_io.cpp Merge "The generic failure case disappeared..." 2015-03-20 03:50:36 +00:00
adb_io.h Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
adb_io_test.cpp The generic failure case disappeared... 2015-03-19 20:10:30 -07:00
adb_listeners.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
adb_listeners.h Move the listener code into its own file. 2015-02-18 18:22:52 -08:00
adb_main.cpp Revert "Remove the emulator special case from the "adb root" code." 2015-03-28 19:04:15 +00:00
adb_trace.h Test readx/writex (now renamed). 2015-02-25 15:07:57 -08:00
Android.mk Remove LOCAL_ADDITIONAL_DEPENDENCIES in cases where it's not needed. 2015-04-02 14:31:07 -07:00
commandline.cpp Disable CR/LF translation for adb interactive shell. 2015-04-05 10:02:34 -07:00
console.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
CPPLINT.cfg Ignore another stupid lint warning. 2015-02-20 17:19:22 -08:00
fdevent.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
fdevent.h Begin moving code from adb to libadb. 2015-01-26 16:45:34 -08:00
file_sync_client.cpp adb doesn't actually use libzipfile. 2015-03-13 09:40:45 -07:00
file_sync_service.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
file_sync_service.h Add extern "C" to all the adb headers. 2015-02-18 00:21:16 -08:00
framebuffer_service.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
get_my_path_darwin.c Move adb to C++. 2015-03-09 14:06:11 -07:00
get_my_path_linux.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
get_my_path_windows.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
jdwp_service.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
MODULE_LICENSE_APACHE2
mutex_list.h adb: Cleanup dead code 2013-04-24 21:31:45 -07:00
NOTICE
OVERVIEW.TXT
protocol.txt adb: Add public key authentification 2012-08-23 00:20:06 -07:00
qemu_tracing.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
qemu_tracing.h Move emulator tracing into its own file. 2015-02-18 17:21:17 -08:00
remount_service.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
remount_service.h Revert "Revert "adb: support /oem partition"" 2015-03-16 20:05:21 -07:00
services.cpp adb: Add option to reboot into sideload mode in recovery 2015-03-31 00:19:52 +00:00
SERVICES.TXT adb: implement "adb reverse <local> <remote>" 2014-05-27 16:42:13 +02:00
set_verity_enable_state_service.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
sockets.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
sockets.dia
SYNC.TXT Adding documentation on the sync part of the adb protocol previously missing. 2014-03-20 20:36:46 +01:00
sysdeps.h adb shell: Win32: fix Ctrl-C, tab completion, line editing, server echo 2015-03-26 12:26:08 -07:00
sysdeps_win32.c adb shell: Win32: fix Ctrl-C, tab completion, line editing, server echo 2015-03-26 12:26:08 -07:00
test_track_devices.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
test_track_jdwp.cpp Move adb to C++. 2015-03-09 14:06:11 -07:00
transport.cpp Fix "adb devices -l". 2015-04-03 16:12:15 -07:00
transport.h Move adb to C++. 2015-03-09 14:06:11 -07:00
transport_local.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
transport_test.cpp Add some basic tests to adb. 2015-02-25 10:57:26 -08:00
transport_usb.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
usb_linux.cpp File header cleanup. 2015-03-19 15:32:33 -07:00
usb_linux_client.c File header cleanup. 2015-03-19 15:32:33 -07:00
usb_osx.c File header cleanup. 2015-03-19 15:32:33 -07:00
usb_windows.cpp File header cleanup. 2015-03-19 15:32:33 -07:00