2022-12-21 16:36:30 +01:00
|
|
|
# Setup
|
|
|
|
|
|
2023-12-31 00:15:07 +01:00
|
|
|
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:
|
2022-12-21 16:36:30 +01:00
|
|
|
|
|
|
|
|
```shell
|
2023-07-11 00:25:41 -04:00
|
|
|
source build/envsetup.sh
|
2023-11-30 05:36:42 -08:00
|
|
|
lunch aosp_cf_x86_64_phone-trunk_staging-userdebug
|
2023-07-11 00:25:41 -04:00
|
|
|
acloud create
|
2022-12-21 16:36:30 +01:00
|
|
|
```
|
|
|
|
|
|
2023-12-31 00:15:07 +01:00
|
|
|
Please see the
|
|
|
|
|
[Android Developer Codelab](https://source.android.com/docs/setup/start) for
|
|
|
|
|
details.
|
2023-11-28 11:19:04 -08:00
|
|
|
|
2024-11-19 19:25:44 +01:00
|
|
|
The code on the following pages can be found in the
|
|
|
|
|
[`src/android/` directory](https://github.com/google/comprehensive-rust/tree/main/src/android)
|
|
|
|
|
of the course material. Please `git clone` the repository to follow along.
|
|
|
|
|
|
2023-11-28 11:19:04 -08:00
|
|
|
<details>
|
|
|
|
|
|
|
|
|
|
Key points:
|
|
|
|
|
|
2023-12-31 00:15:07 +01:00
|
|
|
- Cuttlefish is a reference Android device designed to work on generic Linux
|
|
|
|
|
desktops. MacOS support is also planned.
|
2023-11-28 11:19:04 -08:00
|
|
|
|
2023-12-31 00:15:07 +01:00
|
|
|
- The Cuttlefish system image maintains high fidelity to real devices, and is
|
|
|
|
|
the ideal emulator to run many Rust use cases.
|
2023-11-28 11:19:04 -08:00
|
|
|
|
|
|
|
|
</details>
|