adb shell escaping different from original Google version

Bug #1571547 reported by Michael Hofmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
android-tools (Ubuntu)
New
Undecided
Unassigned

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 post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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