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

Unified Diff: blimp/tools/client_engine_integration.py

Issue 2239923002: Make blimp work on K (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits and sync to head Created 4 years, 4 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 | « blimp/docs/running.md ('k') | content/zygote/zygote_main_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/tools/client_engine_integration.py
diff --git a/blimp/tools/client_engine_integration.py b/blimp/tools/client_engine_integration.py
index cd0d9a15c6cdfb811b9f0306b6338e58f98fafac..3f45e3fb8a5dae93ffc23f3c3dfd8426b319493d 100755
--- a/blimp/tools/client_engine_integration.py
+++ b/blimp/tools/client_engine_integration.py
@@ -33,6 +33,7 @@ from devil.android import device_blacklist
from devil.android import device_utils
from devil.android import forwarder
from devil.android.sdk import intent
+from devil.android.sdk import version_codes
from devil.utils import cmd_helper
_CLIENT_TOKEN_PATH = posixpath.join('/', 'data', 'data',
@@ -74,7 +75,7 @@ def RunClient(device, optional_url):
device.StartActivity(run_client_intent, blocking=True)
-def RunEngine(output_linux_directory, token_file_path):
+def RunEngine(output_linux_directory, token_file_path, device):
"""Start running engine
Args:
@@ -87,8 +88,14 @@ def RunEngine(output_linux_directory, token_file_path):
port = '0'
blimp_engine_app = os.path.join(output_linux_directory,
'blimp_engine_app')
+
+ sub_dir = "marshmallow"
+ if device.build_version_sdk == version_codes.KITKAT:
+ sub_dir = "kitkat"
blimp_fonts_path = os.path.join(output_linux_directory, 'gen',
- 'third_party', 'blimp_fonts')
+ 'third_party', 'blimp_fonts',
+ 'font_bundle', sub_dir)
+
run_engine_cmd = [
blimp_engine_app +
' --android-fonts-path=' + blimp_fonts_path +
@@ -170,7 +177,7 @@ def _Start(args, json_file_path, device):
device.PushChangedFiles(host_device_tuples)
port_number, engine_process = RunEngine(
- args.output_linux_directory, _TOKEN_FILE_PATH)
+ args.output_linux_directory, _TOKEN_FILE_PATH, device)
json_object['port_number'] = port_number
json_object['pid'] = engine_process.pid
logging.info('Engine port number: %s', port_number)
« no previous file with comments | « blimp/docs/running.md ('k') | content/zygote/zygote_main_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698