diff options
| author | Elliott Hughes <enh@google.com> | 2017-10-03 08:44:27 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2017-10-03 08:44:27 -0700 |
| commit | fa5b56de761f6d3cbf47e608baea9205164ee1c5 (patch) | |
| tree | 5d5eccfba942dedc2bc7a76e27cf8eaa0351749c /libcutils/socket_local_server_unix.cpp | |
| parent | 23313c2f8549d6b2caa430fabcd5ecd9e8013d5c (diff) | |
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
Diffstat (limited to 'libcutils/socket_local_server_unix.cpp')
0 files changed, 0 insertions, 0 deletions
