commit | a372f6f24192f28e66b9e73885aca34839112a66 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Nov 03 14:31:46 2015 -0800 |
committer | Elliott Hughes <enh@google.com> | Tue Nov 03 14:31:46 2015 -0800 |
tree | 74bef1a983c0194aa9a94bf5fa4258251312b898 | |
parent | 19d9454ee3c2c3c11272ec34cee0e263a621fd98 [diff] |
Fix the run-as environment to better match su. $USER and $LOGNAME along with $HOME were just plain wrong (leading to a misleading interactive prompt), and it probably makes sense to reset the variables that su would reset. Bug: https://code.google.com/p/android/issues/detail?id=187438 Change-Id: I0404511453d371f36801f0212a8d72d93f0bc8ac