From 1ee54ab5fb4ba6de80174b65d2e3cf335c33611c Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 25 Jun 2018 12:31:23 +0200 Subject: Create and Android virtual device --- python/servo/bootstrap_commands.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'python/servo/bootstrap_commands.py') diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py index 371f6c2e0ea..51ed2cd542c 100644 --- a/python/servo/bootstrap_commands.py +++ b/python/servo/bootstrap_commands.py @@ -70,6 +70,7 @@ class MachCommands(CommandBase): api_level = "25" sdk_build_tools = "25.0.2" system_image = "google_apis;armeabi-v7a" + avd_name = "servo-armv7" toolchains = path.join(self.context.topdir, "android-toolchains") @@ -109,6 +110,14 @@ class MachCommands(CommandBase): "emulator", image, ]) + subprocess.check_call([ + path.join(tools_path, "tools", "bin", "avdmanager"), + "create", "avd", + "--path", path.join(toolchains, "avd", avd_name), + "--name", avd_name, + "--package", image, + "--force", + ]) contents = os.listdir(ndk_path) assert len(contents) == 1 -- cgit v1.2.3