summaryrefslogtreecommitdiff
path: root/startop/scripts/app_startup/launch_application
diff options
context:
space:
mode:
Diffstat (limited to 'startop/scripts/app_startup/launch_application')
-rwxr-xr-xstartop/scripts/app_startup/launch_application17
1 files changed, 2 insertions, 15 deletions
diff --git a/startop/scripts/app_startup/launch_application b/startop/scripts/app_startup/launch_application
index bc7ca802ed85..6704a5a97aa0 100755
--- a/startop/scripts/app_startup/launch_application
+++ b/startop/scripts/app_startup/launch_application
@@ -39,22 +39,9 @@ launch_application() {
# if the $ is not escaped, adb shell will try to evaluate $HomeActivity to a variable.
activity=${activity//\$/\\$}
- local am_output="$(adb shell am start -S -W "$package"/"$activity")"
- verbose_print adb shell am start -S -W "$package"/"$activity"
- if [[ $? -ne 0 ]]; then
- echo "am start failed" >&2
+ adb shell am start -S -W "$package"/"$activity"
- return 1
- fi
-
- # for everything else use the am start "TotalTime" output.
- verbose_print "$am_output"
- local total_time="$(echo "$am_output" | grep 'TotalTime:' | sed 's/TotalTime: //g')"
- verbose_print "total time: $total_time"
-
- # TODO: Extract alternative metrics such as the #reportFullyDrawn.
-
- echo "$total_time"
+ # pipe this into 'parse_metrics' to parse the output.
}
if [[ $# -lt 2 ]]; then