automotive
Android Cuttlefish
chanbae
2024. 11. 8. 02:14
Android Cuttlefish ?
Android Cuttlefish is a virtual device designed to run the Android operating system virtually, optimized especially for testing at the OS and hardware integration level. Cuttlefish can be deployed in cloud environments such as Google Cloud Platform (GCP) and Amazon Web Services (AWS), making it useful for developers who require large-scale testing or remote access. It is primarily utilized by system developers and platform engineers to test the integration of Android system components with hardware.
Difference between Android Cuttlefish and Emulator
Purpose
- Cuttlefish: A virtual device designed mainly for testing at the OS and hardware integration level. It is primarily used by platform developers working on Android system components rather than general applications.
- Emulator: Primarily designed for general app development and testing. It simulates an Android device on a computer, widely used by app developers.
Deployment and Compatibility
- Cuttlefish: Runs primarily in Linux-based environments and is optimized for testing in cloud environments, such as Google Cloud Platform (GCP).
- Emulator: Has high compatibility with various host systems (Windows, macOS, Linux) and is a convenient tool for general app development.
Tips and Use Cases for Android Cuttlefish
- Supports both x86-64 and arm64 architectures, though x86-64 is preferred, as some features may be limited on arm64. Future support for riscv-64 is also planned.
- Both Cuttlefish and the Emulator require KVM (Kernel-based Virtual Machine) support. Cuttlefish has the advantage of running multiple instances using containers like Docker.
- Cuttlefish can be integrated with CI and managed with Kubernetes to handle multiple containers. Referencing “Running Android on Amazon EKS” is useful when setting it up, as AWS directly recommends this resource.
References
- Android cuttlefish official document: https://source.android.com/docs/devices/cuttlefish
- Running Android on Amazon EKS: https://realz.medium.com/running-android-on-kubernetes-be73b940833f
- Cuttlefish on ARM64 in AWS: https://medium.com/@BushMinusZero/cuttlefish-on-arm64-in-aws-b1f60d937614