From a38bdab4e27d1e3043412b2865fe5e0fc2b7e8d1 Mon Sep 17 00:00:00 2001 From: rereview Date: Tue, 8 Sep 2026 21:39:37 -0400 Subject: [PATCH] [Tools] (trace_replay): let a caller that installed the APK itself skip the harness install - ColorOS confirms every adb install with a dialog whose tap drops adb mid-stream, so the install has to settle outside a run --- android-plugin/trace-replay-ci.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/android-plugin/trace-replay-ci.sh b/android-plugin/trace-replay-ci.sh index 7b229923..92570ce0 100644 --- a/android-plugin/trace-replay-ci.sh +++ b/android-plugin/trace-replay-ci.sh @@ -367,7 +367,9 @@ run_retrace() { mkdir -p "${result_dir}" # A repeat run of a case the previous invocation already installed and pushed only needs # the on-device copy back into a fresh app output directory. - if [ "${reuse_fixture}" -eq 0 ]; then + # MOBILEGL_TRACE_SKIP_INSTALL=1: the caller installed the APK itself (ColorOS shows an install-confirmation + # dialog whose tap drops adb for a few seconds, so the install has to be done and settled outside a run). + if [ "${reuse_fixture}" -eq 0 ] && [ "${MOBILEGL_TRACE_SKIP_INSTALL:-0}" != "1" ]; then "${ADB}" install -r "$(host_path_for_adb "${apk_file}")" fi copy_fixture_to_app