mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Do not prompt for Android emulator hardware profile
This commit is contained in:
parent
f4d740f086
commit
e54ad77594
1 changed files with 12 additions and 8 deletions
|
@ -109,14 +109,17 @@ class MachCommands(CommandBase):
|
||||||
"emulator",
|
"emulator",
|
||||||
image,
|
image,
|
||||||
])
|
])
|
||||||
subprocess.check_call([
|
subprocess.Popen(
|
||||||
path.join(tools_path, "tools", "bin", "avdmanager"),
|
stdin=subprocess.PIPE, args=[
|
||||||
"create", "avd",
|
path.join(tools_path, "tools", "bin", "avdmanager"),
|
||||||
"--path", path.join(toolchains, "avd", avd_name),
|
"create", "avd",
|
||||||
"--name", avd_name,
|
"--path", path.join(toolchains, "avd", avd_name),
|
||||||
"--package", image,
|
"--name", avd_name,
|
||||||
"--force",
|
"--package", image,
|
||||||
])
|
"--force",
|
||||||
|
]
|
||||||
|
# This command always prompts "Do you wish to create a custom hardware profile?"
|
||||||
|
).communicate("no\n")
|
||||||
with open(path.join(toolchains, "avd", avd_name, "config.ini"), "a") as f:
|
with open(path.join(toolchains, "avd", avd_name, "config.ini"), "a") as f:
|
||||||
f.write("disk.dataPartition.size=1G\n")
|
f.write("disk.dataPartition.size=1G\n")
|
||||||
|
|
||||||
|
@ -124,6 +127,7 @@ class MachCommands(CommandBase):
|
||||||
assert len(contents) == 1
|
assert len(contents) == 1
|
||||||
ndk_path = path.join(ndk_path, contents[0])
|
ndk_path = path.join(ndk_path, contents[0])
|
||||||
|
|
||||||
|
print("")
|
||||||
print("")
|
print("")
|
||||||
print("export ANDROID_SDK=\"%s\"" % tools_path)
|
print("export ANDROID_SDK=\"%s\"" % tools_path)
|
||||||
print("export ANDROID_NDK=\"%s\"" % ndk_path)
|
print("export ANDROID_NDK=\"%s\"" % ndk_path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue