Skip to content

Commit 2df1552

Browse files
rprichardyuxuanchen1997
authored andcommitted
[libc++][Android] Pass -no-metrics to emulator (#99627)
Summary: The Android Emulator has started printing this message, so pass the `-no-metrics` option: ``` ############################################################################## ## WARNING - ACTION REQUIRED ## ## Consider using the '-metrics-collection' flag to help improve the ## ## emulator by sending anonymized usage data. Or use the '-no-metrics' ## ## flag to bypass this warning and turn off the metrics collection. ## ## In a future release this warning will turn into a one-time blocking ## ## prompt to ask for explicit user input regarding metrics collection. ## ## ## ## Please see '-help-metrics-collection' for more details. You can use ## ## '-metrics-to-file' or '-metrics-to-console' flags to see what type of ## ## data is being collected by emulator as part of usage statistics. ## ############################################################################## ``` Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60251061
1 parent 3012fb6 commit 2df1552

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libcxx/utils/ci/vendor/android/Dockerfile.emulator

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y \
1616
unzip \
1717
&& rm -rf /var/lib/apt/lists/*
1818

19-
ENV ANDROID_HOME /opt/android/sdk
19+
ENV ANDROID_HOME=/opt/android/sdk
2020

2121
RUN curl -sL https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip -o cmdline-tools.zip && \
2222
mkdir -p ${ANDROID_HOME} && \

libcxx/utils/ci/vendor/android/emulator-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ fi
4545

4646
# Use exec so that the emulator is PID 1, so that `docker stop` kills the
4747
# emulator.
48-
exec emulator @emulator -no-audio -no-window \
48+
exec emulator @emulator -no-audio -no-window -no-metrics \
4949
-partition-size "${EMU_PARTITION_SIZE}"

0 commit comments

Comments
 (0)