← Back to team overview

ubuntu-phonedations-bugs team mailing list archive

[Bug 1267117] Re: adbd does not use pam_env

 

** Branch linked: lp:ubuntu/trusty-proposed/android-tools

-- 
You received this bug notification because you are a member of Ubuntu
Phonedations bugs, which is subscribed to android-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1267117

Title:
  adbd does not use pam_env

Status in “android-tools” package in Ubuntu:
  Confirmed

Bug description:
  When working with ubuntu-touch the following environment differences are observed:
  - login via ssh, locale is set
  - login via tty/serial, locale is set
  - login adb shell, locale is not set

  in fact none of the /etc/environment is sourced/exported, which
  indicates that PAM environment is not used. I believe adbd should be
  treated as a full-fledged login-like PAM session, such that e.g. adb
  shell has correct locale set, etc.

  As a local hack, I've now used:
  # echo exec su - -c adbd > /etc/init/android-tools-adbd.override

  such that, at least, adb shell not has all PAM environment variables
  available.

  Please note at the moment we are growing a number of work-arounds
  across smoke tests runners, and the autopilot tests which workaround
  the facts that environment across adb shell is incomplete.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/android-tools/+bug/1267117/+subscriptions