summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/android/pylib/android_commands.py2
-rw-r--r--build/android/pylib/device_settings.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py
index 5fc2fbd..7c73b52 100644
--- a/build/android/pylib/android_commands.py
+++ b/build/android/pylib/android_commands.py
@@ -713,7 +713,7 @@ class AndroidCommands(object):
"""
self._LogShell(command)
if "'" in command:
- logging.warning(command + " contains ' quotes")
+ command = command.replace('\'', '\'\\\'\'')
result = self._adb.SendShellCommand(
"'%s'" % command, timeout_time).splitlines()
# TODO(b.kelemen): we should really be able to drop the stderr of the
diff --git a/build/android/pylib/device_settings.py b/build/android/pylib/device_settings.py
index 3612a81..ec8a79a 100644
--- a/build/android/pylib/device_settings.py
+++ b/build/android/pylib/device_settings.py
@@ -93,7 +93,7 @@ commit transaction;""" % {
'columns': ', '.join(columns),
'values': ', '.join(["'%s'" % value for value in values])
}
- output_msg = device.RunShellCommand('\'sqlite3 %s "%s"\'' % (db, cmd))
+ output_msg = device.RunShellCommand('sqlite3 %s "%s"' % (db, cmd))
if output_msg:
print ' '.join(output_msg)