diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2018-06-25 12:31:23 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2018-07-02 13:25:44 +0200 |
commit | 1ee54ab5fb4ba6de80174b65d2e3cf335c33611c (patch) | |
tree | ac5e65ff345fa1e2b23b36c24f460c2aeadb72cc /python/servo/bootstrap_commands.py | |
parent | 244a33297639919d8e1aa016bc137242a1ca7146 (diff) | |
download | servo-1ee54ab5fb4ba6de80174b65d2e3cf335c33611c.tar.gz servo-1ee54ab5fb4ba6de80174b65d2e3cf335c33611c.zip |
Create and Android virtual device
Diffstat (limited to 'python/servo/bootstrap_commands.py')
-rw-r--r-- | python/servo/bootstrap_commands.py | 9 |
1 files changed, 9 insertions, 0 deletions
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 |