-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating to NDK 26d and API 21 revealed that the most recent emulator no longer runs 32-bit devices at all. Indeed, Google stopped shipping 32-bit emulator images as of API level 31. Since this architecture is more used, and current images no longer have backcompat code for 32-bit code, testing aarch64 is both important for enabling developers to ship apps that run on modern devices and to future-proof us.
- Loading branch information
Showing
6 changed files
with
56 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
FROM ubuntu:23.04 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
COPY scripts/android-base-apt-get.sh /scripts/ | ||
RUN sh /scripts/android-base-apt-get.sh | ||
|
||
COPY scripts/android-ndk.sh /scripts/ | ||
RUN . /scripts/android-ndk.sh && \ | ||
download_ndk android-ndk-r26d-linux.zip | ||
|
||
RUN dpkg --add-architecture i386 && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
libgl1-mesa-glx \ | ||
libpulse0 \ | ||
libstdc++6:i386 \ | ||
openjdk-8-jre-headless \ | ||
tzdata \ | ||
wget \ | ||
python3 | ||
|
||
COPY scripts/android-sdk.sh /scripts/ | ||
COPY scripts/android-sdk-manager.py /scripts/ | ||
COPY host-x86_64/aarch64-android/android-sdk.lock /android/sdk/android-sdk.lock | ||
RUN /scripts/android-sdk.sh | ||
|
||
ENV PATH=$PATH:/android/sdk/emulator | ||
ENV PATH=$PATH:/android/sdk/tools | ||
ENV PATH=$PATH:/android/sdk/platform-tools | ||
|
||
ENV TARGETS=aarch64-linux-android | ||
|
||
ENV RUST_CONFIGURE_ARGS --android-ndk=/android/ndk/ | ||
|
||
ENV SCRIPT python3 ../x.py --stage 2 test --host='' --target $TARGETS | ||
|
||
COPY scripts/sccache.sh /scripts/ | ||
RUN sh /scripts/sccache.sh | ||
|
||
COPY scripts/android-start-emulator.sh /scripts/ | ||
ENTRYPOINT ["/scripts/android-start-emulator.sh", "arm64-v8a", "auto"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
emulator emulator-linux_x64-12038310.zip fe7a96bf6fbe7b026555dd7f76b713f22a07ec8b | ||
patcher;v4 3534162-studio.sdk-patcher.zip 046699c5e2716ae11d77e0bad814f7f33fab261e | ||
platform-tools platform-tools_r34.0.5-linux.zip 96097475cf7b279fdd8f218f5d043ffe94104ec3 | ||
platforms;android-21 android-21_r02.zip 53536556059bb29ae82f414fd2e14bc335a4eb4c | ||
system-images;android-21;default;arm64-v8a sys-img/android/arm64-v8a-21_r04.zip c4375f1b4b4cd21a8617660e25f621cedcbd8332 | ||
tools sdk-tools-linux-4333796.zip 8c7c28554a32318461802c1291d76fccfafde054 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters