Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

f9n/avd-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

avd-compose PyPi version PyPI pyversions

Define and run android virtual devices

Requirements

  • android-studio
  • python3.4+
  • pip3

Notes

Make sure that the ANDROID_HOME environment variable is set.

$ echo $ANDROID_HOME

$ export ANDROID_HOME=$HOME/Android/Sdk
$ echo $ANDROID_HOME
/home/f9n/Android/Sdk

Install

$ pip3 install --user avd-compose

Usage

$ avd-compose --help
$ avd-compose version
$ cat <<EOF >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 directory.

Credits

Releases

No releases published

Packages

No packages published

Languages