Index: build/android/pylib/valgrind_tools.py |
diff --git a/build/android/pylib/valgrind_tools.py b/build/android/pylib/valgrind_tools.py |
index c0eff12317f416b8fe93d0f9464314b220437763..c71b873b67f6754b5c0772be508701ebeaf5eec0 100644 |
--- a/build/android/pylib/valgrind_tools.py |
+++ b/build/android/pylib/valgrind_tools.py |
@@ -124,6 +124,7 @@ class AddressSanitizerTool(BaseTool): |
def SetupEnvironment(self): |
self._adb.EnableAdbRoot() |
+ self._adb.RunShellCommand('setenforce 0') |
for prop in self._wrap_properties: |
self._adb.RunShellCommand('setprop %s "logwrapper %s"' % ( |
prop, self.GetTestWrapper())) |
@@ -167,6 +168,7 @@ class ValgrindTool(BaseTool): |
def SetupEnvironment(self): |
"""Sets up device environment.""" |
self._adb.RunShellCommand('chmod 777 /data/local/tmp') |
+ self._adb.RunShellCommand('setenforce 0') |
for prop in self._wrap_properties: |
self._adb.RunShellCommand('setprop %s "logwrapper %s"' % ( |
prop, self.GetTestWrapper())) |