llvm-project/libcxx/utils/ci/vendor/android/container-setup.sh
Louis Dionne 52dc4918ca [libc++][NFC] Use consistent layout for license in Python files
Most Python files were using `# === [...]` instead of `#=== [...]`
so I went with what was the most common in the codebase.
2024-09-04 16:48:41 -04:00

20 lines
841 B
Bash
Executable File

#!/usr/bin/env bash
# ===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
# ===----------------------------------------------------------------------===##
set -e
# Different versions of adb can sometimes be incompatible (i.e. "adb server
# version (nn) doesn't match this client (mm); killing..."). Ensure that the adb
# in the main builder image matches that in the emulator by sharing the
# platform-tools from the main image.
if [ -d /mnt/android-platform-tools ]; then
sudo rm -fr /mnt/android-platform-tools/platform-tools
sudo cp -r /opt/android/sdk/platform-tools /mnt/android-platform-tools
fi