Support tool event logging for ADB invocations

Note that tool logging is still disabled by default.
This change validates that the ADB shell function
does not break any user flows when integrated with
the logging facility.

Test: adb devices -l
Bug: 331638854
Change-Id: Ic27fd44c9385ca48df79f2d7570c037b6fe18232
This commit is contained in:
Zhuoyao Zhang 2024-04-19 00:07:59 +00:00
parent ad64a4d296
commit 60dd9ddce9

View file

@ -1100,7 +1100,7 @@ function adb() {
echo "Command adb not found; try lunch (and building) first?"
return 1
fi
$ADB "${@}"
run_tool_with_logging "ADB" $ADB "${@}"
}
function run_tool_with_logging() {