Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2438)

Unified Diff: build/android/pylib/android_commands.py

Issue 12094041: Force root mode when clearing application data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/android_commands.py
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py
index 08ffa6e2ba282b120acdc3fc47a37bb66515c622..10527e56df9afb017fcd56c6ba942d053a666da1 100644
--- a/build/android/pylib/android_commands.py
+++ b/build/android/pylib/android_commands.py
@@ -595,10 +595,10 @@ class AndroidCommands(object):
def ClearApplicationState(self, package):
"""Closes and clears all state for the given |package|."""
self.CloseApplication(package)
- self.RunShellCommand('rm -r /data/data/%s/app_*' % package)
- self.RunShellCommand('rm -r /data/data/%s/cache/*' % package)
- self.RunShellCommand('rm -r /data/data/%s/files/*' % package)
- self.RunShellCommand('rm -r /data/data/%s/shared_prefs/*' % package)
+ self.RunShellCommand('su -c rm -r /data/data/%s/app_*' % package)
+ self.RunShellCommand('su -c rm -r /data/data/%s/cache/*' % package)
+ self.RunShellCommand('su -c rm -r /data/data/%s/files/*' % package)
+ self.RunShellCommand('su -c rm -r /data/data/%s/shared_prefs/*' % package)
frankf 2013/01/30 18:15:20 can you create a wrapper around these, something l
def SendKeyEvent(self, keycode):
"""Sends keycode to the device.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698