1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-07-22 23:09:58 +01:00

AndroidDevice: remove unnecessary escapes from update locksettings command

The single quotes will be escaped further down the command processing
chain.
This commit is contained in:
Sergei Trofimov
2015-12-15 09:50:01 +00:00
parent 57b31149f1
commit 438e18328d

@@ -618,7 +618,7 @@ class AndroidDevice(BaseLinuxDevice): # pylint: disable=W0223
"""
lockdb = '/data/system/locksettings.db'
sqlcommand = "update locksettings set value=\\'0\\' where name=\\'screenlock.disabled\\';"
sqlcommand = "update locksettings set value='0' where name='screenlock.disabled';"
self.execute('sqlite3 {} "{}"'.format(lockdb, sqlcommand), as_root=True)
def disable_selinux(self):