mortenjust / androidtool-mac

One-click screenshots, video recordings, app installation for iOS and Android
Apache License 2.0
5.43k stars 325 forks source link

Does Android Tool support fastboot commands? #126

Open andreathacker opened 7 years ago

andreathacker commented 7 years ago

I'm trying to flash a device using flashboot commands and I thought it would be handy to import this into android tool as an easy place to save and execute it. However, the fastboot flashall -w command doesn't seem to be running, or the script is getting cutoff to early and the system never picks up on the new build.

Any ideas?

mortenjust commented 7 years ago

What does the debug console output show?

andreathacker commented 7 years ago

I'm not sure how to enable that, is that something that Android Tool supports?

mortenjust commented 7 years ago

Yes - right here

image

andreathacker commented 7 years ago

Awesome! Thanks for the screenshot. At the end of the output it spits this out

/Users/davidthacker/Library/Application Support/AndroidTool/UserScripts/flash-build.sh: line 11: fastboot: command not found

So it looks like it isn't able to use fastboot.

mortenjust commented 7 years ago

ah, the scripts run without your environments vars, like PATH. You could try something like bash -l -c fastboot [args]

Or alternatively, simply specify the full path to fastboot like /usr/local/bin/fastboot [vars]. To find out where fastboot is, do a which fastboot from Terminal