1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-02 03:12:34 +01:00

AndroidDevice: WA now pushes its own sqlite3 binary

Some device have the sqlite3 binary removed. WA will now check for
this and push its own binary if necessary.
This commit is contained in:
Sebastian Goscik
2016-05-09 16:10:02 +01:00
parent d3c7f11f2d
commit 59cfd7c757
6 changed files with 41 additions and 2 deletions

View File

@@ -207,7 +207,7 @@ class Gem5AndroidDevice(BaseGem5Device, AndroidDevice):
"""
lockdb = '/data/system/locksettings.db'
sqlcommand = "update locksettings set value=\'0\' where name=\'screenlock.disabled\';"
self.execute('sqlite3 {} "{}"'.format(lockdb, sqlcommand), as_root=True)
self.execute('{} {} "{}"'.format(self.sqlite, lockdb, sqlcommand), as_root=True)
def capture_screen(self, filepath):
if BaseGem5Device.capture_screen(self, filepath):