adbd does not use pam_env

Bug #1267117 reported by Dimitri John Ledkov
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
android-tools (Ubuntu)
Fix Released
Critical
Dimitri John Ledkov

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.

Tags: jemjem
Changed in android-tools (Ubuntu):
status: New → Confirmed
importance: Undecided → High
tags: added: jemjem
Changed in android-tools (Ubuntu):
importance: High → Critical
assignee: nobody → Dimitri John Ledkov (xnox)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package android-tools - 4.2.2+git20130218-3ubuntu23

---------------
android-tools (4.2.2+git20130218-3ubuntu23) trusty; urgency=medium

  * Start adbd under a PAM session, such that it has the default system
    locale and environmental variables set. (LP: #1267117)
 -- Dimitri John Ledkov <email address hidden> Mon, 31 Mar 2014 18:57:22 +0100

Changed in android-tools (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.