设置
We will be using a Cuttlefish Android Virtual Device to test our code. Make sure you have access to one or create a new one with:
source build/envsetup.sh
lunch aosp_cf_x86_64_phone-trunk_staging-userdebug
acloud create
更多细节请参考 Android Developer Codelab.
The code on the following pages can be found in the src/android/
directory of the course material. Please git clone
the repository to follow along.
关键点:
-
Cuttlefish is a reference Android device designed to work on generic Linux desktops. MacOS support is also planned.
-
Cuttlefish 系统映像会保持媲美真实设备的高保真度,是运行许多 Rust 用例的理想模拟器。