summaryrefslogtreecommitdiffstats
path: root/build/android/pylib/flag_changer.py
diff options
context:
space:
mode:
Diffstat (limited to 'build/android/pylib/flag_changer.py')
-rw-r--r--build/android/pylib/flag_changer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/android/pylib/flag_changer.py b/build/android/pylib/flag_changer.py
index 9ccdc1e..c1ce16a 100644
--- a/build/android/pylib/flag_changer.py
+++ b/build/android/pylib/flag_changer.py
@@ -114,7 +114,8 @@ class FlagChanger(object):
assert len(file_contents) == 1 and file_contents[0] == cmd_line, (
'Failed to set the command line file at %s' % self._cmdline_file)
else:
- self._device.RunShellCommand('rm ' + self._cmdline_file, root=use_root)
+ self._device.RunShellCommand('rm ' + self._cmdline_file,
+ as_root=use_root)
assert (
not self._device.old_interface.FileExistsOnDevice(
self._cmdline_file)), (