Android Emulator Apple Silicon Preview

Here is an Android Studio article about the initial support for Emulator for Apple Silicon: Android Emulator Apple Silicon Preview. 12 new and notable Android apps and live wallpapers from the last two weeks including KONTXT Voice, Lenovo Smart Frame, and Facebook View (8/28/21 - 9/11/21) 2021/09/11 7:00am PDT Sep 11, 2021.

我已经在M1 MacBook Air上下载了Android Studio,但无法运行模拟器,这只会给我一个错误。我在Mac上搜索Android Studio要求,并说它需要Mac OS 10。.

App
Native M1 support Rosetta 2 only Not working Not tested yet
All apps Browsers Developers Design Music Video Production Photos Productivity
ApplicationM1 optimizedRosetta 2M1 Supported versionContribute
Java SE Development Kit - 17
.NET ⚠️ 6.0.100-rc.1
TensorFlow ⚠️ 🚫 2.6.0
SQLite - 3.36.0
Nix-
Julia language ⚠️ 1.7.0-beta4
Insomnia 🚫 ⚠️
Rider2021.2
IntelliJ IDEA2021.2
Android Studio2020.3.1
MAMP PRO6.4.2
MAMP6.4.2
pgAdmin 4 🚫
GNS3 🚫
Android NDK 🚫 ⚠️
Eclipse4.21
OpenJDK [azul]Java 16 (STS)
Install4j - 9.0.4
Unity Editor ⚠️ 2021.2.0a19
Unity ⚠️ 2021.2 beta
MySQL8.0 [homebrew]
Vagrant ⚠️ -
Ruby3.0.1
Gradle7.x
Postman8.6.0-canary
Rows per page:

✅ Fully compatible with Apple silicon (M1)
🚫 Not working
⚠️ Initial support or Beta with issues/crashes reported

By Abdullah Diaa
Email for Enquiries: [email protected]

M1 Statistics • Privacy Policy • m1 rosetta unsupported React development Music Production Graphics Design Web browsers Programming languages Developers AI Video production Photos Finance Productivity apps VPN 3D apps 2D apps IDE Android development Game development Games Networking tools Essential Mail clients Live streaming apps Vector Audio tools DJ appps Video conference apps Chat clients Guitar apps iOS development Notes apps
🇵🇱 Polski🇩🇪 Deutsch🇹🇷 Türkçe🇨🇳 中文(简体🇰🇷 한국어🇧🇷 Português brasileiro🇮🇷 زبان فارسی🇸🇪 svenska🇮🇹 italiano🇮🇱 עִבְרִית‎
  • No sound
  • No device skins
  • Video codecs not working
  • 32 bit ARM apps won't work
  • Graphical glitches in some Vulkan apps
  • Popup on startup about not being able to find the ADB path (ADB will still notice the emulator if you have it installed though)
  • When building, it may be faster to start then cancel the Python triggered build and then reissue ninja -C objs install/strip versus letting the Python triggered build finish.
  • How to use

    This only works on M1 Apple Silicon Macs. M1 (or equivalently capable) SoCs are required; note that this does not work on DTKs as they do not support ARM64 on ARM64 hardwre virtualization via Hypevisor.framework. However, we have plans to add support there as well via Virtualization.framework.

    Go to the Github releases page, download a .dmg, drag to the Applications folder, and run. You'll first need to right click the app icon and select Open and then skip past the developer identity verification step (we are working on providing official identity info). The first few times it starts up it will take a while to show up, but subsequent launches will be faster.

    If you've installed Android Studio and Android SDK and adb is available, the emulator should be visible from Studio and work (deploy built apps, debug apps, etc).

    How to configure

    Edit /Applications/Android Emulator.app/Contents/MacOS/aosp-master-arm64-v8a/config.ini. Some notable options:

    • disk.dataPartition.size: size of userdata. When reconfiguring, you'll also need to delete all userdata*.img files in that directory.
    • fastboot.forceColdBoot,fastboot.forceFastBoot: whether to enable snapshots. Current default is snapshots disabled. Set fastboot.forceColdBoot=no,fastboot.forceFastBoot=yes to enable snapshots.
    • hw.lcd.density: Virtual display DPI.
    • hw.lcd.width,hw.lcd.height: Virtual display dimensions.
    • hw.ramSize: RAM limit for the guest. (2GB minimum)

    How to wipe data

    Best Apple 2 Emulator

    Remove all userdata*.img files in /Applications/Android Emulator.app/Contents/MacOS/aosp-master-arm64-v8a/.

    How to build your own emulator

    Building the engine

    The emulator source code lives (here), but there are a bunch of other dependencies to download, so we use repo.

    To build, first make sure you have Xcode and Xcode command line tools installed, and that you have Chromium depot_tools in your PATH (link). Then:

    Android Emulator Apple Silicon Preview App

    Note that canceling the python based build after it gets going and issuing just ninja -C objs install/strip may be faster.

    The built artifacts are in /path/to/external/qemu/objs/distribution/emulator. They should be automatically signed. However, the binaries in objs/ are not; to sign them, issue ./sign-objs-binaries.sh. Note that this can only be done after ninja -C objs install/strip is successful.

    Building the system image

    Android Emulator Apple Silicon Preview Download

    The system image is built from AOSP master sdk_phone_arm64 with a few modifications. Ideally, let's be on a Linux host when building the system image---the build is relatively untested on M1 systems, and at least, we need to create a separate case sensitive partition for the AOSP repo. Assuming you're on Linux:

    We first need to make an edit to remove all 32 bit support. Patch this change: link to build/make/target/board/emulator_arm64/BoardConfig.mk. Then:

    After that's done, we can use this script to package up the system image for use in /Applications/Android Emulator.app/Contents/MacOS/aosp-master-arm64-v8a/. Assuming you're still in the Android build environment:

    Android Emulator Apple Silicon Preview Free

    Then, $ZIPPED_NAME.zip can be sent over to the M1 and the contents of its files/ can be coped over into /Applications/Android Emulator.app/Contents/MacOS/aosp-master-arm64-v8a/.