commit | d42df42f30ba7761d2445634d85aa862548a7044 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Dec 11 10:40:57 2017 -0800 |
committer | Elliott Hughes <enh@google.com> | Mon Dec 11 10:40:57 2017 -0800 |
tree | ef773b8fe0074ca922f3a2c7ab6e6089fb2083b0 | |
parent | a4a9a81d383b4c29841279b342a4e8772542ea88 [diff] [blame] |
Set $TMPDIR for `adb shell`. Bug: http://b/19635681 Test: printenv Change-Id: I21e89b9d7cccad23f32a3062a9e04e59b8278104
diff --git a/adb/shell_service.cpp b/adb/shell_service.cpp index 0c7e1f9..f9f80c0 100644 --- a/adb/shell_service.cpp +++ b/adb/shell_service.cpp
@@ -262,6 +262,7 @@ env["HOSTNAME"] = GetHostName(); env["LOGNAME"] = pw->pw_name; env["SHELL"] = pw->pw_shell; + env["TMPDIR"] = "/data/local/tmp"; env["USER"] = pw->pw_name; }