androidtool-mac icon indicating copy to clipboard operation
androidtool-mac copied to clipboard

Does Android Tool support fastboot commands?

Open andreathacker opened this issue 7 years ago • 5 comments

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?

andreathacker avatar Apr 06 '17 19:04 andreathacker

What does the debug console output show?

mortenjust avatar Apr 06 '17 23:04 mortenjust

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

andreathacker avatar Apr 07 '17 16:04 andreathacker

Yes - right here

image

mortenjust avatar Apr 07 '17 17:04 mortenjust

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.

andreathacker avatar Apr 07 '17 17:04 andreathacker

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

mortenjust avatar Apr 07 '17 17:04 mortenjust