https://github.com/f9n/avd-compose
Define and run android virtual devices
https://github.com/f9n/avd-compose
android android-emulator avdmanager orchestration sdkmanager
Last synced: 5 months ago
JSON representation
Define and run android virtual devices
- Host: GitHub
- URL: https://github.com/f9n/avd-compose
- Owner: f9n
- License: gpl-3.0
- Archived: true
- Created: 2019-03-12T18:59:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-17T16:17:12.000Z (about 5 years ago)
- Last Synced: 2025-09-21T09:52:17.382Z (9 months ago)
- Topics: android, android-emulator, avdmanager, orchestration, sdkmanager
- Language: Python
- Homepage:
- Size: 98.6 KB
- Stars: 9
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# avd-compose [](https://pypi.python.org/pypi/avd-compose/) [](https://pypi.python.org/pypi/avd-compose/) [](https://github.com/f9n/avd-compose/blob/master/LICENSE)
Define and run android virtual devices
# Requirements
- android-studio
- python3.4+
- pip3
# Notes
Make sure that the `ANDROID_HOME` environment variable is set.
```bash
$ echo $ANDROID_HOME
$ export ANDROID_HOME=$HOME/Android/Sdk
$ echo $ANDROID_HOME
/home/f9n/Android/Sdk
```
# Install
```bash
$ pip3 install --user avd-compose
```
# Usage
```bash
$ avd-compose --help
$ avd-compose version
$ cat <avd-compose.yml
version: 1
platforms:
- name: My_Nexus_5
avd:
package: "system-images;android-27;google_apis_playstore;x86"
device: Nexus 5
emulator:
- name: My_Nexus_One
avd:
package: "system-images;android-27;google_apis_playstore;x86"
device: Nexus One
emulator:
EOF
$ # Create all of them
$ avd-compose create
$ # Create one of them
$ avd-compose create --name My_Nexus_One
$ # Destroy all of them
$ avd-compose destroy
$ # Destroy one of them
$ avd-compose destroy --name My_Nexus_One
$ avd-compose up --name My_Nexus_5
```
# Examples
Look up the [examples](https://github.com/f9n/avd-compose/tree/master/examples) directory.
# Credits
- [Docker Compose](https://github.com/docker/compose)
- [Vagrant](https://github.com/hashicorp/vagrant)