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

Unified Diff: sky/tools/skydb

Issue 1158493005: Cache .so files for debugging per device and don't redownload .so's that are in your cache (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 | « sky/tools/android_library_cacher.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/skydb
diff --git a/sky/tools/skydb b/sky/tools/skydb
index e99509d762c849ddd4424a4e3ab572c837b603c9..1a5285560379d5c1d481eba4a4842634770ab0b6 100755
--- a/sky/tools/skydb
+++ b/sky/tools/skydb
@@ -37,7 +37,8 @@ ANDROID_APK_NAME = 'MojoShell.apk'
PID_FILE_PATH = "/tmp/skydb.pids"
CACHE_LINKS_PATH = '/tmp/mojo_cache_links'
-SYSTEM_LIBS_ROOT_PATH = '/tmp/device_libs'
+# TODO(iansf): Fix undefined behavior when you have more than one device attached.
+SYSTEM_LIBS_ROOT_PATH = '/tmp/device_libs/%s' % (subprocess.check_output(['adb', 'get-serialno']).strip())
SRC_ROOT = skypy.paths.Paths('ignored').src_root
ADB_PATH = os.path.join(SRC_ROOT,
« no previous file with comments | « sky/tools/android_library_cacher.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698