android_system_core/adb
Elliott Hughes ba4d9fd933 Set $HOSTNAME in adbd.
bash sets this itself, but mksh doesn't.

This also makes interactive and non-interactive adb shells more similar,
because when we set this in mkshrc that wouldn't affect non-interactive
shells. (I'm not sure whether this is an improvement or not.)

This is certainly _cheaper_ than doing this in mkshrc by calling out to
getprop though.

Bug: N/A
Test: `adb shell printenv` and `adb shell`, `printenv`
Change-Id: I3ff724f19a5098313df83836253f1f7e7872d6a4
2017-10-03 08:44:27 -07:00
..
client adb: remove SendConnectOnHost. 2017-10-02 14:38:03 -07:00
daemon Merge "Revert "adbd: lessen security constraints when the device is unlocked"" 2017-08-31 08:21:08 +00:00
sysdeps adb: don't try to resolve 'localhost' 2017-04-12 16:07:49 -07:00
.clang-format Remove extraneous .clang-format files 2017-03-14 14:06:31 -07:00
Android.bp Create build target to pull adb test scripts. 2017-05-23 10:42:59 -07:00
Android.mk Merge "Revert "adbd: lessen security constraints when the device is unlocked"" 2017-08-31 08:21:08 +00:00
CPPLINT.cfg
MODULE_LICENSE_APACHE2
NOTICE
OVERVIEW.TXT
SERVICES.TXT
SYNC.TXT
adb.cpp adb: remove SendConnectOnHost. 2017-10-02 14:38:03 -07:00
adb.h adb: remove SendConnectOnHost. 2017-10-02 14:38:03 -07:00
adb_auth.h
adb_auth_host.cpp Stop writing NUL bytes in adbkey.pub. 2017-05-01 16:05:16 -07:00
adb_client.cpp adb: allow selection of a specific transport. 2017-08-21 14:15:06 -07:00
adb_client.h adb: allow selection of a specific transport. 2017-08-21 14:15:06 -07:00
adb_io.cpp adb: increase the shell command length limit. 2017-06-16 18:01:11 -07:00
adb_io.h
adb_io_test.cpp
adb_listeners.cpp adb: move all cleanup to a function with defined ordering. 2017-05-09 14:32:47 -07:00
adb_listeners.h adb: move all cleanup to a function with defined ordering. 2017-05-09 14:32:47 -07:00
adb_listeners_test.cpp
adb_mdns.h
adb_trace.cpp adb: fix two device offline problems. 2017-04-20 10:14:59 -07:00
adb_trace.h adb: fix two device offline problems. 2017-04-20 10:14:59 -07:00
adb_unique_fd.h
adb_utils.cpp Indicate that a packet was truncated. 2017-06-27 13:26:14 -07:00
adb_utils.h Give a clear error message if we can't start the server. 2017-06-20 14:21:41 -07:00
adb_utils_test.cpp adb: allow symlinks to directories in directory_exists. 2017-03-23 16:19:55 -07:00
adbd_auth.cpp adbd: add logging to troubleshoot usb issues. 2017-07-26 11:08:15 -07:00
bugreport.cpp Merge "Don't preserve file attributes when pulling bugreport file..." 2017-08-22 22:41:26 +00:00
bugreport.h adb: allow selection of a specific transport. 2017-08-21 14:15:06 -07:00
bugreport_test.cpp Merge "Don't preserve file attributes when pulling bugreport file..." 2017-08-22 22:41:26 +00:00
commandline.cpp Fix adb tcpip tests. 2017-08-23 15:43:34 -07:00
commandline.h adb: allow selection of a specific transport. 2017-08-21 14:15:06 -07:00
console.cpp
diagnose_usb.cpp Improve udev failure diagnostics. 2017-05-05 12:50:16 -07:00
diagnose_usb.h
fdevent.cpp adb: add fdevent_run_on_main_thread. 2017-05-04 16:03:12 -07:00
fdevent.h adb: add fdevent_run_on_main_thread. 2017-05-04 16:03:12 -07:00
fdevent_test.cpp adb: add fdevent_run_on_main_thread. 2017-05-04 16:03:12 -07:00
fdevent_test.h adb: add fdevent_run_on_main_thread. 2017-05-04 16:03:12 -07:00
file_sync_client.cpp adb: Use kernel aio for functionfs. 2017-08-10 15:12:47 -07:00
file_sync_service.cpp Merge "adb: Use kernel aio for functionfs." 2017-08-29 03:28:26 +00:00
file_sync_service.h Add --sync support to push. 2017-05-19 11:09:58 -07:00
framebuffer_service.cpp
jdwp_service.cpp adb: switch the jdwp control socket to SOCK_SEQPACKET. 2017-03-20 13:37:13 -07:00
line_printer.cpp
line_printer.h
protocol.txt
remount_service.cpp adb: replacing fs_mgr_read_fstab() with fs_mgr_read_fstab_default() 2017-03-11 09:37:56 +08:00
remount_service.h
security_log_tags.h
services.cpp adbd: improve thread names. 2017-09-28 16:45:24 -07:00
services.h
set_verity_enable_state_service.cpp Reland "Remove comments and code about ro.boot.slot" 2017-09-25 16:04:30 +00:00
shell_service.cpp Set $HOSTNAME in adbd. 2017-10-03 08:44:27 -07:00
shell_service.h
shell_service_protocol.cpp
shell_service_protocol_test.cpp
shell_service_test.cpp
socket.h adb: reformat comments. 2017-09-13 14:05:21 -07:00
socket_spec.cpp
socket_spec.h
socket_spec_test.cpp
socket_test.cpp adb: kill adb_thread_{create, join, detach, exit}. 2017-04-12 17:12:32 -07:00
sockets.cpp adb: add lock to remove_socket. 2017-09-13 14:05:39 -07:00
sockets.dia
sysdeps.h Fix reference to out of scope local in adb_thread_setname. 2017-08-02 20:34:06 +00:00
sysdeps_test.cpp adb: enable -Wthread-safety on linux/darwin. 2017-05-03 14:28:21 -07:00
sysdeps_unix.cpp
sysdeps_win32.cpp Revert "adb: check our socketpair ends in our win32 emulation." 2017-03-30 13:12:37 -07:00
sysdeps_win32_test.cpp
test_adb.py Fix adb tcpip tests. 2017-08-23 15:43:34 -07:00
test_device.py adb: partially revert b5e11415. 2017-09-13 15:09:40 -07:00
trace.sh
transport.cpp adb: remove SendConnectOnHost. 2017-10-02 14:38:03 -07:00
transport.h adb: remove SendConnectOnHost. 2017-10-02 14:38:03 -07:00
transport_local.cpp adbd: optionally use qemud pipe without ro.kernel.qemu 2017-06-12 12:22:32 -07:00
transport_mdns.cpp adb: initialize mDNS asynchronously. 2017-05-04 16:03:12 -07:00
transport_mdns_unsupported.cpp
transport_test.cpp adb: fix two device offline problems. 2017-04-20 10:14:59 -07:00
transport_usb.cpp adb: remove SendConnectOnHost. 2017-10-02 14:38:03 -07:00
usb.h adb: move all cleanup to a function with defined ordering. 2017-05-09 14:32:47 -07:00