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

Unified Diff: build/android/adb_install_apk.py

Issue 12096018: Add --keep_data as option to adb_install_apk (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | build/android/pylib/utils/test_options_parser.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/adb_install_apk.py
diff --git a/build/android/adb_install_apk.py b/build/android/adb_install_apk.py
index 7601a3fc623601f44a51d72b2963e2352586bf7d..8728c089931028c6f19b50d27bbcaf9ce7966746 100755
--- a/build/android/adb_install_apk.py
+++ b/build/android/adb_install_apk.py
@@ -16,9 +16,9 @@ from pylib.utils import test_options_parser
def _InstallApk(args):
- apk_path, apk_package, device = args
+ apk_path, apk_package, keep_data, device = args
result = android_commands.AndroidCommands(device=device).ManagedInstall(
- apk_path, False, apk_package)
+ apk_path, keep_data, apk_package)
print '----- Installed on %s -----' % device
print result
@@ -42,6 +42,7 @@ def main(argv):
# Send a tuple (apk_path, apk_package, device) per device.
pool.map(_InstallApk, zip([options.apk] * len(devices),
[options.apk_package] * len(devices),
+ [options.keep_data] * len(devices),
devices))
« no previous file with comments | « no previous file | build/android/pylib/utils/test_options_parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698