mach: android install/run: infer adb path from SDK dir

This commit is contained in:
Andrew Shu 2018-03-24 15:44:57 -07:00
parent 782d4d4af6
commit a631cb6b47
3 changed files with 11 additions and 3 deletions

View file

@ -93,7 +93,7 @@ class PostBuildCommands(CommandBase):
"am start com.mozilla.servo/com.mozilla.servo.MainActivity",
"exit"
]
shell = subprocess.Popen(["adb", "shell"], stdin=subprocess.PIPE)
shell = subprocess.Popen([self.android_adb_path(env), "shell"], stdin=subprocess.PIPE)
shell.communicate("\n".join(script) + "\n")
return shell.wait()