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

Unified Diff: build/android/gyp/apk_install.py

Issue 14017010: [Android] Use a script on the device for creating library symlinks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/gyp/create_device_library_links.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/apk_install.py
diff --git a/build/android/gyp/apk_install.py b/build/android/gyp/apk_install.py
index 8f1e69b15ba937954670aa4f4de258096255fbd8..8cd1a604fe671b53e9e0ea736b0bec6b85637a10 100755
--- a/build/android/gyp/apk_install.py
+++ b/build/android/gyp/apk_install.py
@@ -27,6 +27,8 @@ def main(argv):
help='Path to Android SDK tools.')
parser.add_option('--apk-path',
help='Path to .apk to install.')
+ parser.add_option('--install-record',
+ help='Path to install record (touched only when APK is installed).')
parser.add_option('--stamp',
help='Path to touch on success.')
options, _ = parser.parse_args()
@@ -37,10 +39,14 @@ def main(argv):
'install', '-r',
options.apk_path]
+ def Install():
+ build_utils.CheckCallDie(install_cmd)
+ build_utils.Touch(options.install_record)
+
serial_number = android_commands.AndroidCommands().Adb().GetSerialNumber()
record_path = '%s.%s.md5.stamp' % (options.apk_path, serial_number)
md5_check.CallAndRecordIfStale(
- lambda: build_utils.CheckCallDie(install_cmd),
+ Install,
record_path=record_path,
input_paths=[options.apk_path],
input_strings=install_cmd)
« no previous file with comments | « no previous file | build/android/gyp/create_device_library_links.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698