← Back to team overview

ubuntu-phonedations-bugs team mailing list archive

[Bug 1571547] [NEW] adb shell escaping different from original Google version

 

Public bug reported:

The parsing of the parameters to "adb shell" is different between the
Ubuntu version and the original Google version. This change breaks all
scripts that rely on the (weird) escaping of the original version.

Examples:

Behavior of Ubuntu version:
$ /usr/bin/adb shell echo "'hi'"
'hi'

Behavior of Google version (expected):
$ /opt/adt/sdk/platform-tools/adb shell echo "'hi'"
hi

Versions:

$ /usr/bin/adb -v
Android Debug Bridge version 1.0.32

$ /opt/adt/sdk/platform-tools/adb -v
Android Debug Bridge version 1.0.32
Revision 09a0d98bebce-android

$ lsb_release -a
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04 LTS
Release:	16.04
Codename:	xenial

$ apt-cache policy android-tools-adb
android-tools-adb:
  Installed: 5.1.1r36+git20160322-0ubuntu3
  Candidate:   5.1.1r36+git20160322-0ubuntu3
  Version Table:
 *** 5.1.1r36+git20160322-0ubuntu3 500
        500 http://be.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

** Affects: android-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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/1571547

Title:
  adb shell escaping different from original Google version

Status in android-tools package in Ubuntu:
  New

Bug description:
  The parsing of the parameters to "adb shell" is different between the
  Ubuntu version and the original Google version. This change breaks all
  scripts that rely on the (weird) escaping of the original version.

  Examples:

  Behavior of Ubuntu version:
  $ /usr/bin/adb shell echo "'hi'"
  'hi'

  Behavior of Google version (expected):
  $ /opt/adt/sdk/platform-tools/adb shell echo "'hi'"
  hi

  Versions:

  $ /usr/bin/adb -v
  Android Debug Bridge version 1.0.32

  $ /opt/adt/sdk/platform-tools/adb -v
  Android Debug Bridge version 1.0.32
  Revision 09a0d98bebce-android

  $ lsb_release -a
  Distributor ID:	Ubuntu
  Description:	Ubuntu 16.04 LTS
  Release:	16.04
  Codename:	xenial

  $ apt-cache policy android-tools-adb
  android-tools-adb:
    Installed: 5.1.1r36+git20160322-0ubuntu3
    Candidate:   5.1.1r36+git20160322-0ubuntu3
    Version Table:
   *** 5.1.1r36+git20160322-0ubuntu3 500
          500 http://be.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
          100 /var/lib/dpkg/status

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