Merge "Support tool event logging for fastboot" into main am: 9a74753a84
Original change: https://android-review.googlesource.com/c/platform/build/+/3123151 Change-Id: Ie688a8009cfc3f733f596a8e7906133e80dc22dd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
10
envsetup.sh
10
envsetup.sh
@@ -865,6 +865,16 @@ function adb() {
|
|||||||
run_tool_with_logging "ADB" $ADB "${@}"
|
run_tool_with_logging "ADB" $ADB "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fastboot() {
|
||||||
|
local FASTBOOT=$(command which fastboot)
|
||||||
|
if [ -z "$FASTBOOT" ]; then
|
||||||
|
echo "Command fastboot not found; try lunch (and building) first?"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
# Support tool event logging for fastboot command.
|
||||||
|
run_tool_with_logging "FASTBOOT" $FASTBOOT "${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# communicate with a running device or emulator, set up necessary state,
|
# communicate with a running device or emulator, set up necessary state,
|
||||||
# and run the hat command.
|
# and run the hat command.
|
||||||
function runhat()
|
function runhat()
|
||||||
|
Reference in New Issue
Block a user